parseLocale

fun parseLocale(locale: String): Locale

Extract language and region from the locale string

Return

Locale from locale string

Parameters

locale

language