Beam supports changing the displayed language of widgets based on a lang parameter passed into the widgets’ configuration. The currently supported values for this property are listed below.
| Language | lang parameter value |
|---|---|
| English (default) | en |
| French | fr |
| German | de |
| Italian | it |
| Spanish | es |
| Polish | pl |
Setting the language with a property on the component element
<beam-select-nonprofit
**lang="it"**
apiKey="abc-123"
chainId="1"
storeId="1"
class="custom"
>
Select a nonprofit
</beam-select-nonprofit>
Setting the language with a property while creating the component with Javascript
const widget = document.createElement("beam-select-nonprofit");
// lang defaults to English
widget.setAttribute("lang", "it");