Closed
Bug 1509609
Opened 6 years ago
Closed 6 years ago
Provide a sync version of generateBundles for L10nregistry
Categories
(Core :: Internationalization, enhancement, P3)
Core
Internationalization
Tracking
()
RESOLVED
FIXED
mozilla66
Tracking | Status | |
---|---|---|
firefox66 | --- | fixed |
People
(Reporter: zbraniecki, Assigned: zbraniecki)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
L10nRegistry is currently fully async which handles correctly the Fluent localization scenario.
But when we want to use Fluent for cases like mozIntl we need a sync version of the API.
The first use case will be bug 1509583.
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Comment 2•6 years ago
|
||
Comment on attachment 9028115 [details]
Bug 1509609 - Provide a sync version of generateBundles for L10nregistry. r?mossop
I know, I know. Nothing short of beauty. But welp. :)
The patch works - I just cloned the test suite and did `s/generateBundle/generateBundleSync/`, `s/async //` and `s/await //`.
Before I dive to document it (mostly to express that this is equivalent of sync XMLHttpRequest - do not use without getting a go-ahead from you or me), I'd like to check with you if you if this model of duplication is ok with you.
I don't love it, but it keeps the sync/async functions next to each other and shouldn't make the maintenance too much of a burden.
Attachment #9028115 -
Flags: feedback?(dtownsend)
Assignee | ||
Updated•6 years ago
|
Status: NEW → ASSIGNED
Updated•6 years ago
|
Attachment #9028115 -
Flags: feedback?(dtownsend) → feedback+
Updated•6 years ago
|
Attachment #9028115 -
Attachment description: Bug 1509609 - Provide a sync version of generateBundles for L10nregistry. → Bug 1509609 - Provide a sync version of generateBundles for L10nregistry. r?mossop
Pushed by zbraniecki@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7d8101dcf03a
Provide a sync version of generateBundles for L10nregistry. r=mossop
Comment 4•6 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox66:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
You need to log in
before you can comment on or make changes to this bug.
Description
•