---
title: "userLocale"
canonical: "https://support.appfire.com/space/PSJ/15484490/userLocale"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | userLocale(user) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Returns the locale for a user.

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

> Macro (contentbylabel)