Skip to content

Commit 29c6abd

Browse files
authored
Merge pull request #238 from southworks/staging
[fix] fails to display localized strings for any language
2 parents 5bbff5a + f02207d commit 29c6abd

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

astro-i18next.config.mjs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
import { DEFAULT_LOCALE, LOCALES } from "./src/config/i18nConfig.js";
2+
import en from "./public/locales/en/translation.json" assert { type: 'json' };
3+
import ja from "./public/locales/ja/translation.json" assert { type: 'json' };
4+
import ko from "./public/locales/ko/translation.json" assert { type: 'json' };
5+
import zh from "./public/locales/zh/translation.json" assert { type: 'json' };
26

37
export default {
48
defaultLocale: DEFAULT_LOCALE,
@@ -8,5 +12,13 @@ export default {
812
showDefaultLocale: true,
913
i18nextServer: {
1014
debug: true,
11-
}
15+
resources: {
16+
en: { translation: { ...en } },
17+
ja: { translation: { ...ja } },
18+
ko: { translation: { ...ko } },
19+
zh: { translation: { ...zh } },
20+
},
21+
ns: ['translation'],
22+
defaultNS: 'translation'
23+
},
1224
};

0 commit comments

Comments
 (0)