-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #238 from openedx/cag/transifex-workflow
feat: add transifex automatic translations
- Loading branch information
Showing
14 changed files
with
417 additions
and
164 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 |
---|---|---|
@@ -1,11 +1,94 @@ | ||
ASPECTS_CLICKHOUSE_CMS_PASSWORD: CTr93c8cLJGg6ZT6gAl1dhTy | ||
ASPECTS_CLICKHOUSE_CMS_USER: ch_cms | ||
ASPECTS_CLICKHOUSE_LRS_PASSWORD: H4PhxiANv23tmOcL3nAeQQTX | ||
ASPECTS_CLICKHOUSE_LRS_USER: ch_lrs | ||
ASPECTS_CLICKHOUSE_REPORT_PASSWORD: 6lVwUJ4p6SLosW86u0tRKWn8 | ||
ASPECTS_CLICKHOUSE_REPORT_USER: ch_report | ||
ASPECTS_CLICKHOUSE_VECTOR_PASSWORD: 1lReLfYAbyrsdwp7AcQF3paw | ||
ASPECTS_CLICKHOUSE_VECTOR_USER: ch_vector | ||
CLICKHOUSE_ADMIN_PASSWORD: DHkFoZQ2lTH7fF3N1hUOQplI | ||
CLICKHOUSE_ADMIN_USER: ch_admin | ||
CLICKHOUSE_SECURE_CONNECTION: false | ||
CMS_HOST: studio.local.overhang.io | ||
CMS_OAUTH2_SECRET: V8553RMCO27CBJEx3X4xTh9a | ||
CONTACT_EMAIL: [email protected] | ||
ENABLE_HTTPS: false | ||
ID: QHbF6pRUqoRIPS6HAULDtfiJ | ||
JWT_RSA_PRIVATE_KEY: '-----BEGIN RSA PRIVATE KEY----- | ||
MIIEpQIBAAKCAQEAzikDcXeaAH4ovS/bpIOL0GobhcNoBfKsRok1dafTHP0m0CNR | ||
DzJFiZIbYSp2N//de2/pIcjuD9dWHZhsytc+WIZq9jt24VchjI5UAzLc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MxtlmkJRxanX | ||
dnnCjeU9/0ubg1h9OrkYDqCl+56ix9il7v2dIMymmjQJHmd1Omk6hDRVeS9aV0w3 | ||
+ViJjEsZ3O3kv3KbBKQPyw0CgYEA8+wLrmySGlU1gGqBMXv9MZ75OQ3cuZMuJzJ0 | ||
0T7PnIsmIX+o5k7U13ULvgkv58ar2jeY+DSYpz+hKt5Izxs+w4h2UQBIrWozYZX7 | ||
53+ng2ngj0fqN77So2L2DAoaJGYSeONg72PnQrnp6HD2gBW5AqeZ5QjdyCfu9N87 | ||
SFUzz4kCgYEAuR0jhcMdh9KA2VrYaqMa8c4HBTjBkb9trgNMb55vfKB/O0q6NfBg | ||
KcT1MM56FmhPLj3P1aDKPliczaOxsbRh4oRQYTSUSOCdvhXe9ZilrnFHelVmIw07 | ||
i8A6TC850sHwR1j3p1wfyAaHX7eCPMP4EglRzHEjSRfFw1x5CwnejPk= | ||
-----END RSA PRIVATE KEY-----' | ||
LANGUAGE_CODE: en | ||
LMS_HOST: local.overhang.io | ||
MYSQL_ROOT_PASSWORD: 6KFFc2L9 | ||
OPENEDX_MYSQL_PASSWORD: 93pugaBr | ||
OPENEDX_SECRET_KEY: 6BxYaHmIkV8R3tFm96UcLBMG | ||
PLATFORM_NAME: Aspects Local CI Test | ||
PLUGINS: | ||
- aspects | ||
PLUGIN_INDEXES: | ||
- https://overhang.io/tutor/main | ||
RALPH_ADMIN_HASHED_PASSWORD: $2b$12$tUVfJTDDwFSe4wOh5ysJd.LGa6SNyaFvzj7FnC6Oc9REVoeCWHMfu | ||
RALPH_ADMIN_PASSWORD: wlnktlsthqiprtsvanzrcynhnbvoxirmvzwv | ||
RALPH_ADMIN_USERNAME: ralph | ||
RALPH_LMS_HASHED_PASSWORD: $2b$12$tIHqFKghkExV/pqzN.pDmesz60PEWB4Cy1Q.Jg.lwOVvoYMHCDVu. | ||
RALPH_LMS_PASSWORD: jpjgcgrlnnarlsgjhnkmguhdogqhslwwedmg | ||
RALPH_LMS_USERNAME: lms | ||
SUPERSET_ADMIN_PASSWORD: rGYfsLzCPcFBRL5grttE5JxR | ||
SUPERSET_ADMIN_USERNAME: frzy1EHeGXlY | ||
SUPERSET_DB_PASSWORD: A7CG3FSpABCgWPWtnHiJFe7Y | ||
SUPERSET_OAUTH2_CLIENT_ID: vZHFGoAE9VPjMOVn | ||
SUPERSET_OAUTH2_CLIENT_ID_DEV: OlR3BXJBNx9C21N7 | ||
SUPERSET_OAUTH2_CLIENT_SECRET: StkPwE5GzPuyH4Rp | ||
SUPERSET_ROW_LEVEL_SECURITY_XAPI_GROUP_KEY: xapi_course_id | ||
SUPERSET_SECRET_KEY: WlgA6QSQKCUNGD9PAaji0JHY | ||
SUPERSET_XAPI_DASHBOARD_SLUG: openedx-xapi |
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,49 @@ | ||
name: Pull Translations | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 * * 1' # On Mondays | ||
|
||
env: | ||
TUTOR_ROOT: ./.ci/ | ||
TRANSIFEX_TOKEN: ${{ secrets.EDUNEXT_ASPECTS_ASSET_TRANSIFEX_TOKEN }} | ||
TRANSIFEX_SECRET: ${{ secrets.EDUNEXT_ASPECTS_ASSET_TRANSIFEX_SECRET }} | ||
|
||
jobs: | ||
push_translations: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
- name: Install aspects | ||
run: pip install . | ||
- name: Install requirements | ||
run: make requirements | ||
- name: Mark for translation | ||
run: make compile_translations | ||
- name: Get current date | ||
id: date | ||
run: echo "::set-output name=date::$(date +'%Y-%m-%d')" | ||
- name: Push branch | ||
run: | | ||
git status | ||
git log -l 3 | ||
git checkout -b bot/translations/${{ steps.date.outputs.date }} | ||
git push -d origin bot/translations/${{ steps.date.outputs.date }} | ||
git push origin bot/translations/${{ steps.date.outputs.date }} | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ secrets.EDX_TRANSIFEX_BOT_GITHUB_TOKEN }} | ||
title: "chore(i18n): updating translations" | ||
commit-message: "chore(i18n): updating translations on ${{ steps.date.outputs.date }}" | ||
branch: "bot/translations/${{ steps.date.outputs.date }}" | ||
base: main | ||
body: | | ||
Automated update of translations for assets on ${{ steps.date.outputs.date }}. | ||
This pull request was automatically generated. |
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,27 @@ | ||
name: Push Translations | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
env: | ||
TUTOR_ROOT: ./.ci/ | ||
TRANSIFEX_TOKEN: ${{ secrets.EDUNEXT_ASPECTS_ASSET_TRANSIFEX_TOKEN }} | ||
TRANSIFEX_SECRET: ${{ secrets.EDUNEXT_ASPECTS_ASSET_TRANSIFEX_SECRET }} | ||
|
||
jobs: | ||
push_translations: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
- name: Install aspects | ||
run: pip install . | ||
- name: Install requirements | ||
run: make requirements | ||
- name: Mark for translation | ||
run: make push_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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ __pycache__ | |
/dist/ | ||
/.idea/ | ||
venv/ | ||
env/ |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
click | ||
tutor>=15 | ||
bcrypt | ||
transifex-python |
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
Oops, something went wrong.