fromTag

abstract fun fromTag(tag: String): Locale?

Return

Locale with the given tag, or null if not found

Parameters

tag

language code of the locale and optionally the country code, separated by a hyphen. Example: en, en-US, it, fr-CA