mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-05 22:43:17 +00:00
translation-util: Expose the full functionality of __.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -11,9 +11,6 @@ i18n.configure({
|
|||||||
});
|
});
|
||||||
|
|
||||||
/* Fetches the current appLocale from settings.json */
|
/* Fetches the current appLocale from settings.json */
|
||||||
const appLocale = ConfigUtil.getConfigItem("appLanguage", "en");
|
i18n.setLocale(ConfigUtil.getConfigItem("appLanguage", "en") ?? "en");
|
||||||
|
|
||||||
/* If no locale present in the json, en is set default */
|
export {__} from "i18n";
|
||||||
export function __(phrase: string): string {
|
|
||||||
return i18n.__({phrase, locale: appLocale ?? "en"});
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user