Book Image

Mastering Dart

By : Sergey Akopkokhyants
Book Image

Mastering Dart

By: Sergey Akopkokhyants

Overview of this book

Table of Contents (19 chapters)
Mastering Dart
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

The Intl library


The Intl library can help you design and develop globalized server and web client applications. It supports all major locales and sublanguage pairs. As all information on the screen represents a set of strings, we must translate the other types of objects into the string format with special formatters provided by the Intl library. Translated versions of displayed strings are bundled in separate text files. The Intl library contains a class of the same name that is used to work with messages. The Intl library considers numbers, dates, and messages in different internalization areas. Each area is intentionally initialized separately to reduce the application size and avoid loading unnecessary resources. The internalization of numbers and dates is implemented via formatters. Messages are internalized through special functions and can be externalized into files in the Application Resource Bundle (ARB) format.

Changing a locale

By default, the current locale is set to the English...