Skip to content

Commit

Permalink
feat: migrate translations to reactifex (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
AliAdnanSohail authored Mar 18, 2022
1 parent cd55a04 commit 94510fb
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 9 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export TRANSIFEX_RESOURCE = frontend-component-header-edx
transifex_resource = frontend-component-header-edx
transifex_langs = "ar,fr,es_419,zh_CN"

Expand Down Expand Up @@ -45,11 +46,11 @@ push_translations:
# Pushing strings to Transifex...
tx push -s
# Fetching hashes from Transifex...
./node_modules/reactifex/bash_scripts/get_hashed_strings.sh $(tx_url1)
./node_modules/@edx/reactifex/bash_scripts/get_hashed_strings_v3.sh
# Writing out comments to file...
$(transifex_utils) $(transifex_temp) --comments
$(transifex_utils) $(transifex_temp) --comments --v3-scripts-path
# Pushing comments to Transifex...
./node_modules/reactifex/bash_scripts/put_comments.sh $(tx_url2)
./node_modules/@edx/reactifex/bash_scripts/put_comments_v3.sh

# Pulls translations from Transifex.
pull_translations:
Expand Down
103 changes: 103 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,16 @@
"@edx/frontend-build": "5.6.14",
"@edx/frontend-platform": "1.15.2",
"@edx/paragon": "12.6.1",
"@edx/reactifex": "^1.0.3",
"@testing-library/dom": "7.31.2",
"@testing-library/jest-dom": "5.15.1",
"@testing-library/react": "10.3.0",
"codecov": "3.8.3",
"enzyme": "3.11.0",
"enzyme-adapter-react-16": "1.15.6",
"husky": "7.0.4",
"jest": "27.3.1",
"jest-chain": "1.1.5",
"prop-types": "15.7.2",
"react": "16.14.0",
"react-dom": "16.14.0",
Expand All @@ -49,12 +55,7 @@
"react-test-renderer": "16.14.0",
"reactifex": "1.1.1",
"redux": "4.1.2",
"redux-saga": "1.1.3",
"@testing-library/dom": "7.31.2",
"@testing-library/jest-dom": "5.15.1",
"jest": "27.3.1",
"jest-chain": "1.1.5",
"@testing-library/react": "10.3.0"
"redux-saga": "1.1.3"
},
"dependencies": {
"@edx/frontend-enterprise": "4.6.3",
Expand Down

0 comments on commit 94510fb

Please sign in to comment.