Skip to content

Commit e705508

Browse files
committed
docs: fix wrong codes
1 parent cf6e9c0 commit e705508

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/guide/migration/breaking10.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ const i18n = createI18n({
378378
legacy: true,
379379
// something options ...
380380
})
381-
console.log(i18n.global.t('banana', 2, ['dio']))
381+
console.log(i18n.global.tc('banana', 2, ['dio']))
382382
```
383383
384384
Vue I18n v10 or later:
@@ -412,7 +412,7 @@ const i18n = createI18n({
412412
legacy: true,
413413
// something options ...
414414
})
415-
console.log(i18n.global.tc('banana', { name: 'dio' }, 2))
415+
console.log(i18n.global.t('banana', { name: 'dio' }, 2))
416416
```
417417
418418
### `$tc(key: Key): TranslateResult;`

0 commit comments

Comments
 (0)