-
-
Notifications
You must be signed in to change notification settings - Fork 2
incendium.l10n.set_locale
César Román edited this page Apr 30, 2024
·
2 revisions
Set the Locale to the user's default Language.
If none is configured, the default will be English (US).
Args:
- user (
IncendiumUser
): The User.
None.
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)