# Sprachencheck im Template

**URL:** <https://forum.shopware.com/t/sprachencheck-im-template/65385>\
**Category:** Programmierung\
**Created:** [10. März 2020 um 12:11 UTC](https://forum.shopware.com/t/sprachencheck-im-template/65385 "2020-03-10T12:11:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adelbert](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@Adelbert](https://forum.shopware.com/u/Adelbert)\
**Post date:** [10. März 2020 um 12:11 UTC](https://forum.shopware.com/t/sprachencheck-im-template/65385/1 "2020-03-10T12:11:59Z")

</div>

Wie kann ich im Twig Template die aktuelle Sprache des Shops/Saleschannels abfragen?

---

<div class="post-metadata">

**Author:** ![Adelbert](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@Adelbert](https://forum.shopware.com/u/Adelbert)\
**Post date:** [10. März 2020 um 13:31 UTC](https://forum.shopware.com/t/sprachencheck-im-template/65385/2 "2020-03-10T13:31:53Z")

</div>

Ich habe es erstmal so gelöst:

```
{% if page.header.activeLanguage.translationCode.code == 'en-GB' %}

```

&nbsp;

---

<div class="post-metadata">

**Author:** ![pp-delife](https://avatars.discourse-cdn.com/v4/letter/p/b38774/32.png) [@pp-delife](https://forum.shopware.com/u/pp-delife)\
**Post date:** [22. Februar 2024 um 14:32 UTC](https://forum.shopware.com/t/sprachencheck-im-template/65385/3 "2024-02-22T14:32:45Z")

</div>

ginge auch so:

```auto

{% set lang = page.metaInformation.xmlLang %}

```
