<p>Not currently.  Might be worth a <a href="https://github.com/craftcms/cms/issues" rel="nofollow noreferrer">feature request</a>, though?</p>

CC BY-SA 3.0
2015-09-15T09:17:32.550Z
Added thanks http://feedback.buildwithcraft.com/forums/285221-feature-requests/suggestions/9763302-translate-filter-and-nested-vocabulary-properties
Gianluca Guarini
CC BY-SA 3.0
2015-09-14T21:59:27.683Z
2017-02-25T05:16:22.470Z
2017-02-25T05:16:22.470Z
Brad Bell
<p>Is it possible to use the translate filter in order to get nested vocabulary entries? For example having a vocabulary file like this:</p>

<pre><code>&lt;?php

return [
    'login'             =&gt; 'Einloggen',
    'registration'      =&gt; 'Anmeldung',
    'forms'             =&gt; [
      'email'                =&gt; 'Email',
      'password'             =&gt; 'Passwort',
    ]
];
</code></pre>

<p>I would like to get the vocabulary properties in the template in the following way:</p>

<pre><code>&lt;p&gt;{{ 'forms.email' | t }}&lt;/p&gt;
</code></pre>

<p>Thanks</p>

<templating><filter>
Translate filter and nested vocabulary properties
# Translate filter and nested vocabulary properties

(Asked by: username_0 on 2015-09-14)

Is it possible to use the translate filter in order to get nested vocabulary entries? For example having a vocabulary file like this:
 'Einloggen',
    'registration'      => 'Anmeldung',
    'forms'             => [
      'email'                => 'Email',
      'password'             => 'Passwort',
    ]
];

I would like to get the vocabulary properties in the template in the following way:
{{ 'forms.email' | t }}

Thanks

**Tags:** templating, filter


---

## 1 answers

### Answer by username_1 on 2015-09-14. Score: 1

Not currently. Might be worth a [feature request](https://github.com/craftcms/cms/issues), though?

> **Comments:**
> **username_0**: Added thanks http://feedback.buildwithcraft.com/forums/285221-feature-requests/suggestions/9763302-translate-filter-and-nested-vocabulary-properties  

---

