-
-
Notifications
You must be signed in to change notification settings - Fork 2
incendium.util.set_locale
César Román edited this page May 1, 2024
·
9 revisions
Warning
Deprecated since version 2024.5.0.
Set the Locale to the user's default Language.
If none is configured, the default will be English (US).
Args:
- user (
IncendiumUser
): The User.
Use incendium.l10n.set_locale
.
Client Startup Script.
from incendium import user, util
# Get user.
_user = user.get_user(user_source="AD-Internal_Auth", failover="DB_Auth")
# Set locale.
util.set_locale(_user)