-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f6fdead
commit 3ee845a
Showing
1 changed file
with
17 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,28 @@ | ||
// This file is generated by the "i18n/scripts/generateSupportedLangs.js" script. | ||
import arData from 'react-intl/locale-data/ar'; | ||
import './ar.json'; | ||
import enData from 'react-intl/locale-data/en'; | ||
import esData from 'react-intl/locale-data/es'; | ||
import './es_419.json'; | ||
import frData from 'react-intl/locale-data/fr'; | ||
import './fr.json'; | ||
import zhData from 'react-intl/locale-data/zh'; | ||
|
||
import './ar.json'; | ||
import './es_419.json'; | ||
import './fr.json'; | ||
import './zh_CN.json'; | ||
|
||
export default { | ||
// Methodology: These languages (plus the default english) are the only ones that appear on edx.org | ||
// This was determined by inspecting the 'released_languages' method in the following file: | ||
// https://github.com/openedx/edx-platform/blob/master/openedx/core/djangoapps/lang_pref/api.py | ||
// | ||
// Further, I hit the read replica in order to confirm the live values, which are currently: | ||
// en, fr, zh-cn, es-419, ar | ||
// If these values change, please also update the pull_translations command in Makefile | ||
|
||
const localeDataMap = { | ||
'ar': arData, | ||
'en': enData, | ||
'es-419': esData, | ||
'fr': frData, | ||
'zh-cn': zhData, | ||
}; | ||
|
||
export default localeDataMap; |