Contents

scriptCode

The script code for the locale.

Declaration

var scriptCode: String? { get }

Discussion

Examples of script codes include "Latn" and "Hant".

Use localizedString(forScriptCode:) 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 scriptCode key.

See Also

Getting Information About a Locale