NSLocale.systemLocale static property
The systemLocale static property is a generic locale that belongs to no language or region.
Value
- Read-only. Assigning to it throws
TypeError, and the value stays unchanged. - Its
localeIdentifieris the empty string''. - It is not the user's setting. For the user's setting, read
currentLocale.
Examples
js
console.log(JSON.stringify(NSLocale.systemLocale.localeIdentifier));Result: prints "".
Corresponding iOS API
NSLocale.systemLocale (a class property).