Skip to main content

language_changed

Resets the internal translation cache and state when language-related Django settings are modified to ensure changes take effect immediately.

def language_changed(
setting: string,
kwargs: dict
) - > null

Resets internal translation caches and state when language-related settings are modified to ensure changes take effect immediately.

Parameters

NameTypeDescription
settingstringThe name of the Django setting that was changed, used to determine which translation caches to invalidate.
kwargsdictAdditional keyword arguments passed by the setting_changed signal dispatcher.

Returns

TypeDescription
nullNothing is returned; this function performs side effects on the Django translation engine state.