Idea for a localization system

Many websites provide support for translations and localizations. And while there are already a bunch of ls* methods that allow localized formatting for dates, numbers, currencies, etc., there is currently no general way to provide localizations. (At least as far as I know. Please let me know if there is something!)

Java obviously already has a way to provide localized messages via MessageFormat. Though it seems to be limited in its functionality and also only allow to translate single strings.

Lately, I stumbled over the ICU MessageFormat 2.0 draft, which seems quite promising.
It is successor to the currently available version 1.0, which is already available in Java via the ICU4J library, and it is inspired by Fluent and FBT.
Browser implementors are also already working on a solution for JavaScript (ECMAScript) based on that.

Long story short, I suggest to add support for an internationalization system based on the ICU library.
As i18n is pretty common, I believe it should be added as a core functionality. Though it might also make sense to add it as an extension.

Happy to hear any feedback or other ideas!



sounds like a great idea for an extension