Remove the ENABLE_LOCALIZATION configuration parameter #9495

Closed
opened 2025-12-29 20:50:39 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Apr 17, 2024).

Originally assigned to: @jeremystretch on GitHub.

Proposed Changes

Remove support for the ENABLE_LOCALIZATION configuration parameter. As a result of removing this parameter, the Django setting USE_I18N will default to True, and LocaleMiddleware will always be enabled.

Justification

As localization is now enforced in Django 5.0 and NetBox restricts the set of available translation languages to those for which string maps have been generated, this setting is no longer needed.

Impact

Translation and localization will always be enabled.

Originally created by @jeremystretch on GitHub (Apr 17, 2024). Originally assigned to: @jeremystretch on GitHub. ### Proposed Changes Remove support for the `ENABLE_LOCALIZATION` configuration parameter. As a result of removing this parameter, the Django setting [`USE_I18N`]() will default to True, and `LocaleMiddleware` will always be enabled. ### Justification As localization is now [enforced in Django 5.0](https://docs.djangoproject.com/en/5.0/releases/4.0/#localization) and NetBox restricts the set of available translation languages to those for which string maps have been generated, this setting is no longer needed. ### Impact Translation and localization will always be enabled.
adam added the status: acceptedtype: deprecation labels 2025-12-29 20:50:39 +01:00
adam closed this issue 2025-12-29 20:50:39 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9495