/** * @license * Copyright 2025 Qwen team * SPDX-License-Identifier: Apache-2.0 */ import { getLanguageNameFromLocale, type SupportedLanguage } from './languages.js'; export type { SupportedLanguage }; export { getLanguageNameFromLocale }; /** * Get the path to the user's custom locales directory. * Users can place custom language packs (e.g., es.js, fr.js) in this directory. * @returns The path to ~/.aether/locales */ export declare function getUserLocalesDirectory(): string; export declare function detectSystemLanguage(): SupportedLanguage; export declare function setLanguage(lang: SupportedLanguage | 'auto'): void; export declare function setLanguageAsync(lang: SupportedLanguage | 'auto'): Promise; export declare function getCurrentLanguage(): SupportedLanguage; export declare function t(key: string, params?: Record): string; /** * Get a translation that is an array of strings. * @param key The translation key * @returns The array of strings, or an empty array if not found or not an array */ export declare function ta(key: string): string[]; export declare function initializeI18n(lang?: SupportedLanguage | 'auto'): Promise;