gt-i18n@0.1.0
Overview
While our packages have traditionally focused on web development environments, the release of gt-i18n@0.1.0 marks a foundational step towards framework-agnostic JS internationalisation.
We believe this calls for a new library for two reasons: (1) the unique concerns of an opinionated library should be localised to a distinct package and (2) it provides a platform for separating pure-JS logic from framework-specific logic.
Although generaltranslation is also a runtime-agnostic library, it is—by design—not suitable for this purpose, as it is intended to serve as an unopinionated base layer for supporting i18n functionality.
What's Included
msg()- String registration and variable interpolationmFallback()andgtFallback()- Migration helpers for incremental adoption
Looking ahead
This library is still very much in its infancy, but expect to see more string-related i18n functionality in the future.