Skip to content

Migrate translations from the old Transifex project #16

Migrate translations from the old Transifex project

Migrate translations from the old Transifex project #16

name: Migrate translations from the old Transifex project
on:
workflow_dispatch:
jobs:
migrate-translations:
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 1
matrix:
resource:
- new_slug: ecommerce
old_slug: ecommerce
old_project_slug: edx-platform
- new_slug: ecommerce-js
old_slug: ecommerce-js
old_project_slug: edx-platform
- 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-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
# Start: edx-platform repo resources
# The edx-platform repo resources has been consolidated into a two resources
# - https://github.com/openedx/edx-platform/blob/master/docs/decisions/0018-standarize-django-po-files.rst
- new_slug: edx-platform
old_slug: django-partial
old_project_slug: edx-platform
- new_slug: edx-platform
old_slug: django-studio
old_project_slug: edx-platform
- new_slug: edx-platform
old_slug: edx_proctoring_proctortrack
old_project_slug: edx-platform
- new_slug: edx-platform
old_slug: mako
old_project_slug: edx-platform
- new_slug: edx-platform
old_slug: mako-studio
old_project_slug: edx-platform
- new_slug: edx-platform
old_slug: wiki
old_project_slug: edx-platform
- new_slug: edx-platform-js
old_slug: underscore
old_project_slug: edx-platform
- new_slug: edx-platform-js
old_slug: djangojs-studio
old_project_slug: edx-platform
- new_slug: edx-platform-js
old_slug: underscore-studio
old_project_slug: edx-platform
- new_slug: edx-platform-js
old_slug: djangojs-account-settings-view
old_project_slug: edx-platform
- new_slug: edx-platform-js
old_slug: djangojs-partial
old_project_slug: edx-platform
# End: edx-platform repo resources
steps:
- uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install Python dependencies
run: make translations_scripts_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