# trans\_filter\_filled

Source: https://zotonic.com/docs/1966/trans_filter_filled

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

Language: en



Filters all empty translations from a property.

This is used if it is important to show a text, but not all translations are filled in.

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

Example usage:

```none
{{ id|trans_filter_filled:`body` }}
```

If the resource `id` has the body property:

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

Then this will show `Hallo`, even if the language is set to `en`.

License: 

Attribution: 

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