Skip to content

incendium.l10n.set_locale

César Román edited this page Apr 30, 2024 · 2 revisions

Description

Set the Locale to the user's default Language.

If none is configured, the default will be English (US).

Syntax

incendium.l10n.set_locale(user)

Args:

Recommendations

None.

Code Examples

Client Startup Script.

from incendium import l10n, user

# Get user.
_user = user.get_user(user_source="AD-Internal_Auth", failover="DB_Auth")
# Set locale.
l10n.set_locale(_user)
Clone this wiki locally