Contents

languageCode

The language code for the locale.

Declaration

var languageCode: String { get }

Discussion

Examples of language codes include "en", "es", and "zh".

Use localizedString(forLanguageCode:) to obtain a version of the value suitable for display to the user.

This property contains the same value returned by the object(forKey:) method when passing the languageCode key.

See Also

Related Documentation

Getting Information About a Locale