diff --git a/.github/workflows/generate_translations.yml b/.github/workflows/generate_translations.yml
index 54be89401b..7e91923088 100644
--- a/.github/workflows/generate_translations.yml
+++ b/.github/workflows/generate_translations.yml
@@ -4,7 +4,7 @@ on:
pull_request:
types: [opened, synchronize]
paths:
- - 'ui/src/translations/en.json'
+ - "ui/src/translations/en.json"
push:
branches:
- develop
@@ -13,82 +13,82 @@ env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
jobs:
- generate:
- name: Generate Translations
- runs-on: ubuntu-latest
- steps:
- - name: Checkout code
- uses: actions/checkout@v4
- with:
- fetch-depth: 10
- ref: ${{ github.head_ref }}
-
- - name: Set up Python
- uses: actions/setup-python@v5
- with:
- python-version: '3.x'
-
- - name: Install dependencies
- run: pip install gitpython openai
-
- - name: Generate translations
- run: python ui/src/translations/generate_translations.py
-
commit:
name: Commit directly to PR
runs-on: ubuntu-latest
- needs: generate
if: ${{ github.event.pull_request.head.repo.fork == false }}
steps:
- - name: Checkout code
- uses: actions/checkout@v4
- with:
- fetch-depth: 10
+ - name: Checkout code
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 10
+ ref: ${{ github.head_ref }}
+
+ - name: Set up Python
+ uses: actions/setup-python@v5
+ with:
+ python-version: "3.x"
- - name: Set up Git
- run: |
- git config --global user.name "GitHub Action"
- git config --global user.email "actions@github.com"
+ - name: Install dependencies
+ run: pip install gitpython openai
- - name: Check for changes and commit
- env:
- GH_TOKEN: ${{ github.token }}
- run: |
- git add ui/src/translations/*.json
- if git diff --cached --quiet; then
- echo "No changes to commit. Exiting with success."
- exit 0
- fi
- git commit -m "chore(translations): auto generate values for languages other than english"
- git push origin ${{ github.head_ref }}
+ - name: Generate translations
+ run: python ui/src/translations/generate_translations.py
+
+ - name: Set up Git
+ run: |
+ git config --global user.name "GitHub Action"
+ git config --global user.email "actions@github.com"
+
+ - name: Check for changes and commit
+ env:
+ GH_TOKEN: ${{ github.token }}
+ run: |
+ git add ui/src/translations/*.json
+ if git diff --cached --quiet; then
+ echo "No changes to commit. Exiting with success."
+ exit 0
+ fi
+ git commit -m "chore(translations): auto generate values for languages other than english"
+ git push origin ${{ github.head_ref }}
pull_request:
name: Open PR for a forked repository
runs-on: ubuntu-latest
- needs: generate
if: ${{ github.event.pull_request.head.repo.fork == true }}
steps:
- - name: Checkout code
- uses: actions/checkout@v4
- with:
- fetch-depth: 10
+ - name: Checkout code
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 10
+
+ - name: Set up Python
+ uses: actions/setup-python@v5
+ with:
+ python-version: "3.x"
+
+ - name: Install dependencies
+ run: pip install gitpython openai
+
+ - name: Generate translations
+ run: python ui/src/translations/generate_translations.py
+
+ - name: Set up Git
+ run: |
+ git config --global user.name "GitHub Action"
+ git config --global user.email "actions@github.com"
- - name: Set up Git
- run: |
- git config --global user.name "GitHub Action"
- git config --global user.email "actions@github.com"
+ - name: Create and push a new branch
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ run: |
+ BRANCH_NAME="generated-translations-${{ github.event.pull_request.head.repo.name }}"
- - name: Create and push a new branch
- env:
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
- BRANCH_NAME="generated-translations-${{ github.event.pull_request.head.repo.name }}"
-
- git checkout -b $BRANCH_NAME
- git add ui/src/translations/*.json
- if git diff --cached --quiet; then
- echo "No changes to commit. Exiting with success."
- exit 0
- fi
- git commit -m "chore(translations): auto generate values for languages other than english"
- git push origin $BRANCH_NAME
\ No newline at end of file
+ git checkout -b $BRANCH_NAME
+ git add ui/src/translations/*.json
+ if git diff --cached --quiet; then
+ echo "No changes to commit. Exiting with success."
+ exit 0
+ fi
+ git commit -m "chore(translations): auto generate values for languages other than english"
+ git push origin $BRANCH_NAME
diff --git a/ui/src/components/executions/ChangeStatus.vue b/ui/src/components/executions/ChangeStatus.vue
index fdc852f95f..2fb3b94ad1 100644
--- a/ui/src/components/executions/ChangeStatus.vue
+++ b/ui/src/components/executions/ChangeStatus.vue
@@ -5,7 +5,7 @@
@click="visible = !visible"
:disabled="!enabled"
>
- {{ $t('change status') }}
+ {{ $t('change_status') }}
diff --git a/ui/src/components/executions/Gantt.vue b/ui/src/components/executions/Gantt.vue
index 3595f0339d..4bead67ba9 100644
--- a/ui/src/components/executions/Gantt.vue
+++ b/ui/src/components/executions/Gantt.vue
@@ -68,6 +68,7 @@
:target-execution="execution"
:target-flow="flow"
:show-logs="taskTypeByTaskRunId[item.id] !== 'io.kestra.plugin.core.flow.ForEachItem' && taskTypeByTaskRunId[item.id] !== 'io.kestra.core.tasks.flows.ForEachItem'"
+ class="mh-100"
/>
diff --git a/ui/src/components/layout/TopNavBar.vue b/ui/src/components/layout/TopNavBar.vue
index b54e66fec0..54d29387f7 100644
--- a/ui/src/components/layout/TopNavBar.vue
+++ b/ui/src/components/layout/TopNavBar.vue
@@ -14,11 +14,11 @@
-
+
-
+
{{ $t("delete logs") }}
diff --git a/ui/src/translations/de.json b/ui/src/translations/de.json
index ae69559bf4..42d3e2c01b 100644
--- a/ui/src/translations/de.json
+++ b/ui/src/translations/de.json
@@ -862,6 +862,7 @@
"active-slots": "Aktive Slots",
"concurrency": "Nebenläufigkeit",
"open sidebar": "Seitenleiste öffnen",
- "close sidebar": "Seitenleiste schließen"
+ "close sidebar": "Seitenleiste schließen",
+ "change_status": "Status ändern"
}
}
\ No newline at end of file
diff --git a/ui/src/translations/en.json b/ui/src/translations/en.json
index 3d70f53586..df81d29962 100644
--- a/ui/src/translations/en.json
+++ b/ui/src/translations/en.json
@@ -878,6 +878,7 @@
"desc_no_limit": "Read more about Concurrency Limits in our documentation."
},
"open sidebar": "open sidebar",
- "close sidebar": "close sidebar"
+ "close sidebar": "close sidebar",
+ "change_status": "Change status"
}
}
\ No newline at end of file
diff --git a/ui/src/translations/es.json b/ui/src/translations/es.json
index 946ed908e7..837e2378cd 100644
--- a/ui/src/translations/es.json
+++ b/ui/src/translations/es.json
@@ -862,6 +862,7 @@
"active-slots": "Ranuras activas",
"concurrency": "Concurrente",
"open sidebar": "abrir barra lateral",
- "close sidebar": "cerrar barra lateral"
+ "close sidebar": "cerrar barra lateral",
+ "change_status": "Cambiar estado"
}
}
\ No newline at end of file
diff --git a/ui/src/translations/fr.json b/ui/src/translations/fr.json
index a96ea6bc2c..b54e6bb1f0 100644
--- a/ui/src/translations/fr.json
+++ b/ui/src/translations/fr.json
@@ -861,6 +861,7 @@
"active-slots": "Slots actifs",
"concurrency": "Concurrence",
"open sidebar": "ouvrir la barre latérale",
- "close sidebar": "fermer la barre latérale"
+ "close sidebar": "fermer la barre latérale",
+ "change_status": "Changer le statut"
}
}
\ No newline at end of file
diff --git a/ui/src/translations/generate_translations.py b/ui/src/translations/generate_translations.py
index 7f1f23f956..c1da910384 100644
--- a/ui/src/translations/generate_translations.py
+++ b/ui/src/translations/generate_translations.py
@@ -93,6 +93,7 @@ def translate_dict(en_dict, target_language):
translated_value = translate_dict(value, target_language)
else:
translated_value = translate_text(value, target_language)
+ print(f"Translating key '{key}' with value '{value}' from English, to value '{translated_value}' in {target_language}.")
translated_dict[key] = translated_value
return translated_dict
@@ -160,7 +161,6 @@ def get_keys_to_translate(file_path="ui/src/translations/en.json"):
keys_to_translate = detect_changes(current_en_dict, previous_en_dict)
en_flat = flatten_dict(current_en_dict)
to_translate = {k: en_flat[k] for k in keys_to_translate}
- print("Changed data requiring translatation:", to_translate)
return to_translate
diff --git a/ui/src/translations/hi.json b/ui/src/translations/hi.json
index 1fd51a97db..4e0a1932d8 100644
--- a/ui/src/translations/hi.json
+++ b/ui/src/translations/hi.json
@@ -862,6 +862,7 @@
"active-slots": "सक्रिय स्लॉट्स",
"concurrency": "समानांतरता",
"open sidebar": "साइडबार खोलें",
- "close sidebar": "साइडबार बंद करें"
+ "close sidebar": "साइडबार बंद करें",
+ "change_status": "स्थिति बदलें"
}
}
\ No newline at end of file
diff --git a/ui/src/translations/it.json b/ui/src/translations/it.json
index 7f9e512402..c21a18e25c 100644
--- a/ui/src/translations/it.json
+++ b/ui/src/translations/it.json
@@ -862,6 +862,7 @@
"active-slots": "Slot attivi",
"concurrency": "Concurrency",
"open sidebar": "apri barra laterale",
- "close sidebar": "chiudi barra laterale"
+ "close sidebar": "chiudi barra laterale",
+ "change_status": "Cambia stato"
}
}
\ No newline at end of file
diff --git a/ui/src/translations/ja.json b/ui/src/translations/ja.json
index 9e2494e41d..e8b32dbe7c 100644
--- a/ui/src/translations/ja.json
+++ b/ui/src/translations/ja.json
@@ -862,6 +862,7 @@
"active-slots": "アクティブスロット",
"concurrency": "並行性",
"open sidebar": "サイドバーを開く",
- "close sidebar": "サイドバーを閉じる"
+ "close sidebar": "サイドバーを閉じる",
+ "change_status": "ステータスを変更"
}
}
\ No newline at end of file
diff --git a/ui/src/translations/ko.json b/ui/src/translations/ko.json
index d937fe8710..b189cd6067 100644
--- a/ui/src/translations/ko.json
+++ b/ui/src/translations/ko.json
@@ -862,6 +862,7 @@
"active-slots": "활성 슬롯",
"concurrency": "동시성",
"open sidebar": "사이드바 열기",
- "close sidebar": "사이드바 닫기"
+ "close sidebar": "사이드바 닫기",
+ "change_status": "상태 변경"
}
}
\ No newline at end of file
diff --git a/ui/src/translations/pl.json b/ui/src/translations/pl.json
index e00d98a267..73cac3e9d5 100644
--- a/ui/src/translations/pl.json
+++ b/ui/src/translations/pl.json
@@ -862,6 +862,7 @@
"active-slots": "Aktywne sloty",
"concurrency": "Współbieżność",
"open sidebar": "otwórz pasek boczny",
- "close sidebar": "zamknij pasek boczny"
+ "close sidebar": "zamknij pasek boczny",
+ "change_status": "Zmień status"
}
}
\ No newline at end of file
diff --git a/ui/src/translations/pt.json b/ui/src/translations/pt.json
index be83312312..dc6133353f 100644
--- a/ui/src/translations/pt.json
+++ b/ui/src/translations/pt.json
@@ -862,6 +862,7 @@
"active-slots": "Slots ativos",
"concurrency": "Concorrência",
"open sidebar": "abrir barra lateral",
- "close sidebar": "fechar barra lateral"
+ "close sidebar": "fechar barra lateral",
+ "change_status": "Alterar status"
}
}
\ No newline at end of file
diff --git a/ui/src/translations/ru.json b/ui/src/translations/ru.json
index cc77b80fca..d8c985b70a 100644
--- a/ui/src/translations/ru.json
+++ b/ui/src/translations/ru.json
@@ -862,6 +862,7 @@
"active-slots": "Активные слоты",
"concurrency": "Конкурентность",
"open sidebar": "открыть боковую панель",
- "close sidebar": "закрыть боковую панель"
+ "close sidebar": "закрыть боковую панель",
+ "change_status": "Изменить статус"
}
}
\ No newline at end of file
diff --git a/ui/src/translations/zh_CN.json b/ui/src/translations/zh_CN.json
index 308c280fa6..1bc782ab3f 100644
--- a/ui/src/translations/zh_CN.json
+++ b/ui/src/translations/zh_CN.json
@@ -862,6 +862,7 @@
"active-slots": "活动槽位",
"concurrency": "并发",
"open sidebar": "打开侧边栏",
- "close sidebar": "关闭侧边栏"
+ "close sidebar": "关闭侧边栏",
+ "change_status": "更改状态"
}
}
\ No newline at end of file