diff --git a/.gitignore b/.gitignore index 6ea14ab06..fb680c9eb 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ src/i18n/transifex_input.json temp/babel-plugin-react-intl /.vscode module.config.js +src/i18n/messages \ No newline at end of file diff --git a/.tx/config b/.tx/config deleted file mode 100644 index 546b8d84e..000000000 --- a/.tx/config +++ /dev/null @@ -1,9 +0,0 @@ -[main] -host = https://www.transifex.com - -[o:open-edx:p:edx-platform:r:frontend-component-footer] -file_filter = src/i18n/messages/.json -source_file = src/i18n/transifex_input.json -source_lang = en -type = KEYVALUEJSON - diff --git a/Makefile b/Makefile index a3680e53e..f9c8feda8 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,3 @@ -export TRANSIFEX_RESOURCE = frontend-component-footer -transifex_langs = "ar,fr,es_419,zh_CN,pt,it,de,uk,ru,hi,fr_CA,it_IT,pt_PT,de_DE" - transifex_utils = ./node_modules/.bin/transifex-utils.js i18n = ./src/i18n transifex_input = $(i18n)/transifex_input.json @@ -35,20 +32,6 @@ detect_changed_source_translations: # Checking for changed translations... git diff --exit-code $(i18n) -# Pushes translations to Transifex. You must run make extract_translations first. -push_translations: - # Pushing strings to Transifex... - tx push -s - # Fetching hashes from Transifex... - ./node_modules/@edx/reactifex/bash_scripts/get_hashed_strings_v3.sh - # Writing out comments to file... - $(transifex_utils) $(transifex_temp) --comments --v3-scripts-path - # Pushing comments to Transifex... - ./node_modules/@edx/reactifex/bash_scripts/put_comments_v3.sh - -# Pulls translations from Transifex. -pull_translations: - tx pull -t -f --mode reviewed --languages=$(transifex_langs) # This target is used by Travis. validate-no-uncommitted-package-lock-changes: diff --git a/src/i18n/index.js b/src/i18n/index.js index 33f55fb2e..ff8b4c563 100644 --- a/src/i18n/index.js +++ b/src/i18n/index.js @@ -1,34 +1 @@ -import arMessages from './messages/ar.json'; -import frMessages from './messages/fr.json'; -import es419Messages from './messages/es_419.json'; -import zhcnMessages from './messages/zh_CN.json'; -import ptMessages from './messages/pt.json'; -import itMessages from './messages/it.json'; -import ukMessages from './messages/uk.json'; -import deMessages from './messages/de.json'; -import ruMessages from './messages/ru.json'; -import hiMessages from './messages/hi.json'; -import frCAMessages from './messages/fr_CA.json'; -import dedeCAMessages from './messages/de_DE.json'; -import ititCAMessages from './messages/it_IT.json'; -import ptptCAMessages from './messages/pt_PT.json'; -// no need to import en messages-- they are in the defaultMessage field - -const messages = { - ar: arMessages, - 'es-419': es419Messages, - fr: frMessages, - 'zh-cn': zhcnMessages, - pt: ptMessages, - it: itMessages, - de: deMessages, - hi: hiMessages, - 'fr-ca': frCAMessages, - ru: ruMessages, - uk: ukMessages, - 'de-de': dedeCAMessages, - 'it-it': ititCAMessages, - 'pt-pt': ptptCAMessages, -}; - -export default messages; +export default {}; diff --git a/src/i18n/messages/ar.json b/src/i18n/messages/ar.json deleted file mode 100644 index 9e26dfeeb..000000000 --- a/src/i18n/messages/ar.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/src/i18n/messages/de.json b/src/i18n/messages/de.json deleted file mode 100644 index 9e26dfeeb..000000000 --- a/src/i18n/messages/de.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/src/i18n/messages/de_DE.json b/src/i18n/messages/de_DE.json deleted file mode 100644 index 9e26dfeeb..000000000 --- a/src/i18n/messages/de_DE.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/src/i18n/messages/es_419.json b/src/i18n/messages/es_419.json deleted file mode 100644 index 9e26dfeeb..000000000 --- a/src/i18n/messages/es_419.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/src/i18n/messages/fr.json b/src/i18n/messages/fr.json deleted file mode 100644 index 9e26dfeeb..000000000 --- a/src/i18n/messages/fr.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/src/i18n/messages/fr_CA.json b/src/i18n/messages/fr_CA.json deleted file mode 100644 index 9e26dfeeb..000000000 --- a/src/i18n/messages/fr_CA.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/src/i18n/messages/hi.json b/src/i18n/messages/hi.json deleted file mode 100644 index 9e26dfeeb..000000000 --- a/src/i18n/messages/hi.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/src/i18n/messages/it.json b/src/i18n/messages/it.json deleted file mode 100644 index 9e26dfeeb..000000000 --- a/src/i18n/messages/it.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/src/i18n/messages/it_IT.json b/src/i18n/messages/it_IT.json deleted file mode 100644 index 9e26dfeeb..000000000 --- a/src/i18n/messages/it_IT.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/src/i18n/messages/pt.json b/src/i18n/messages/pt.json deleted file mode 100644 index 9e26dfeeb..000000000 --- a/src/i18n/messages/pt.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/src/i18n/messages/pt_PT.json b/src/i18n/messages/pt_PT.json deleted file mode 100644 index 9e26dfeeb..000000000 --- a/src/i18n/messages/pt_PT.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/src/i18n/messages/ru.json b/src/i18n/messages/ru.json deleted file mode 100644 index 9e26dfeeb..000000000 --- a/src/i18n/messages/ru.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/src/i18n/messages/uk.json b/src/i18n/messages/uk.json deleted file mode 100644 index 9e26dfeeb..000000000 --- a/src/i18n/messages/uk.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/src/i18n/messages/zh_CN.json b/src/i18n/messages/zh_CN.json deleted file mode 100644 index 9e26dfeeb..000000000 --- a/src/i18n/messages/zh_CN.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file