Closed
Bug 1642423
Opened 4 years ago
Closed 4 years ago
document.l10n.formatValues should accept strings as well as L10nKeys
Categories
(Core :: Internationalization, enhancement)
Core
Internationalization
Tracking
()
RESOLVED
FIXED
mozilla79
Tracking | Status | |
---|---|---|
firefox79 | --- | fixed |
People
(Reporter: mossop, Assigned: mossop)
References
Details
Attachments
(1 file)
Formatting multiple values is pretty verbose in the common case:
await document.l10n.formatValues([
{ id: "value1" },
{ id: "value2" },
{ id: "value3" },
]);
If instead elements of the array could optionally be strings it could be simpler:
await document.l10n.formatValues([
"value1",
"value2",
"value3",
]);
Updated•4 years ago
|
Component: Localization → Internationalization
Assignee | ||
Comment 1•4 years ago
|
||
Updated•4 years ago
|
Assignee: nobody → dtownsend
Status: NEW → ASSIGNED
Updated•4 years ago
|
Severity: -- → S3
Pushed by dtownsend@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3b5928fd85e5 document.l10n.formatValues should accept simple strings as well as L10nKeys. r=zbraniecki
Comment 3•4 years ago
•
|
||
Backed out for causing failure at test_getAttributes.html.
Backout link: https://hg.mozilla.org/integration/autoland/rev/a360635bc81723e26ff35509ee5a5fd38268a5b6
Log link: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=305267542&repo=autoland&lineNumber=5434
Log link: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=305267171&repo=autoland&lineNumber=46795
Log link: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=305271067&repo=autoland&lineNumber=2565
Flags: needinfo?(dtownsend)
Pushed by dtownsend@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/329f82b99110 document.l10n.formatValues should accept simple strings as well as L10nKeys. r=zbraniecki
Comment 5•4 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
status-firefox79:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
Assignee | ||
Updated•4 years ago
|
Flags: needinfo?(dtownsend)
You need to log in
before you can comment on or make changes to this bug.
Description
•