Skip to content

Commit 7f2808d

Browse files
did some stuff
1 parent 920e6cd commit 7f2808d

File tree

178 files changed

+630
-1184
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

178 files changed

+630
-1184
lines changed

next-i18next.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = {
2+
i18n: {
3+
defaultLocale: 'en',
4+
locales: ['en', 'de', 'fr', 'ja', 'cn', 'ko']
5+
},
6+
react: {
7+
useSuspense: false
8+
}
9+
}

next.config.js

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
const webpack = require('webpack')
2-
const { nextI18NextRewrites } = require('next-i18next/rewrites')
3-
4-
const localeSubpaths = {
5-
de: 'de',
6-
fr: 'fr',
7-
ja: 'ja',
8-
cn: 'cn',
9-
ko: 'ko'
10-
}
2+
const { i18n } = require('./next-i18next.config')
113

124
module.exports = {
135
webpack (config, { isServer }) {
@@ -51,9 +43,6 @@ module.exports = {
5143

5244
return config
5345
},
54-
rewrites: async () => nextI18NextRewrites(localeSubpaths),
55-
publicRuntimeConfig: {
56-
localeSubpaths
57-
},
46+
i18n,
5847
reactStrictMode: true
5948
}

0 commit comments

Comments
 (0)