lotrekagency / mapo

🥭 Our Nuxt module to simplify the making of administration panels, and authenticated web applications.
MIT License
10 stars 3 forks source link

Feature add i18n using nuxt-i18n #1

Closed Remeic closed 2 years ago

Remeic commented 3 years ago

Use nuxt-i18n module to handle Internationalization Add some default config

lazy: true,
langDir: 'lang/',
defaultLocale: 'en',
strategy: 'no_prefix',
detectBrowserLanguage: {
    useCookie: true,
    cookieKey: 'i18n_redirected',
    onlyOnRoot: true,
}

With lazy we can split translation between files, thus user load only used language. Language is stored inside cookie and prefixed are disable

Add some example of translations Add a simple switcher of language inside settings page

Remeic commented 3 years ago

There is one issue related to routes, add settings.vue page automatically add the route, how we can avoid this behaviour?

bnznamco commented 2 years ago

Closing due to heavy code changes and rework done since this pr.