Bug 1880108 - Pass the locale list when constructing l10n in datetimebox. r=reusable-components-reviewers,tgiles

The datetime input is inconsistent with other inputs when using spoof
English: its placeholder is not translated, unlike the default values
and texts of all the other inputs.

Differential Revision: https://phabricator.services.mozilla.com/D201726
This commit is contained in:
Pier Angelo Vendrame 2024-04-29 16:53:57 +00:00
parent 7960e13348
commit a96f7af354

View file

@ -22,7 +22,9 @@ this.DateTimeBoxWidget = class {
// createEditFieldAndAppend() call. // createEditFieldAndAppend() call.
this.l10n = new this.window.DOMLocalization( this.l10n = new this.window.DOMLocalization(
["toolkit/global/datetimebox.ftl"], ["toolkit/global/datetimebox.ftl"],
/* aSync = */ true /* aSync = */ true,
undefined,
this.window.getWebExposedLocales()
); );
} }