validateLocaleAndSetLanguage
external fun validateLocaleAndSetLanguage(locale: String, sys: ValidateLocaleAndSetLanguageSys, errors: ReadonlyArray<Diagnostic> = definedExternally)(source)
Checks to see if the locale is in the appropriate format, and if it is, attempts to set the appropriate language.