mirror of
https://github.com/NotXia/notxia.github.io.git
synced 2025-12-14 19:01:51 +01:00
Changed i18n strategy
This commit is contained in:
@ -3,25 +3,26 @@ export default defineNuxtConfig({
|
||||
modules: [
|
||||
"@nuxtjs/i18n"
|
||||
],
|
||||
|
||||
i18n: {
|
||||
locales: [
|
||||
{
|
||||
code: "en",
|
||||
iso: "en-US",
|
||||
name: "English",
|
||||
files: [ "en-US/general.ts", "en-US/projects.ts", "en-US/resume.ts" ]
|
||||
files: ["en-US/general.ts", "en-US/projects.ts", "en-US/resume.ts"]
|
||||
},
|
||||
{
|
||||
code: "it",
|
||||
iso: "it-IT",
|
||||
name: "Italiano",
|
||||
files: [ "it-IT/general.ts", "it-IT/projects.ts", "it-IT/resume.ts" ]
|
||||
files: ["it-IT/general.ts", "it-IT/projects.ts", "it-IT/resume.ts"]
|
||||
},
|
||||
],
|
||||
lazy: true,
|
||||
langDir: "locales",
|
||||
defaultLocale: "en",
|
||||
strategy: "prefix",
|
||||
strategy: "prefix_and_default",
|
||||
detectBrowserLanguage: {
|
||||
useCookie: true,
|
||||
cookieKey: "locale",
|
||||
@ -38,7 +39,7 @@ export default defineNuxtConfig({
|
||||
],
|
||||
|
||||
css: ["~/assets/css/main.css"],
|
||||
|
||||
|
||||
postcss: {
|
||||
plugins: {
|
||||
tailwindcss: {},
|
||||
@ -51,4 +52,4 @@ export default defineNuxtConfig({
|
||||
failOnError: false,
|
||||
},
|
||||
},
|
||||
})
|
||||
})
|
||||
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