Skip to content

Commit b755331

Browse files
committed
Move PB_LANGUAGE_JS_DIRECTORY_MAP to mixins.py.
It's not used anywhere else and doesn't have to be configurable.
1 parent 59f5a18 commit b755331

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

problem_builder/mixins.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,22 @@
1212

1313
from problem_builder.tests.unit.utils import DateTimeEncoder
1414

15-
from .settings import PB_LANGUAGE_JS_DIRECTORY_MAP
16-
1715
loader = ResourceLoader(__name__)
1816

17+
PB_LANGUAGE_JS_DIRECTORY_MAP = {
18+
'ar': 'ar',
19+
'de-de': 'de_DE',
20+
'en': 'en',
21+
'es-419': 'es_419',
22+
'fr': 'fr',
23+
'fr-ca': 'fr_CA',
24+
'ja-jp': 'ja_JP',
25+
'pl': 'pl_PL',
26+
'pt-br': 'pt_BR',
27+
'zh-cn': 'zh_CN',
28+
'ko-kr': 'ko_KR'
29+
}
30+
1931

2032
# Make '_' a no-op so we can scrape strings
2133
def _(text):

problem_builder/settings.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,3 @@
8383
)
8484
STATICI18N_ROOT = 'problem_builder/public/js'
8585
STATICI18N_OUTPUT_DIR = 'translations'
86-
87-
PB_LANGUAGE_JS_DIRECTORY_MAP = {
88-
'ar': 'ar',
89-
'de-de': 'de_DE',
90-
'en': 'en',
91-
'es-419': 'es_419',
92-
'fr': 'fr',
93-
'fr-ca': 'fr_CA',
94-
'ja-jp': 'ja_JP',
95-
'pl': 'pl_PL',
96-
'pt-br': 'pt_BR',
97-
'zh-cn': 'zh_CN',
98-
'ko-kr': 'ko_KR'
99-
}

0 commit comments

Comments
 (0)