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: [
|
modules: [
|
||||||
"@nuxtjs/i18n"
|
"@nuxtjs/i18n"
|
||||||
],
|
],
|
||||||
|
|
||||||
i18n: {
|
i18n: {
|
||||||
locales: [
|
locales: [
|
||||||
{
|
{
|
||||||
code: "en",
|
code: "en",
|
||||||
iso: "en-US",
|
iso: "en-US",
|
||||||
name: "English",
|
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",
|
code: "it",
|
||||||
iso: "it-IT",
|
iso: "it-IT",
|
||||||
name: "Italiano",
|
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,
|
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",
|
||||||
@ -38,7 +39,7 @@ export default defineNuxtConfig({
|
|||||||
],
|
],
|
||||||
|
|
||||||
css: ["~/assets/css/main.css"],
|
css: ["~/assets/css/main.css"],
|
||||||
|
|
||||||
postcss: {
|
postcss: {
|
||||||
plugins: {
|
plugins: {
|
||||||
tailwindcss: {},
|
tailwindcss: {},
|
||||||
@ -51,4 +52,4 @@ export default defineNuxtConfig({
|
|||||||
failOnError: false,
|
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