-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,29 @@ | ||
name: Auto translate | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- dev | ||
|
||
jobs: | ||
translate: | ||
autotranslate: | ||
env: | ||
API_KEY: ${{secrets.DL_API_KEY}} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: dev | ||
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. | ||
- name: Setup Python | ||
uses: actions/setup-python@v1 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
- name: Install Translate Tools | ||
run: | | ||
pip install git+https://github.com/NeonGeckoCom/neon-lang-plugin-libretranslate | ||
python -m pip install ovos-translate-plugin-deepl ovos-utils | ||
- name: Auto Translate | ||
run: | | ||
python scripts/translate.py | ||
- name: Commit to dev | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: Auto Translate | ||
branch: dev | ||
prepare_skillstore: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: dev | ||
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. | ||
- name: Setup Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
- name: Install OSM | ||
run: | | ||
pip install ovos-skills-manager~=0.0.10 | ||
- name: Update Skill Store metadata | ||
run: | | ||
python scripts/prepare_skillstore.py | ||
- name: Commit to dev | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: Update skill store metadata | ||
commit_message: autotranslate | ||
branch: dev |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Propose Translation | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
language: | ||
type: choice | ||
description: Language to translate | ||
options: | ||
- de-de | ||
- ca-es | ||
- es-es | ||
- cs-cz | ||
- fr-fr | ||
- it-it | ||
- da-dk | ||
- nl-nl | ||
- hu-hu | ||
- pl-pl | ||
- pt-pt | ||
- ru-ru | ||
- sv-fi | ||
- sv-se | ||
- tr-tr | ||
|
||
jobs: | ||
Propose_translation: | ||
env: | ||
TARGET_LANG: ${{ inputs.language }} | ||
API_KEY: ${{ secrets.DL_API_KEY }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.ref_name }} | ||
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
- name: Install Translate Tools | ||
run: | | ||
python -m pip install ovos-translate-plugin-deepl ovos-utils | ||
- name: Run Translate Script | ||
run: python scripts/translate.py | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: autotranslate | ||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
title: Proposed ${{ inputs.language }} Translations | ||
body: Translations for review | ||
labels: translation | ||
branch: staging/translation_${{ inputs.language }} | ||
reviewers: emphasize |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
gràcies | ||
gràcies |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# auto translated from en-us to de-de | ||
Hallo | ||
Hallo Welt | ||
Hallo zu Ihnen | ||
Hallo | ||
Dir ebenfalls guten Tag |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
# auto translated from en-us to de-de | ||
Mir geht's gut | ||
Ich mache sehr gut | ||
Könnte besser sein | ||
Ich mache ausgezeichnet | ||
Ziemlich gut | ||
mir geht es gut | ||
ziemlich gut | ||
Nicht schlecht | ||
mir geht es ausgezeichnet | ||
Mir könnte es besser gehen | ||
mir geht es sehr gut |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
# auto translated from en-us to de-de | ||
Gern geschehen | ||
Mein Vergnügen | ||
Ich bin froh, dass Sie da sind | ||
Immer | ||
Kein Problem | ||
Gerne helfen | ||
jeder Zeit. | ||
Stehe gerne zur verfügung. | ||
Ich bin froh, dass ich helfen kann. | ||
Gern geschehen. | ||
Kein Problem. | ||
Bitte schön. |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
# auto translated from en-us to de-de | ||
Grüße | ||
Die Welt | ||
Hallo Welt | ||
schöne Grüße |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# auto translated from en-us to de-de | ||
Danke | ||
danke | ||
danke |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# auto translated from en-us to es-es | ||
Hola mundo | ||
Hola a ti también | ||
Hola | ||
Hola a ti también |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
# auto translated from en-us to es-es | ||
Estoy bien | ||
Bastante bien | ||
Lo estoy haciendo muy bien | ||
Lo estoy haciendo bien | ||
Podría ser mejor | ||
No está mal | ||
Estoy haciendo excelente | ||
Nada mal | ||
Estoy de maravilla | ||
Podría estar mejor | ||
Estoy muy bien |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
# auto translated from en-us to es-es | ||
Mi Placer | ||
De nada | ||
En cualquier momento | ||
No hay problema | ||
Me alegro de ser de servicio | ||
Me alegro de ayudar | ||
En cualquier momento. | ||
Me alegra ser de ayuda. | ||
Feliz de ayudarte. | ||
El placer es mío. | ||
No hay problema. | ||
De nada. |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
# auto translated from en-us to es-es | ||
Hola mundo | ||
hola mundo | ||
saludos |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# auto translated from en-us to es-es | ||
Gracias | ||
gracias | ||
gracias |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# auto translated from en-us to fr-fr | ||
Bonjour le monde | ||
Salut | ||
Bonjour | ||
Bonjour à toi | ||
Salut à toi aussi |