Contents

languageCode

The language code of the locale, or nil if has none.

Declaration

var languageCode: String? { get }

Discussion

For example, for the locale “zh-Hant-HK”, returns “zh”.

See Also

Getting information about a locale