githubEdit

Internationalization

Configure the Alhena chat widget to display in different languages.

Configure the chat widget's UI language using the locale option.

Automatic Language Detection

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.

Explicit Locale Configuration

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-1arrow-up-right language codes (e.g., en, es, fr, de).

Last updated