Skip to content

Commit

Permalink
fix: revert playground configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
BobbieGoede committed Jun 21, 2023
1 parent bf6468f commit b51ccda
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 25 deletions.
21 changes: 11 additions & 10 deletions playground/layers/i18n-layer/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ export default defineNuxtConfig({
modules: ['@nuxtjs/i18n'],
i18n: {
langDir: 'locales',
lazy: false,
lazy: true,
baseUrl: 'http://localhost:3000',
customRoutes: 'config',
differentDomains: true,
pages: {
history: {
en: '/history',
Expand All @@ -19,23 +18,25 @@ export default defineNuxtConfig({
locales: [
{
code: 'en',
iso: 'en-US',
file: 'en.json',
domain: 'layer-en.example.com',
// domain: 'localhost',
name: 'English'
},
{
code: 'fr',
iso: 'fr-FR',
file: 'fr.json',
domain: 'layer-fr.example.com',
name: 'Francais'
},
// {
// code: 'nl',
// iso: 'nl-NL',
// file: 'nl.json',
// // domain: 'localhost',
// name: 'Nederlands'
// }
{
code: 'nl',
iso: 'nl-NL',
file: 'nl.json',
// domain: 'localhost',
name: 'Nederlands'
}
// {
// code: 'en-GB',
// iso: 'en-GB',
Expand Down
30 changes: 15 additions & 15 deletions playground/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,29 +113,29 @@ export default defineNuxtConfig({
escapeHtml: true
},
langDir: 'locales',
lazy: false,
lazy: true,
baseUrl: 'http://localhost:3000',
locales: [
{
code: 'en',
iso: 'en-US',
file: 'en.json',
domain: 'project-en.example.com',
// domain: 'localhost',
name: 'English'
},
// {
// code: 'en-GB',
// iso: 'en-GB',
// files: ['en.json', 'en-GB.js', 'en-KK.js'],
// name: 'English (UK)'
// },
// {
// code: 'ja',
// iso: 'ja-JP',
// file: 'ja.ts',
// domain: 'mydomain.com',
// name: 'Japanses'
// },
{
code: 'en-GB',
iso: 'en-GB',
files: ['en.json', 'en-GB.js', 'en-KK.js'],
name: 'English (UK)'
},
{
code: 'ja',
iso: 'ja-JP',
file: 'ja.ts',
domain: 'mydomain.com',
name: 'Japanses'
},
{
code: 'fr',
iso: 'fr-FR',
Expand Down

0 comments on commit b51ccda

Please sign in to comment.