@@ -90,6 +90,10 @@ Translation message
90
90
91
91
### $t (key , locale )
92
92
93
+ :::danger NOTICE
94
+ **This API signature is available in Legacy API mode only and is supported until v9 **.
95
+ :::
96
+
93
97
Locale message translation
94
98
95
99
**Signature :**
@@ -113,6 +117,10 @@ Translation message
113
117
114
118
### $t (key , locale , list )
115
119
120
+ :::danger NOTICE
121
+ **This API signature is available in Legacy API mode only and is supported until v9 **.
122
+ :::
123
+
116
124
Locale message translation
117
125
118
126
**Signature :**
@@ -137,6 +145,10 @@ Translation message
137
145
138
146
### $t (key , locale , named )
139
147
148
+ :::danger NOTICE
149
+ **This API signature is available in Legacy API mode only and is supported until v9 **.
150
+ :::
151
+
140
152
Locale message translation
141
153
142
154
**Signature :**
@@ -159,86 +171,17 @@ Overloaded `$t`. About details, see the [$t](injection#t-key) remarks.
159
171
160
172
Translation message
161
173
162
- ### $t (key , list )
163
-
164
- Locale message translation
165
-
166
- **Signature :**
167
- ```typescript
168
- $t (key : Path , list : unknown []): TranslateResult ;
169
- ```
170
-
171
- **Details **
172
-
173
- Overloaded `$t `. About details , see the [$t ](injection #t -key ) remarks .
174
-
175
- #### Parameters
176
- | Parameter | Type | Description |
177
- | --- | --- | --- |
178
- | key | Path | A target locale message key |
179
- | list | unknown [] | A values of list interpolation |
180
-
181
- #### Returns
182
-
183
- Translation message
184
-
185
- ### $t (key , named )
186
-
187
- Locale message translation
188
-
189
- **Signature :**
190
- ```typescript
191
- $t (key : Path , named : Record <string , unknown >): TranslateResult ;
192
- ```
193
-
194
- **Details **
195
-
196
- Overloaded `$t `. About details , see the [$t ](injection #t -key ) remarks .
197
-
198
- #### Parameters
199
- | Parameter | Type | Description |
200
- | --- | --- | --- |
201
- | key | Path | A target locale message key |
202
- | locale | Locale | A locale , override locale that global scope or local scope |
203
- | named | Record < ;string , unknown > ; | A values of named interpolation |
204
-
205
- #### Returns
206
-
207
- Translation message
208
-
209
- ### $t (key )
210
-
211
- Locale message translation
212
-
213
- **Signature :**
214
- ```typescript
215
- $t (key : Path ): string ;
216
- ```
217
-
218
- **Details **
219
-
220
- Overloaded `$t `. About details , see the [$t ](injection #t -key ) remarks .
221
-
222
- #### Parameters
223
- | Parameter | Type | Description |
224
- | --- | --- | --- |
225
- | key | Path | A target locale message key |
226
-
227
- #### Returns
228
-
229
- Translation message
230
-
231
174
### $t (key , plural )
232
175
233
176
Locale message translation
234
177
235
178
**Signature :**
236
179
```typescript
237
- $t (key : Path , plural : number ): string ;
180
+ $t (key : Path , plural : number ): TranslateResult ;
238
181
```
239
182
240
183
:::tip NOTE
241
- Supported for **Composition API mode only **.
184
+ Supported for **Composition API mode only until v9 . v10 or later can also be used in Legacy API mode **.
242
185
:::
243
186
244
187
**Details **
@@ -261,11 +204,11 @@ Locale message translation
261
204
262
205
**Signature :**
263
206
```typescript
264
- $t (key : Path , plural : number , options : TranslateOptions ): string ;
207
+ $t (key : Path , plural : number , options : TranslateOptions ): TranslateResult ;
265
208
```
266
209
267
210
:::tip NOTE
268
- Supported for **Composition API mode only **.
211
+ Supported for **Composition API mode only until v9 . v10 or later can also be used in Legacy API mode **.
269
212
:::
270
213
271
214
**Details **
@@ -289,11 +232,11 @@ Locale message translation
289
232
290
233
**Signature :**
291
234
```typescript
292
- $t (key : Path , defaultMsg : string ): string ;
235
+ $t (key : Path , defaultMsg : string ): TranslateResult ;
293
236
```
294
237
295
238
:::tip NOTE
296
- Supported for **Composition API mode only **.
239
+ Supported for **Composition API mode only until v9 . v10 or later can also be used in Legacy API mode **.
297
240
:::
298
241
299
242
**Details **
@@ -316,11 +259,11 @@ Locale message translation
316
259
317
260
**Signature :**
318
261
```typescript
319
- $t (key : Path , defaultMsg : string , options : TranslateOptions ): string ;
262
+ $t (key : Path , defaultMsg : string , options : TranslateOptions ): TranslateResult ;
320
263
```
321
264
322
265
:::tip NOTE
323
- Supported for **Composition API mode only **.
266
+ Supported for **Composition API mode only until v9 . v10 or later can also be used in Legacy API mode **.
324
267
:::
325
268
326
269
**Details **
@@ -344,7 +287,7 @@ Locale message translation
344
287
345
288
**Signature :**
346
289
```typescript
347
- $t (key : Path , list : unknown []): string ;
290
+ $t (key : Path , list : unknown []): TranslateResult ;
348
291
```
349
292
350
293
**Details **
@@ -367,11 +310,11 @@ Locale message translation
367
310
368
311
**Signature :**
369
312
```typescript
370
- $t (key : Path , list : unknown [], plural : number ): string ;
313
+ $t (key : Path , list : unknown [], plural : number ): TranslateResult ;
371
314
```
372
315
373
316
:::tip NOTE
374
- Supported for **Composition API mode only **.
317
+ Supported for **Composition API mode only until v9 . v10 or later can also be used in Legacy API mode **.
375
318
:::
376
319
377
320
**Details **
@@ -395,11 +338,11 @@ Locale message translation
395
338
396
339
**Signature :**
397
340
```typescript
398
- $t (key : Path , list : unknown [], defaultMsg : string ): string ;
341
+ $t (key : Path , list : unknown [], defaultMsg : string ): TranslateResult ;
399
342
```
400
343
401
344
:::tip NOTE
402
- Supported for **Composition API mode only **.
345
+ Supported for **Composition API mode only until v9 . v10 or later can also be used in Legacy API mode **.
403
346
:::
404
347
405
348
**Details **
@@ -423,11 +366,11 @@ Locale message translation
423
366
424
367
**Signature :**
425
368
```typescript
426
- $t (key : Path , list : unknown [], options : TranslateOptions ): string ;
369
+ $t (key : Path , list : unknown [], options : TranslateOptions ): TranslateResult ;
427
370
```
428
371
429
372
:::tip NOTE
430
- Supported for **Composition API mode only **.
373
+ Supported for **Composition API mode only until v9 . v10 or later can also be used in Legacy API mode **.
431
374
:::
432
375
433
376
**Details **
@@ -451,7 +394,7 @@ Locale message translation
451
394
452
395
**Signature :**
453
396
```typescript
454
- $t (key : Path , named : NamedValue ): string ;
397
+ $t (key : Path , named : NamedValue ): TranslateResult ;
455
398
```
456
399
457
400
**Details **
@@ -474,11 +417,11 @@ Locale message translation
474
417
475
418
**Signature :**
476
419
```typescript
477
- $t (key : Path , named : NamedValue , plural : number ): string ;
420
+ $t (key : Path , named : NamedValue , plural : number ): TranslateResult ;
478
421
```
479
422
480
423
:::tip NOTE
481
- Supported for **Composition API mode only **.
424
+ Supported for **Composition API mode only until v9 . v10 or later can also be used in Legacy API mode **.
482
425
:::
483
426
484
427
**Details **
@@ -502,11 +445,11 @@ Locale message translation
502
445
503
446
**Signature :**
504
447
```typescript
505
- $t (key : Path , named : NamedValue , defaultMsg : string ): string ;
448
+ $t (key : Path , named : NamedValue , defaultMsg : string ): TranslateResult ;
506
449
```
507
450
508
451
:::tip NOTE
509
- Supported for **Composition API mode only **.
452
+ Supported for **Composition API mode only until v9 . v10 or later can also be used in Legacy API mode **.
510
453
:::
511
454
512
455
**Details **
@@ -530,11 +473,11 @@ Locale message translation
530
473
531
474
**Signature :**
532
475
```typescript
533
- $t (key : Path , named : NamedValue , options : TranslateOptions ): string ;
476
+ $t (key : Path , named : NamedValue , options : TranslateOptions ): TranslateResult ;
534
477
```
535
478
536
479
:::tip NOTE
537
- Supported for **Composition API mode only **.
480
+ Supported for **Composition API mode only until v9 . v10 or later can also be used in Legacy API mode **.
538
481
:::
539
482
540
483
**Details **
0 commit comments