l10n library

Classes

Bidi
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.
BidiFormatter
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
DateFormat is for formatting and parsing dates in a locale-sensitive manner. [...]
Intl
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. [...]
L10N
L10NImpl
Handelt eine Message die später übersetzt werden kann. [...]
MicroMoney
Used primarily for currency formatting, this number-like class stores millionths of a currency unit, typically as an Int64. [...]
NumberFormat
Provides the ability to format a number in a locale-specific way. The format is specified as a pattern using a subset of the ICU formatting patterns. [...]
TextDirection
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. [...]
Translatable
Interface für alle Klassen die übersetzt werden können

Functions

gettext(String msgid, [ Map<String, dynamic> vars = const {} ]) → String
Shortcut to get a L10N object
initLanguageSettings(Future<String> findLocale(), Future<bool> initMessages(String locale)) → Future<String>
Initialize the Intl-Framework [...]
l10n(String msgid, [ Map<String, dynamic> vars = const {} ]) → String
Shortcut to get a L10N object [...]
ordinalDayFromMarchFirst(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
toBeginningOfSentenceCase(String input, [ String locale ]) → String
Convert a string to beginning of sentence case, in a way appropriate to the locale. [...]
tr(String msgid, [ Map<String, dynamic> vars = const {} ]) → String
Shortcut to get a L10N object