The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): localize update groups and fallback release copy
brooklyn!c312d39931fd
diff --git a/apps/desktop/src/app/updates-overlay.tsx b/apps/desktop/src/app/updates-overlay.tsxindex 7148e276147..d9aa2df798a 100644--- a/apps/desktop/src/app/updates-overlay.tsx+++ b/apps/desktop/src/app/updates-overlay.tsx@@ -273,7 +273,17 @@ function IdleView({)}- const groups = buildCommitChangelog(commits)+ const groups = buildCommitChangelog(commits, {+ labels: {+ new: u.changeLogNew,+ fixed: u.changeLogFixed,+ faster: u.changeLogFaster,+ improved: u.changeLogImproved,+ other: u.changeLogOther+ },+ fallback: { label: u.changeLogFallbackLabel, item: u.changeLogFallbackItem }+ })+const shownItems = totalItems(groups)const remaining = Math.max(0, behind - shownItems)@@ -295,7 +305,7 @@ function IdleView({<div className="grid gap-3">{groups.map(group => (<div key={group.id}>- <p className="text-[0.625rem] font-semibold uppercase tracking-wide text-muted-foreground">{group.label}</p>+ <p className="text-[0.625rem] font-semibold text-muted-foreground">{group.label}</p><ul className="mt-1.5 grid gap-1.5 text-xs text-foreground">{group.items.map(item => (<li className="flex items-start gap-2" key={item}>diff --git a/apps/desktop/src/i18n/ar.ts b/apps/desktop/src/i18n/ar.tsindex d6637f314f6..6f6075b7f91 100644--- a/apps/desktop/src/i18n/ar.ts+++ b/apps/desktop/src/i18n/ar.ts@@ -2463,6 +2463,13 @@ export const ar = defineLocale({everythingSkipped: 'تم التخطي',everythingRowFailed: 'فشل التحديث',everythingFanoutFailedTitle: 'تعذر تحديث المثيلات الأخرى',+ changeLogNew: 'جديد',+ changeLogFixed: 'إصلاحات',+ changeLogFaster: 'أسرع',+ changeLogImproved: 'تحسينات',+ changeLogOther: 'تحسينات أخرى',+ changeLogFallbackLabel: 'في هذا التحديث',+ changeLogFallbackItem: 'تحسينات وإصلاحات',applyStatus: {preparing: 'جار تحديث الواجهة الخلفية...',pulling: 'جار تحديث الواجهة الخلفية...',diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.tsindex a267726b384..4116c222fa5 100644--- a/apps/desktop/src/i18n/en.ts+++ b/apps/desktop/src/i18n/en.ts@@ -3654,6 +3654,13 @@ export const en: Translations = {everythingSkipped: 'Skipped',everythingRowFailed: 'Update failed',everythingFanoutFailedTitle: 'Couldn’t update other instances',+ changeLogNew: "What's new",+ changeLogFixed: 'Fixed',+ changeLogFaster: 'Faster',+ changeLogImproved: 'Improved',+ changeLogOther: 'Other improvements',+ changeLogFallbackLabel: 'In this update',+ changeLogFallbackItem: 'Improvements and fixes',applyStatus: {preparing: 'Updating backend…',pulling: 'Backend updating…',diff --git a/apps/desktop/src/i18n/ja.ts b/apps/desktop/src/i18n/ja.tsindex b2413a198c7..3c1425e2ec7 100644--- a/apps/desktop/src/i18n/ja.ts+++ b/apps/desktop/src/i18n/ja.ts@@ -2829,6 +2829,13 @@ export const ja = defineLocale({everythingSkipped: 'スキップ',everythingRowFailed: '更新に失敗しました',everythingFanoutFailedTitle: '他のインスタンスを更新できませんでした',+ changeLogNew: '新機能',+ changeLogFixed: '修正',+ changeLogFaster: '高速化',+ changeLogImproved: '改善',+ changeLogOther: 'その他の改善',+ changeLogFallbackLabel: '今回の更新',+ changeLogFallbackItem: '改善と修正',applyStatus: {preparing: 'バックエンドを更新しています…',pulling: 'バックエンドを更新中…',diff --git a/apps/desktop/src/i18n/ru.ts b/apps/desktop/src/i18n/ru.tsindex 9da696819cc..366372ae7a6 100644--- a/apps/desktop/src/i18n/ru.ts+++ b/apps/desktop/src/i18n/ru.ts@@ -3122,6 +3122,13 @@ export const ru = defineLocale({everythingSkipped: 'Пропущено',everythingRowFailed: 'Обновление не удалось',everythingFanoutFailedTitle: 'Не удалось обновить другие инстанции',+ changeLogNew: 'Новое',+ changeLogFixed: 'Исправления',+ changeLogFaster: 'Быстродействие',+ changeLogImproved: 'Улучшения',+ changeLogOther: 'Другие улучшения',+ changeLogFallbackLabel: 'В этом обновлении',+ changeLogFallbackItem: 'Улучшения и исправления',applyStatus: {preparing: 'Обновляем бэкенд…',pulling: 'Бэкенд обновляется…',diff --git a/apps/desktop/src/i18n/types.ts b/apps/desktop/src/i18n/types.tsindex 4d869b52394..7cab3a37714 100644--- a/apps/desktop/src/i18n/types.ts+++ b/apps/desktop/src/i18n/types.ts@@ -3104,6 +3104,13 @@ export interface Translations {everythingSkipped: stringeverythingRowFailed: stringeverythingFanoutFailedTitle: string+ changeLogNew: string+ changeLogFixed: string+ changeLogFaster: string+ changeLogImproved: string+ changeLogOther: string+ changeLogFallbackLabel: string+ changeLogFallbackItem: stringapplyStatus: {preparing: stringpulling: stringdiff --git a/apps/desktop/src/i18n/zh-hant.ts b/apps/desktop/src/i18n/zh-hant.tsindex 12c8fa7349a..89fa232c28b 100644--- a/apps/desktop/src/i18n/zh-hant.ts+++ b/apps/desktop/src/i18n/zh-hant.ts@@ -2801,6 +2801,13 @@ export const zhHant = defineLocale({everythingSkipped: '已略過',everythingRowFailed: '更新失敗',everythingFanoutFailedTitle: '無法更新其他執行個體',+ changeLogNew: '新增功能',+ changeLogFixed: '修復',+ changeLogFaster: '更快',+ changeLogImproved: '改進',+ changeLogOther: '其他改進',+ changeLogFallbackLabel: '本次更新',+ changeLogFallbackItem: '改進與修復',applyStatus: {preparing: '正在更新後端…',pulling: '後端更新中…',diff --git a/apps/desktop/src/i18n/zh.ts b/apps/desktop/src/i18n/zh.tsindex 3fc9df56224..cf97f642e12 100644--- a/apps/desktop/src/i18n/zh.ts+++ b/apps/desktop/src/i18n/zh.ts@@ -3506,6 +3506,13 @@ export const zh = defineLocale({everythingSkipped: '已跳过',everythingRowFailed: '更新失败',everythingFanoutFailedTitle: '无法更新其他实例',+ changeLogNew: '新增',+ changeLogFixed: '修复',+ changeLogFaster: '更快',+ changeLogImproved: '改进',+ changeLogOther: '其他改进',+ changeLogFallbackLabel: '本次更新',+ changeLogFallbackItem: '改进与修复',applyStatus: {preparing: '正在更新后端…',pulling: '后端更新中…',diff --git a/apps/desktop/src/lib/commit-changelog.ts b/apps/desktop/src/lib/commit-changelog.tsindex a6aa60bec28..1a9ca995808 100644--- a/apps/desktop/src/lib/commit-changelog.ts+++ b/apps/desktop/src/lib/commit-changelog.ts@@ -35,6 +35,11 @@ interface BuildOptions {maxGroups?: numbermaxPerGroup?: numbermaxTotal?: number+ /** Per-group display labels (e.g. localized). A group without an entry+ * keeps its English default. */+ labels?: Partial<Record<CommitGroupId, string>>+ /** Label + item for the empty-state fallback group. */+ fallback?: { label: string; item: string }}const GROUP_META: Record<CommitGroupId, { label: string; order: number }> = {@@ -169,10 +174,18 @@ export function buildCommitChangelog(.map(([id, items]) => ({ id, items, label: GROUP_META[id].label, order: GROUP_META[id].order })).sort((a, b) => a.order - b.order).slice(0, maxGroups)- .map(({ id, items, label }): CommitGroup => ({ id, items, label }))+ .map(({ id, items, label }): CommitGroup => ({ id, items, label: options.labels?.[id] ?? label }))if (result.length === 0) {- return [FALLBACK_GROUP]+ const fallback = options.fallback++ return [+ {+ ...FALLBACK_GROUP,+ label: fallback?.label ?? FALLBACK_GROUP.label,+ items: [fallback?.item ?? FALLBACK_GROUP.items[0]]+ }+ ]}return result