feat(KAN-16): add English localization foundation

This commit is contained in:
2026-09-11 12:11:50 +00:00
parent 68995a9f4c
commit 71d9d1b63e
11 changed files with 433 additions and 5 deletions
+2
View File
@@ -1,4 +1,5 @@
import type { Auth } from '@/types/auth';
import type { LocalizationSettings } from '@/types/localization';
import type { Page, Router } from '@inertiajs/core';
import { createHeadManager } from '@inertiajs/vue3';
@@ -19,6 +20,7 @@ declare module '@inertiajs/core' {
export interface InertiaConfig {
sharedPageProps: {
name: string;
localization: LocalizationSettings;
auth: Auth;
sidebarOpen: boolean;
};
+13
View File
@@ -0,0 +1,13 @@
import type { en } from '@/locales/en';
export type TranslationKey = keyof typeof en;
export type PluralMessage = Partial<Record<Intl.LDMLPluralRule, string>> & {
other: string;
};
export type TranslationCatalog = Record<TranslationKey, string | PluralMessage>;
export type TranslationParameters = Record<string, string | number>;
export type LocalizationSettings = {
locale: string;
timeZone: string;
};