Skip to content

Commit

Permalink
fix: locales path
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtiti committed Jul 17, 2024
1 parent 3dd2dfa commit d745108
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion next-i18next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ module.exports = {
i18n: {
locales: ['en', 'es'],
defaultLocale: 'en',
localePath: path.resolve('./public/locales')
},
localePath: typeof window === 'undefined' ? path.resolve('./public/locales') : '/locales',
};

0 comments on commit d745108

Please sign in to comment.