add USE_I18N setting

This commit is contained in:
Anton Myasnikov 2024-05-12 10:46:07 +02:00 committed by Anton M
parent 4a64a3f6e0
commit c323c62de4
2 changed files with 9 additions and 0 deletions

View File

@ -198,3 +198,11 @@ If `STORAGE_BACKEND` is not defined, this setting will be ignored.
Default: UTC
The time zone NetBox will use when dealing with dates and times. It is recommended to use UTC time unless you have a specific need to use a local time zone. Please see the [list of available time zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
---
## USE_I18N
Default: True
[Django setting](https://docs.djangoproject.com/en/stable/ref/settings/#std-setting-USE_I18N) which provides a way to turn translation system off and make NetBox English-based for all users.

View File

@ -156,6 +156,7 @@ SESSION_FILE_PATH = getattr(configuration, 'SESSION_FILE_PATH', None)
STORAGE_BACKEND = getattr(configuration, 'STORAGE_BACKEND', None)
STORAGE_CONFIG = getattr(configuration, 'STORAGE_CONFIG', {})
TIME_ZONE = getattr(configuration, 'TIME_ZONE', 'UTC')
USE_I18N = getattr(configuration, 'USE_I18N', True)
# Load any dynamic configuration parameters which have been hard-coded in the configuration file
for param in CONFIG_PARAMS: