---
title: "userLanguage"
canonical: "https://support.appfire.com/space/PSCONF/15304475/userLanguage"
format: markdown
---
> Macro (aura-html)

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | userLanguage(userNameOrKey) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

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

Returns the language for a user.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | userNameOrKey | String | Yes | User name or key of a user to get the language for. |

## Return Type

**String**

The return value represents the language for the specified user.

## Example

```javascript
userLanguage("jdoe");
```

## See also

> Macro (contentbylabel)