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.
This is part of the
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.
There is also a simple example application that can be found in the example/basic directory.
- 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. [...]
- Bidi stands for Bi-directional text. According to http://en.wikipedia.org/wiki/Bi-directional_text: 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. [...]
int month, int day) → int
- Return the day of the year counting March 1st as 1, after which the number of days per month is constant, so it's easier to calculate. Formula from http://en.wikipedia.org/wiki/Ordinal_date
String input, [String locale]) → String
- Convert a string to beginning of sentence case, in a way appropriate to the locale. [...]