Translations for Email Notifications (#1278)

Co-authored-by: Niko Heller <hellerniko@gmail.com>
This commit is contained in:
Luke Vella 2024-09-02 19:30:58 +01:00 committed by GitHub
parent aa52a0f26f
commit f4218c3115
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
51 changed files with 1071 additions and 970 deletions

View file

@ -0,0 +1,29 @@
const typescriptTransform = require("i18next-scanner-typescript");
module.exports = {
input: ["src/templates/**/*.{ts,tsx}", "src/components/**/*.{ts,tsx}"],
options: {
nsSeparator: false,
defaultNs: "emails",
defaultValue: "__STRING_NOT_TRANSLATED__",
lngs: ["en"],
ns: ["emails"],
plural: false,
removeUnusedKeys: true,
func: {
list: ["t", "ctx.t"],
},
trans: {
component: "Trans",
i18nKey: "i18nKey",
defaultsKey: "defaults",
},
resource: {
loadPath: "locales/{{lng}}/{{ns}}.json",
savePath: "locales/{{lng}}/{{ns}}.json",
},
},
format: "json",
fallbackLng: "en",
transform: typescriptTransform(),
};