mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 12:15:33 +00:00
9e3c527610
Differential Revision: https://phabricator.services.mozilla.com/D31554 --HG-- extra : moz-landing-system : lando
25 lines
889 B
Plaintext
25 lines
889 B
Plaintext
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
[scriptable, uuid(7d468600-551f-4fe0-98c9-92a53b63ec8d)]
|
|
interface mozILocalization : nsISupports
|
|
{
|
|
unsigned long addResourceIds(in Array<AString> resourceIds, in bool aEager);
|
|
unsigned long removeResourceIds(in Array<AString> resourceIds);
|
|
void onChange();
|
|
|
|
Promise formatMessages(in Array<jsval> aKeys);
|
|
Promise formatValues(in Array<jsval> aKeys);
|
|
Promise formatValue(in AString aId, [optional] in jsval aArgs);
|
|
};
|
|
|
|
[scriptable, uuid(96632d26-1422-12e9-b1ce-9bb586acd241)]
|
|
interface mozILocalizationJSM : nsISupports
|
|
{
|
|
mozILocalization getLocalization();
|
|
};
|