Skip to content

Commit

Permalink
feat!: remove Transifex calls for OEP-58
Browse files Browse the repository at this point in the history
  • Loading branch information
hopewise committed Oct 16, 2023
1 parent 7132136 commit afb701b
Show file tree
Hide file tree
Showing 18 changed files with 5 additions and 13,767 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ temp/babel-plugin-react-intl
/temp
/.vscode
/module.config.js

src/i18/messages
9 changes: 0 additions & 9 deletions .tx/config

This file was deleted.

14 changes: 2 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
transifex_resource = frontend-app-course-authoring
export TRANSIFEX_RESOURCE = ${transifex_resource}
transifex_langs = "ar,fr,es_419,zh_CN,pt,it,de,uk,ru,hi,fr_CA,it_IT,pt_PT,de_DE"

intl_imports = ./node_modules/.bin/intl-imports.js
transifex_utils = ./node_modules/.bin/transifex-utils.js
i18n = ./src/i18n
Expand Down Expand Up @@ -44,23 +40,17 @@ push_translations:
# Pushing comments to Transifex...
./node_modules/@edx/reactifex/bash_scripts/put_comments_v3.sh

ifeq ($(OPENEDX_ATLAS_PULL),)
# Pulls translations from Transifex.
pull_translations:
tx pull -t -f --mode reviewed --languages=$(transifex_langs)
else
# Pulls translations using atlas.

pull_translations:
rm -rf src/i18n/messages
mkdir src/i18n/messages
cd src/i18n/messages \
&& atlas pull --filter=$(transifex_langs) \
&& atlas pull \
translations/paragon/src/i18n/messages:paragon \
translations/frontend-component-footer/src/i18n/messages:frontend-component-footer \
translations/frontend-app-course-authoring/src/i18n/messages:frontend-app-course-authoring

$(intl_imports) paragon frontend-component-footer frontend-app-course-authoring
endif

# This target is used by Travis.
validate-no-uncommitted-package-lock-changes:
Expand Down
41 changes: 1 addition & 40 deletions src/i18n/index.js
Original file line number Diff line number Diff line change
@@ -1,40 +1 @@
import { messages as footerMessages } from '@edx/frontend-component-footer';
import { messages as paragonMessages } from '@edx/paragon';
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 dedeMessages from './messages/de_DE.json';
import ititMessages from './messages/it_IT.json';
import ptptMessages from './messages/pt_PT.json';
// no need to import en messages-- they are in the defaultMessage field

const appMessages = {
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': dedeMessages,
'it-it': ititMessages,
'pt-pt': ptptMessages,
};

export default [
footerMessages,
paragonMessages,
appMessages,
];
export default [];
979 changes: 0 additions & 979 deletions src/i18n/messages/ar.json

This file was deleted.

979 changes: 0 additions & 979 deletions src/i18n/messages/de.json

This file was deleted.

979 changes: 0 additions & 979 deletions src/i18n/messages/de_DE.json

This file was deleted.

979 changes: 0 additions & 979 deletions src/i18n/messages/es_419.json

This file was deleted.

979 changes: 0 additions & 979 deletions src/i18n/messages/fr.json

This file was deleted.

979 changes: 0 additions & 979 deletions src/i18n/messages/fr_CA.json

This file was deleted.

979 changes: 0 additions & 979 deletions src/i18n/messages/hi.json

This file was deleted.

979 changes: 0 additions & 979 deletions src/i18n/messages/it.json

This file was deleted.

979 changes: 0 additions & 979 deletions src/i18n/messages/it_IT.json

This file was deleted.

979 changes: 0 additions & 979 deletions src/i18n/messages/pt.json

This file was deleted.

979 changes: 0 additions & 979 deletions src/i18n/messages/pt_PT.json

This file was deleted.

979 changes: 0 additions & 979 deletions src/i18n/messages/ru.json

This file was deleted.

979 changes: 0 additions & 979 deletions src/i18n/messages/uk.json

This file was deleted.

979 changes: 0 additions & 979 deletions src/i18n/messages/zh_CN.json

This file was deleted.

0 comments on commit afb701b

Please sign in to comment.