[Go Faster] L10n for system addons (Page Shot in 54)
6a68 at mozilla.com
Tue Mar 14 21:00:49 UTC 2017
Thanks for the feedback. A quick update on the final l10n implementation
I wound up using the WebExtension i18n API in the addon, because it was by
far the simplest solution. Because this API falls back to a default locale
if strings are missing, it makes sense to ship one system addon containing
all locales, rather than many addons with one locale each.
To transform strings from Pontoon's format and file location to that
expected by the i18n API, I reused the pontoon-to-webext script from the
Snooze Tabs experiment (thanks to @flod, who pointed me at it). It worked
perfectly, and I believe Blake is going to publish it on npm as a
The content language vs UI language question is still open. By default,
WebExtension i18n uses the UI language, and the website will use the
content language (the Accept-Language header). It's not yet clear what we
should do if these languages differ; this issue is being tracked at .
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gofaster