Internationalization
Configure the Alhena chat widget to display in different languages.
Last updated
Configure the Alhena chat widget to display in different languages.
Configure the chat widget's UI language using the locale option.
By default, Alhena uses the lang attribute from your HTML tag:
<html lang="es">If your page has lang="es", the widget UI will display in Spanish.
To override automatic detection, set the locale in your configuration:
<script>
document.gleenConfig = {
company: 'your-company-key',
apiBaseUrl: 'https://app.alhena.ai',
locale: 'es'
};
</script>
<script src="https://app.alhena.ai/sdk/gleenWidget.js"></script>Use standard ISO 639-1 language codes (e.g., en, es, fr, de).
JavaScript API - Configuration reference
Last updated