Skip to content

Commit b6cd58e

Browse files
authored
Editorial fixes (#1100)
1 parent de2079d commit b6cd58e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/petite-vue-i18n/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Small size subset of Vue I18n
44

55
`petite-vue-i18n` is an alternative distribution of Vue I18n, which provides only minimal features.
66

7-
## :question: What is defference from Vue I18n ?
7+
## :question: What is the difference from Vue I18n ?
88

99
- The Size is smaller than vue-i18n
1010
- CDN or without a Bundler
@@ -18,14 +18,14 @@ Small size subset of Vue I18n
1818
- Bundle size
1919
- 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))
2020
- 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**
2222
- `n`, `$n`
2323
- `d`, `$d`
2424
- `rt`, `$rt`
2525
- `tm`, `$tm`
2626
- `getDateTimeFormat`, `setDateTimeFormat`, `mergeDateTimeFormat`
2727
- `getNumberFormat`, `setNumberFormat`, `mergeNumberFormat`
28-
- **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
2929
- The algorithm of local fallback is **the array order** specified in `fallbackLocale`
3030
- Custom directive `v-t` isn’t included
3131
- 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>`:
5959
<script src="https://unpkg.com/petite-vue-i18n"></script>
6060
```
6161

62-
The following is the application code with script tag:
62+
The following is the application code with the script tag:
6363

6464
```html
6565
<script>
@@ -122,7 +122,7 @@ Scripts:
122122
```js
123123
const { createApp } = Vue
124124
const { createI18n, useI18n } = PetiteVueI18n
125-
// or for ES modules
125+
// or for ES modules
126126
// import { createApp } from 'vue'
127127
// import { createI18n } from 'petite-vue-i18n'
128128

@@ -154,7 +154,7 @@ app.mount('#app')
154154

155155
### Use the same message resolver and locale fallbacker as `vue-i18n`
156156

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:
158158

159159
- message resolver
160160
- Resolves key-value style locale messages
@@ -202,4 +202,4 @@ With the above settings, locale message resolving and locale fallbacking will be
202202

203203
## :copyright: License
204204

205-
[MIT](http://opensource.org/licenses/MIT)
205+
[MIT](https://opensource.org/licenses/MIT)

0 commit comments

Comments
 (0)