Answers.Body: <p>Not currently.  Might be worth a <a href="https://github.com/craftcms/cms/issues" rel="nofollow noreferrer">feature request</a>, though?</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-15T09:17:32.550Z
Answers.Text: Added thanks http://feedback.buildwithcraft.com/forums/285221-feature-requests/suggestions/9763302-translate-filter-and-nested-vocabulary-properties
Answers.UserDisplayName: Gianluca Guarini
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-14T21:59:27.683Z
Answers.LastActivityDate: 2017-02-25T05:16:22.470Z
Answers.LastEditDate: 2017-02-25T05:16:22.470Z
Answers.UserDisplayName: Brad Bell
Body: <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>
  
Tags: <templating><filter>
Title: Translate filter and nested vocabulary properties
ThreadText: # 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:
  
  ```
  <?php
  
  return [
      'login'             => 'Einloggen',
      'registration'      => 'Anmeldung',
      'forms'             => [
        'email'                => 'Email',
        'password'             => 'Passwort',
      ]
  ];
  
  ```
  
  I would like to get the vocabulary properties in the template in the following way:
  
  ```
  <p>{{ 'forms.email' | t }}</p>
  
  ```
  
  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  
  
  ---
  
  