Skip to content

Commit

Permalink
fix: integrate vue-i18n jit compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Jul 4, 2023
1 parent 2040351 commit 493ea96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
10 changes: 0 additions & 10 deletions docs/content/1.getting-started/1.setup.md
Expand Up @@ -28,16 +28,6 @@ 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]
Expand Down
4 changes: 2 additions & 2 deletions docs/content/3.options/6.misc.md
Expand Up @@ -22,12 +22,12 @@ Supported properties:
- `jsTsFormatResource` (default: `false`) - Allow the format `js` and `ts` for locale messages in lazy load translation.


## `precompile`
## `compilation`

- type: `object`
- default: `{ strictMessage: true, escapeHtml: false }`

Configure flags that sets the behavior precompilation of locale messages.
Configure flags that sets the behavior compilation of locale messages.

Supported properties:

Expand Down

0 comments on commit 493ea96

Please sign in to comment.