Availability
- This routine is available starting with SIL Engine™ 4.5.8.
Syntax
userLocale(user)
Description
Returns the locale for a user.Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
user | string | Yes | Username or key of the user. |
Return type
string
The return value represents the language code and the country code for the specified user.
Example
userLocale("admin");
Returns: The language of admin. (E.g: en_US)
See also