Skip to content

Commit

Permalink
Add translations for context bar buttons (#6038)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub Action <[email protected]>
  • Loading branch information
elevatebart and actions-user authored Nov 21, 2024
1 parent 56a2d80 commit 4431d1f
Show file tree
Hide file tree
Showing 13 changed files with 103 additions and 16 deletions.
13 changes: 8 additions & 5 deletions ui/src/components/ContextInfoBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
import {useStorage} from "@vueuse/core"
import {useStore} from "vuex";
import {useI18n} from "vue-i18n";
const {t} = useI18n();
const store = useStore();
Expand Down Expand Up @@ -81,20 +84,20 @@
<div class="barWrapper">
<button v-if="activeTab.length" class="barResizer" ref="resizeHandle" @mousedown="startResizing" />
<button class="barButton" :class="{barButtonActive: activeTab === 'news'}" @click="() => setActiveTab('news')">
<MessageOutline class="buttonIcon" />News
<MessageOutline class="buttonIcon" />{{ t('contextBar.news') }}
<div v-if="hasUnread" class="newsDot" />
</button>
<button class="barButton" :class="{barButtonActive: activeTab === 'docs'}" @click="() => setActiveTab('docs')">
<FileDocument class="buttonIcon" />Docs
<FileDocument class="buttonIcon" />{{ t('contextBar.docs') }}
</button>
<a href="https://kestra.io/slack" target="_blank" class="barButton">
<Slack class="buttonIcon" />Help<OpenInNew class="openIcon" />
<Slack class="buttonIcon" />{{ t('contextBar.help') }}<OpenInNew class="openIcon" />
</a>
<a href="https://github.com/kestra-io/kestra/issues/new/choose" target="_blank" class="barButton">
<Github class="buttonIcon" />Open an Issue<OpenInNew class="openIcon" />
<Github class="buttonIcon" />{{ t('contextBar.issue') }}<OpenInNew class="openIcon" />
</a>
<a href="https://kestra.io/demo" target="_blank" class="barButton">
<Calendar class="buttonIcon" />Get a demo<OpenInNew class="openIcon" />
<Calendar class="buttonIcon" />{{ t('contextBar.demo') }}<OpenInNew class="openIcon" />
</a>
<div style="flex:1" />
<span class="versionNumber">{{ configs?.version }}</span>
Expand Down
9 changes: 8 additions & 1 deletion ui/src/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,13 @@
"task run id": "TaskRun-ID",
"execution failed": "Die Ausführung ist fehlgeschlagen, klicken Sie hier für weitere Details.",
"optional": "Optional",
"active": "Aktiv"
"active": "Aktiv",
"contextBar": {
"news": "Nachrichten",
"issue": "Ein Issue öffnen",
"docs": "Dokumentation",
"demo": "Demo anfordern",
"help": "Hilfe"
}
}
}
7 changes: 7 additions & 0 deletions ui/src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,13 @@
"next execution date": "Next execution date",
"last execution status": "Last execution status",
"jump to...": "Jump to...",
"contextBar": {
"news": "News",
"docs": "Docs",
"help": "Help",
"issue": "Open an Issue",
"demo": "Get a demo"
},
"source": "Source",
"home": "Home",
"create": "Create",
Expand Down
9 changes: 8 additions & 1 deletion ui/src/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,13 @@
"task run id": "ID de TaskRun",
"execution failed": "La ejecución FAILED, haz clic aquí para más detalles.",
"optional": "Opcional",
"active": "Activo"
"active": "Activo",
"contextBar": {
"news": "Noticias",
"issue": "Abrir un Issue",
"docs": "Documentos",
"demo": "Obtener una demostración",
"help": "Ayuda"
}
}
}
9 changes: 8 additions & 1 deletion ui/src/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,13 @@
"task run id": "ID d'exécution de tâche",
"execution failed": "L'exécution a échoué, cliquez ici pour plus de détails.",
"optional": "Optionnel",
"active": "Actif"
"active": "Actif",
"contextBar": {
"news": "Nouvelles",
"issue": "Ouvrir un Issue",
"docs": "Docs",
"demo": "Obtenez une démo",
"help": "Aide"
}
}
}
9 changes: 8 additions & 1 deletion ui/src/translations/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,13 @@
"task run id": "टास्करन ID",
"execution failed": "निष्पादन FAILED हो गया, अधिक विवरण के लिए यहां क्लिक करें।",
"optional": "वैकल्पिक",
"active": "सक्रिय"
"active": "सक्रिय",
"contextBar": {
"news": "समाचार",
"issue": "समस्या खोलें",
"docs": "डॉक्स",
"demo": "डेमो प्राप्त करें",
"help": "मदद"
}
}
}
9 changes: 8 additions & 1 deletion ui/src/translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,13 @@
"task run id": "ID di TaskRun",
"execution failed": "L'esecuzione è FAILED, clicca qui per maggiori dettagli.",
"optional": "Opzionale",
"active": "Attivo"
"active": "Attivo",
"contextBar": {
"news": "Notizie",
"issue": "Apri un'Issue",
"docs": "Documenti",
"demo": "Ottieni una demo",
"help": "Aiuto"
}
}
}
9 changes: 8 additions & 1 deletion ui/src/translations/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,13 @@
"task run id": "タスクランID",
"execution failed": "実行がFAILEDしました。詳細については、こちらをクリックしてください。",
"optional": "オプション",
"active": "アクティブ"
"active": "アクティブ",
"contextBar": {
"news": "ニュース",
"issue": "問題を開く",
"docs": "ドキュメント",
"demo": "デモを取得",
"help": "ヘルプ"
}
}
}
9 changes: 8 additions & 1 deletion ui/src/translations/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,13 @@
"task run id": "TaskRun ID",
"execution failed": "실행이 FAILED되었습니다. 자세한 내용을 보려면 여기를 클릭하세요.",
"optional": "선택 사항",
"active": "활성화됨"
"active": "활성화됨",
"contextBar": {
"news": "뉴스",
"issue": "이슈 열기",
"docs": "문서",
"demo": "데모 받기",
"help": "도움말"
}
}
}
9 changes: 8 additions & 1 deletion ui/src/translations/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,13 @@
"task run id": "ID TaskRun",
"execution failed": "Wykonanie FAILED, kliknij tutaj, aby uzyskać więcej szczegółów.",
"optional": "Opcjonalne",
"active": "Aktywny"
"active": "Aktywny",
"contextBar": {
"news": "Wiadomości",
"issue": "Otwórz Issue",
"docs": "Dokumentacja",
"demo": "Uzyskaj demo",
"help": "Pomoc"
}
}
}
9 changes: 8 additions & 1 deletion ui/src/translations/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,13 @@
"task run id": "ID do TaskRun",
"execution failed": "A execução FAILED, clique aqui para mais detalhes.",
"optional": "Opcional",
"active": "Ativo"
"active": "Ativo",
"contextBar": {
"news": "Notícias",
"issue": "Abrir um Issue",
"docs": "Documentos",
"demo": "Obter uma demonstração",
"help": "Ajuda"
}
}
}
9 changes: 8 additions & 1 deletion ui/src/translations/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,13 @@
"task run id": "ID выполнения задачи",
"execution failed": "Выполнение завершилось с ошибкой, нажмите здесь для получения дополнительных сведений.",
"optional": "Опционально",
"active": "Активно"
"active": "Активно",
"contextBar": {
"news": "Новости",
"issue": "Открыть Issue",
"docs": "Документация",
"demo": "Получить демонстрацию",
"help": "Помощь"
}
}
}
9 changes: 8 additions & 1 deletion ui/src/translations/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,13 @@
"task run id": "任务运行 ID",
"execution failed": "执行FAILED,点击此处查看详细信息。",
"optional": "可选",
"active": "活动"
"active": "活动",
"contextBar": {
"news": "新闻",
"issue": "打开问题",
"docs": "文档",
"demo": "获取演示",
"help": "帮助"
}
}
}

0 comments on commit 4431d1f

Please sign in to comment.