Something like the following.
Common
expect val myLang:String?
expect val myCountry:String?
iOS
actual val myLang:String?
get() = NSLocale.currentLocale.languageCode
actual val myCountry:String?
get() = NSLocale.currentLocale.countryCode
Android
actual val myLang:String?
get() = Locale.getDefault().language
actual val myCountry:String?
get() = Locale.getDefault().country
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…