setLocale function
Sets a locale
with the provided Language to be available when
using the format function.
Example:
//set locale to german long form
setLocale('de', German(shortForm: false));
setLocale('de_short', German(shortForm: true));
If you want to define locale message implement Language interface with the desired messages
Implementation
void setLocale(String locale, Language language) {
_languages[locale] = language;
}