mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-10-23 03:31:56 +00:00
19 lines
529 B
TypeScript
19 lines
529 B
TypeScript
import type {UserConfig} from "i18next-parser";
|
|
|
|
const config: UserConfig = {
|
|
createOldCatalogs: false,
|
|
defaultValue: (locale, namespace, key, value) =>
|
|
locale === "en" ? key! : value!,
|
|
indentation: "\t" as unknown as number,
|
|
input: ["app/**/*.ts"],
|
|
keySeparator: false,
|
|
lexers: {
|
|
ts: [{lexer: "JavascriptLexer", functions: ["t.__"]}],
|
|
},
|
|
locales: ["en"],
|
|
namespaceSeparator: false,
|
|
output: "public/translations/$LOCALE.json",
|
|
sort: (a, b) => (a < b ? -1 : a > b ? 1 : 0),
|
|
};
|
|
export default config;
|