[tracking] Add Fluent API to WebExtensions
Categories
(Core :: Internationalization, enhancement, P3)
Tracking
()
People
(Reporter: zbraniecki, Unassigned)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
(Keywords: meta)
Attachments
(1 file, 6 obsolete files)
(deleted),
text/x-review-board-request
|
Details |
Reporter | ||
Comment 1•7 years ago
|
||
Reporter | ||
Comment 2•7 years ago
|
||
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 7•7 years ago
|
||
Updated•7 years ago
|
Comment 8•7 years ago
|
||
Comment 9•7 years ago
|
||
Reporter | ||
Comment 10•7 years ago
|
||
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Updated•6 years ago
|
Comment 14•6 years ago
|
||
mozreview-review |
Comment 15•6 years ago
|
||
mozreview-review-reply |
Comment 16•6 years ago
|
||
mozreview-review-reply |
Comment 17•6 years ago
|
||
mozreview-review |
Comment 18•6 years ago
|
||
mozreview-review |
Comment 19•6 years ago
|
||
Reporter | ||
Comment 20•6 years ago
|
||
Comment 21•6 years ago
|
||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 22•5 years ago
|
||
Comment 23•5 years ago
|
||
:gandalf, I just rebased and fixed up this patch a bit. The test isn't passing yet, but since you've done a bunch of work on document.l10n is this patch a dead end? ie, would we be better off extending document.l10n to extension pages? Do you have a rough idea how much work that would entail?
Reporter | ||
Comment 24•5 years ago
|
||
I think this is more a question for Mossop. He wrote the document.l10n exposed to content
approach. I'm not familiar with WebExt to understand if they always have a document associate with them that they can leverage or if this is the best approach.
Comment 25•5 years ago
|
||
A couple of thoughts:
For web-extensions, we don't want them to have access to Firefox' Fluent files. Which means that they'll likely want their own instance of an L10nRegistry.
For system add-ons, we might want to use Firefox Fluent files, as that's easier for l10n repacks.
We probably want to expose a DOMLocalization
, and not just a Localization
object?
How much overlap is there between this, content built-in pages, and in-page UA widgets (bug 1504363) ?
Detail note on the patch, we dropped the "Context" terminology all over our Fluent code, we'll want to convert that to localization
or bundle
.
Comment 26•5 years ago
|
||
(In reply to Axel Hecht [:Pike] from comment #25)
For web-extensions, we don't want them to have access to Firefox' Fluent files. Which means that they'll likely want their own instance of an L10nRegistry.
For system add-ons, we might want to use Firefox Fluent files, as that's easier for l10n repacks.
Right, my immediate goal was just to get something working for system addons which sounds simpler to me since it doesn't entail using a separate L10nRegistry.
We probably want to expose a
DOMLocalization
, and not just aLocalization
object?
Yes, this was an old patch that was written before DOMLocalization existed, I think we should probably just drop it and expand DOMLocalization to other context (assuming that's actually feasible, I don't know much about how it is implemented internally)
Updated•5 years ago
|
Comment 27•5 years ago
|
||
Comment 28•5 years ago
|
||
Comment 29•5 years ago
|
||
Updated•5 years ago
|
Comment 30•3 years ago
|
||
Comment on attachment 8969553 [details]
Bug 1425104: Part 2 - Add stub fluent API for built-in content pages.
Clearing old review flag so this doesn't show up in triage.
Updated•2 years ago
|
Description
•