Forked from vadimfedenko/analyze-images
dist / ui / uiLanguage.d.ts
export type UiLanguage = "en" | "ja" | "zh-CN" | "ko" | "es";
/** Match a locale, not a conversation's language. Traditional Chinese is not an edition. */
export declare function languageFromLocale(value: string): UiLanguage;
export declare function detectOsLanguage(locale?: () => string, env?: NodeJS.ProcessEnv): UiLanguage;
export declare function uiLanguageConfigPath(home?: string): string;
/** Read at plugin startup only. Failure to write/read preferences must not break tools. */
export declare function resolveUiLanguage(path?: string, auto?: () => UiLanguage, warn?: (message: string) => void): UiLanguage;
export declare function translateUi(source: string, language: UiLanguage): string;
export declare function ui(source: string): string;
//# sourceMappingURL=uiLanguage.d.ts.map