Add ability to generate static i18n files.

This commit is contained in:
Diana Huang
2016-01-26 17:26:11 -05:00
parent dce3d9ca81
commit cd0bb4c7e0
12 changed files with 341 additions and 301 deletions

View File

@@ -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',
)