disable i18n
This commit is contained in:
+26
-26
@@ -66,30 +66,30 @@ export default defineNuxtConfig({
|
||||
]
|
||||
},
|
||||
},
|
||||
i18n: {
|
||||
baseUrl: process.env.NUXT_PUBLIC_BASE_URL,
|
||||
strategy: 'prefix_and_default',
|
||||
defaultLocale: 'th',
|
||||
locales: [
|
||||
{
|
||||
code: 'th',
|
||||
language: 'th-TH',
|
||||
name: 'ภาษาไทย',
|
||||
file: 'th.json',
|
||||
isCatchallLocale: true,
|
||||
},
|
||||
{
|
||||
code: 'en',
|
||||
language: 'en-US',
|
||||
name: 'English',
|
||||
file: 'en.json',
|
||||
}
|
||||
],
|
||||
detectBrowserLanguage: {
|
||||
useCookie: true,
|
||||
cookieKey: 'i18n_language',
|
||||
fallbackLocale: 'th',
|
||||
},
|
||||
vueI18n: 'i18n.config.ts',
|
||||
}
|
||||
// i18n: {
|
||||
// baseUrl: process.env.NUXT_PUBLIC_BASE_URL,
|
||||
// strategy: 'prefix',
|
||||
// defaultLocale: 'th',
|
||||
// locales: [
|
||||
// {
|
||||
// code: 'th',
|
||||
// language: 'th-TH',
|
||||
// name: 'ภาษาไทย',
|
||||
// file: 'th.json',
|
||||
// isCatchallLocale: true,
|
||||
// },
|
||||
// {
|
||||
// code: 'en',
|
||||
// language: 'en-US',
|
||||
// name: 'English',
|
||||
// file: 'en.json',
|
||||
// }
|
||||
// ],
|
||||
// detectBrowserLanguage: {
|
||||
// useCookie: true,
|
||||
// cookieKey: 'i18n_language',
|
||||
// fallbackLocale: 'th',
|
||||
// },
|
||||
// vueI18n: 'i18n.config.ts',
|
||||
// }
|
||||
})
|
||||
Reference in New Issue
Block a user