@i18n-micro/vue 1.4.0 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +346 -322
- package/dist/index.d.ts +346 -322
- package/dist/index.mjs +674 -750
- package/dist/index.mjs.map +1 -1
- package/dist/router.cjs +2 -2
- package/dist/router.cjs.map +1 -1
- package/dist/router.d.cts +24 -0
- package/dist/router.d.ts +24 -0
- package/dist/router.mjs +28 -29
- package/dist/router.mjs.map +1 -1
- package/package.json +10 -10
package/dist/index.d.cts
CHANGED
|
@@ -62,53 +62,53 @@ declare interface I18nGroupProps {
|
|
|
62
62
|
|
|
63
63
|
export declare const I18nInjectionKey: InjectionKey<VueI18n>;
|
|
64
64
|
|
|
65
|
-
export declare const I18nLink: DefineComponent<ExtractPropTypes<
|
|
66
|
-
to: {
|
|
67
|
-
type: PropType<string | {
|
|
68
|
-
path?: string;
|
|
69
|
-
}>;
|
|
70
|
-
required: true;
|
|
71
|
-
};
|
|
72
|
-
activeStyle: {
|
|
73
|
-
type: PropType<CSSProperties>;
|
|
74
|
-
default: () => {};
|
|
75
|
-
};
|
|
76
|
-
localeRoute: {
|
|
77
|
-
type: PropType<(to: string | {
|
|
78
|
-
path?: string;
|
|
79
|
-
}, locale?: string) => string | {
|
|
80
|
-
path?: string;
|
|
81
|
-
}>;
|
|
82
|
-
default: undefined;
|
|
83
|
-
};
|
|
65
|
+
export declare const I18nLink: DefineComponent<ExtractPropTypes<{
|
|
66
|
+
to: {
|
|
67
|
+
type: PropType<string | {
|
|
68
|
+
path?: string;
|
|
69
|
+
}>;
|
|
70
|
+
required: true;
|
|
71
|
+
};
|
|
72
|
+
activeStyle: {
|
|
73
|
+
type: PropType<CSSProperties>;
|
|
74
|
+
default: () => {};
|
|
75
|
+
};
|
|
76
|
+
localeRoute: {
|
|
77
|
+
type: PropType<(to: string | {
|
|
78
|
+
path?: string;
|
|
79
|
+
}, locale?: string) => string | {
|
|
80
|
+
path?: string;
|
|
81
|
+
}>;
|
|
82
|
+
default: undefined;
|
|
83
|
+
};
|
|
84
84
|
}>, () => VNode<RendererNode, RendererElement, {
|
|
85
|
-
[key: string]: any;
|
|
86
|
-
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<
|
|
87
|
-
to: {
|
|
88
|
-
type: PropType<string | {
|
|
89
|
-
path?: string;
|
|
90
|
-
}>;
|
|
91
|
-
required: true;
|
|
92
|
-
};
|
|
93
|
-
activeStyle: {
|
|
94
|
-
type: PropType<CSSProperties>;
|
|
95
|
-
default: () => {};
|
|
96
|
-
};
|
|
97
|
-
localeRoute: {
|
|
98
|
-
type: PropType<(to: string | {
|
|
99
|
-
path?: string;
|
|
100
|
-
}, locale?: string) => string | {
|
|
101
|
-
path?: string;
|
|
102
|
-
}>;
|
|
103
|
-
default: undefined;
|
|
104
|
-
};
|
|
85
|
+
[key: string]: any;
|
|
86
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
87
|
+
to: {
|
|
88
|
+
type: PropType<string | {
|
|
89
|
+
path?: string;
|
|
90
|
+
}>;
|
|
91
|
+
required: true;
|
|
92
|
+
};
|
|
93
|
+
activeStyle: {
|
|
94
|
+
type: PropType<CSSProperties>;
|
|
95
|
+
default: () => {};
|
|
96
|
+
};
|
|
97
|
+
localeRoute: {
|
|
98
|
+
type: PropType<(to: string | {
|
|
99
|
+
path?: string;
|
|
100
|
+
}, locale?: string) => string | {
|
|
101
|
+
path?: string;
|
|
102
|
+
}>;
|
|
103
|
+
default: undefined;
|
|
104
|
+
};
|
|
105
105
|
}>> & Readonly<{}>, {
|
|
106
|
-
activeStyle: CSSProperties;
|
|
107
|
-
localeRoute: (to: string | {
|
|
108
|
-
path?: string;
|
|
109
|
-
}, locale?: string) => string | {
|
|
110
|
-
path?: string;
|
|
111
|
-
};
|
|
106
|
+
activeStyle: CSSProperties;
|
|
107
|
+
localeRoute: (to: string | {
|
|
108
|
+
path?: string;
|
|
109
|
+
}, locale?: string) => string | {
|
|
110
|
+
path?: string;
|
|
111
|
+
};
|
|
112
112
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
113
113
|
|
|
114
114
|
export declare const I18nLocalesKey: InjectionKey<Locale[]>;
|
|
@@ -161,256 +161,256 @@ export declare interface I18nRoutingStrategy {
|
|
|
161
161
|
};
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
export declare const I18nSwitcher: DefineComponent<ExtractPropTypes<
|
|
165
|
-
customLabels: {
|
|
166
|
-
type: PropType<Record<string, string>>;
|
|
167
|
-
default: () => {};
|
|
168
|
-
};
|
|
169
|
-
customWrapperStyle: {
|
|
170
|
-
type: PropType<CSSProperties>;
|
|
171
|
-
default: () => {};
|
|
172
|
-
};
|
|
173
|
-
customButtonStyle: {
|
|
174
|
-
type: PropType<CSSProperties>;
|
|
175
|
-
default: () => {};
|
|
176
|
-
};
|
|
177
|
-
customDropdownStyle: {
|
|
178
|
-
type: PropType<CSSProperties>;
|
|
179
|
-
default: () => {};
|
|
180
|
-
};
|
|
181
|
-
customItemStyle: {
|
|
182
|
-
type: PropType<CSSProperties>;
|
|
183
|
-
default: () => {};
|
|
184
|
-
};
|
|
185
|
-
customLinkStyle: {
|
|
186
|
-
type: PropType<CSSProperties>;
|
|
187
|
-
default: () => {};
|
|
188
|
-
};
|
|
189
|
-
customActiveLinkStyle: {
|
|
190
|
-
type: PropType<CSSProperties>;
|
|
191
|
-
default: () => {};
|
|
192
|
-
};
|
|
193
|
-
/**
|
|
194
|
-
* Inline style applied to the switcher button when the *current* locale is
|
|
195
|
-
* marked as `disabled: true` in the locale config.
|
|
196
|
-
*
|
|
197
|
-
* Note: disabled locales are omitted from the dropdown list, but the current
|
|
198
|
-
* locale label is still shown on the button.
|
|
199
|
-
*/
|
|
200
|
-
customDisabledLinkStyle: {
|
|
201
|
-
type: PropType<CSSProperties>;
|
|
202
|
-
default: () => {};
|
|
203
|
-
};
|
|
204
|
-
customIconStyle: {
|
|
205
|
-
type: PropType<CSSProperties>;
|
|
206
|
-
default: () => {};
|
|
207
|
-
};
|
|
208
|
-
locales: {
|
|
209
|
-
type: PropType<Locale[]>;
|
|
210
|
-
default: undefined;
|
|
211
|
-
};
|
|
212
|
-
currentLocale: {
|
|
213
|
-
type: PropType<string | (() => string)>;
|
|
214
|
-
default: undefined;
|
|
215
|
-
};
|
|
216
|
-
getLocaleName: {
|
|
217
|
-
type: PropType<() => string | null>;
|
|
218
|
-
default: undefined;
|
|
219
|
-
};
|
|
220
|
-
switchLocale: {
|
|
221
|
-
type: PropType<(locale: string) => void>;
|
|
222
|
-
default: undefined;
|
|
223
|
-
};
|
|
224
|
-
localeRoute: {
|
|
225
|
-
type: PropType<(to: string | {
|
|
226
|
-
path?: string;
|
|
227
|
-
}, locale?: string) => string | {
|
|
228
|
-
path?: string;
|
|
229
|
-
}>;
|
|
230
|
-
default: undefined;
|
|
231
|
-
};
|
|
232
|
-
}>, () => VNode<RendererNode, RendererElement, {
|
|
233
|
-
[key: string]: any;
|
|
234
|
-
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<
|
|
235
|
-
customLabels: {
|
|
236
|
-
type: PropType<Record<string, string>>;
|
|
237
|
-
default: () => {};
|
|
238
|
-
};
|
|
239
|
-
customWrapperStyle: {
|
|
240
|
-
type: PropType<CSSProperties>;
|
|
241
|
-
default: () => {};
|
|
242
|
-
};
|
|
243
|
-
customButtonStyle: {
|
|
244
|
-
type: PropType<CSSProperties>;
|
|
245
|
-
default: () => {};
|
|
246
|
-
};
|
|
247
|
-
customDropdownStyle: {
|
|
248
|
-
type: PropType<CSSProperties>;
|
|
249
|
-
default: () => {};
|
|
250
|
-
};
|
|
251
|
-
customItemStyle: {
|
|
252
|
-
type: PropType<CSSProperties>;
|
|
253
|
-
default: () => {};
|
|
254
|
-
};
|
|
255
|
-
customLinkStyle: {
|
|
256
|
-
type: PropType<CSSProperties>;
|
|
257
|
-
default: () => {};
|
|
258
|
-
};
|
|
259
|
-
customActiveLinkStyle: {
|
|
260
|
-
type: PropType<CSSProperties>;
|
|
261
|
-
default: () => {};
|
|
262
|
-
};
|
|
263
|
-
/**
|
|
264
|
-
* Inline style applied to the switcher button when the *current* locale is
|
|
265
|
-
* marked as `disabled: true` in the locale config.
|
|
266
|
-
*
|
|
267
|
-
* Note: disabled locales are omitted from the dropdown list, but the current
|
|
268
|
-
* locale label is still shown on the button.
|
|
269
|
-
*/
|
|
270
|
-
customDisabledLinkStyle: {
|
|
271
|
-
type: PropType<CSSProperties>;
|
|
272
|
-
default: () => {};
|
|
273
|
-
};
|
|
274
|
-
customIconStyle: {
|
|
275
|
-
type: PropType<CSSProperties>;
|
|
276
|
-
default: () => {};
|
|
277
|
-
};
|
|
278
|
-
locales: {
|
|
279
|
-
type: PropType<Locale[]>;
|
|
280
|
-
default: undefined;
|
|
281
|
-
};
|
|
282
|
-
currentLocale: {
|
|
283
|
-
type: PropType<string | (() => string)>;
|
|
284
|
-
default: undefined;
|
|
285
|
-
};
|
|
286
|
-
getLocaleName: {
|
|
287
|
-
type: PropType<() => string | null>;
|
|
288
|
-
default: undefined;
|
|
289
|
-
};
|
|
290
|
-
switchLocale: {
|
|
291
|
-
type: PropType<(locale: string) => void>;
|
|
292
|
-
default: undefined;
|
|
293
|
-
};
|
|
294
|
-
localeRoute: {
|
|
295
|
-
type: PropType<(to: string | {
|
|
296
|
-
path?: string;
|
|
297
|
-
}, locale?: string) => string | {
|
|
298
|
-
path?: string;
|
|
299
|
-
}>;
|
|
300
|
-
default: undefined;
|
|
301
|
-
};
|
|
164
|
+
export declare const I18nSwitcher: DefineComponent<ExtractPropTypes<{
|
|
165
|
+
customLabels: {
|
|
166
|
+
type: PropType<Record<string, string>>;
|
|
167
|
+
default: () => {};
|
|
168
|
+
};
|
|
169
|
+
customWrapperStyle: {
|
|
170
|
+
type: PropType<CSSProperties>;
|
|
171
|
+
default: () => {};
|
|
172
|
+
};
|
|
173
|
+
customButtonStyle: {
|
|
174
|
+
type: PropType<CSSProperties>;
|
|
175
|
+
default: () => {};
|
|
176
|
+
};
|
|
177
|
+
customDropdownStyle: {
|
|
178
|
+
type: PropType<CSSProperties>;
|
|
179
|
+
default: () => {};
|
|
180
|
+
};
|
|
181
|
+
customItemStyle: {
|
|
182
|
+
type: PropType<CSSProperties>;
|
|
183
|
+
default: () => {};
|
|
184
|
+
};
|
|
185
|
+
customLinkStyle: {
|
|
186
|
+
type: PropType<CSSProperties>;
|
|
187
|
+
default: () => {};
|
|
188
|
+
};
|
|
189
|
+
customActiveLinkStyle: {
|
|
190
|
+
type: PropType<CSSProperties>;
|
|
191
|
+
default: () => {};
|
|
192
|
+
};
|
|
193
|
+
/**
|
|
194
|
+
* Inline style applied to the switcher button when the *current* locale is
|
|
195
|
+
* marked as `disabled: true` in the locale config.
|
|
196
|
+
*
|
|
197
|
+
* Note: disabled locales are omitted from the dropdown list, but the current
|
|
198
|
+
* locale label is still shown on the button.
|
|
199
|
+
*/
|
|
200
|
+
customDisabledLinkStyle: {
|
|
201
|
+
type: PropType<CSSProperties>;
|
|
202
|
+
default: () => {};
|
|
203
|
+
};
|
|
204
|
+
customIconStyle: {
|
|
205
|
+
type: PropType<CSSProperties>;
|
|
206
|
+
default: () => {};
|
|
207
|
+
};
|
|
208
|
+
locales: {
|
|
209
|
+
type: PropType<Locale[]>;
|
|
210
|
+
default: undefined;
|
|
211
|
+
};
|
|
212
|
+
currentLocale: {
|
|
213
|
+
type: PropType<string | (() => string)>;
|
|
214
|
+
default: undefined;
|
|
215
|
+
};
|
|
216
|
+
getLocaleName: {
|
|
217
|
+
type: PropType<() => string | null>;
|
|
218
|
+
default: undefined;
|
|
219
|
+
};
|
|
220
|
+
switchLocale: {
|
|
221
|
+
type: PropType<(locale: string) => void>;
|
|
222
|
+
default: undefined;
|
|
223
|
+
};
|
|
224
|
+
localeRoute: {
|
|
225
|
+
type: PropType<(to: string | {
|
|
226
|
+
path?: string;
|
|
227
|
+
}, locale?: string) => string | {
|
|
228
|
+
path?: string;
|
|
229
|
+
}>;
|
|
230
|
+
default: undefined;
|
|
231
|
+
};
|
|
232
|
+
}>, () => VNode< RendererNode, RendererElement, {
|
|
233
|
+
[key: string]: any;
|
|
234
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
235
|
+
customLabels: {
|
|
236
|
+
type: PropType<Record<string, string>>;
|
|
237
|
+
default: () => {};
|
|
238
|
+
};
|
|
239
|
+
customWrapperStyle: {
|
|
240
|
+
type: PropType<CSSProperties>;
|
|
241
|
+
default: () => {};
|
|
242
|
+
};
|
|
243
|
+
customButtonStyle: {
|
|
244
|
+
type: PropType<CSSProperties>;
|
|
245
|
+
default: () => {};
|
|
246
|
+
};
|
|
247
|
+
customDropdownStyle: {
|
|
248
|
+
type: PropType<CSSProperties>;
|
|
249
|
+
default: () => {};
|
|
250
|
+
};
|
|
251
|
+
customItemStyle: {
|
|
252
|
+
type: PropType<CSSProperties>;
|
|
253
|
+
default: () => {};
|
|
254
|
+
};
|
|
255
|
+
customLinkStyle: {
|
|
256
|
+
type: PropType<CSSProperties>;
|
|
257
|
+
default: () => {};
|
|
258
|
+
};
|
|
259
|
+
customActiveLinkStyle: {
|
|
260
|
+
type: PropType<CSSProperties>;
|
|
261
|
+
default: () => {};
|
|
262
|
+
};
|
|
263
|
+
/**
|
|
264
|
+
* Inline style applied to the switcher button when the *current* locale is
|
|
265
|
+
* marked as `disabled: true` in the locale config.
|
|
266
|
+
*
|
|
267
|
+
* Note: disabled locales are omitted from the dropdown list, but the current
|
|
268
|
+
* locale label is still shown on the button.
|
|
269
|
+
*/
|
|
270
|
+
customDisabledLinkStyle: {
|
|
271
|
+
type: PropType<CSSProperties>;
|
|
272
|
+
default: () => {};
|
|
273
|
+
};
|
|
274
|
+
customIconStyle: {
|
|
275
|
+
type: PropType<CSSProperties>;
|
|
276
|
+
default: () => {};
|
|
277
|
+
};
|
|
278
|
+
locales: {
|
|
279
|
+
type: PropType<Locale[]>;
|
|
280
|
+
default: undefined;
|
|
281
|
+
};
|
|
282
|
+
currentLocale: {
|
|
283
|
+
type: PropType<string | (() => string)>;
|
|
284
|
+
default: undefined;
|
|
285
|
+
};
|
|
286
|
+
getLocaleName: {
|
|
287
|
+
type: PropType<() => string | null>;
|
|
288
|
+
default: undefined;
|
|
289
|
+
};
|
|
290
|
+
switchLocale: {
|
|
291
|
+
type: PropType<(locale: string) => void>;
|
|
292
|
+
default: undefined;
|
|
293
|
+
};
|
|
294
|
+
localeRoute: {
|
|
295
|
+
type: PropType<(to: string | {
|
|
296
|
+
path?: string;
|
|
297
|
+
}, locale?: string) => string | {
|
|
298
|
+
path?: string;
|
|
299
|
+
}>;
|
|
300
|
+
default: undefined;
|
|
301
|
+
};
|
|
302
302
|
}>> & Readonly<{}>, {
|
|
303
|
-
localeRoute: (to: string | {
|
|
304
|
-
path?: string;
|
|
305
|
-
}, locale?: string) => string | {
|
|
306
|
-
path?: string;
|
|
307
|
-
};
|
|
308
|
-
customLabels: Record<string, string>;
|
|
309
|
-
customWrapperStyle: CSSProperties;
|
|
310
|
-
customButtonStyle: CSSProperties;
|
|
311
|
-
customDropdownStyle: CSSProperties;
|
|
312
|
-
customItemStyle: CSSProperties;
|
|
313
|
-
customLinkStyle: CSSProperties;
|
|
314
|
-
customActiveLinkStyle: CSSProperties;
|
|
315
|
-
customDisabledLinkStyle: CSSProperties;
|
|
316
|
-
customIconStyle: CSSProperties;
|
|
317
|
-
locales: Locale[];
|
|
318
|
-
currentLocale: string | (() => string);
|
|
319
|
-
getLocaleName: () => string | null;
|
|
320
|
-
switchLocale: (locale: string) => void;
|
|
303
|
+
localeRoute: (to: string | {
|
|
304
|
+
path?: string;
|
|
305
|
+
}, locale?: string) => string | {
|
|
306
|
+
path?: string;
|
|
307
|
+
};
|
|
308
|
+
customLabels: Record<string, string>;
|
|
309
|
+
customWrapperStyle: CSSProperties;
|
|
310
|
+
customButtonStyle: CSSProperties;
|
|
311
|
+
customDropdownStyle: CSSProperties;
|
|
312
|
+
customItemStyle: CSSProperties;
|
|
313
|
+
customLinkStyle: CSSProperties;
|
|
314
|
+
customActiveLinkStyle: CSSProperties;
|
|
315
|
+
customDisabledLinkStyle: CSSProperties;
|
|
316
|
+
customIconStyle: CSSProperties;
|
|
317
|
+
locales: Locale[];
|
|
318
|
+
currentLocale: string | (() => string);
|
|
319
|
+
getLocaleName: () => string | null;
|
|
320
|
+
switchLocale: (locale: string) => void;
|
|
321
321
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
322
322
|
|
|
323
|
-
export declare const I18nT: DefineComponent<ExtractPropTypes<
|
|
324
|
-
keypath: {
|
|
325
|
-
type: PropType<TranslationKey>;
|
|
326
|
-
required: true;
|
|
327
|
-
};
|
|
328
|
-
plural: {
|
|
329
|
-
type: PropType<number | string>;
|
|
330
|
-
};
|
|
331
|
-
tag: {
|
|
332
|
-
type: PropType<string>;
|
|
333
|
-
default: string;
|
|
334
|
-
};
|
|
335
|
-
params: {
|
|
336
|
-
type: PropType<Record<string, string | number | boolean>>;
|
|
337
|
-
default: () => {};
|
|
338
|
-
};
|
|
339
|
-
defaultValue: {
|
|
340
|
-
type: PropType<string>;
|
|
341
|
-
default: string;
|
|
342
|
-
};
|
|
343
|
-
html: {
|
|
344
|
-
type: PropType<boolean>;
|
|
345
|
-
default: boolean;
|
|
346
|
-
};
|
|
347
|
-
hideIfEmpty: {
|
|
348
|
-
type: PropType<boolean>;
|
|
349
|
-
default: boolean;
|
|
350
|
-
};
|
|
351
|
-
customPluralRule: {
|
|
352
|
-
type: PropType<PluralFunc>;
|
|
353
|
-
default: null;
|
|
354
|
-
};
|
|
355
|
-
number: {
|
|
356
|
-
type: PropType<number | string>;
|
|
357
|
-
};
|
|
358
|
-
date: {
|
|
359
|
-
type: PropType<Date | string | number>;
|
|
360
|
-
};
|
|
361
|
-
relativeDate: {
|
|
362
|
-
type: PropType<Date | string | number>;
|
|
363
|
-
};
|
|
364
|
-
}>, () => string | VNode<RendererNode, RendererElement, {
|
|
365
|
-
[key: string]: any;
|
|
366
|
-
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<
|
|
367
|
-
keypath: {
|
|
368
|
-
type: PropType<TranslationKey>;
|
|
369
|
-
required: true;
|
|
370
|
-
};
|
|
371
|
-
plural: {
|
|
372
|
-
type: PropType<number | string>;
|
|
373
|
-
};
|
|
374
|
-
tag: {
|
|
375
|
-
type: PropType<string>;
|
|
376
|
-
default: string;
|
|
377
|
-
};
|
|
378
|
-
params: {
|
|
379
|
-
type: PropType<Record<string, string | number | boolean>>;
|
|
380
|
-
default: () => {};
|
|
381
|
-
};
|
|
382
|
-
defaultValue: {
|
|
383
|
-
type: PropType<string>;
|
|
384
|
-
default: string;
|
|
385
|
-
};
|
|
386
|
-
html: {
|
|
387
|
-
type: PropType<boolean>;
|
|
388
|
-
default: boolean;
|
|
389
|
-
};
|
|
390
|
-
hideIfEmpty: {
|
|
391
|
-
type: PropType<boolean>;
|
|
392
|
-
default: boolean;
|
|
393
|
-
};
|
|
394
|
-
customPluralRule: {
|
|
395
|
-
type: PropType<PluralFunc>;
|
|
396
|
-
default: null;
|
|
397
|
-
};
|
|
398
|
-
number: {
|
|
399
|
-
type: PropType<number | string>;
|
|
400
|
-
};
|
|
401
|
-
date: {
|
|
402
|
-
type: PropType<Date | string | number>;
|
|
403
|
-
};
|
|
404
|
-
relativeDate: {
|
|
405
|
-
type: PropType<Date | string | number>;
|
|
406
|
-
};
|
|
323
|
+
export declare const I18nT: DefineComponent<ExtractPropTypes<{
|
|
324
|
+
keypath: {
|
|
325
|
+
type: PropType<TranslationKey>;
|
|
326
|
+
required: true;
|
|
327
|
+
};
|
|
328
|
+
plural: {
|
|
329
|
+
type: PropType<number | string>;
|
|
330
|
+
};
|
|
331
|
+
tag: {
|
|
332
|
+
type: PropType<string>;
|
|
333
|
+
default: string;
|
|
334
|
+
};
|
|
335
|
+
params: {
|
|
336
|
+
type: PropType<Record<string, string | number | boolean>>;
|
|
337
|
+
default: () => {};
|
|
338
|
+
};
|
|
339
|
+
defaultValue: {
|
|
340
|
+
type: PropType<string>;
|
|
341
|
+
default: string;
|
|
342
|
+
};
|
|
343
|
+
html: {
|
|
344
|
+
type: PropType<boolean>;
|
|
345
|
+
default: boolean;
|
|
346
|
+
};
|
|
347
|
+
hideIfEmpty: {
|
|
348
|
+
type: PropType<boolean>;
|
|
349
|
+
default: boolean;
|
|
350
|
+
};
|
|
351
|
+
customPluralRule: {
|
|
352
|
+
type: PropType<PluralFunc>;
|
|
353
|
+
default: null;
|
|
354
|
+
};
|
|
355
|
+
number: {
|
|
356
|
+
type: PropType<number | string>;
|
|
357
|
+
};
|
|
358
|
+
date: {
|
|
359
|
+
type: PropType<Date | string | number>;
|
|
360
|
+
};
|
|
361
|
+
relativeDate: {
|
|
362
|
+
type: PropType<Date | string | number>;
|
|
363
|
+
};
|
|
364
|
+
}>, () => string | VNode< RendererNode, RendererElement, {
|
|
365
|
+
[key: string]: any;
|
|
366
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
367
|
+
keypath: {
|
|
368
|
+
type: PropType<TranslationKey>;
|
|
369
|
+
required: true;
|
|
370
|
+
};
|
|
371
|
+
plural: {
|
|
372
|
+
type: PropType<number | string>;
|
|
373
|
+
};
|
|
374
|
+
tag: {
|
|
375
|
+
type: PropType<string>;
|
|
376
|
+
default: string;
|
|
377
|
+
};
|
|
378
|
+
params: {
|
|
379
|
+
type: PropType<Record<string, string | number | boolean>>;
|
|
380
|
+
default: () => {};
|
|
381
|
+
};
|
|
382
|
+
defaultValue: {
|
|
383
|
+
type: PropType<string>;
|
|
384
|
+
default: string;
|
|
385
|
+
};
|
|
386
|
+
html: {
|
|
387
|
+
type: PropType<boolean>;
|
|
388
|
+
default: boolean;
|
|
389
|
+
};
|
|
390
|
+
hideIfEmpty: {
|
|
391
|
+
type: PropType<boolean>;
|
|
392
|
+
default: boolean;
|
|
393
|
+
};
|
|
394
|
+
customPluralRule: {
|
|
395
|
+
type: PropType<PluralFunc>;
|
|
396
|
+
default: null;
|
|
397
|
+
};
|
|
398
|
+
number: {
|
|
399
|
+
type: PropType<number | string>;
|
|
400
|
+
};
|
|
401
|
+
date: {
|
|
402
|
+
type: PropType<Date | string | number>;
|
|
403
|
+
};
|
|
404
|
+
relativeDate: {
|
|
405
|
+
type: PropType<Date | string | number>;
|
|
406
|
+
};
|
|
407
407
|
}>> & Readonly<{}>, {
|
|
408
|
-
html: boolean;
|
|
409
|
-
tag: string;
|
|
410
|
-
params: Record<string, string | number | boolean>;
|
|
411
|
-
defaultValue: string;
|
|
412
|
-
hideIfEmpty: boolean;
|
|
413
|
-
customPluralRule: PluralFunc;
|
|
408
|
+
html: boolean;
|
|
409
|
+
tag: string;
|
|
410
|
+
params: Record<string, string | number | boolean>;
|
|
411
|
+
defaultValue: string;
|
|
412
|
+
hideIfEmpty: boolean;
|
|
413
|
+
customPluralRule: PluralFunc;
|
|
414
414
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
415
415
|
|
|
416
416
|
export { interpolate }
|
|
@@ -498,38 +498,38 @@ export declare interface UseI18nOptions {
|
|
|
498
498
|
}
|
|
499
499
|
|
|
500
500
|
export declare function useLocaleHead(options?: UseLocaleHeadOptions): {
|
|
501
|
-
metaObject: Ref<
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
501
|
+
metaObject: Ref<{
|
|
502
|
+
htmlAttrs: {
|
|
503
|
+
lang?: string | undefined;
|
|
504
|
+
dir?: "ltr" | "rtl" | "auto" | undefined;
|
|
505
|
+
};
|
|
506
|
+
link: {
|
|
507
|
+
[x: string]: string | undefined;
|
|
508
|
+
rel: string;
|
|
509
|
+
href: string;
|
|
510
|
+
hreflang?: string | undefined;
|
|
511
|
+
}[];
|
|
512
|
+
meta: {
|
|
513
|
+
[x: string]: string;
|
|
514
|
+
property: string;
|
|
515
|
+
content: string;
|
|
516
|
+
}[];
|
|
517
517
|
}, MetaObject | {
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
518
|
+
htmlAttrs: {
|
|
519
|
+
lang?: string | undefined;
|
|
520
|
+
dir?: "ltr" | "rtl" | "auto" | undefined;
|
|
521
|
+
};
|
|
522
|
+
link: {
|
|
523
|
+
[x: string]: string | undefined;
|
|
524
|
+
rel: string;
|
|
525
|
+
href: string;
|
|
526
|
+
hreflang?: string | undefined;
|
|
527
|
+
}[];
|
|
528
|
+
meta: {
|
|
529
|
+
[x: string]: string;
|
|
530
|
+
property: string;
|
|
531
|
+
content: string;
|
|
532
|
+
}[];
|
|
533
533
|
}>;
|
|
534
534
|
updateMeta: (canonicalQueryWhitelist?: string[]) => void;
|
|
535
535
|
};
|
|
@@ -584,3 +584,27 @@ export declare interface VueI18nOptions {
|
|
|
584
584
|
}
|
|
585
585
|
|
|
586
586
|
export { }
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
// Extend '@vue/runtime-core' module so types work correctly in all environments
|
|
591
|
+
declare module '@vue/runtime-core' {
|
|
592
|
+
interface ComponentCustomProperties {
|
|
593
|
+
$t: (key: TranslationKey, params?: Params, defaultValue?: string | null, routeName?: string) => CleanTranslation
|
|
594
|
+
$ts: (key: TranslationKey, params?: Params, defaultValue?: string, routeName?: string) => string
|
|
595
|
+
$tc: (key: TranslationKey, count: number | Params, defaultValue?: string) => string
|
|
596
|
+
$tn: {
|
|
597
|
+
(value: number, options?: Intl.NumberFormatOptions): string
|
|
598
|
+
(value: number, key: string, overrides?: Intl.NumberFormatOptions): string
|
|
599
|
+
(value: number, key: string, locale: string, overrides?: Intl.NumberFormatOptions): string
|
|
600
|
+
}
|
|
601
|
+
$td: {
|
|
602
|
+
(value: Date | number | string, options?: Intl.DateTimeFormatOptions): string
|
|
603
|
+
(value: Date | number | string, key: string, overrides?: Intl.DateTimeFormatOptions): string
|
|
604
|
+
(value: Date | number | string, key: string, locale: string, overrides?: Intl.DateTimeFormatOptions): string
|
|
605
|
+
}
|
|
606
|
+
$tdr: (value: Date | number | string, options?: Intl.RelativeTimeFormatOptions) => string
|
|
607
|
+
$has: (key: TranslationKey, routeName?: string) => boolean
|
|
608
|
+
$i18n: any
|
|
609
|
+
}
|
|
610
|
+
}
|