Skip to content

Commit

Permalink
clean localisations (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
emphasize committed Dec 14, 2023
1 parent 4956387 commit ae7245b
Show file tree
Hide file tree
Showing 157 changed files with 312 additions and 305 deletions.
37 changes: 7 additions & 30 deletions .github/workflows/auto_translate.yml
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
55 changes: 55 additions & 0 deletions .github/workflows/propose_translation.yml
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
51 changes: 42 additions & 9 deletions .github/workflows/publish_alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,60 @@ on:
branches:
- dev
paths-ignore:
- 'skill_naptime/version.py'
- 'test/**'
- 'examples/**'
- 'version.py'
- '.github/**'
- '.gitignore'
- 'LICENSE'
- 'CHANGELOG.md'
- 'MANIFEST.in'
- 'readme.md'
- 'README.md'
- 'scripts/**'
workflow_dispatch:

jobs:
build_and_publish:
autotranslate:
runs-on: ubuntu-latest
env:
API_KEY: ${{secrets.DL_API_KEY}}
steps:
- uses: actions/checkout@v3
with:
ref: dev
fetch-depth: 0
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
locales:
- 'locale/en-us/**'
- 'dialog/en-us/**'
- 'vocab/en-us/**'
- name: Setup Python
if: steps.filter.outputs.locales == 'true'
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Auto Translate
if: steps.filter.outputs.locales == 'true'
run: |
python -m pip install ovos-translate-plugin-deepl ovos-utils
python scripts/translate.py
- name: Commit to dev
if: steps.filter.outputs.locales == 'true'
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: autotranslate
branch: dev

build_and_publish:
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 Build Tools
Expand All @@ -45,7 +77,7 @@ jobs:
- name: Commit to dev
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Prepare alpha version package
commit_message: Increment Version
branch: dev
- name: version
run: echo "::set-output name=version::$(python setup.py --version)"
Expand All @@ -63,10 +95,11 @@ jobs:
${{ steps.changelog.outputs.changelog }}
draft: false
prerelease: true
commitish: dev
- name: Build Distribution Packages
run: |
python setup.py bdist_wheel
- name: Publish to Test PyPI
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{secrets.PYPI_TOKEN}}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
gràcies
gràcies
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 2 additions & 3 deletions locale/de-de/dialog/hello.world.dialog
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
11 changes: 5 additions & 6 deletions locale/de-de/dialog/how.are.you.dialog
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
13 changes: 6 additions & 7 deletions locale/de-de/dialog/welcome.dialog
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.
File renamed without changes.
5 changes: 0 additions & 5 deletions locale/de-de/intents/HowAreYou.intent

This file was deleted.

5 changes: 2 additions & 3 deletions locale/de-de/vocab/HelloWorldKeyword.voc
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
4 changes: 2 additions & 2 deletions locale/de-de/vocab/ThankYouKeyword.voc
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
3 changes: 0 additions & 3 deletions locale/dialog/de-de/hello.world.dialog

This file was deleted.

6 changes: 0 additions & 6 deletions locale/dialog/de-de/how.are.you.dialog

This file was deleted.

6 changes: 0 additions & 6 deletions locale/dialog/de-de/welcome.dialog

This file was deleted.

1 change: 0 additions & 1 deletion locale/dialog/dialog/hello.world.dialog

This file was deleted.

1 change: 0 additions & 1 deletion locale/dialog/dialog/how.are.you.dialog

This file was deleted.

1 change: 0 additions & 1 deletion locale/dialog/dialog/welcome.dialog

This file was deleted.

3 changes: 0 additions & 3 deletions locale/dialog/es-es/hello.world.dialog

This file was deleted.

6 changes: 0 additions & 6 deletions locale/dialog/es-es/how.are.you.dialog

This file was deleted.

6 changes: 0 additions & 6 deletions locale/dialog/es-es/welcome.dialog

This file was deleted.

3 changes: 0 additions & 3 deletions locale/dialog/fr-fr/hello.world.dialog

This file was deleted.

6 changes: 0 additions & 6 deletions locale/dialog/fr-fr/how.are.you.dialog

This file was deleted.

6 changes: 0 additions & 6 deletions locale/dialog/fr-fr/welcome.dialog

This file was deleted.

1 change: 0 additions & 1 deletion locale/dialog/intents/HowAreYou.intent

This file was deleted.

3 changes: 0 additions & 3 deletions locale/dialog/it-it/hello.world.dialog

This file was deleted.

6 changes: 0 additions & 6 deletions locale/dialog/it-it/how.are.you.dialog

This file was deleted.

6 changes: 0 additions & 6 deletions locale/dialog/it-it/welcome.dialog

This file was deleted.

1 change: 0 additions & 1 deletion locale/dialog/vocab/HelloWorldKeyword.voc

This file was deleted.

1 change: 0 additions & 1 deletion locale/dialog/vocab/ThankYouKeyword.voc

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions locale/es-es/dialog/hello.world.dialog
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
11 changes: 5 additions & 6 deletions locale/es-es/dialog/how.are.you.dialog
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
13 changes: 6 additions & 7 deletions locale/es-es/dialog/welcome.dialog
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.
File renamed without changes.
4 changes: 0 additions & 4 deletions locale/es-es/intents/HowAreYou.intent

This file was deleted.

3 changes: 1 addition & 2 deletions locale/es-es/vocab/HelloWorldKeyword.voc
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
4 changes: 2 additions & 2 deletions locale/es-es/vocab/ThankYouKeyword.voc
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions locale/fr-fr/dialog/hello.world.dialog
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
Loading

0 comments on commit ae7245b

Please sign in to comment.