mirror of
https://github.com/NotXia/notxia.github.io.git
synced 2025-12-15 19:22:21 +01:00
Changed i18n strategy
This commit is contained in:
@ -3,6 +3,7 @@ export default defineNuxtConfig({
|
|||||||
modules: [
|
modules: [
|
||||||
"@nuxtjs/i18n"
|
"@nuxtjs/i18n"
|
||||||
],
|
],
|
||||||
|
|
||||||
i18n: {
|
i18n: {
|
||||||
locales: [
|
locales: [
|
||||||
{
|
{
|
||||||
@ -21,7 +22,7 @@ export default defineNuxtConfig({
|
|||||||
lazy: true,
|
lazy: true,
|
||||||
langDir: "locales",
|
langDir: "locales",
|
||||||
defaultLocale: "en",
|
defaultLocale: "en",
|
||||||
strategy: "prefix",
|
strategy: "prefix_and_default",
|
||||||
detectBrowserLanguage: {
|
detectBrowserLanguage: {
|
||||||
useCookie: true,
|
useCookie: true,
|
||||||
cookieKey: "locale",
|
cookieKey: "locale",
|
||||||
|
|||||||
12196
package-lock.json
generated
12196
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user