feat: add core i18n runtime and catalogs

This commit is contained in:
poyrazavsever
2026-07-19 03:06:38 +03:00
parent 0548820584
commit f4a2342ac4
12 changed files with 776 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
export const I18N_NAMESPACES = [
"common",
"auth",
"navigation",
"dashboard",
"clients",
"projects",
"tasks",
"calendar",
"finance",
"journal",
"chat",
"settings",
"portal",
"status",
"validation",
"api",
] as const;
export type I18nNamespace = (typeof I18N_NAMESPACES)[number];
export type LocaleCode = string;
export type TextDirection = "ltr" | "rtl";
export type TranslationValues = Record<string, string | number | boolean | Date | null | undefined>;
export type TranslationCatalog = Record<I18nNamespace, Record<string, string>>;
export type LocaleDescriptor = {
code: LocaleCode;
name: string;
nativeName: string;
status: "draft" | "active" | "archived" | "test";
fallbackLocale: LocaleCode | null;
textDirection: TextDirection;
builtIn: boolean;
};