Skip to content

Commit 1878ac2

Browse files
authored
- removed repeated sentence (#2008)
- corrected spelling
1 parent 1674c94 commit 1878ac2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/guide/advanced/composition.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ const { t } = useI18n({ useScope: 'global' })
278278
// Something to do here ...
279279
```
280280

281-
The above code sets the `useI18n` option to `useScope: 'global'`, which allows `useI18n` to return a Composer instance that can be accessed by the i18n instance `global` property. This allows `useI18n` to return the Composer instance that can be accessed by i18n instance`global` property, which is a global scope. The Composer instance is a global scope.
281+
The above code sets the `useI18n` option to `useScope: 'global'`, which allows `useI18n` to return a Composer instance that can be accessed by the i18n instance `global` property. The Composer instance is a global scope.
282282

283283
Then you can compose using the functions and properties exposed from the Composer instance.
284284

@@ -413,7 +413,7 @@ In this example, the definition of resources is separated from i18n custom block
413413

414414
### Shared locale messages for components
415415

416-
In Leacy API mode, shared locale messages are used in components with the `sharedMessages` option.
416+
In Legacy API mode, shared locale messages are used in components with the `sharedMessages` option.
417417

418418
In composition API mode, use `mergeLocaleMessage` exported by `useI18n`.
419419

@@ -484,7 +484,7 @@ And you can also use the setup context in the template, which can be changed as
484484
</select>
485485
```
486486

487-
When you change the locale of the global scope, components that depend on the global scope, such as `t` translation API can work reactive and switch the display messages to those of the target locale.
487+
When you change the locale of the global scope, components that depend on the global scope, such as `t` translation API can work reactively and switch the display messages to those of the target locale.
488488

489489
If you are using the [implicit way](composition#implicit-with-injected-properties-and-functions), you can also change it in template with `$i18n.locale`, as follows:
490490

0 commit comments

Comments
 (0)