Skip to content

Commit

Permalink
Merge pull request #1030 from mozilla/add-zh-langs-to-LANGUAGES
Browse files Browse the repository at this point in the history
add zh-tw and zh-cn to LANGUAGES
  • Loading branch information
say-yawn authored Aug 24, 2021
2 parents 2dd0f60 + e8fa42c commit 2e63a7e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions privaterelay/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration

from django.conf import settings

import dj_database_url

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
Expand Down Expand Up @@ -295,6 +297,13 @@ def _get_initial_middleware():

LANGUAGE_CODE = 'en'

# Mozilla l10n uses 'zh-tw' and 'zh-cn' language codes, so we need to add those
# to LANGUAGES so Django's LocaleMiddleware can find them.
LANGUAGES = settings.LANGUAGES + [
('zh-tw', 'Chinese'),
('zh-cn', 'Chinese'),
]

TIME_ZONE = 'UTC'

USE_I18N = True
Expand Down

0 comments on commit 2e63a7e

Please sign in to comment.