Migrate webconsole.properties to Fluent
Categories
(DevTools :: Console, task, P3)
Tracking
(firefox163 fixed)
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: flod, Assigned: flod)
Details
Attachments
(5 external files)
Content seems relatively stable and straightforward to migrate to Fluent. It would also get rid of a handful of the remaining plural strings.
| Assignee | ||
Comment 1•6 days ago
|
||
Format timestamp with the internationalization library instead of exposing a localizable string.
Enforce Latin to keep timestamps uniform across locales.
| Assignee | ||
Comment 2•6 days ago
|
||
MessageIcon looks up icon titles by level instead of passing localization keys.
Frame and StackTrace use the shared Web Console l10n helper instead of loading
webconsole.properties directly.
| Assignee | ||
Comment 3•6 days ago
|
||
The mock formats the en-US FTL files from the tree with @fluent/bundle, so that
tests can keep asserting on real English strings once the Web Console uses
Fluent. The alternative would be to check for IDs in test, but that would
not easily identify errors with variables.
| Assignee | ||
Comment 4•6 days ago
|
||
The strings are migrated from webconsole.properties, except unused ones
(webconsole.toggleFilterButton.tooltip, compactToolbar.label, logtrace.title,
openNodeInInspector).
Command results go to the existing webconsole-commands.ftl.
| Assignee | ||
Comment 5•6 days ago
|
||
Command errors are created on the server, which sends .properties keys with
positional arguments. Treat these keys as error identifiers.
The protocol is unchanged, so that clients and servers of different builds
stay compatible, and the client maps the keys to Fluent IDs.
Use DOM overlays instead of interpolating placeholders for strings with
<span> elements.
Updated•5 days ago
|
Comment 7•3 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/a9240a28e9bc
https://hg.mozilla.org/mozilla-central/rev/920df672068b
https://hg.mozilla.org/mozilla-central/rev/ec9dbf97bd60
https://hg.mozilla.org/mozilla-central/rev/787c6a4031be
https://hg.mozilla.org/mozilla-central/rev/ec191d7a534c
Description
•