Skip to content

Commit

Permalink
feat!: remove Transifex calls for OEP-58 (#627)
Browse files Browse the repository at this point in the history
  • Loading branch information
hopewise authored Mar 18, 2024
1 parent b09729b commit 1b2c65f
Show file tree
Hide file tree
Showing 19 changed files with 4 additions and 15,310 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ temp/babel-plugin-react-intl

# Local environment overrides
.env.private

# Messages .json files fetched by atlas
src/i18n/messages/
9 changes: 0 additions & 9 deletions .tx/config

This file was deleted.

22 changes: 0 additions & 22 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,de,de_DE,es_419,fa_IR,fr,fr_CA,hi,it,it_IT,pt,pt_PT,ru,uk,zh_CN"

intl_imports = ./node_modules/.bin/intl-imports.js
transifex_utils = ./node_modules/.bin/transifex-utils.js
i18n = ./src/i18n
Expand Down Expand Up @@ -33,23 +29,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

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
Expand All @@ -63,7 +42,6 @@ pull_translations:
translations/frontend-app-course-authoring/src/i18n/messages:frontend-app-course-authoring

$(intl_imports) frontend-component-ai-translations frontend-lib-content-components frontend-platform paragon frontend-component-footer frontend-app-course-authoring
endif

# This target is used by Travis.
validate-no-uncommitted-package-lock-changes:
Expand Down
43 changes: 1 addition & 42 deletions src/i18n/index.js
Original file line number Diff line number Diff line change
@@ -1,42 +1 @@
import { messages as footerMessages } from '@edx/frontend-component-footer';
import { messages as paragonMessages } from '@openedx/paragon';
import arMessages from './messages/ar.json';
import deMessages from './messages/de.json';
import deDEMessages from './messages/de_DE.json';
import es419Messages from './messages/es_419.json';
import faIRMessages from './messages/fa_IR.json';
import frMessages from './messages/fr.json';
import frCAMessages from './messages/fr_CA.json';
import hiMessages from './messages/hi.json';
import itMessages from './messages/it.json';
import itITMessages from './messages/it_IT.json';
import ptMessages from './messages/pt.json';
import ptPTMessages from './messages/pt_PT.json';
import ruMessages from './messages/ru.json';
import ukMessages from './messages/uk.json';
import zhCNMessages from './messages/zh_CN.json';
// no need to import en messages-- they are in the defaultMessage field

const appMessages = {
ar: arMessages,
de: deMessages,
'de-de': deDEMessages,
'es-419': es419Messages,
'fa-ir': faIRMessages,
fr: frMessages,
'fr-ca': frCAMessages,
hi: hiMessages,
it: itMessages,
'it-it': itITMessages,
ru: ruMessages,
pt: ptMessages,
'pt-pt': ptPTMessages,
uk: ukMessages,
'zh-cn': zhCNMessages,
};

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

This file was deleted.

1,081 changes: 0 additions & 1,081 deletions src/i18n/messages/de.json

This file was deleted.

1,081 changes: 0 additions & 1,081 deletions src/i18n/messages/de_DE.json

This file was deleted.

1,081 changes: 0 additions & 1,081 deletions src/i18n/messages/es_419.json

This file was deleted.

104 changes: 0 additions & 104 deletions src/i18n/messages/fa_IR.json

This file was deleted.

Loading

0 comments on commit 1b2c65f

Please sign in to comment.