A lightweight modular library for internationalization (i18n) functionality.
- Formatting for dates, numbers, and lists. (TODO)
- Collation. (TODO)
- Wraps around ICU4X on native or web platforms. (TODO)
- Wraps around the built-in browser functionalities on the web.
- Select which locales you want to use the browser for through an
EcmaPolicy
.
- Select which locales you want to use the browser for through an
The functionalities are called through getters on an Intl
instance, i.e.
final numberFormat = Intl(
ecmaPolicy: const AlwaysEcma(),
locale: 'en_US',
).numberFormat;
print(numberFormat.percent().format(0.5)); //prints 50%