Skip to content

Commit 8253cc5

Browse files
fix locale path error in production
1 parent 76de7c3 commit 8253cc5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/modules/i18n.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default function init() {
88
if (!i18nPromise) {
99
i18nPromise = i18next.use(HttpBackend).init({
1010
fallbackLng: false,
11-
backend: { loadPath: "/locales/{{lng}}/translations.json" },
11+
backend: { loadPath: "./locales/{{lng}}/translations.json" },
1212
});
1313
}
1414
return i18nPromise;

0 commit comments

Comments
 (0)