forked from mirrors/gecko-dev
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:
parent
7960e13348
commit
a96f7af354
1 changed files with 3 additions and 1 deletions
|
|
@ -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()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue