feat(KAN-16): add English localization foundation
This commit is contained in:
Vendored
+2
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user