@@ -21,7 +21,7 @@ Internationalization plugin for Vue.js
21
21
<br />
22
22
23
23
24
- ## Status: Alpha ![ Test] ( https://github.com/intlify/vue-i18n-next/workflows/Test/badge.svg )
24
+ ## Status: Beta ![ Test] ( https://github.com/intlify/vue-i18n-next/workflows/Test/badge.svg )
25
25
26
26
The current codebase has most of the existing features on Vue I18n v8.x and is usable.
27
27
@@ -31,6 +31,16 @@ If you use stable Vue I18n version, see this [repository](https://github.com/kaz
31
31
32
32
## :star : New Features
33
33
34
+ ### Message Format Syntax
35
+ - Literal Interpolation
36
+ - You can use a single quote ` ' ` and "Mustache" like (` { ` ` } ` ) to make the message literal.
37
+ - e.g. ` foo{'@'}domain.com `
38
+ - Message Functions
39
+ - As Vue's render function, vue-i18n-next and later support the ** Message** functions.
40
+ - Using the Message function has the following advantages
41
+ - Accelerate evaluation of vue-i18n messages (pre-compilation)
42
+ - Support for complex i18n that cannot be handled by message format
43
+
34
44
### Composable API
35
45
36
46
New style API for Vue 3. See the following docs:
@@ -76,6 +86,13 @@ The examples are offered that use the following two API styles:
76
86
77
87
### :boom : Breaking changes compared to vue-i18n v8.x
78
88
89
+ #### Message Format Syntax
90
+ - Special characters
91
+ - Since vue-i18n-next, message format syntax is handled by the compiler.
92
+ - The following characters used in the message syntax are processed by the compiler as special characters:
93
+ - ` { ` , ` } ` , ` @ ` , ` $ ` , ` | `
94
+ - If you want to use these special characters, you can use ** lietral interpolation** to get around it:
95
+
79
96
#### APIs
80
97
- The return value of ` $t ` and ` t ` methods is ** string** only. object and array values are no longer returned.
81
98
- As an alternative way, you can use ` $tm ` / ` tm `
0 commit comments