Skip to content

Commit 158e32b

Browse files
eemeliearo@mozilla.com
authored andcommitted
Bug 1760013 - Replace custom localized ellipsis with Services.locale.ellipsis in devtools. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D267414
1 parent 786d8a9 commit 158e32b

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

devtools/shared/l10n.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,6 @@ function localizeMarkup(root) {
224224
}
225225
}
226226

227-
const sharedL10N = new LocalizationHelper(
228-
"devtools/shared/locales/shared.properties"
229-
);
230-
231227
/**
232228
* A helper for having the same interface as LocalizationHelper, but for more
233229
* than one file. Useful for abstracting l10n string locations.
@@ -269,5 +265,6 @@ exports.LocalizationHelper = LocalizationHelper;
269265
exports.localizeMarkup = localizeMarkup;
270266
exports.MultiLocalizationHelper = MultiLocalizationHelper;
271267
Object.defineProperty(exports, "ELLIPSIS", {
272-
get: () => sharedL10N.getStr("ellipsis"),
268+
get: () =>
269+
typeof Services == "undefined" ? "\u2026" : Services.locale.ellipsis,
273270
});

devtools/shared/locales/en-US/shared.properties

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)