mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-02 07:58:57 +02:00
✨ Translations for Email Notifications (#1278)
Co-authored-by: Niko Heller <hellerniko@gmail.com>
This commit is contained in:
parent
aa52a0f26f
commit
f4218c3115
51 changed files with 1071 additions and 970 deletions
29
packages/emails/i18next-scanner.config.js
Normal file
29
packages/emails/i18next-scanner.config.js
Normal 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(),
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue