We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0f393c commit 740a501Copy full SHA for 740a501
src/i18n.ts
@@ -65,7 +65,8 @@ i18n
65
backend: {
66
// Path to load translation files
67
// {{lng}} = language code, {{ns}} = namespace
68
- loadPath: '/locales/{{lng}}/{{ns}}.json',
+ // Use BASE_URL to support GitHub Pages deployment with subpath
69
+ loadPath: `${import.meta.env.BASE_URL}locales/{{lng}}/{{ns}}.json`,
70
},
71
72
// Language detection configuration
0 commit comments