MCPcopy
hub / github.com/dvanoni/notero / Localization

Interface Localization

types/l10n.d.ts:30–55  ·  view source on GitHub ↗

* @see https://searchfox.org/mozilla-esr115/source/dom/webidl/Localization.webidl

Source from the content-addressed store, hash-verified

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

Callers 5

getLocalizedMessageMethod · 0.80
initSyncConfigsTableMethod · 0.80
PreferencesClass · 0.80
showMethod · 0.80
updateTextMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected