Openli
IntroductionGetting StartedTechnical DocumentationGet help
  • Getting started
    • Introduction
    • Dictionary
    • FAQ
      • IAB TCF v2.0
  • Privacy hub
    • How to create your privacy profile
    • How can I get an Openli Privacy Badge?
    • Vendor owners
    • Why are custom properties on vendors super valuable?
    • Setting up custom properties
  • Tasks
  • Cookie Consent Management
    • Quickstart
    • Checklist: Cookies
    • Cookie widget
      • Create a cookie policy
      • Create a cookie widget
      • Install the widget
      • Manually add any cookies
      • Customise your widget
      • How to get color codes
      • Set the widget language
      • Use custom link/button instead of Cookie Shield
      • Add company name to cookie pop-up
    • Categorise your cookies
    • Adding information to cookies
    • Adding information to your cookie providers
    • Blocking Cookies with Openli
    • Cookie expiration dates and lifespan
      • Changing expiration on Google Analytics cookies
  • Policy and agreement management
    • Generate your privacy policy
    • Changing an old cookie policy to a new on autopilot
    • Embed your policies and legal agreements
      • Embedding agreements without displaying a widget
    • Install the Privacy Badge
  • General Openli guides
    • Setting up SSO (Single Sign-On)
      • SSO with Azure AD (Microsoft)
      • SSO with Google
      • SSO with Okta
      • How to log in with SSO
    • Add a website to your Openli account
    • Using projects to handle multiple languages
    • Collect consents without storing IP addresses or user-agents
  • Technical documentation
    • Widget
      • Collect cookie consent
        • Blocking cookies
        • Blocking embedded media
        • Cookie-widget options
        • Consent state API
    • API
      • Services
        • Personal data
        • Subprocessors
    • Cookies set by Openli
  • System Specific Integration Guides
    • Cloudflare
  • Legacy integrations
    • Google Consent Mode
    • Google Tag Manager
      • Block cookies with GTM
      • Install Openli with GTM
      • Prevent triggers from firing in GTM
    • HubSpot
    • Pardot
    • Shopify
      • Install cookie widget
      • Integrate consent with checkout
    • Square Online
    • Squarespace
    • Webflow
    • Wix
Powered by GitBook
On this page
  • Supported languages
  • Setting the display language
  • Handling multiple languages:
  1. Cookie Consent Management
  2. Cookie widget

Set the widget language

Openli supports different languages, and this guide shows you how to change your cookie widget's language.

Supported languages

The cookie widget currently supports these languages, in the given jurisdictions:

Language

Supported in jurisdiction

Option value

English (EN)

All jurisdictions

None, or en-us

Danish (DA)

Denmark (DK)

da-dk

Dutch (NL)

Netherlands (NL)*

nl-nl

German (DE)

Germany (DE)*

de-de

Norwegian (NO)

Norway (NO)*

no-no

Norwegian Bokmål (NB)

Norway (NO)*

nb-no

Swedish (SV)

Sweden (SE)*

sv-se

Spanish (ES)

Spain (ES)*

es-es

French (FR)

France (FR)*

fr-fr

Finnish (FI)

Finland (FI)*

fi-fi

Lithuanian (LT)

Lithuania (LT)*

lt-lt

Polish (PL)

Poland (PL)*

pl-pl

*Our widget currently uses the rules from Denmark (DK) for this jurisdiction, with specific support for local rules planned for a future version.

Additional jurisdictions and languages will be added over time.

If you do not specify a language, or if the language you set is not supported by us in the visitor's jurisdiction, English will be used. The table above lists the supported combinations.

Setting the display language

To set the display language, initialize your widget with the locale option set to the value for the language you desire. For example, to use Danish when the jurisdiction is Denmark, your widget's initialization would look similar to this:

legal.widget({
    type: "cookie",
    widgetPublicKey: "...",
    locale: "da-dk",
});

Handling multiple languages:

If you need to handle multiple languages, please visit this guide in our documentation:

PreviousHow to get color codesNextUse custom link/button instead of Cookie Shield

Last updated 1 year ago

Using projects to handle multiple languages