@intlify/vue-i18n-extensions 9.0.0 → 9.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -8
- package/dist/index.cjs +374 -421
- package/dist/index.d.cts +39 -41
- package/dist/index.d.mts +39 -41
- package/dist/index.mjs +373 -419
- package/package.json +56 -80
- package/dist/index.d.ts +0 -131
package/README.md
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
# 🌏 @intlify/vue-i18n-extensions
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/@intlify/vue-i18n-extensions)
|
|
4
3
|
[](https://www.npmjs.com/package/@intlify/vue-i18n-extensions)
|
|
5
4
|
|
|
6
5
|
Extensions for vue-i18n
|
|
@@ -19,13 +18,13 @@ This library exports the following extensions:
|
|
|
19
18
|
|
|
20
19
|
```sh
|
|
21
20
|
# npm
|
|
22
|
-
npm i --save-dev @intlify/vue-i18n-extensions
|
|
21
|
+
npm i --save-dev @intlify/vue-i18n-extensions
|
|
23
22
|
|
|
24
23
|
# pnpm
|
|
25
|
-
pnpm add -D @intlify/vue-i18n-extensions
|
|
24
|
+
pnpm add -D @intlify/vue-i18n-extensions
|
|
26
25
|
|
|
27
26
|
# yarn
|
|
28
|
-
yarn add -D @intlify/vue-i18n-extensions
|
|
27
|
+
yarn add -D @intlify/vue-i18n-extensions
|
|
29
28
|
```
|
|
30
29
|
|
|
31
30
|
## 🚀 Extensions
|
|
@@ -34,8 +33,7 @@ yarn add -D @intlify/vue-i18n-extensions@next
|
|
|
34
33
|
|
|
35
34
|
You can use transform offered with this package, to support Server-side rendering for `v-t` custom directives.
|
|
36
35
|
|
|
37
|
-
In order to use this feature, you need to specify to Vue compiler option.
|
|
38
|
-
The following example that use `compile` of `@vue/compiler-ssr`:
|
|
36
|
+
In order to use this feature, you need to specify to Vue compiler option. The following example that use `compile` of `@vue/compiler-ssr`:
|
|
39
37
|
|
|
40
38
|
```js
|
|
41
39
|
import * as runtimeDom from '@vue/runtime-dom'
|
|
@@ -102,8 +100,7 @@ You can pre-translation i18n locale messages of vue-i18n.
|
|
|
102
100
|
> [!WARNING]
|
|
103
101
|
> only `v-t` custom directive is supported !!
|
|
104
102
|
|
|
105
|
-
In order to use this feature, you need to specify to Vue compiler option.
|
|
106
|
-
The following example that use `compile` of `@vue/compiler-dom`:
|
|
103
|
+
In order to use this feature, you need to specify to Vue compiler option. The following example that use `compile` of `@vue/compiler-dom`:
|
|
107
104
|
|
|
108
105
|
```js
|
|
109
106
|
import { compile } from '@vue/compiler-dom'
|