intl4x 0.1.0 intl4x: ^0.1.0 copied to clipboard
A lightweight modular library for internationalization (i18n) functionality.
A lightweight modular library for internationalization (i18n) functionality.
Features #
- Formatting for dates, numbers, and lists. (TODO)
- Collation. (TODO)
Implementation #
- 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
Example #
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%