diff --git a/i18n/i18n.config.ts b/i18n/i18n.config.ts index c10a099..48a3fd6 100644 --- a/i18n/i18n.config.ts +++ b/i18n/i18n.config.ts @@ -1,4 +1,9 @@ import enUS from "./lang/en-US.json" +import ruRU from "./lang/ru.json" +import deDE from "./lang/de.json" +import esES from "./lang/es-ES.json" +import noNO from "./lang/no.json" +import ptBR from "./lang/pt-BR.json" export default defineI18nConfig(() => ({ legacy: false, @@ -6,6 +11,10 @@ export default defineI18nConfig(() => ({ locale: "en", messages: { en: enUS, + ru: ruRU, + de: deDE, + "es-ES": esES, + "no-NO": noNO, + "pt-BR": ptBR, }, - strategy: "no_prefix", })) diff --git a/nuxt.config.ts b/nuxt.config.ts index e2c9760..f0252ce 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -21,17 +21,39 @@ export default defineNuxtConfig({ }, modules: ["@nuxtjs/tailwindcss", "nuxt-lucide-icons", "@nuxtjs/i18n"], i18n: { + strategy: "no_prefix", defaultLocale: "en", locales: [ { code: "en", name: "English (US)", }, + { + code: "ru", + name: "русский (Russia)", + }, + { + code: "de", + name: "Deutsch (Germany)", + }, + { + code: "es-ES", + name: "Español (Spain)", + }, + { + code: "no-NO", + name: "norsk (Norway)", + }, + { + code: "pt-BR", + name: "Português (Brazil)", + }, ], - detectBrowserLanguage: { + /*detectBrowserLanguage: { useCookie: true, cookieKey: "NE_i18nCookie", - }, + }, RE-ENABLE THIS WHEN WE ACTUALLY DO RELEASE FULL i18n */ + detectBrowserLanguage: false, vueI18n: "./i18n/i18n.config", }, }) diff --git a/pages/flags.vue b/pages/flags.vue new file mode 100644 index 0000000..3877ea0 --- /dev/null +++ b/pages/flags.vue @@ -0,0 +1,40 @@ + + +