|
6 | 6 |
|
7 | 7 | Composer Interfaces
|
8 | 8 |
|
| 9 | +This is the interface for being used for Vue 3 Composition API. |
| 10 | + |
9 | 11 | <b>Signature:</b>
|
10 | 12 |
|
11 | 13 | ```typescript
|
12 | 14 | export declare type Composer = {
|
| 15 | + /*! |
| 16 | + * properties |
| 17 | + */ |
13 | 18 | locale: WritableComputedRef<Locale>;
|
14 | 19 | fallbackLocale: WritableComputedRef<FallbackLocale>;
|
| 20 | + inheritLocale: boolean; |
15 | 21 | readonly availableLocales: Locale[];
|
16 | 22 | readonly messages: ComputedRef<LocaleMessages>;
|
17 | 23 | readonly datetimeFormats: ComputedRef<DateTimeFormats>;
|
18 | 24 | readonly numberFormats: ComputedRef<NumberFormats>;
|
19 | 25 | readonly modifiers: LinkedModifiers;
|
20 | 26 | readonly pluralRules?: PluralizationRules;
|
| 27 | + readonly isGlobal: boolean; |
21 | 28 | missingWarn: boolean | RegExp;
|
22 | 29 | fallbackWarn: boolean | RegExp;
|
23 | 30 | fallbackRoot: boolean;
|
24 | 31 | fallbackFormat: boolean;
|
25 | 32 | warnHtmlMessage: boolean;
|
26 | 33 | __id: number;
|
| 34 | + /*! |
| 35 | + * methods |
| 36 | + */ |
27 | 37 | t(key: Path): string;
|
28 | 38 | t(key: Path, plural: number): string;
|
29 | 39 | t(key: Path, plural: number, options: TranslateOptions): string;
|
@@ -61,7 +71,6 @@ export declare type Composer = {
|
61 | 71 | setPostTranslationHandler(handler: PostTranslationHandler | null): void;
|
62 | 72 | getMissingHandler(): MissingHandler | null;
|
63 | 73 | setMissingHandler(handler: MissingHandler | null): void;
|
64 |
| - install: Plugin; |
65 | 74 | __transrateVNode(...args: unknown[]): unknown;
|
66 | 75 | __numberParts(...args: unknown[]): string | Intl.NumberFormatPart[];
|
67 | 76 | __datetimeParts(...args: unknown[]): string | Intl.DateTimeFormatPart[];
|
|
0 commit comments