diff --git a/docs/content/1.getting-started/1.setup.md b/docs/content/1.getting-started/1.setup.md index 6dc716109..34c9f334e 100644 --- a/docs/content/1.getting-started/1.setup.md +++ b/docs/content/1.getting-started/1.setup.md @@ -28,6 +28,16 @@ pnpm add @nuxtjs/i18n@next --save-dev ``` :: +## `package.json` + +Then, you need to add `"type": "module"` to `package.json` of your nuxt project. + +::alert{type="info"} +This is necessary because nitro prerender is used for the dynamic import of nuxt i18n config and i18n resources on the Node runtime, on nuxt build. +:: + +## `nuxt.config.ts` + Then, add `@nuxtjs/i18n` to the `modules` section in your `nuxt.config`. You can use either of the following ways to specify the module options: ```ts {}[nuxt.config.ts]