Localization
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.
☝️ Watch Out
Displaying text requires the related font face definitions to be loaded.
Find out how to embed Font Faces
<html lang="th">
<body>
<cosmos-button>
สุนัขจิ้งจอกสีน้ำตา
</cosmos-button>
</body>
</html>