Closed Bug 2095871 Opened 9 days ago Closed 3 days ago

Migrate webconsole.properties to Fluent

Categories

(DevTools :: Console, task, P3)

task

Tracking

(firefox163 fixed)

RESOLVED FIXED
163 Branch
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.

Format timestamp with the internationalization library instead of exposing a localizable string.
Enforce Latin to keep timestamps uniform across locales.

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.

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.

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.

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.

Priority: -- → P3
Pushed by flodolo@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/4d2c3df99c2f https://hg.mozilla.org/integration/autoland/rev/a9240a28e9bc Part 1: Format Web Console timestamps with Intl.DateTimeFormat. r=devtools-reviewers,ochameau https://github.com/mozilla-firefox/firefox/commit/70d5b1d74905 https://hg.mozilla.org/integration/autoland/rev/920df672068b Part 2: Prepare Web Console call sites for the Fluent migration. r=devtools-reviewers,ochameau https://github.com/mozilla-firefox/firefox/commit/fe73a6f0f69a https://hg.mozilla.org/integration/autoland/rev/ec9dbf97bd60 Part 3: Add a Fluent Localization mock for the Web Console node tests. r=devtools-reviewers,ochameau https://github.com/mozilla-firefox/firefox/commit/b8e763a8bf7b https://hg.mozilla.org/integration/autoland/rev/787c6a4031be Part 4: Add Fluent strings for the Web Console. r=devtools-reviewers,fluent-reviewers,ochameau,bolsson https://github.com/mozilla-firefox/firefox/commit/355735272c00 https://hg.mozilla.org/integration/autoland/rev/ec191d7a534c Part 5: Switch the Web Console to Fluent. r=devtools-reviewers,ochameau
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: