gt-i18n@0.1.0
Overview
While our packages have traditionally focused on web development environments, the release of gt-i18n@0.1.0 represents a foundational step towards framework-agnostic JS internationalisation.
We believe this requirement 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 creates a platform to separate pure-JS logic from framework-specific logic.
Though generaltranslation is also a runtime-agnostic library, it is—by design—not suitable for this purpose as it is meant 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 Forward
This library is still in its early stages, but you can expect to see more string-related i18n functionality in the future.