Expose Django's LANGUAGE_CODE setting for configuration #7370

Closed
opened 2025-12-29 20:22:28 +01:00 by adam · 1 comment
Owner

Originally created by @jeremystretch on GitHub (Dec 16, 2022).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.4.0

Feature type

New functionality

Proposed functionality

Allow administrators to configure Django's LANGUAGE_CODE setting in configuration.py.

Use case

As NetBox v3.4 now supports localization for date and number formats, administrators should be able to change the default language from en-us. This was initially raised in discussion under #11189.

(Note that this setting does not actually change the language of content in NetBox, but rather specifies the default preferred language/locale for requests that do not specify one.)

Database changes

No response

External dependencies

No response

Originally created by @jeremystretch on GitHub (Dec 16, 2022). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.4.0 ### Feature type New functionality ### Proposed functionality Allow administrators to configure Django's `LANGUAGE_CODE` setting in `configuration.py`. ### Use case As NetBox v3.4 now supports [localization]() for date and number formats, administrators should be able to change the default language from `en-us`. This was initially raised in discussion under #11189. (Note that this setting does not actually change the _language_ of content in NetBox, but rather specifies the default preferred language/locale for requests that do not specify one.) ### Database changes _No response_ ### External dependencies _No response_
adam added the status: acceptedtype: feature labels 2025-12-29 20:22:28 +01:00
adam closed this issue 2025-12-29 20:22:28 +01:00
Author
Owner

@jeremystretch commented on GitHub (Dec 16, 2022):

Going to name this configuration parameter DEFAULT_LANGUAGE as IMO it's a bit more clear as to the setting's purpose.

@jeremystretch commented on GitHub (Dec 16, 2022): Going to name this configuration parameter `DEFAULT_LANGUAGE` as IMO it's a bit more clear as to the setting's purpose.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7370