Open Bug 1922240 Opened 1 year ago Updated 1 year ago

[meta] Replace compare-locales with moz.l10n

Categories

(Localization Infrastructure and Tools :: General, task)

Tracking

(Not tracked)

People

(Reporter: eemeli, Assigned: eemeli)

References

Details

(Keywords: meta)

As a part of the work on MessageFormat 2, we've identified that its data model provides a very useful representation for localizable messages. By separately mapping each of the localization formats we use to the same data model, we can build a common set of tools and utilities based on the data model representation of messages, rather than relying on vertically integrated tools as we've done so far.

Much of our current tooling is built on top of compare-locales, which provides a shared representation of each resource, but not of the message contents. The way that it represents resources and messages is also focused on retaining the exact characters that were used in the original file, to support localization workflows that we no longer rely on.

Rather than refactoring and extending compare-locales (which was initially attempted, see compare-locales#19 and other work in its data-model branch), we're instead building moz.l10n as a new library of Python tools and utilities for working with localization files.

This is a meta bug for tracking the overall work of introducing moz.l10n to mozilla-central, and using it instead of compare-locales as appropriate.

Depends on: 1922245
You need to log in before you can comment on or make changes to this bug.