-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: sync from old transifex project
This is a on-demand GitHub Actions workflow which will sync traslations and their status from the `open-edx/edx-platform` Transifex project (old) into `open-edx/openedx-translations` OEP-58 project (new). Refs: FC-0012 OEP-58
- Loading branch information
1 parent
f195d84
commit 5da4f21
Showing
12 changed files
with
562 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
name: Migrate translations from the old Transifex project | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
migrate-translations: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
resource: | ||
- new_slug: edx-ora2 | ||
old_slug: openassessment | ||
old_project_slug: edx-platform | ||
|
||
- new_slug: edx-ora2-js | ||
old_slug: openassessment-js | ||
old_project_slug: edx-platform | ||
|
||
- new_slug: edx-proctoring | ||
old_slug: edx-proctoring | ||
old_project_slug: edx-platform | ||
|
||
- new_slug: studio-frontend | ||
old_slug: studio-frontend | ||
old_project_slug: edx-platform | ||
|
||
- new_slug: donexblock | ||
old_slug: xblock-done | ||
old_project_slug: xblocks | ||
|
||
- new_slug: xblock-drag-and-drop-v2 | ||
old_slug: drag-and-drop-v2 | ||
old_project_slug: xblocks | ||
|
||
- new_slug: xblock-free-text-response | ||
old_slug: xblock-free-text-response | ||
old_project_slug: xblocks | ||
|
||
- new_slug: course-discovery | ||
old_slug: course_discovery | ||
old_project_slug: edx-platform | ||
|
||
- new_slug: course-discovery | ||
old_slug: course_discovery | ||
old_project_slug: edx-platform | ||
|
||
- new_slug: course-discovery-js | ||
old_slug: course_discovery-js | ||
old_project_slug: edx-platform | ||
|
||
- new_slug: credentials-js | ||
old_slug: credentials-js | ||
old_project_slug: edx-platform | ||
|
||
- new_slug: credentials | ||
old_slug: credentials | ||
old_project_slug: edx-platform | ||
|
||
- new_slug: frontend-app-account | ||
old_slug: frontend-app-account | ||
old_project_slug: edx-platform | ||
|
||
- new_slug: frontend-app-authn | ||
old_slug: frontend-app-authn | ||
old_project_slug: edx-platform | ||
|
||
- new_slug: frontend-app-course-authoring | ||
old_slug: frontend-app-course-authoring | ||
old_project_slug: edx-platform | ||
|
||
- new_slug: frontend-app-discussions | ||
old_slug: frontend-app-discussions | ||
old_project_slug: edx-platform | ||
|
||
- new_slug: frontend-app-ecommerce | ||
old_slug: frontend-app-ecommerce | ||
old_project_slug: edx-platform | ||
|
||
- new_slug: frontend-app-gradebook | ||
old_slug: frontend-app-gradebook | ||
old_project_slug: edx-platform | ||
|
||
- new_slug: frontend-app-learner-dashboard | ||
old_slug: frontend-app-learner-dashboard | ||
old_project_slug: edx-platform | ||
|
||
- new_slug: frontend-app-learner-record | ||
old_slug: frontend-app-learner-record | ||
old_project_slug: edx-platform | ||
|
||
- new_slug: frontend-app-learning | ||
old_slug: frontend-app-learning | ||
old_project_slug: edx-platform | ||
|
||
- new_slug: frontend-app-profile | ||
old_slug: frontend-app-profile | ||
old_project_slug: edx-platform | ||
|
||
- new_slug: frontend-app-program-console | ||
old_slug: frontend-app-program-manager | ||
old_project_slug: edx-platform | ||
|
||
- new_slug: frontend-component-footer | ||
old_slug: frontend-component-footer-edx | ||
old_project_slug: edx-platform | ||
|
||
- new_slug: frontend-component-header | ||
old_slug: frontend-component-header | ||
old_project_slug: edx-platform | ||
|
||
- new_slug: paragon | ||
old_slug: paragon | ||
old_project_slug: edx-platform | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
- name: Install Python dependencies | ||
run: make sync_requirements | ||
|
||
- name: Sync | ||
env: | ||
# `TX_LANGUAGES` list of languages is set in the `Makefile` | ||
TX_NEW_SLUG: ${{ matrix.resource.new_slug }} | ||
TX_OLD_SLUG: ${{ matrix.resource.old_slug }} | ||
TX_OLD_PROJECT_SLUG: ${{ matrix.resource.old_project_slug }} | ||
TX_API_TOKEN: ${{ secrets.TRANSIFEX_API_TOKEN }} | ||
run: make sync_translations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
|
||
pytest | ||
pytest-cov | ||
|
||
responses |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
|
||
# i18n | ||
edx-i18n-tools | ||
pyyaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.