mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-01 12:33:31 +00:00
17 lines
400 B
TypeScript
17 lines
400 B
TypeScript
import path from "node:path";
|
|
|
|
import i18n from "i18n";
|
|
|
|
import * as ConfigUtil from "./config-util.ts";
|
|
import {publicPath} from "./paths.ts";
|
|
|
|
i18n.configure({
|
|
directory: path.join(publicPath, "translations/"),
|
|
updateFiles: false,
|
|
});
|
|
|
|
/* Fetches the current appLocale from settings.json */
|
|
i18n.setLocale(ConfigUtil.getConfigItem("appLanguage", "en") ?? "en");
|
|
|
|
export {__, __mf} from "i18n";
|