Skip to content

Commit

Permalink
feat!: remove Transifex calls for OEP-58 (#1085)
Browse files Browse the repository at this point in the history
  • Loading branch information
hopewise committed Mar 20, 2024
1 parent 05c2caa commit 2d37b8b
Show file tree
Hide file tree
Showing 27 changed files with 2 additions and 2,793 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ temp/babel-plugin-react-intl
*~
/temp
/.vscode
src/i18n/messages
9 changes: 0 additions & 9 deletions .tx/config

This file was deleted.

21 changes: 0 additions & 21 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
export TRANSIFEX_RESOURCE = frontend-app-authn
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 @@ -32,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
# Experimental: OEP-58 Pulls translations using atlas
pull_translations:
rm -rf src/i18n/messages
mkdir src/i18n/messages
Expand All @@ -59,7 +39,6 @@ pull_translations:
translations/frontend-app-authn/src/i18n/messages:frontend-app-authn

$(intl_imports) paragon frontend-platform frontend-app-authn
endif

# This target is used by Travis.
validate-no-uncommitted-package-lock-changes:
Expand Down
1 change: 1 addition & 0 deletions src/i18n/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default [];
41 changes: 0 additions & 41 deletions src/i18n/index.jsx

This file was deleted.

181 changes: 0 additions & 181 deletions src/i18n/messages/ar.json

This file was deleted.

1 change: 0 additions & 1 deletion src/i18n/messages/ca.json

This file was deleted.

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

This file was deleted.

Loading

0 comments on commit 2d37b8b

Please sign in to comment.