add i18n
This commit is contained in:
@ -16,21 +16,20 @@ export default defineNuxtConfig({
|
||||
// },
|
||||
// },
|
||||
|
||||
modules: ["@pinia/nuxt", "@nuxt/eslint", "@nuxt/ui"],
|
||||
modules: ["@pinia/nuxt", "@nuxt/eslint", "@nuxt/ui", "@nuxtjs/i18n"],
|
||||
|
||||
// @nuxtjs/i18n"
|
||||
// i18n: {
|
||||
// locales: [
|
||||
// { code: "pl", name: "Polski", icon: "emojione:flag-for-poland" },
|
||||
// { code: "en", name: "English", icon: "emojione:flag-for-united-kingdom" },
|
||||
// ],
|
||||
// lazy: true,
|
||||
// defaultLocale: "en",
|
||||
// strategy: "prefix",
|
||||
// bundle: {
|
||||
// optimizeTranslationDirective: false,
|
||||
// },
|
||||
// },
|
||||
i18n: {
|
||||
locales: [
|
||||
{ code: "pl", file: "pl.json", name: "Polski", icon: "emojione:flag-for-poland" },
|
||||
{ code: "en", file: "en.json", name: "English", icon: "emojione:flag-for-united-kingdom" },
|
||||
],
|
||||
lazy: true,
|
||||
defaultLocale: "en",
|
||||
strategy: "prefix",
|
||||
bundle: {
|
||||
optimizeTranslationDirective: false,
|
||||
},
|
||||
},
|
||||
css: ["@/assets/fonts.css", "@/assets/main.css"],
|
||||
vite: {
|
||||
plugins: [tailwindcss()],
|
||||
|
Reference in New Issue
Block a user