diff --git a/.eslintignore b/.eslintignore index 381cb01..de4d1f0 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,3 +1,2 @@ dist node_modules -templates diff --git a/.npmrc b/.npmrc index c483022..8fb0b90 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1,2 @@ -shamefully-hoist=true \ No newline at end of file +shamefully-hoist=true +shell-emulator=true diff --git a/README.md b/README.md index 03d2596..0b50b1c 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ Zero-config Nuxt module for Vuetify - 🛠️ **Versatile**: custom Vuetify [directives](https://vuetifyjs.com/en/getting-started/installation/#manual-steps) and [labs components](https://vuetifyjs.com/en/labs/introduction/) registration - ✨ **Configurable styles**: configure your variables using [Vuetify SASS Variables](https://vuetifyjs.com/en/features/sass-variables/) - 💥 **SSR**: automatic SSR detection and configuration +- 🌍 **I18n ready**: install [@nuxtjs/i18n](https://v8.i18n.nuxtjs.org/) Nuxt module, and you're ready to use Vuetify [internationalization](https://vuetifyjs.com/en/features/internationalization/) features - 🦾 **Type Strong**: written in [TypeScript](https://www.typescriptlang.org/) ## 📦 Install @@ -73,6 +74,18 @@ export default defineNuxtConfig({ }) ``` +## 🌍 I18n support + +> Requires latest [@nuxtjs/i18n](https://v8.i18n.nuxtjs.org/) Nuxt module: `8.0.0.beta.12`. + +There is a [bug](https://github.com/nuxt-modules/i18n/pull/2193) in the current version that prevents `@nuxtjs/i18n` module to work properly when using `lazy` i18n files. + +If you're using `lazy` i18n files per locale, apply [this patch](./patches/@nuxtjs__i18n@8.0.0-beta.12.patch) to your project: check how to apply it when using `pnpm` in the root `package.json` file in this repo: [./package.json#L25-L26](./package.json#L97-L101). + +You can check the playground folder, you can run it using single or multiple json files per locale: +- for single file per locale: run from root folder `pnpm install && nr dev:prepare && nr dev` +- for multiple files per locale: run from root folder `pnpm install && nr dev:prepare:multiple-json && nr dev:multiple-json` +