Skip to content

Commit b51ccda

Browse files
committed
fix: revert playground configuration
1 parent bf6468f commit b51ccda

File tree

2 files changed

+26
-25
lines changed

2 files changed

+26
-25
lines changed

playground/layers/i18n-layer/nuxt.config.ts

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ export default defineNuxtConfig({
55
modules: ['@nuxtjs/i18n'],
66
i18n: {
77
langDir: 'locales',
8-
lazy: false,
8+
lazy: true,
99
baseUrl: 'http://localhost:3000',
1010
customRoutes: 'config',
11-
differentDomains: true,
1211
pages: {
1312
history: {
1413
en: '/history',
@@ -19,23 +18,25 @@ export default defineNuxtConfig({
1918
locales: [
2019
{
2120
code: 'en',
21+
iso: 'en-US',
2222
file: 'en.json',
23-
domain: 'layer-en.example.com',
23+
// domain: 'localhost',
2424
name: 'English'
2525
},
2626
{
2727
code: 'fr',
28+
iso: 'fr-FR',
2829
file: 'fr.json',
2930
domain: 'layer-fr.example.com',
3031
name: 'Francais'
3132
},
32-
// {
33-
// code: 'nl',
34-
// iso: 'nl-NL',
35-
// file: 'nl.json',
36-
// // domain: 'localhost',
37-
// name: 'Nederlands'
38-
// }
33+
{
34+
code: 'nl',
35+
iso: 'nl-NL',
36+
file: 'nl.json',
37+
// domain: 'localhost',
38+
name: 'Nederlands'
39+
}
3940
// {
4041
// code: 'en-GB',
4142
// iso: 'en-GB',

playground/nuxt.config.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -113,29 +113,29 @@ export default defineNuxtConfig({
113113
escapeHtml: true
114114
},
115115
langDir: 'locales',
116-
lazy: false,
116+
lazy: true,
117117
baseUrl: 'http://localhost:3000',
118118
locales: [
119119
{
120120
code: 'en',
121121
iso: 'en-US',
122122
file: 'en.json',
123-
domain: 'project-en.example.com',
123+
// domain: 'localhost',
124124
name: 'English'
125125
},
126-
// {
127-
// code: 'en-GB',
128-
// iso: 'en-GB',
129-
// files: ['en.json', 'en-GB.js', 'en-KK.js'],
130-
// name: 'English (UK)'
131-
// },
132-
// {
133-
// code: 'ja',
134-
// iso: 'ja-JP',
135-
// file: 'ja.ts',
136-
// domain: 'mydomain.com',
137-
// name: 'Japanses'
138-
// },
126+
{
127+
code: 'en-GB',
128+
iso: 'en-GB',
129+
files: ['en.json', 'en-GB.js', 'en-KK.js'],
130+
name: 'English (UK)'
131+
},
132+
{
133+
code: 'ja',
134+
iso: 'ja-JP',
135+
file: 'ja.ts',
136+
domain: 'mydomain.com',
137+
name: 'Japanses'
138+
},
139139
{
140140
code: 'fr',
141141
iso: 'fr-FR',

0 commit comments

Comments
 (0)