Skip to content

Commit 5df5a95

Browse files
committed
Prevent double-fetch of translations
1 parent a5b2611 commit 5df5a95

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

frontend/src/@types/i18next.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
// Please see LICENSE in the repository root for full details.
66

77
import "i18next";
8-
import type frontend from "../../locales/en.json";
8+
import type translation from "../../locales/en.json";
99

1010
declare module "i18next" {
1111
interface CustomTypeOptions {
1212
keySeparator: ".";
1313
pluralSeparator: ":";
14-
defaultNS: "frontend";
14+
defaultNS: "translation";
1515
resources: {
16-
frontend: typeof frontend;
16+
translation: typeof translation;
1717
};
1818
}
1919
}

frontend/src/i18n.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ i18n
8989
fallbackLng: "en",
9090
keySeparator: ".",
9191
pluralSeparator: ":",
92-
defaultNS: "frontend",
92+
defaultNS: "translation",
9393
supportedLngs,
9494
interpolation: {
9595
escapeValue: false, // React has built-in XSS protections

0 commit comments

Comments
 (0)