Norbert Lindenberg a écrit :
The ECMAScript Internationalization API [...] provides web applications with the ability to format numbers, dates, and times and sort strings according to the rules of the language that the application is using, not the one that browser and OS default to.
If the OS doesn't support the language, those features are icing on the cake when there's no cake.
Only a minority of users are multilingual, and the first thing they do is install the support for the language they need on the OS. In Internet café and the like, you'll see also people installing multiple-language support on the OS, so that users get a correct support for it, with the adequate fonts. In places where the need is real, they frequently have a set of separate computer with each of them properly configured for one specific language.
and even users who aren't sometimes have to use browsers that don't support their language
ECMAScript i18n is not going to properly solve that problem
To implement that, we need good library support, and ICU fits the bill.
ICU is a massive, huge juggernaut. It fits the bill in professional application that have no download size constraints, and no requirement to support the low end of installed memory size. OS support is incredibly more efficient. It does require more work, and has less guaranties about always getting the same behavior. They both fit different needs and constraints. The professional application is also a context where properly formatting the string will be enough for the language support of a remote user who has installed OS support locally.
I wished for proper ECMAScript i18n support for years, but never that it'd forcefeed ICU on everybody.
_______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform