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