mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-24 03:37:23 +02:00
⬆️ v3.0.0 (#704)
This commit is contained in:
parent
735056f25f
commit
c22b3abc4d
385 changed files with 19912 additions and 5250 deletions
29
apps/landing/i18next-scanner.config.js
Normal file
29
apps/landing/i18next-scanner.config.js
Normal file
|
@ -0,0 +1,29 @@
|
|||
const typescriptTransform = require("i18next-scanner-typescript");
|
||||
|
||||
module.exports = {
|
||||
input: ["src/**/*.{ts,tsx}"],
|
||||
options: {
|
||||
keySeparator: ".",
|
||||
nsSeparator: false,
|
||||
defaultNs: "app",
|
||||
defaultValue: "__STRING_NOT_TRANSLATED__",
|
||||
lngs: ["en"],
|
||||
ns: ["app"],
|
||||
plural: false,
|
||||
removeUnusedKeys: true,
|
||||
func: {
|
||||
list: ["t"],
|
||||
extensions: [".js", ".jsx"],
|
||||
},
|
||||
trans: {
|
||||
extensions: [".js", ".jsx"],
|
||||
},
|
||||
resource: {
|
||||
loadPath: "public/locales/{{lng}}/{{ns}}.json",
|
||||
savePath: "public/locales/{{lng}}/{{ns}}.json",
|
||||
},
|
||||
},
|
||||
format: "json",
|
||||
fallbackLng: "en",
|
||||
transform: typescriptTransform(),
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue