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
| Name | Type | Description |
|---|---|---|
| setting | string | The name of the Django setting that was changed, used to determine which translation caches to invalidate. |
| kwargs | dict | Additional keyword arguments passed by the setting_changed signal dispatcher. |
Returns
| Type | Description |
|---|---|
null | Nothing is returned; this function performs side effects on the Django translation engine state. |