Skip to main content
The pre-built UI supports multiple languages out of the box. By default, the locale is automatically detected from the user’s browser language settings, falling back to English if the detected language is not supported.

Supported languages

LanguageLocale code
Englishen
Frenchfr
French (Canadian)fr-ca
Germande
Spanishes
Italianit
Dutchnl
Polishpl
Portuguese (Brazilian)pt-br
Need a language that isn’t listed? Get in touch and we can work with you to add support for it.

Overriding the locale

You can override the automatic locale detection by including the locale field in the track action request payload. The locale value will be included in the pre-built UI URL automatically. This is useful when:
  • Your application already knows the user’s preferred language
  • You want to ensure a consistent language regardless of the user’s browser settings
const response = await authsignal.track({
  userId: "dc58c6dc-a1fd-4a4f-8e2f-846636dd4833",
  action: "signIn",
  attributes: {
    redirectUrl: "https://yourapp.com/callback",
    locale: "es",
  },
});

const url = response.url;
The locale field only accepts values from the supported languages list above. If an unsupported value is provided, it will be ignored and the pre-built UI will fall back to browser-based detection.