You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 12, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+76-27Lines changed: 76 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,11 @@ You need to install the follwoing:
19
19
If you use rollup-plugin-vue, We recommend you should read the [docs](https://rollup-plugin-vue.vuejs.org/)
20
20
21
21
22
+
## :star: Features
23
+
- i18n resources pre-compilation
24
+
- i18n custom block
25
+
26
+
22
27
## :cd: Installation
23
28
24
29
### NPM
@@ -78,7 +83,7 @@ export default [
78
83
79
84
#### Notes on using with other i18n resource loading plugins
80
85
81
-
If you use the plugin like `@rollup/plugin-json`, make sure that the i18n resource to be precompiled with `rollup-plugin-vue-i18n` is not loaded. you need to filter with the plugin options.
86
+
If you use the plugin like `@rollup/plugin-json`, make sure that the i18n resource to be pre-compiled with `rollup-plugin-vue-i18n` is not loaded. you need to filter with the plugin options.
82
87
83
88
84
89
### `i18n` custom block
@@ -151,37 +156,81 @@ ja:
151
156
</i18n>
152
157
```
153
158
154
-
### `forceStringify` options
159
+
##:wrench: Options
155
160
156
-
Whether pre-compile number and boolean values as message functions that return the string value, default `false`
161
+
### `include`
157
162
158
-
```ts
159
-
importVuePluginfrom'rollup-plugin-vue'
160
-
importVueI18nPluginfrom'rollup-plugin-vue-i18n'
161
-
importresolvefrom'@rollup/plugin-node-resolve'
162
-
importcommonjsfrom'@rollup/plugin-commonjs'
163
-
importpathfrom'path'
163
+
-**Type:**`string | string[] | undefined`
164
+
-**Default:**`undefined`
164
165
165
-
exportdefault [
166
+
A [minimatch](https://github.com/isaacs/minimatch) pattern, or array of patterns, you can specify a path to pre-compile i18n resources files. The extensions of i18n resources to be precompiled are as follows:
167
+
168
+
```
169
+
- json
170
+
- json5
171
+
- yaml
172
+
- yml
173
+
```
174
+
175
+
176
+
### `forceStringify`
177
+
178
+
-**Type:**`boolean`
179
+
-**Default:**`false`
180
+
181
+
Whether pre-compile number and boolean values as message functions that return the string value.
0 commit comments