/** * Locale String Manager * * Manages locale-specific strings for CLI messages and prompts. * * @module core/i18n */ import { SupportedLanguage, LocaleStrings } from './types.js'; /** * Locale Manager for CLI strings */ export declare class LocaleManager { private currentLanguage; private localeStrings; constructor(language?: SupportedLanguage); /** * Load locale strings from JSON file */ private loadLocaleStrings; /** * Get current language */ getCurrentLanguage(): SupportedLanguage; /** * Set current language */ setLanguage(language: SupportedLanguage): void; /** * Get CLI string */ getCLI(key: keyof LocaleStrings['cli']): string; /** * Get increment string */ getIncrement(key: keyof LocaleStrings['increment']): string; /** * Get validation string */ getValidation(key: keyof LocaleStrings['validation']): string; /** * Get gate string */ getGate(key: keyof LocaleStrings['gates']): string; /** * Get translated string with interpolation * Supports nested keys like 'init.welcome' or 'init.errors.cancelled' * * @param category - For compatibility, but ignored (JSON has flat structure) * @param key - Nested key path (e.g., 'init.welcome') * @param params - Optional parameters for interpolation */ t(category: keyof LocaleStrings, key: string, params?: Record): string; } /** * Get singleton instance */ export declare function getLocaleManager(language?: SupportedLanguage): LocaleManager; /** * Reset singleton (for testing) */ export declare function resetLocaleManager(): void; //# sourceMappingURL=locale-manager.d.ts.map