# trans\_languages

Source: https://zotonic.com/docs/2415/trans_languages

URI: https://zotonic.com/id/2415

Language: en



Return a list of all languages present in the given translated text (`#trans{}` record).

If not translation is given, then the empty list is returned.

Example usage:

```none
{% for iso in text|trans_languages %} {{ iso }} {% endfor %}
```

If the `text` has the value:

```erlang
#trans{ tr = [{en, <<>>}, {nl,<<"Hallo">>}] }
```

Then this will show `en nl`.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2415?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/2415?language=en>)
