<p>Take a look at the Craft docs page for &quot;Globals&quot; under <a href="https://craftcms.com/docs/3.x/globals.html#querying-globals" rel="nofollow noreferrer">Querying Globals</a>.</p>
<p>You can pass a site ID number to an element query to get globals from another site/language. For example, if your French site id number is 2, you could do this:</p>
<pre><code>{% set siteOwnerInfoFrench = craft.globalSets()
  .handle('siteOwnerInfo')
  .siteId(2).one() %}

{{ siteOwnerInfoFrench.siteOwner }}
</code></pre>

CC BY-SA 4.0
2021-02-11T18:22:54.943Z
This worked perfectly. Thank you for the assist!
Stabilimenta
CC BY-SA 4.0
2021-02-11T04:13:25.437Z
2021-02-11T04:13:25.437Z
Alex Roper
<p>I have a localized, two language site (en and fr) that I have a translated global variable set for. My question is: is there a way on a Craft 3 template to directly access a translation of a variable that isn't the same as the currentSite language. Specifically, I'd like to show both translations of the same variable on one page.</p>
<p>I am getting the variable with this currently: <code>siteOwnerInfo.siteOwner</code></p>

<localization><variable><globals>
How to directly access translated variables by language
# How to directly access translated variables by language

(Asked by: username_0 on 2021-02-10)

I have a localized, two language site (en and fr) that I have a translated global variable set for. My question is: is there a way on a Craft 3 template to directly access a translation of a variable that isn't the same as the currentSite language. Specifically, I'd like to show both translations of the same variable on one page.

I am getting the variable with this currently: `siteOwnerInfo.siteOwner`

**Tags:** localization, variable, globals


---

## 1 answers

### Answer by username_1 on 2021-02-11. Score: 1 | Accepted answer

Take a look at the Craft docs page for "Globals" under Querying Globals.
You can pass a site ID number to an element query to get globals from another site/language. For example, if your French site id number is 2, you could do this:
{% set siteOwnerInfoFrench = craft.globalSets()
  .handle('siteOwnerInfo')
  .siteId(2).one() %}

{{ siteOwnerInfoFrench.siteOwner }}

> **Comments:**
> **username_0**: This worked perfectly. Thank you for the assist!  

---

