/** * i18n — lightweight pass-through translation module. * * English keys are used as-is (the key IS the English text). * Additional languages can be registered at runtime via `registerLocale()`. */ export type TranslateFn = (key: string) => string; export declare function registerLocale(code: string, translations: Record): void; /** * Create a translate function for a given locale. * For "en" (or when no locale pack is registered), the key itself is the English text. */ export declare function createT(locale?: string): TranslateFn; /** * Detect the best locale from the browser environment. */ export declare function detectLanguage(): string; export declare const SUPPORTED_LOCALES: string[]; export declare const LOCALE_LABELS: Record; export declare const TRANSLATION_KEYS: string[];