Skip to content

The agent that grows with you

fix(desktop): ship fr/de/es as defineLocale overlays like ja/ru

brooklyn!883eea89c8c1
diff --git a/apps/desktop/src/i18n/catalog-completeness.test.ts b/apps/desktop/src/i18n/catalog-completeness.test.ts
index ad8479b06ca..65b48889fff 100644
--- a/apps/desktop/src/i18n/catalog-completeness.test.ts
+++ b/apps/desktop/src/i18n/catalog-completeness.test.ts
@@ -3,8 +3,9 @@ import { describe, expect, it } from 'vitest'
import { TRANSLATIONS } from './catalog'
import type { Locale } from './types'
-// Locales shipped as full catalogs (not `defineLocale` overlays), so every
-// English key must be present in the catalog object itself.
+// Locales that shipped fully translated. They are `defineLocale` overlays like
+// ja/ru, so an English key added later falls back to English instead of
+// failing typecheck; these checks keep the translated copy structurally sound.
const COMPLETE_LOCALES = ['fr', 'de', 'es'] as const satisfies readonly Locale[]
type Leaf = { path: string; value: unknown }
diff --git a/apps/desktop/src/i18n/de.ts b/apps/desktop/src/i18n/de.ts
index 8320d3ae7c5..5ff2eab3227 100644
--- a/apps/desktop/src/i18n/de.ts
+++ b/apps/desktop/src/i18n/de.ts
@@ -1,9 +1,9 @@
import { defineFieldCopy } from '@/app/settings/field-copy'
+import { defineLocale } from './define-locale'
import { introDe } from './intro-de'
-import type { Translations } from './types'
-export const de: Translations = {
+export const de = defineLocale({
intro: introDe,
connectors: {
title: 'Verbinden Sie Ihre Apps',
@@ -6008,4 +6008,4 @@ export const de: Translations = {
toggle: open => `${open ? 'Anzeigen' : 'Ausblenden'}: Sidebar`
}
}
-}
+})
diff --git a/apps/desktop/src/i18n/es.ts b/apps/desktop/src/i18n/es.ts
index f372d7c1198..c47e1fb572d 100644
--- a/apps/desktop/src/i18n/es.ts
+++ b/apps/desktop/src/i18n/es.ts
@@ -1,9 +1,9 @@
import { defineFieldCopy } from '@/app/settings/field-copy'
+import { defineLocale } from './define-locale'
import { introEs } from './intro-es'
-import type { Translations } from './types'
-export const es: Translations = {
+export const es = defineLocale({
intro: introEs,
connectors: {
title: 'Conecta tus apps',
@@ -5999,4 +5999,4 @@ export const es: Translations = {
toggle: open => `${open ? 'Mostrar' : 'Ocultar'} barra lateral`
}
}
-}
+})
diff --git a/apps/desktop/src/i18n/fr.ts b/apps/desktop/src/i18n/fr.ts
index 7b134cf6ad0..1ab079a8405 100644
--- a/apps/desktop/src/i18n/fr.ts
+++ b/apps/desktop/src/i18n/fr.ts
@@ -1,9 +1,9 @@
import { defineFieldCopy } from '@/app/settings/field-copy'
+import { defineLocale } from './define-locale'
import { introFr } from './intro-fr'
-import type { Translations } from './types'
-export const fr: Translations = {
+export const fr = defineLocale({
intro: introFr,
connectors: {
title: 'Connectez vos applications',
@@ -6018,4 +6018,4 @@ export const fr: Translations = {
toggle: open => `${open ? 'Afficher' : 'Masquer'} la barre latérale`
}
}
-}
+})