Specify keySeparator

This commit is contained in:
Michael Telatynski
2023-11-20 13:47:36 +00:00
parent 1f461643a6
commit 70dbf95429
2 changed files with 2 additions and 1 deletions

View File

@@ -21,6 +21,7 @@ import app from "../../public/locales/en-GB/app.json";
declare module "i18next" { declare module "i18next" {
interface CustomTypeOptions { interface CustomTypeOptions {
defaultNS: "app"; defaultNS: "app";
keySeparator: ".";
resources: { resources: {
app: typeof app; app: typeof app;
}; };

View File

@@ -72,7 +72,7 @@ export class Initializer {
.init({ .init({
fallbackLng: "en-GB", fallbackLng: "en-GB",
defaultNS: "app", defaultNS: "app",
keySeparator: false, keySeparator: ".",
nsSeparator: false, nsSeparator: false,
pluralSeparator: "_", pluralSeparator: "_",
contextSeparator: "|", contextSeparator: "|",