disable i18n

This commit is contained in:
2025-09-22 17:35:26 +07:00
parent 6f81162b31
commit 116d448621
+26 -26
View File
@@ -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',
// }
})