setLocaleRaw static method

AppLocale setLocaleRaw(
  1. String rawLocale
)

Sets locale using string tag (e.g. en_US, de-DE, fr) Fallbacks to base locale. Returns the locale which has been set.

Implementation

static AppLocale setLocaleRaw(String rawLocale) {
	final locale = AppLocaleUtils.parse(rawLocale);
	return setLocale(locale);
}