Skip to content

Commit

Permalink
fix: fixup previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarIthawi committed Feb 2, 2024
1 parent f6fdead commit 3ee845a
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions src/i18n/messages/currentlySupportedLangs.jsx
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;

0 comments on commit 3ee845a

Please sign in to comment.