Skip to content
This repository was archived by the owner on Jul 4, 2021. It is now read-only.

Commit 8f58b5e

Browse files
committed
update README
1 parent 2b03e08 commit 8f58b5e

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

README.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,20 +69,39 @@ export default {
6969

7070
### Vite Config
7171

72-
the below example that `examples/composable/vite.config.ts`:
72+
the below example that `examples/composition/vite.config.ts`:
7373

74-
```js
74+
```ts
7575
import type { UserConfig } from 'vite'
76-
import i18n from '@intlify/vite-plugin-vue-i18n'
76+
import { transformI18n } from '@intlify/vite-plugin-vue-i18n'
7777

7878
const config: UserConfig = {
7979
vueCustomBlockTransforms: {
80-
i18n
80+
i18n: transformI18n()
8181
}
8282
}
8383

8484
export default config
85+
```
86+
87+
88+
### `forceStringify` options
89+
90+
Whether pre-compile number and boolean values as message functions that return the string value, default `false`
8591

92+
```ts
93+
import type { UserConfig } from 'vite'
94+
import { transformI18n } from '@intlify/vite-plugin-vue-i18n'
95+
96+
const config: UserConfig = {
97+
vueCustomBlockTransforms: {
98+
i18n: transformI18n({
99+
forceStringify: true
100+
})
101+
}
102+
}
103+
104+
export default config
86105
```
87106

88107
### Locale Messages formatting

0 commit comments

Comments
 (0)