forked from openedx/studio-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: remove Transifex calls for OEP-58 (openedx#383)
- Loading branch information
Showing
13 changed files
with
45 additions
and
949 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
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,28 +1,45 @@ | ||
// This file is generated by the "generateSupportedLangs.js" script. | ||
import arData from 'react-intl/locale-data/ar'; | ||
import enData from 'react-intl/locale-data/en'; | ||
import daData from 'react-intl/locale-data/da'; | ||
import deData from 'react-intl/locale-data/de'; | ||
import elData from 'react-intl/locale-data/el'; | ||
import esData from 'react-intl/locale-data/es'; | ||
import faData from 'react-intl/locale-data/fa'; | ||
import frData from 'react-intl/locale-data/fr'; | ||
import heData from 'react-intl/locale-data/he'; | ||
import hiData from 'react-intl/locale-data/hi'; | ||
import idData from 'react-intl/locale-data/id'; | ||
import itData from 'react-intl/locale-data/it'; | ||
import ptData from 'react-intl/locale-data/pt'; | ||
import ruData from 'react-intl/locale-data/ru'; | ||
import swData from 'react-intl/locale-data/sw'; | ||
import teData from 'react-intl/locale-data/te'; | ||
import thData from 'react-intl/locale-data/th'; | ||
import trData from 'react-intl/locale-data/tr'; | ||
import ukData from 'react-intl/locale-data/uk'; | ||
import zhData from 'react-intl/locale-data/zh'; | ||
|
||
import './ar.json'; | ||
import './es_419.json'; | ||
import './fr.json'; | ||
import './zh_CN.json'; | ||
|
||
// 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 = { | ||
export default { | ||
'ar': arData, | ||
'en': enData, | ||
'da': daData, | ||
'de': deData, | ||
'de-de': deData, | ||
'el': elData, | ||
'es-419': esData, | ||
'fr': frData, | ||
'es-es': esData, | ||
'fa': faData, | ||
'fr-ca': frData, | ||
'he': heData, | ||
'hi': hiData, | ||
'id': idData, | ||
'it-it': itData, | ||
'pt-br': ptData, | ||
'pt-pt': ptData, | ||
'ru': ruData, | ||
'sw': swData, | ||
'te': teData, | ||
'th': thData, | ||
'tr-tr': trData, | ||
'uk': ukData, | ||
'zh-cn': zhData, | ||
}; | ||
|
||
export default localeDataMap; |
Oops, something went wrong.