Answers.Body: <p>Yes, that's how you would do it.</p>
  
  <pre><code>{{ craft.globals.getSetByHandle('localeModal').locale('es').getFieldValue('headline') }}
  </code></pre>
  
  <p>Or in shorter syntax:</p>
  
  <pre><code>{{ localeModal.locale('es').headline }}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-21T15:44:00.307Z
Answers.Text: Do you know how to make it works with Craft 3?
Answers.UserDisplayName: Romain P.
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-02-19T16:33:29.620Z
Answers.LastActivityDate: 2015-02-19T16:33:29.620Z
Answers.UserDisplayName: carlcs
Body: <p>Not much to add to the question, other than I need to display a global's value in a different locale to the current locale.</p>
  
  <p>Is this the best way of doing it?</p>
  
  <pre><code>craft.globals.getSetByHandle('localeModal').locale('es').getFieldValue('headline')
  </code></pre>
  
Tags: <localization><globals>
Title: How can I retrieve a global value in a different locale?
ThreadText: # How can I retrieve a global value in a different locale?
  
  (Asked by: username_0 on 2015-02-19)
  
  Not much to add to the question, other than I need to display a global's value in a different locale to the current locale.
  
  Is this the best way of doing it?
  
  ```
  craft.globals.getSetByHandle('localeModal').locale('es').getFieldValue('headline')
  
  ```
  
  **Tags:** localization, globals
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-02-19. Score: 3 | Accepted answer
  
  Yes, that's how you would do it.
  
  ```
  {{ craft.globals.getSetByHandle('localeModal').locale('es').getFieldValue('headline') }}
  
  ```
  
  Or in shorter syntax:
  
  ```
  {{ localeModal.locale('es').headline }}
  
  ```
  
  > **Comments:**
  > **username_2**: Do you know how to make it works with Craft 3?  
  
  ---
  
  