Files
zulip-desktop/i18next-scanner.config.js
2024-12-02 15:52:28 -08:00

22 lines
496 B
JavaScript

"use strict";
module.exports = {
input: ["app/**/*.ts"],
options: {
debug: true,
removeUnusedKeys: true,
sort: true,
func: {list: ["t.__"], extensions: [".ts"]},
defaultLng: "en",
defaultValue: (lng, ns, key) => (lng === "en" ? key : ""),
resource: {
loadPath: "public/translations/{{lng}}.json",
savePath: "public/translations/{{lng}}.json",
jsonIndent: "\t",
},
keySeparator: false,
nsSeparator: false,
context: false,
},
};