Want to display your consent banner in multiple languages? WPConsent lets you translate banner content, cookie descriptions, services, and categories for each language you enable. Multilanguage support ensures every visitor sees the banner in their preferred language.
Pro Feature: This feature requires WPConsent Pro.
Table of contents
- Prerequisites
- Enabling languages
- Configuring the language picker
- Adding banner content per language
- Adding cookie and service content per language
- Verifying your setup
- Translation plugin integration
- FAQ
- Conclusion
Prerequisites
Before you begin, make sure you have:
- WPConsent Pro installed and activated
- At least 1 additional language configured in your WordPress site or enabled in WPConsent’s language settings
Enabling languages
To get started, navigate to WPConsent >> Settings >> Languages in your WordPress admin.
The Selected Languages section shows languages currently enabled. The Available Languages section lists all WordPress-supported languages you can add.
Use the search box to find languages quickly. Then check the box next to any language to enable it.
Configuring the language picker
At the bottom of the Languages page, you’ll find the Language Picker toggle.

Enable this option to show a globe icon in your banner header. Visitors can click the icon to switch the banner content to their preferred language without changing the site language.
This setting is useful when you want to offer banner translations even without a translation plugin for your full site.
Adding banner content per language
First, navigate to WPConsent >> Banner Design and click the Content tab.
Look for the globe icon in the page header. Click it to switch your admin view to a different language.

When you select a language, a notice appears confirming which language you’re editing. All translatable fields on the page (banner title, description, button text) now save content for that specific language.
Fill in the banner content in the selected language and click Save Changes. Your original language content remains unchanged.
Editing cookie and service content per language
To translate cookie categories, services, and individual cookie descriptions, navigate to WPConsent >> Settings >> Cookies.
Use the language switcher to select your target language. To confirm you’re editing content in the correct language, look for the blue notice at the top of the page that reads “You are currently editing WPConsent content in [language].”

Expand any cookie category accordion and edit the category name, description, service names, service descriptions, cookie names, and cookie descriptions in the selected language.
Each language stores its own set of translated strings separately from the default language.
Verifying your setup
Visit your site’s frontend in a browser. If you enabled the language picker, click the globe icon in the banner to switch languages. The banner content updates immediately.
If you’re using a translation plugin, switch your site language using the plugin’s language selector. The banner displays content matching the selected language.
To confirm language detection, open the browser console (press F12) and look for wpconsent.current_language in the JavaScript object. This value shows the detected language code.
Translation plugin integration
WPConsent automatically integrates with 3 popular translation plugins:
- WPML: Detects the current language via the WPML SitePress API and resolves it to a full locale for banner and cookie content switching.
- Polylang: Uses
pll_current_language()to determine the active language. - TranslatePress: Uses
trp_get_locale()for language detection andtrp_translate()for runtime translation.
When a translation plugin is active, WPConsent calls the plugin’s functions to get the correct locale. If no translation plugin is found, WPConsent falls back to WordPress’s get_locale().
For WPML and Polylang, WPConsent also translates policy page IDs using the wpml_object_id filter. This ensures your cookie policy and privacy policy links point to the correct translated pages.
FAQ
My banner only shows the default language. How do I fix it?
Verify that you switched to the correct language using the language switcher before adding translations. Also check that your enabled languages are listed in WPConsent >> Settings >> Languages.
Why doesn’t the language switcher appear in my banner?
Confirm the Language Picker toggle is enabled in WPConsent >> Settings >> Languages. You also need at least 1 additional language enabled beyond your default language.
My translated content isn’t saving. What’s wrong?
When the language switcher is active, make sure you see the blue language notice at the top of the admin page. If you don’t see it, the system is saving to the default language instead. Switch to the correct language first.
My translation plugin’s language isn’t detected. How do I resolve this?
Ensure your translation plugin is installed and activated. Check that the plugin is configured with at least 1 additional language. WPConsent supports WPML, Polylang, and TranslatePress.
Conclusion
You’ve now configured multilanguage support for your consent banner. Your visitors see the banner in their preferred language, whether through the built-in language picker or an integrated translation plugin.
To save time on manual translations, learn how to automatically translate your banner content.