Skip to content

Commit

Permalink
fix: prefix i18next loading path with base URL
Browse files Browse the repository at this point in the history
  • Loading branch information
oxcabe committed Mar 14, 2024
1 parent a1b80f5 commit 1787d43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ i18n
.init({
fallbackLng: 'en',
backend: {
loadPath: '/locales/{{lng}}/{{ns}}.json'
loadPath: `${import.meta.env.BASE_URL}/locales/{{lng}}/{{ns}}.json`
},
react: {
useSuspense: true
Expand Down

0 comments on commit 1787d43

Please sign in to comment.