Specify keySeparator
This commit is contained in:
1
src/@types/i18next.d.ts
vendored
1
src/@types/i18next.d.ts
vendored
@@ -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;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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: "|",
|
||||||
|
|||||||
Reference in New Issue
Block a user