Create next-i18next.config.js
Browse files
frontend/next-i18next.config.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
module.exports = {
|
| 2 |
+
i18n: {
|
| 3 |
+
defaultLocale: 'en',
|
| 4 |
+
locales: ['en', 'ja', 'zh'],
|
| 5 |
+
},
|
| 6 |
+
localePath: typeof window === 'undefined' ? require('path').resolve('./public/locales') : '/locales',
|
| 7 |
+
};
|