incendium.l10n.set_locale - ignition-devs/incendium GitHub Wiki
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:
- user (
IncendiumUser
): The User.
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)