This library provides internationalization and localization. This includes message formatting and replacement, date and number formatting and parsing, and utilities for working with Bidirectional text.
For things that require locale or other data, there are multiple different ways of making that data available, which may require importing different libraries. See the class comments for more details.
- This provides utility methods for working with bidirectional text. All of the methods are static, and are organized into a class primarily to group them together for documentation and discoverability.
- Bidi stands for Bi-directional text. According to Wikipedia: Bi-directional text is text containing text in both text directionalities, both right-to-left (RTL) and left-to-right (LTR). It generally involves text containing different types of alphabets, but may also refer to boustrophedon, which is changing text directionality in each row.
- DateFormat is for formatting and parsing dates in a locale-sensitive manner.
The Intl class provides a common entry point for internationalization
related tasks. An Intl instance can be created for a particular locale
and used to create a date format via
anIntl.date(). Static methods on this class are also used in message formatting.
- Used primarily for currency formatting, this number-like class stores millionths of a currency unit, typically as an Int64.
- Provides the ability to format a number in a locale-specific way.
- Represents directionality of text.