Skip to content

Commit 3d00604

Browse files
committed
fix(i18n): re-translate plugin help cards on language change and fall back for unknown run status (TM-286)
1 parent 3d8807d commit 3d00604

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

‎src/components/tasks/TaskAgentWork.vue‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@
7272
<span
7373
v-if="run.status === 'running'"
7474
class="mr-1 inline-block h-1.5 w-1.5 animate-pulse rounded-full bg-current align-middle"
75-
/>{{ $t(`taskAgent.agentWork.status.${run.status}`) }}
75+
/>{{
76+
$te(`taskAgent.agentWork.status.${run.status}`)
77+
? $t(`taskAgent.agentWork.status.${run.status}`)
78+
: run.status
79+
}}
7680
</span>
7781
<span class="ml-auto font-mono text-ink-subtle">
7882
{{ formatWorkDuration(liveSeconds(run, now, receivedAt[run.id])) }}

‎src/pages/Settings/PluginsHelp.vue‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@
407407
ShieldCheck,
408408
Users,
409409
} from 'lucide-vue-next';
410-
import { defineComponent, h, type PropType } from 'vue';
410+
import { computed, defineComponent, h, type PropType } from 'vue';
411411
412412
const StepLabel = defineComponent({
413413
props: {
@@ -495,7 +495,7 @@
495495
setDocumentTitle(t('settingsPages.pluginsHelp.title'));
496496
return {
497497
trayName: trayName(),
498-
glance: [
498+
glance: computed(() => [
499499
{
500500
icon: ShieldCheck,
501501
tone: 'bg-emerald-100 text-emerald-700 dark:bg-emerald-950 dark:text-emerald-300',
@@ -520,8 +520,8 @@
520520
title: t('settingsPages.pluginsHelp.glance.stop.title'),
521521
text: t('settingsPages.pluginsHelp.glance.stop.text'),
522522
},
523-
],
524-
abilities: [
523+
]),
524+
abilities: computed(() => [
525525
{
526526
icon: ListChecks,
527527
title: t('settingsPages.pluginsHelp.abilities.data.title'),
@@ -537,7 +537,7 @@
537537
title: t('settingsPages.pluginsHelp.abilities.pages.title'),
538538
text: t('settingsPages.pluginsHelp.abilities.pages.text'),
539539
},
540-
],
540+
]),
541541
};
542542
},
543543
});

0 commit comments

Comments
 (0)