---
title: Localization
slug: wip/localization
createdAt: 2023-07-21T06:22:43.923Z
---

# Localization

All components that render text are displaying characters of different languages choosing the right font family automatically based on the language setting of the document.

Provided as a `lang` attribute usually for the `<html>` element of a document, Cosmos web components automatically pick the correct font family.

:::hint{type="warning"}
**☝️ Watch Out**

Displaying text requires the related font face definitions to be loaded.

Find out how to embed [Font Faces](https://cosmos.redbull.design/wip/font-faces)
:::

:::CodeblockTabs
index.html

```html
<html lang="th">
  <body>
  	<cosmos-button>
    	สุนัขจิ้งจอกสีน้ำตา
    </cosmos-button>
  </body>
</html>
```
:::

