зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1440188 - Fix eslint error from adding intl/l10n to eslint. r=gandalf
MozReview-Commit-ID: 8um44N5dZUv --HG-- extra : rebase_source : 5d1a01c53a585bca9e396543bf29e3ee3b8565d9
This commit is contained in:
Родитель
8f3060510e
Коммит
e3306c96dc
|
@ -118,8 +118,6 @@ class L10nError extends Error {
|
|||
* be localized into a different language - for example DevTools.
|
||||
*/
|
||||
function defaultGenerateMessages(resourceIds) {
|
||||
const availableLocales = L10nRegistry.getAvailableLocales();
|
||||
|
||||
const appLocales = Services.locale.getAppLocalesAsLangTags();
|
||||
return L10nRegistry.generateContexts(appLocales, resourceIds);
|
||||
}
|
||||
|
@ -253,14 +251,14 @@ class Localization {
|
|||
* Register weak observers on events that will trigger cache invalidation
|
||||
*/
|
||||
registerObservers() {
|
||||
Services.obs.addObserver(this, 'intl:app-locales-changed', true);
|
||||
Services.obs.addObserver(this, "intl:app-locales-changed", true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Unregister observers on events that will trigger cache invalidation
|
||||
*/
|
||||
unregisterObservers() {
|
||||
Services.obs.removeObserver(this, 'intl:app-locales-changed');
|
||||
Services.obs.removeObserver(this, "intl:app-locales-changed");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче