/** * i18n / locale system for @bquery/ui * * Usage: * import { setLocale, t } from '@bquery/ui/i18n'; * setLocale({ dialog: { close: 'Schließen' } }); * t('dialog.close'); // → 'Schließen' */ import { en } from './en.js'; export { en }; export type { EnLocale } from './en.js'; /** Deep partial helper for locale overrides */ type DeepPartial = { [K in keyof T]?: T[K] extends object ? DeepPartial : T[K]; }; export type BqLocale = typeof en; export type BqLocaleOverride = DeepPartial; /** * Override locale strings. Merges shallowly at the top level, deeply at the second level. */ export declare function setLocale(overrides: BqLocaleOverride): void; /** Restores the active locale to the default English locale. */ export declare function resetLocale(): void; /** Returns the currently active locale object. */ export declare function getLocale(): BqLocale; /** * Translate a dot-notation key, with optional template variable substitution. * * @example * t('dialog.close') // 'Close dialog' * t('input.characterCount', { count: 5, max: 100 }) // '5 of 100 characters' */ export declare function t(key: string, vars?: Record): string; //# sourceMappingURL=index.d.ts.map