> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.cookiewow.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Using Banner Multilingual

For multilingual websites, Cookie Wow allows you to display the **Cookie Banner** in different languages based on the current page or user preference.
You can set a **default language** such as Thai, English, Chinese, or Japanese, and the banner will change accordingly.
---

## Setting Language via HTML Tag

By default, Cookie Wow detects the page language from the `<html lang="...">` attribute. This means:

* `<html lang="th">` → displays the banner in **Thai**  
* `<html lang="en">` → displays the banner in **English**  
* `<html lang="zh">` → displays the banner in **Chinese**  
* `<html lang="ja">` → displays the banner in **Japanese**

This automatic detection is ideal for multilingual sites following HTML standards.
---

## Dynamically Changing Language with JavaScript API

If your site is a **client-side web application** and does not reload the full page when changing languages, you can manually switch the Cookie Banner language using the following JavaScript commands:

```javascript
window.cwcCookieBanner.setLang('th'); // Thai
window.cwcCookieBanner.setLang('en'); // English
window.cwcCookieBanner.setLang('zh'); // Chinese
window.cwcCookieBanner.setLang('ja'); // Japanese
```

Before displaying the banner in multiple languages, make sure that you have added content (e.g., texts, descriptions) for each language in the Cookie Wow dashboard.
If content exists for each language, the banner will automatically display the correct version based on the current language setting.