Skip to content

incendium.util.set_locale

César Román edited this page May 1, 2024 · 9 revisions

Description

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).

Syntax

incendium.util.set_locale(user)

Args:

Recommendations

Use incendium.l10n.set_locale.

Code Examples

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)
Clone this wiki locally