From 9918079e2b7c9f513bc4a15be55b2380565ac91d Mon Sep 17 00:00:00 2001 From: emphasize Date: Wed, 16 Aug 2023 04:37:41 +0200 Subject: [PATCH] autotranslate hotfix 2 --- .github/workflows/publish_alpha.yml | 7 +++---- locale/fr-fr/dialog/current/current-weather-local.dialog | 6 +++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish_alpha.yml b/.github/workflows/publish_alpha.yml index c809732b..fb96c282 100644 --- a/.github/workflows/publish_alpha.yml +++ b/.github/workflows/publish_alpha.yml @@ -34,19 +34,18 @@ jobs: - 'locale/en-us/**' - 'dialog/en-us/**' - 'vocab/en-us/**' - # Exit the job if no relevant locale files were changed - - name: Exit Job - if: steps.filter.outputs.locales == 'false' - run: exit 0 - 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 diff --git a/locale/fr-fr/dialog/current/current-weather-local.dialog b/locale/fr-fr/dialog/current/current-weather-local.dialog index 2576e0c8..9ea07e85 100644 --- a/locale/fr-fr/dialog/current/current-weather-local.dialog +++ b/locale/fr-fr/dialog/current/current-weather-local.dialog @@ -1,4 +1,4 @@ # auto translated from en-us to fr-fr -Il fait actuellement 0 et 1 degré. -En ce moment, il fait 0 et 1 degré. -Il fait actuellement 0 et 1 degré 2. +Il fait actuellement {condition} et {temperature} degré. +En ce moment, il fait {condition} et {temperature} degré. +Il fait actuellement {condition} et {temperature} degré {temperature_unit}.