Add ability to generate static i18n files.
This commit is contained in:
@@ -60,6 +60,8 @@ from lms.envs.common import (
|
||||
|
||||
# Django REST framework configuration
|
||||
REST_FRAMEWORK,
|
||||
|
||||
STATICI18N_OUTPUT_DIR
|
||||
)
|
||||
from path import Path as path
|
||||
from warnings import simplefilter
|
||||
@@ -465,6 +467,8 @@ LANGUAGE_DICT = dict(LANGUAGES)
|
||||
USE_I18N = True
|
||||
USE_L10N = True
|
||||
|
||||
STATICI18N_ROOT = PROJECT_ROOT / "static"
|
||||
|
||||
# Localization strings (e.g. django.po) are under this directory
|
||||
LOCALE_PATHS = (REPO_ROOT + '/conf/locale',) # edx-platform/conf/locale/
|
||||
|
||||
@@ -845,6 +849,9 @@ INSTALLED_APPS = (
|
||||
|
||||
# edx-milestones service
|
||||
'milestones',
|
||||
|
||||
# Static i18n support
|
||||
'statici18n',
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user