woaru
Version:
Universal Project Setup Autopilot - Analyze and automatically configure development tools for ANY programming language
38 lines • 1.34 kB
TypeScript
import { type SupportedLanguage } from '../generated/translations';
export type { SupportedLanguage };
export declare const SUPPORTED_LANGUAGES: SupportedLanguage[];
export declare const LANGUAGE_NAMES: Record<SupportedLanguage, string>;
/**
* Initialize i18next synchronously with embedded translations
* This function is now synchronous and uses pre-bundled translations
*/
export declare function initializeI18n(): void;
/**
* Get the user's preferred language from configuration (async version for compatibility)
*/
export declare function getUserLanguage(): Promise<SupportedLanguage>;
/**
* Set the user's preferred language and save to configuration
*/
export declare function setUserLanguage(language: SupportedLanguage): Promise<void>;
/**
* Check if this is the first time WOARU is being run
*/
export declare function isFirstRun(): Promise<boolean>;
/**
* Get translation function (shorthand)
*/
export declare function t(key: string, options?: Record<string, unknown>): string;
/**
* Get current language
*/
export declare function getCurrentLanguage(): SupportedLanguage;
/**
* Check if i18next is initialized
*/
export declare function isInitialized(): boolean;
/**
* Get language instruction for AI prompts
*/
export declare function getAILanguageInstruction(): string;
//# sourceMappingURL=i18n.d.ts.map