44Vue I18n v10 ** is still an alpha version** .
55:::
66
7- ## APIs
8-
9- ### Change ` $t ` and ` t ` overloaded signature for Legacy API mode
7+ ## Change ` $t ` and ` t ` overloaded signature for Legacy API mode
108
119In Vue I18n v9, it has a different interface from the Composition API mode and Legacy API mode of ` $t ` and ` t ` overloaded signature.
1210
@@ -60,7 +58,7 @@ If you are using the following APIs in Legacy API mode, you must change to anoth
6058- ` t(key: Key, locale: Locale, list: unknown[]): TranslateResult; `
6159- ` t(key: Key, locale: Locale, named: NamedValue): TranslateResult; `
6260
63- #### ` $t(key: Key, locale: Locale): TranslateResult; `
61+ ### ` $t(key: Key, locale: Locale): TranslateResult; `
6462
6563Vue I18n v9.x:
6664
@@ -80,7 +78,7 @@ use `$t(key: Key, list: unknown[], options: TranslateOptions): TranslateResult;`
8078</template>
8179```
8280
83- #### ` $t(key: Key, locale: Locale, list: unknown[]): TranslateResult; `
81+ ### ` $t(key: Key, locale: Locale, list: unknown[]): TranslateResult; `
8482
8583Vue I18n v9.x:
8684
@@ -100,7 +98,7 @@ use `$t(key: Key, list: unknown[], options: TranslateOptions): TranslateResult;`
10098</template>
10199```
102100
103- #### ` $t(key: Key, locale: Locale, named: NamedValue): TranslateResult; `
101+ ### ` $t(key: Key, locale: Locale, named: NamedValue): TranslateResult; `
104102
105103Vue I18n v9.x:
106104
@@ -120,7 +118,7 @@ use `$t(key: Key, named: NamedValue, options: TranslateOptions): TranslateResult
120118</template>
121119```
122120
123- #### ` t(key: Key, locale: Locale): TranslateResult; `
121+ ### ` t(key: Key, locale: Locale): TranslateResult; `
124122
125123Vue I18n v9.x:
126124
@@ -146,7 +144,7 @@ const i18n = createI18n({
146144console .log (i18n .global .t (' message.hello' , {}, { locale: ' ja' })
147145` ` `
148146
149- #### ` t (key : Key , locale : Locale , list : unknown []): TranslateResult ;`
147+ ### ` t (key : Key , locale : Locale , list : unknown []): TranslateResult ;`
150148
151149Vue I18n v9.x:
152150
@@ -172,7 +170,7 @@ const i18n = createI18n({
172170console .log (i18n .global .t (' message.hello' , [' dio' ], { locale: ' ja' }))
173171` ` `
174172
175- #### ` t (key : Key , locale : Locale , named : NamedValue ): TranslateResult ;`
173+ ### ` t (key : Key , locale : Locale , named : NamedValue ): TranslateResult ;`
176174
177175Vue I18n v9.x:
178176
@@ -198,7 +196,7 @@ const i18n = createI18n({
198196console .log (i18n .global .t (' message.hello' , { name: ' dio' }, { locale: ' ja' }))
199197` ` `
200198
201- ### Deprecate ` tc ` and ` $tc ` for Legacy API mode
199+ ## Deprecate ` tc ` and ` $tc ` for Legacy API mode
202200
203201The following APIs are deprecated in v10:
204202
@@ -226,7 +224,7 @@ In v10, `tc` and `$tc` still exist to give benefit migration. These will be drop
226224If you will use them, Vue I18n will output the console warning in your application.
227225
228226
229- #### ` tc (key : Key | ResourceKeys ): TranslateResult ;`
227+ ### ` tc (key : Key | ResourceKeys ): TranslateResult ;`
230228
231229Vue I18n v9.x:
232230
@@ -250,7 +248,7 @@ const i18n = createI18n({
250248console .log (i18n .global .t (' banana' , 1 ))
251249` ` `
252250
253- #### ` tc (key : Key | ResourceKeys , locale : Locales | Locale ): TranslateResult ;`
251+ ### ` tc (key : Key | ResourceKeys , locale : Locales | Locale ): TranslateResult ;`
254252
255253Vue I18n v9.x:
256254
@@ -274,7 +272,7 @@ const i18n = createI18n({
274272console .log (i18n .global .t (' banana' , 1 , { locale: ' ja' }))
275273` ` `
276274
277- #### ` tc (key : Key | ResourceKeys , list : unknown []): TranslateResult ;`
275+ ### ` tc (key : Key | ResourceKeys , list : unknown []): TranslateResult ;`
278276
279277
280278Vue I18n v9.x:
@@ -299,7 +297,7 @@ const i18n = createI18n({
299297console .log (i18n .global .t (' banana' , [' dio' ], 1 ))
300298` ` `
301299
302- #### ` tc (key : Key | ResourceKeys , named : Record < string , unknown > ): TranslateResult ;`
300+ ### ` tc (key : Key | ResourceKeys , named : Record < string , unknown > ): TranslateResult ;`
303301
304302Vue I18n v9.x:
305303
@@ -323,7 +321,7 @@ const i18n = createI18n({
323321console .log (i18n .global .t (' banana' , { name: ' dio' }, 1 ))
324322` ` `
325323
326- #### ` tc (key : Key | ResourceKeys , choice : number ): TranslateResult ;`
324+ ### ` tc (key : Key | ResourceKeys , choice : number ): TranslateResult ;`
327325
328326Vue I18n v9.x:
329327
@@ -347,7 +345,7 @@ const i18n = createI18n({
347345console .log (i18n .global .t (' banana' , 2 ))
348346` ` `
349347
350- #### ` tc (key : Key | ResourceKeys , choice : number , locale : Locales | Locale ): TranslateResult ;`
348+ ### ` tc (key : Key | ResourceKeys , choice : number , locale : Locales | Locale ): TranslateResult ;`
351349
352350Vue I18n v9.x:
353351
@@ -371,7 +369,7 @@ const i18n = createI18n({
371369console .log (i18n .global .t (' banana' , 2 , { locale: ' ja' }))
372370` ` `
373371
374- #### ` tc (key : Key | ResourceKeys , choice : number , list : unknown []): TranslateResult ;`
372+ ### ` tc (key : Key | ResourceKeys , choice : number , list : unknown []): TranslateResult ;`
375373
376374Vue I18n v9.x:
377375
@@ -395,7 +393,7 @@ const i18n = createI18n({
395393console .log (i18n .global .t (' banana' , [' dio' ], 2 ))
396394` ` `
397395
398- #### ` tc (key : Key | ResourceKeys , choice : number , named : Record < string , unknown > ): TranslateResult ;`
396+ ### ` tc (key : Key | ResourceKeys , choice : number , named : Record < string , unknown > ): TranslateResult ;`
399397
400398` ` ` ts
401399const i18n = createI18n ({
@@ -417,7 +415,7 @@ const i18n = createI18n({
417415console .log (i18n .global .tc (' banana' , { name: ' dio' }, 2 ))
418416` ` `
419417
420- #### ` $tc (key : Key ): TranslateResult ;`
418+ ### ` $tc (key : Key ): TranslateResult ;`
421419
422420Vue I18n v9.x:
423421
@@ -437,7 +435,7 @@ use `$t(key: Key, plural: number): TranslateResult;`
437435< / template >
438436` ` `
439437
440- #### ` $tc (key : Key , locale : Locale ): TranslateResult ;`
438+ ### ` $tc (key : Key , locale : Locale ): TranslateResult ;`
441439
442440Vue I18n v9.x:
443441
@@ -457,7 +455,7 @@ use `$t(key: Key, plural: number, options: TranslateOptions): TranslateResult;`
457455< / template >
458456` ` `
459457
460- #### ` $tc (key : Key , list : unknown []): TranslateResult ;`
458+ ### ` $tc (key : Key , list : unknown []): TranslateResult ;`
461459
462460Vue I18n v9.x:
463461
@@ -477,7 +475,7 @@ use `$t(key: Key, list: unknown[], plural: number): TranslateResult;`
477475< / template >
478476` ` `
479477
480- #### ` $tc (key : Key , named : Record < string , unknown > ): TranslateResult ;`
478+ ### ` $tc (key : Key , named : Record < string , unknown > ): TranslateResult ;`
481479
482480Vue I18n v9.x:
483481
@@ -497,7 +495,7 @@ use `$t(key: Key, named: NamedValue, plural: number): TranslateResult;`
497495< / template >
498496` ` `
499497
500- #### ` $tc (key : Key , choice : number ): TranslateResult ;`
498+ ### ` $tc (key : Key , choice : number ): TranslateResult ;`
501499
502500Vue I18n v9.x:
503501
@@ -517,7 +515,7 @@ use `$t(key: Key, plural: number): TranslateResult;`
517515< / template >
518516` ` `
519517
520- #### ` $tc (key : Key , choice : number , locale : Locale ): TranslateResult ;`
518+ ### ` $tc (key : Key , choice : number , locale : Locale ): TranslateResult ;`
521519
522520Vue I18n v9.x:
523521
@@ -537,7 +535,7 @@ use `$t(key: Key, plural: number, options: TranslateOptions): TranslateResult;`
537535< / template >
538536` ` `
539537
540- #### ` $tc (key : Key , choice : number , list : unknown []): TranslateResult ;`
538+ ### ` $tc (key : Key , choice : number , list : unknown []): TranslateResult ;`
541539
542540Vue I18n v9.x:
543541
@@ -557,7 +555,7 @@ use `$t(key: Key, list: unknown[], plural: number): TranslateResult;`
557555< / template >
558556` ` `
559557
560- #### ` $tc (key : Key , choice : number , named : Record < string , unknown > ): TranslateResult ;`
558+ ### ` $tc (key : Key , choice : number , named : Record < string , unknown > ): TranslateResult ;`
561559
562560Vue I18n v9.x:
563561
@@ -577,13 +575,13 @@ use `$t(key: Key, named: NamedValue, plural: number): TranslateResult;`
577575< / template >
578576` ` `
579577
580- ### Drop modulo ` % ` syntax
578+ ## Drop modulo ` % ` syntax
581579
582580Named interpolation using modulo ` % ` is no longer supported in v10.
583581
584582**Reason**: module syntax has already deprecated in v9 with a warning.
585583
586- #### for migration
584+ ### for migration
587585
588586You can use ` eslint - plugin - vue - i18n ` .
589587
@@ -594,37 +592,37 @@ You can fixed with using `eslint --fix`
594592
595593You must have migrated with eslint before upgrading to vue-i18n v10
596594
597- ### Drop ` vue - i18n - bridge `
595+ ## Drop ` vue - i18n - bridge `
598596
599597**Reason**: vue-i18n-bridge is a bridge library for migrating vue-i18n from Vue 2 to Vue 3, and Vue 2 is no longer past EOL.
600598
601- ### Drop ` allowComposition ` option
599+ ## Drop ` allowComposition ` option
602600
603601**Reason**: This option already deprecated in warning about being dropped in v10. docs says, https://vue-i18n.intlify.dev/guide/migration/vue3.html#about-supporting
604602
605603This option was added to support the migration from the Legacy API to the composition API on v9.
606604
607- ### Drop ` formatter ` option on Legacy API
605+ ## Drop ` formatter ` option on Legacy API
608606
609607**Reason**: This option was deprecated in warning on v9.
610608
611- ### Drop ` preserveDirectiveContent ` option on Legacy API
609+ ## Drop ` preserveDirectiveContent ` option on Legacy API
612610
613611**Reason**: This option was deprecated in warning on v9.
614612
615- ### Drop ` preserve ` modifier codes on ` v - t ` directive
613+ ## Drop ` preserve ` modifier codes on ` v - t ` directive
616614
617615**Reason**: This option was deprecated in warning on v9.
618616
619- ### Drop ` getChoiceIndex ` on Legacy API
617+ ## Drop ` getChoiceIndex ` on Legacy API
620618
621619**Reason**: This option was deprecated in warning on v9.
622620
623- ### Drop translation component ` <i18n >` v8.x compatibility
621+ ## Drop translation component ` <i18n >` v8.x compatibility
624622
625623**Reason**: This option was deprecated in warning on v9.
626624
627- ### Drop ` te ` behavior v8.x compatibility
625+ ## Drop ` te ` behavior v8.x compatibility
628626
629627**Reason**: This option was deprecated in warning on v9.
630628
0 commit comments