File tree Expand file tree Collapse file tree
app/src/main/kotlin/com/vrem/util Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,10 +23,11 @@ import java.util.SortedMap
2323private val currentLocale: Locale get() = Locale .getDefault()
2424private val countryCodes: Set <String > = Locale .getISOCountries().toSet()
2525private val availableLocales: List <Locale > = Locale .getAvailableLocales().filter { countryCodes.contains(it.country) }
26- private val countriesLocales: SortedMap <String , Locale > =
27- availableLocales
28- .associateBy { it.country.toCapitalize(currentLocale) }
29- .toSortedMap()
26+ private val countriesLocales: SortedMap <String , Locale >
27+ get() =
28+ availableLocales
29+ .associateBy { it.country.toCapitalize(currentLocale) }
30+ .toSortedMap()
3031
3132val BULGARIAN : Locale = Locale .forLanguageTag(" bg" )
3233val CHINESE : Locale = Locale .forLanguageTag(" zh" )
You can’t perform that action at this time.
0 commit comments