* @see https://searchfox.org/mozilla-esr115/source/dom/webidl/Localization.webidl
| 28 | * @see https://searchfox.org/mozilla-esr115/source/dom/webidl/Localization.webidl |
| 29 | */ |
| 30 | interface Localization<I extends string = string> { |
| 31 | ( |
| 32 | resourceIds: L10nResourceId[], |
| 33 | sync?: boolean, |
| 34 | registry?: L10nRegistry, |
| 35 | locales?: string[], |
| 36 | ): Localization; |
| 37 | |
| 38 | addResourceIds(resourceIds: L10nResourceId[]): void; |
| 39 | |
| 40 | removeResourceIds(resourceIds: L10nResourceId[]): number; |
| 41 | |
| 42 | formatValue(id: I, args?: L10nArgs): Promise<string | null>; |
| 43 | |
| 44 | formatValues(keys: L10nKey<I>[]): Promise<(string | null)[]>; |
| 45 | |
| 46 | formatMessages(keys: L10nKey<I>[]): Promise<(L10nMessage | null)[]>; |
| 47 | |
| 48 | setAsync(): void; |
| 49 | |
| 50 | formatValueSync(id: I, args?: L10nArgs): string | null; |
| 51 | |
| 52 | formatValuesSync(keys: L10nKey<I>[]): (string | null)[]; |
| 53 | |
| 54 | formatMessagesSync(keys: L10nKey<I>[]): (L10nMessage | null)[]; |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * @see https://searchfox.org/mozilla-esr115/source/dom/webidl/DOMLocalization.webidl |
no outgoing calls
no test coverage detected