locales library
The library's words, translated into eighteen languages.
A library of its own rather than part of material_plus_ui.dart, for the
reason the React package keeps them out of its barrel: a table is data, and
the only way to leave data out of an app is for nothing to import it. An
application that speaks Korean says so, once, at startup:
import 'package:material_plus_ui/material_plus_ui.dart';
import 'package:material_plus_ui/locales.dart';
void main() {
registerMPMessages(<MPLocale>[ko]);
runApp(const App());
}
After that a component whose locale resolves to ko speaks Korean.
registerMPMessages(mpLocales) takes all eighteen.
Constants
- ar → const MPLocale
- The library's words in Arabic.
- de → const MPLocale
- The library's words in German.
- es → const MPLocale
- The library's words in Spanish.
- fr → const MPLocale
- The library's words in French.
- hi → const MPLocale
- The library's words in Hindi.
- id → const MPLocale
- The library's words in Indonesian.
- it → const MPLocale
- The library's words in Italian.
- ja → const MPLocale
- The library's words in Japanese.
- ko → const MPLocale
- The library's words in Korean.
-
mpLocales
→ const List<
MPLocale> -
Every table this package ships, ready for
registerMPMessages. - nl → const MPLocale
- The library's words in Dutch.
- pl → const MPLocale
- The library's words in Polish.
- pt → const MPLocale
- The library's words in Portuguese.
- ru → const MPLocale
- The library's words in Russian.
- th → const MPLocale
- The library's words in Thai.
- tr → const MPLocale
- The library's words in Turkish.
- vi → const MPLocale
- The library's words in Vietnamese.
- zhHans → const MPLocale
- The library's words in Chinese, in simplified characters.
- zhHant → const MPLocale
- The library's words in Chinese, in traditional characters.