export default class Translator { private static translations; private static locale; /** * Sets the locale to use for translations * * @param locale The locale to use */ static use(locale: string): void; /** * Extends the translations for a locale with the provided translations * * @param locale The locale to add the translations to * @param translations The translations to add */ static addTranslations(locale: string, translations: { [key: string]: string; }): void; /** * Overwrites the translations for a locale * * @param locale The locale to set the translations for * @param translations The translations to set */ static setTranslations(locale: string, translations: { [key: string]: string; }): void; /** * Returns the translations for a locale * If the locale is not found, an empty object is returned * * @param locale The locale to get the translations for * @returns { [key: string]: string } */ static getTranslations(locale: string): { [key: string]: string; }; /** * Translates a key to the current locale * If the translation is not found, the key is returned * * @param key The key to translate * @returns string */ static translate(key: string, namedArgs?: { [key: string]: any; }): string; /** * Returns the available locales */ static locales(): string[]; }