# Making a Smart CTA button display based on page language rather than user's browser language

**URL:** <https://community.hubspot.com/t/making-a-smart-cta-button-display-based-on-page-language-rather-than-users-browser-language/53309>\
**Category:** Lead Capture Tools\
**Created:** [March 16, 2022, 6:02pm UTC](https://community.hubspot.com/t/making-a-smart-cta-button-display-based-on-page-language-rather-than-users-browser-language/53309 "2022-03-16T18:02:10Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![dannio](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dannio/32/95715_2.png) [@dannio](https://community.hubspot.com/u/dannio)\
**Post date:** [March 18, 2022, 1:29am UTC](https://community.hubspot.com/t/making-a-smart-cta-button-display-based-on-page-language-rather-than-users-browser-language/53309/3 "2022-03-18T01:29:54Z")

</div>

You can obtain the current page language tag via:

`content.language.languageTag`

This will output something like ‘en’, ‘en-us’, ‘de’, ‘fr’, etc.

To make a conditional for it, you simply need to put it in an if statement like so:

```lia-code-sample
{% if content.language.languageTag == 'en' %}
 {% cta guid="{{ module.en_cta_field }}" %}
{% elif content.language.languageTag == 'fr' %}
 {% cta guid="{{ module.fr_cta_field }}" %}
{% endif %}

```

So in your module, you just need to create the corresponding CTAs for each language and make conditionals for it to show on the right pages.

---

_[View the full topic](https://community.hubspot.com/t/making-a-smart-cta-button-display-based-on-page-language-rather-than-users-browser-language/53309)._
