Skip to content

Commit

Permalink
Move PB_LANGUAGE_JS_DIRECTORY_MAP to mixins.py.
Browse files Browse the repository at this point in the history
It's not used anywhere else and doesn't have to be configurable.
  • Loading branch information
mtyaka committed Oct 1, 2021
1 parent 59f5a18 commit b755331
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
16 changes: 14 additions & 2 deletions problem_builder/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,22 @@

from problem_builder.tests.unit.utils import DateTimeEncoder

from .settings import PB_LANGUAGE_JS_DIRECTORY_MAP

loader = ResourceLoader(__name__)

PB_LANGUAGE_JS_DIRECTORY_MAP = {
'ar': 'ar',
'de-de': 'de_DE',
'en': 'en',
'es-419': 'es_419',
'fr': 'fr',
'fr-ca': 'fr_CA',
'ja-jp': 'ja_JP',
'pl': 'pl_PL',
'pt-br': 'pt_BR',
'zh-cn': 'zh_CN',
'ko-kr': 'ko_KR'
}


# Make '_' a no-op so we can scrape strings
def _(text):
Expand Down
14 changes: 0 additions & 14 deletions problem_builder/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,3 @@
)
STATICI18N_ROOT = 'problem_builder/public/js'
STATICI18N_OUTPUT_DIR = 'translations'

PB_LANGUAGE_JS_DIRECTORY_MAP = {
'ar': 'ar',
'de-de': 'de_DE',
'en': 'en',
'es-419': 'es_419',
'fr': 'fr',
'fr-ca': 'fr_CA',
'ja-jp': 'ja_JP',
'pl': 'pl_PL',
'pt-br': 'pt_BR',
'zh-cn': 'zh_CN',
'ko-kr': 'ko_KR'
}

0 comments on commit b755331

Please sign in to comment.