Uploaded July 2022 | Updated December 2026, 3 hours ago
Web Engines Hackfest 2022 - webengineshackfest.org/2022
Title: Modernizing Internationalization in Gecko and SpiderMonkey
Author: Daniel Minor
Date: 13/06/2022
Slides: webengineshackfest.org/2022/slides/modernizing-internationalization-in-gecko-and-spidermonkey-by-daniel-minor.pdf
In 2021, the internationalization team at Mozilla refactored the
internationalization system in Gecko and SpiderMonkey, from an organically
grown patchwork of APIs and callsites, to the first purposefully designed
internationalization architecture in the history of the engine. We built an
abstraction layer based upon ECMA-402 standard for internationalization in
JavaScript and unified all of our code to use these interfaces. We can now
localize Firefox using the same APIs we expose to SpiderMonkey and the web,
reducing duplication and ensuring consistency of results. Beyond this, we can
now experiment with replacing ICU4C with ICU4X, a library we are developing
with Google and other partners. Written in Rust, it is purpose designed for the
needs of the web: smaller, faster, more secure, and developed to support
ECMA-402 directly. In 2022, building on our unification project, we are
beginning to integrate ICU4X into Gecko and SpiderMonkey. In this presentation,
we’re going to look at internationalization, how it is implemented in a web
engine, and Mozilla’s experiences integrating a new internationalization
library.
Web Engines Hackfest 2022 - webengineshackfest.org/2022
Title: Modernizing Internationalization in Gecko and SpiderMonkey
Author: Daniel Minor
Date: 13/06/2022
Slides: webengineshackfest.org/2022/slides/modernizing-internationalization-in-gecko-and-spidermonkey-by-daniel-minor.pdf
In 2021, the internationalization team at Mozilla refactored the
internationalization system in Gecko and SpiderMonkey, from an organically
grown patchwork of APIs and callsites, to the first purposefully designed
internationalization architecture in the history of the engine. We built an
abstraction layer based upon ECMA-402 standard for internationalization in
JavaScript and unified all of our code to use these interfaces. We can now
localize Firefox using the same APIs we expose to SpiderMonkey and the web,
reducing duplication and ensuring consistency of results. Beyond this, we can
now experiment with replacing ICU4C with ICU4X, a library we are developing
with Google and other partners. Written in Rust, it is purpose designed for the
needs of the web: smaller, faster, more secure, and developed to support
ECMA-402 directly. In 2022, building on our unification project, we are
beginning to integrate ICU4X into Gecko and SpiderMonkey. In this presentation,
we’re going to look at internationalization, how it is implemented in a web
engine, and Mozilla’s experiences integrating a new internationalization
library.










