chore: codify React component style
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
export const ru = {
|
||||
const ru = {
|
||||
translation: {
|
||||
appName: "WealthLedger",
|
||||
navigation: { accounts: "Счета", settings: "Настройки" },
|
||||
@@ -167,3 +167,5 @@ export const ru = {
|
||||
},
|
||||
},
|
||||
} as const;
|
||||
|
||||
export { ru };
|
||||
|
||||
@@ -2,8 +2,10 @@ import type { ParseKeys } from "i18next";
|
||||
|
||||
import { i18n } from "./i18n";
|
||||
|
||||
export function validationMessage(
|
||||
function validationMessage(
|
||||
key: ParseKeys,
|
||||
): (_value: unknown) => { message: string } {
|
||||
return () => ({ message: i18n.t(key) });
|
||||
}
|
||||
|
||||
export { validationMessage };
|
||||
|
||||
Reference in New Issue
Block a user