# translation

Source: https://zotonic.com/docs/2337/translation

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

Language: en



Lookup a specific translation in a translated text. If the text is not translated then the text is returned as-is.

The filter takes as input a value or other variable and as argument the language to be shown.

Example usage:

```django
{{ text|translation:"en" }}
```

If the variable `text` has the value:

```django
{trans, [{en, <<"Hello">>}, {nl,<<"Hallo">>}]}
```

Then this will show `Hello`, even if the current template language is set to `nl`.

This filter is especially useful for filling in forms with language specific strings to be edited.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2337?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/2337?language=en>)
