Skip to content

Commit

Permalink
fix(locales): update individual json files path
Browse files Browse the repository at this point in the history
  • Loading branch information
rhahao committed May 4, 2024
1 parent f1f177d commit 1d82515
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/i18n-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const resources = {};
for await (const language of LANGUAGE_LIST) {
resources[language.code] = {};
resources[language.code].translation = JSON.parse(
await fs.promises.readFile(new URL(`../locales/${language.locale}/main.json`, import.meta.url))
await fs.promises.readFile(new URL(`../../locales/${language.locale}/main.json`, import.meta.url))
);
}

Expand Down

0 comments on commit 1d82515

Please sign in to comment.