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
Copy file name to clipboardExpand all lines: packages/petite-vue-i18n/README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Small size subset of Vue I18n
4
4
5
5
`petite-vue-i18n` is an alternative distribution of Vue I18n, which provides only minimal features.
6
6
7
-
## :question: What is defference from Vue I18n ?
7
+
## :question: What is the difference from Vue I18n ?
8
8
9
9
- The Size is smaller than vue-i18n
10
10
- CDN or without a Bundler
@@ -18,14 +18,14 @@ Small size subset of Vue I18n
18
18
- Bundle size
19
19
- Reduce size from `vue-i18n`: runtime + compiler `~14%`, runtime only `~22%` (Code size check measurement of [vue-i18n](https://github.com/intlify/vue-i18n-next/tree/master/packages/size-check-vue-i18n) and [petite-vue-i18n](https://github.com/intlify/vue-i18n-next/tree/master/packages/size-check-petite-vue-i18n))
20
20
- The legacy API is not supported, **only the composition API**
21
-
- The APIs for the following DateTime Foramts, Number Formats, and utilities aren’t included. **Translation only**
21
+
- The APIs for the following DateTime Formats, Number Formats, and utilities aren’t included. **Translation only**
-**The only locale msssages that can be handled are simple key-values**. if you can handle hierarchical locale messages, you need to customize them using the API
28
+
-**The only locale messages that can be handled are simple key-values**. if you can handle hierarchical locale messages, you need to customize them using the API
29
29
- The algorithm of local fallback is **the array order** specified in `fallbackLocale`
30
30
- Custom directive `v-t` isn’t included
31
31
- The following components provided by `vue-i18n` aren’t included
@@ -59,7 +59,7 @@ You need to insert the following scripts to end of `<head>`:
The following is the application code with script tag:
62
+
The following is the application code with the script tag:
63
63
64
64
```html
65
65
<script>
@@ -122,7 +122,7 @@ Scripts:
122
122
```js
123
123
const { createApp } = Vue
124
124
const { createI18n, useI18n } = PetiteVueI18n
125
-
// or for ES modules
125
+
// or for ES modules
126
126
// import { createApp } from 'vue'
127
127
// import { createI18n } from 'petite-vue-i18n'
128
128
@@ -154,7 +154,7 @@ app.mount('#app')
154
154
155
155
### Use the same message resolver and locale fallbacker as `vue-i18n`
156
156
157
-
In `petite-vue-i18n`, the message resolver and locale fallbacker use simple implementations to optimize code size, as described in the [differences section](https://github.com/intlify/vue-i18n-next/tree/master/packages/petite-vue-i18n#question-what-is-defference-from-vue-i18n-), as the belows:
157
+
In `petite-vue-i18n`, the message resolver and locale fallbacker use simple implementations to optimize code size, as described in the [differences section](https://github.com/intlify/vue-i18n-next/tree/master/packages/petite-vue-i18n#question-what-is-the-difference-from-vue-i18n-), as the belows:
158
158
159
159
- message resolver
160
160
- Resolves key-value style locale messages
@@ -202,4 +202,4 @@ With the above settings, locale message resolving and locale fallbacking will be
0 commit comments