translation-util: Expose the full functionality of __.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-05-05 13:54:17 -07:00
parent 8b9ebeee25
commit 296de41779

View File

@@ -11,9 +11,6 @@ i18n.configure({
});
/* 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 function __(phrase: string): string {
return i18n.__({phrase, locale: appLocale ?? "en"});
}
export {__} from "i18n";