The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): keep the locale catalogs under their size cap
Siddharth Balyanfcd90decf3c3
diff --git a/apps/desktop/src/i18n/de.ts b/apps/desktop/src/i18n/de.tsindex bd3959fb7ad..cc414328d9d 100644--- a/apps/desktop/src/i18n/de.ts+++ b/apps/desktop/src/i18n/de.ts@@ -2,6 +2,8 @@ import { defineFieldCopy } from '@/app/settings/field-copy'import { deAuxTasks } from './de_aux_tasks'import { deBoot } from './de_boot'+import { deConnectorAccounts } from './de_connector_accounts'+import { deConnectorCard } from './de_connector_card'import { deLocalModels } from './de_local_models'import { deModelMenu } from './de_model_menu'import { deNotices } from './de_notices'@@ -15,40 +17,7 @@ import { introDe } from './intro-de'export const deOverrides = {sharedMetrics: deSharedMetrics,intro: introDe,- connectors: {- title: 'Verbinden Sie Ihre Apps',- connect: 'Verbinden',- skip: 'Nicht jetzt',- cancel: 'Warten beenden',- retry: 'Erneut versuchen',- grant: 'Neu verbinden',- connected: 'Verbunden',- checking: 'Ihre Apps werden geprüft…',- notConnected: 'Verbindung fehlgeschlagen',- skipped: 'Übersprungen',- disabled: 'Nicht verfügbar',- failed: 'Verbindung fehlgeschlagen',- needsAuth: 'Zugriff abgelaufen',- opening: 'Anmeldung wird geöffnet…',- waiting: 'Schließen Sie die Verbindung im Browser ab…',- timeout: 'Freigabe steht noch aus.',- refresh: 'Status aktualisieren',- connectError: 'Freigabe konnte nicht gestartet werden. Versuchen Sie es erneut.',- connectErrorFor: app => `Die Freigabe für ${app} konnte nicht gestartet werden.`,- unavailable: 'Verbindungen sind für diese Session nicht verfügbar.',- ownerMissing: 'Öffnen Sie diese Konversation erneut, um ihre Verbindungen zu verwalten.',- search: 'App finden',- empty: 'Keine passende App',- disclaimer: 'Das Verbinden ist freiwillig. Geben Sie nur den Apps Zugriff, die Hermes verwenden soll.',- execution: 'Verbindungs-Tools',- setup: server => `${server} einrichten`,- openInBrowser: 'Im Browser öffnen',- setupCancel: 'Abbrechen',- authorizedToolsUnavailable: 'Autorisiert. Tools nicht verfügbar.',- required: 'Erforderlich',- namedAccount: (app: string, alias: string) => `Hermes hat dieses ${app}-Konto ${alias} genannt.`,- renameAccount: 'Umbenennen'- },+ connectors: deConnectorCard,connectorsPage: {title: 'Konnektoren',searchPlaceholder: (count: number) => `${count} Apps durchsuchen`,@@ -206,31 +175,8 @@ export const deOverrides = {advancedHint: 'der mcp.json-Eintrag und die Logs'},- accounts: {- heading: 'Konten',- count: (count: number) => `${count} ${count === 1 ? 'Konto' : 'Konten'}`,- addAnother: 'Weiteres Konto hinzufügen',- aliasLabel: 'Kontoname',- aliasHint: 'Kleinbuchstaben, Ziffern und Bindestriche, höchstens 32. Zum Beispiel arbeit oder privat.',- aliasInvalid:- 'Verwenden Sie Kleinbuchstaben, Ziffern und Bindestriche, beginnend mit einem Buchstaben oder einer Ziffer.',- aliasTaken: 'Dieser Name wird bereits verwendet.',- add: 'Verbinden',- rename: 'Umbenennen',- renameLabel: (name: string) => `Neuer Name für ${name}`,- remove: 'Entfernen',- removeTitle: (app: string, name: string) => `Das ${app}-Konto ${name} entfernen?`,- removeBody: 'Hermes handelt nicht mehr über dieses Konto. Ihre anderen Konten bleiben verbunden.',- retiredCount: (count: number) => `${count} ersetzt`,- status: {- expired: 'Zugriff abgelaufen',- failed: 'Verbindung fehlgeschlagen',- inactive: 'Inaktiv',- pending: 'Wartet auf Anmeldung',- retired: 'Durch erneutes Verbinden ersetzt',- revoked: 'Zugriff widerrufen'- }- },+ accounts: deConnectorAccounts,+tools: {title: 'Tools',notInstalledBody: 'Installieren Sie ihn auf diesem Gerät, um seine Tools zu sehen.',diff --git a/apps/desktop/src/i18n/de_connector_accounts.ts b/apps/desktop/src/i18n/de_connector_accounts.tsnew file mode 100644index 00000000000..57e662621cd--- /dev/null+++ b/apps/desktop/src/i18n/de_connector_accounts.ts@@ -0,0 +1,27 @@+import type { TranslationOverrides } from './define-locale'++export const deConnectorAccounts: NonNullable<TranslationOverrides['connectorsPage']>['accounts'] = {+ heading: 'Konten',+ count: (count: number) => `${count} ${count === 1 ? 'Konto' : 'Konten'}`,+ addAnother: 'Weiteres Konto hinzufügen',+ aliasLabel: 'Kontoname',+ aliasHint: 'Kleinbuchstaben, Ziffern und Bindestriche, höchstens 32. Zum Beispiel arbeit oder privat.',+ aliasInvalid:+ 'Verwenden Sie Kleinbuchstaben, Ziffern und Bindestriche, beginnend mit einem Buchstaben oder einer Ziffer.',+ aliasTaken: 'Dieser Name wird bereits verwendet.',+ add: 'Verbinden',+ rename: 'Umbenennen',+ renameLabel: (name: string) => `Neuer Name für ${name}`,+ remove: 'Entfernen',+ removeTitle: (app: string, name: string) => `Das ${app}-Konto ${name} entfernen?`,+ removeBody: 'Hermes handelt nicht mehr über dieses Konto. Ihre anderen Konten bleiben verbunden.',+ retiredCount: (count: number) => `${count} ersetzt`,+ status: {+ expired: 'Zugriff abgelaufen',+ failed: 'Verbindung fehlgeschlagen',+ inactive: 'Inaktiv',+ pending: 'Wartet auf Anmeldung',+ retired: 'Durch erneutes Verbinden ersetzt',+ revoked: 'Zugriff widerrufen'+ }+}diff --git a/apps/desktop/src/i18n/de_connector_card.ts b/apps/desktop/src/i18n/de_connector_card.tsnew file mode 100644index 00000000000..7e4e8830080--- /dev/null+++ b/apps/desktop/src/i18n/de_connector_card.ts@@ -0,0 +1,36 @@+import type { TranslationOverrides } from './define-locale'++export const deConnectorCard: TranslationOverrides['connectors'] = {+ title: 'Verbinden Sie Ihre Apps',+ connect: 'Verbinden',+ skip: 'Nicht jetzt',+ cancel: 'Warten beenden',+ retry: 'Erneut versuchen',+ grant: 'Neu verbinden',+ connected: 'Verbunden',+ checking: 'Ihre Apps werden geprüft…',+ notConnected: 'Verbindung fehlgeschlagen',+ skipped: 'Übersprungen',+ disabled: 'Nicht verfügbar',+ failed: 'Verbindung fehlgeschlagen',+ needsAuth: 'Zugriff abgelaufen',+ opening: 'Anmeldung wird geöffnet…',+ waiting: 'Schließen Sie die Verbindung im Browser ab…',+ timeout: 'Freigabe steht noch aus.',+ refresh: 'Status aktualisieren',+ connectError: 'Freigabe konnte nicht gestartet werden. Versuchen Sie es erneut.',+ connectErrorFor: app => `Die Freigabe für ${app} konnte nicht gestartet werden.`,+ unavailable: 'Verbindungen sind für diese Session nicht verfügbar.',+ ownerMissing: 'Öffnen Sie diese Konversation erneut, um ihre Verbindungen zu verwalten.',+ search: 'App finden',+ empty: 'Keine passende App',+ disclaimer: 'Das Verbinden ist freiwillig. Geben Sie nur den Apps Zugriff, die Hermes verwenden soll.',+ execution: 'Verbindungs-Tools',+ setup: server => `${server} einrichten`,+ openInBrowser: 'Im Browser öffnen',+ setupCancel: 'Abbrechen',+ authorizedToolsUnavailable: 'Autorisiert. Tools nicht verfügbar.',+ required: 'Erforderlich',+ namedAccount: (app: string, alias: string) => `Hermes hat dieses ${app}-Konto ${alias} genannt.`,+ renameAccount: 'Umbenennen'+}diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.tsindex 4360e46d613..014ef4f4cf6 100644--- a/apps/desktop/src/i18n/en.ts+++ b/apps/desktop/src/i18n/en.ts@@ -5,6 +5,8 @@ import { enAuxTasks } from './en_aux_tasks'import { enBilling } from './en_billing'import { enBoot } from './en_boot'import { enCatalogInstall } from './en_catalog_install'+import { enConnectorAccounts } from './en_connector_accounts'+import { enConnectorCard } from './en_connector_card'import { enLocalModels } from './en_local_models'import { enModelMenu } from './en_model_menu'import { enNotices } from './en_notices'@@ -30,40 +32,7 @@ export const en: Translations = {appTour: enAppTour,// English editorial copy stays in the shipped JSONL; other locales override it.intro: { stock: {}, custom: () => [] },- connectors: {- title: 'Connect your apps',- connect: 'Connect',- skip: 'Not now',- cancel: 'Stop waiting',- retry: 'Try again',- grant: 'Reconnect',- connected: 'Connected',- checking: 'Checking your apps…',- notConnected: 'Not connected',- skipped: 'Skipped',- disabled: 'Unavailable',- failed: 'Could not connect',- needsAuth: 'Access expired',- opening: 'Opening sign-in…',- waiting: 'Waiting for your browser…',- timeout: 'Still waiting for authorization.',- refresh: 'Refresh status',- connectError: 'Could not start authorization. Try again.',- connectErrorFor: (app: string) => `Could not start authorization for ${app}.`,- unavailable: 'Connectors are unavailable for this session.',- ownerMissing: 'Reopen this conversation to manage its connections.',- search: 'Find an app',- empty: 'No matching apps',- disclaimer: 'Connecting is optional. Only authorize the apps you want Hermes to use.',- execution: 'Connector tools',- setup: server => `Set up ${server}`,- openInBrowser: 'Open in browser',- setupCancel: 'Cancel',- authorizedToolsUnavailable: 'Authorized. Tools unavailable.',- required: 'Required',- namedAccount: (app: string, alias: string) => `Hermes named this ${app} account ${alias}.`,- renameAccount: 'Rename'- },+ connectors: enConnectorCard,// `connectors.*` above stays the onboarding and chat vocabulary; these are the page's own, and the two are not shared.connectorsPage: {@@ -229,30 +198,7 @@ export const en: Translations = {advancedHint: 'the mcp.json entry and logs'},- accounts: {- heading: 'Accounts',- count: (count: number) => `${count} account${count === 1 ? '' : 's'}`,- addAnother: 'Add another account',- aliasLabel: 'Account name',- aliasHint: 'Lowercase letters, numbers and dashes, up to 32. For example work or home.',- aliasInvalid: 'Use lowercase letters, numbers and dashes, starting with a letter or number.',- aliasTaken: 'That name is already used.',- add: 'Connect',- rename: 'Rename',- renameLabel: (name: string) => `New name for ${name}`,- remove: 'Remove',- removeTitle: (app: string, name: string) => `Remove the ${name} ${app} account?`,- removeBody: 'Hermes stops acting as this account. Your other accounts stay connected.',- retiredCount: (count: number) => `${count} retired`,- status: {- expired: 'Access expired',- failed: 'Could not connect',- inactive: 'Inactive',- pending: 'Waiting for sign-in',- retired: 'Replaced by a reconnect',- revoked: 'Access revoked'- }- },+ accounts: enConnectorAccounts,tools: {title: 'Tools',diff --git a/apps/desktop/src/i18n/en_connector_accounts.ts b/apps/desktop/src/i18n/en_connector_accounts.tsnew file mode 100644index 00000000000..78efcfb3511--- /dev/null+++ b/apps/desktop/src/i18n/en_connector_accounts.ts@@ -0,0 +1,26 @@+import type { Translations } from './types'++export const enConnectorAccounts: Translations['connectorsPage']['accounts'] = {+ heading: 'Accounts',+ count: (count: number) => `${count} account${count === 1 ? '' : 's'}`,+ addAnother: 'Add another account',+ aliasLabel: 'Account name',+ aliasHint: 'Lowercase letters, numbers and dashes, up to 32. For example work or home.',+ aliasInvalid: 'Use lowercase letters, numbers and dashes, starting with a letter or number.',+ aliasTaken: 'That name is already used.',+ add: 'Connect',+ rename: 'Rename',+ renameLabel: (name: string) => `New name for ${name}`,+ remove: 'Remove',+ removeTitle: (app: string, name: string) => `Remove the ${name} ${app} account?`,+ removeBody: 'Hermes stops acting as this account. Your other accounts stay connected.',+ retiredCount: (count: number) => `${count} retired`,+ status: {+ expired: 'Access expired',+ failed: 'Could not connect',+ inactive: 'Inactive',+ pending: 'Waiting for sign-in',+ retired: 'Replaced by a reconnect',+ revoked: 'Access revoked'+ }+}diff --git a/apps/desktop/src/i18n/en_connector_card.ts b/apps/desktop/src/i18n/en_connector_card.tsnew file mode 100644index 00000000000..450d900ce86--- /dev/null+++ b/apps/desktop/src/i18n/en_connector_card.ts@@ -0,0 +1,36 @@+import type { Translations } from './types'++export const enConnectorCard: Translations['connectors'] = {+ title: 'Connect your apps',+ connect: 'Connect',+ skip: 'Not now',+ cancel: 'Stop waiting',+ retry: 'Try again',+ grant: 'Reconnect',+ connected: 'Connected',+ checking: 'Checking your apps…',+ notConnected: 'Not connected',+ skipped: 'Skipped',+ disabled: 'Unavailable',+ failed: 'Could not connect',+ needsAuth: 'Access expired',+ opening: 'Opening sign-in…',+ waiting: 'Waiting for your browser…',+ timeout: 'Still waiting for authorization.',+ refresh: 'Refresh status',+ connectError: 'Could not start authorization. Try again.',+ connectErrorFor: (app: string) => `Could not start authorization for ${app}.`,+ unavailable: 'Connectors are unavailable for this session.',+ ownerMissing: 'Reopen this conversation to manage its connections.',+ search: 'Find an app',+ empty: 'No matching apps',+ disclaimer: 'Connecting is optional. Only authorize the apps you want Hermes to use.',+ execution: 'Connector tools',+ setup: server => `Set up ${server}`,+ openInBrowser: 'Open in browser',+ setupCancel: 'Cancel',+ authorizedToolsUnavailable: 'Authorized. Tools unavailable.',+ required: 'Required',+ namedAccount: (app: string, alias: string) => `Hermes named this ${app} account ${alias}.`,+ renameAccount: 'Rename'+}diff --git a/apps/desktop/src/i18n/es.ts b/apps/desktop/src/i18n/es.tsindex 4bc1016483d..2854cda3f4d 100644--- a/apps/desktop/src/i18n/es.ts+++ b/apps/desktop/src/i18n/es.ts@@ -3,6 +3,8 @@ import { defineFieldCopy } from '@/app/settings/field-copy'import { defineLocale, type TranslationOverrides } from './define-locale'import { esAuxTasks } from './es_aux_tasks'import { esBoot } from './es_boot'+import { esConnectorAccounts } from './es_connector_accounts'+import { esConnectorCard } from './es_connector_card'import { esLocalModels } from './es_local_models'import { esModelMenu } from './es_model_menu'import { esNotices } from './es_notices'@@ -15,40 +17,7 @@ import { introEs } from './intro-es'export const esOverrides = {sharedMetrics: esSharedMetrics,intro: introEs,- connectors: {- title: 'Conecta tus apps',- connect: 'Conectar',- skip: 'Ahora no',- cancel: 'Dejar de esperar',- retry: 'Reintentar',- grant: 'Volver a conectar',- connected: 'Conectado',- checking: 'Comprobando tus apps…',- notConnected: 'No conectado',- skipped: 'Omitido',- disabled: 'No disponible',- failed: 'No se pudo conectar',- needsAuth: 'Acceso caducado',- opening: 'Abriendo el inicio de sesión…',- waiting: 'Esperando a tu navegador…',- timeout: 'Seguimos esperando la autorización.',- refresh: 'Actualizar estado',- connectError: 'No se pudo iniciar la autorización. Inténtalo de nuevo.',- connectErrorFor: (app: string) => `No se pudo iniciar la autorización para ${app}.`,- unavailable: 'Los conectores no están disponibles en esta sesión.',- ownerMissing: 'Vuelve a abrir esta conversación para gestionar sus conexiones.',- search: 'Buscar una app',- empty: 'No hay apps que coincidan',- disclaimer: 'Conectar es opcional. Autoriza solo las apps que quieras que use Hermes.',- execution: 'Herramientas de conectores',- setup: server => `Configurar ${server}`,- openInBrowser: 'Abrir en el navegador',- setupCancel: 'Cancelar',- authorizedToolsUnavailable: 'Autorizado. Herramientas no disponibles.',- required: 'Obligatorio',- namedAccount: (app: string, alias: string) => `Hermes llamó ${alias} a esta cuenta de ${app}.`,- renameAccount: 'Cambiar nombre'- },+ connectors: esConnectorCard,connectorsPage: {title: 'Conectores',searchPlaceholder: (count: number) => `Buscar entre ${count} apps`,@@ -206,30 +175,8 @@ export const esOverrides = {advancedHint: 'la entrada de mcp.json y los registros'},- accounts: {- heading: 'Cuentas',- count: (count: number) => `${count} cuenta${count === 1 ? '' : 's'}`,- addAnother: 'Añadir otra cuenta',- aliasLabel: 'Nombre de la cuenta',- aliasHint: 'Minúsculas, números y guiones, hasta 32. Por ejemplo trabajo o casa.',- aliasInvalid: 'Usa minúsculas, números y guiones, empezando por una letra o un número.',- aliasTaken: 'Ese nombre ya está en uso.',- add: 'Conectar',- rename: 'Cambiar nombre',- renameLabel: (name: string) => `Nuevo nombre para ${name}`,- remove: 'Quitar',- removeTitle: (app: string, name: string) => `¿Quitar la cuenta ${name} de ${app}?`,- removeBody: 'Hermes deja de actuar con esta cuenta. Tus otras cuentas siguen conectadas.',- retiredCount: (count: number) => `${count} retirada${count === 1 ? '' : 's'}`,- status: {- expired: 'Acceso caducado',- failed: 'No se pudo conectar',- inactive: 'Inactiva',- pending: 'Esperando el inicio de sesión',- retired: 'Sustituida al reconectar',- revoked: 'Acceso revocado'- }- },+ accounts: esConnectorAccounts,+tools: {title: 'Herramientas',notInstalledBody: 'Instálalo en este dispositivo para ver las herramientas que incluye.',diff --git a/apps/desktop/src/i18n/es_connector_accounts.ts b/apps/desktop/src/i18n/es_connector_accounts.tsnew file mode 100644index 00000000000..07cd03f6b3f--- /dev/null+++ b/apps/desktop/src/i18n/es_connector_accounts.ts@@ -0,0 +1,26 @@+import type { TranslationOverrides } from './define-locale'++export const esConnectorAccounts: NonNullable<TranslationOverrides['connectorsPage']>['accounts'] = {+ heading: 'Cuentas',+ count: (count: number) => `${count} cuenta${count === 1 ? '' : 's'}`,+ addAnother: 'Añadir otra cuenta',+ aliasLabel: 'Nombre de la cuenta',+ aliasHint: 'Minúsculas, números y guiones, hasta 32. Por ejemplo trabajo o casa.',+ aliasInvalid: 'Usa minúsculas, números y guiones, empezando por una letra o un número.',+ aliasTaken: 'Ese nombre ya está en uso.',+ add: 'Conectar',+ rename: 'Cambiar nombre',+ renameLabel: (name: string) => `Nuevo nombre para ${name}`,+ remove: 'Quitar',+ removeTitle: (app: string, name: string) => `¿Quitar la cuenta ${name} de ${app}?`,+ removeBody: 'Hermes deja de actuar con esta cuenta. Tus otras cuentas siguen conectadas.',+ retiredCount: (count: number) => `${count} retirada${count === 1 ? '' : 's'}`,+ status: {+ expired: 'Acceso caducado',+ failed: 'No se pudo conectar',+ inactive: 'Inactiva',+ pending: 'Esperando el inicio de sesión',+ retired: 'Sustituida al reconectar',+ revoked: 'Acceso revocado'+ }+}diff --git a/apps/desktop/src/i18n/es_connector_card.ts b/apps/desktop/src/i18n/es_connector_card.tsnew file mode 100644index 00000000000..0d73ca679eb--- /dev/null+++ b/apps/desktop/src/i18n/es_connector_card.ts@@ -0,0 +1,36 @@+import type { TranslationOverrides } from './define-locale'++export const esConnectorCard: TranslationOverrides['connectors'] = {+ title: 'Conecta tus apps',+ connect: 'Conectar',+ skip: 'Ahora no',+ cancel: 'Dejar de esperar',+ retry: 'Reintentar',+ grant: 'Volver a conectar',+ connected: 'Conectado',+ checking: 'Comprobando tus apps…',+ notConnected: 'No conectado',+ skipped: 'Omitido',+ disabled: 'No disponible',+ failed: 'No se pudo conectar',+ needsAuth: 'Acceso caducado',+ opening: 'Abriendo el inicio de sesión…',+ waiting: 'Esperando a tu navegador…',+ timeout: 'Seguimos esperando la autorización.',+ refresh: 'Actualizar estado',+ connectError: 'No se pudo iniciar la autorización. Inténtalo de nuevo.',+ connectErrorFor: (app: string) => `No se pudo iniciar la autorización para ${app}.`,+ unavailable: 'Los conectores no están disponibles en esta sesión.',+ ownerMissing: 'Vuelve a abrir esta conversación para gestionar sus conexiones.',+ search: 'Buscar una app',+ empty: 'No hay apps que coincidan',+ disclaimer: 'Conectar es opcional. Autoriza solo las apps que quieras que use Hermes.',+ execution: 'Herramientas de conectores',+ setup: server => `Configurar ${server}`,+ openInBrowser: 'Abrir en el navegador',+ setupCancel: 'Cancelar',+ authorizedToolsUnavailable: 'Autorizado. Herramientas no disponibles.',+ required: 'Obligatorio',+ namedAccount: (app: string, alias: string) => `Hermes llamó ${alias} a esta cuenta de ${app}.`,+ renameAccount: 'Cambiar nombre'+}diff --git a/apps/desktop/src/i18n/fr.ts b/apps/desktop/src/i18n/fr.tsindex 994e44b4f99..c0fec45f0cd 100644--- a/apps/desktop/src/i18n/fr.ts+++ b/apps/desktop/src/i18n/fr.ts@@ -3,6 +3,8 @@ import { defineFieldCopy } from '@/app/settings/field-copy'import { defineLocale, type TranslationOverrides } from './define-locale'import { frAuxTasks } from './fr_aux_tasks'import { frBoot } from './fr_boot'+import { frConnectorAccounts } from './fr_connector_accounts'+import { frConnectorCard } from './fr_connector_card'import { frLocalModels } from './fr_local_models'import { frModelMenu } from './fr_model_menu'import { frNotices } from './fr_notices'@@ -15,40 +17,7 @@ import { introFr } from './intro-fr'export const frOverrides = {sharedMetrics: frSharedMetrics,intro: introFr,- connectors: {- title: 'Connectez vos applications',- connect: 'Connecter',- skip: 'Pas maintenant',- cancel: "Arrêter l'attente",- retry: 'Réessayer',- grant: 'Reconnecter',- connected: 'Connecté',- checking: 'Vérification de vos applications…',- notConnected: 'Non connecté',- skipped: 'Ignoré',- disabled: 'Indisponible',- failed: 'Connexion impossible',- needsAuth: 'Accès expiré',- opening: 'Ouverture de la connexion…',- waiting: 'Terminez la connexion dans votre navigateur…',- timeout: "Toujours en attente de l'autorisation.",- refresh: "Actualiser l'état",- connectError: "Impossible de démarrer l'autorisation. Réessayez.",- connectErrorFor: app => `Impossible de démarrer l'autorisation pour ${app}.`,- unavailable: 'Les connecteurs ne sont pas disponibles pour cette session.',- ownerMissing: 'Rouvrez cette conversation pour gérer ses connexions.',- search: 'Rechercher une application',- empty: 'Aucune application correspondante',- disclaimer: "La connexion est facultative. N'autorisez que les applications que vous voulez confier à Hermes.",- execution: 'Outils des connecteurs',- setup: server => `Configurer ${server}`,- openInBrowser: 'Ouvrir dans le navigateur',- setupCancel: 'Annuler',- authorizedToolsUnavailable: 'Autorisé. Outils indisponibles.',- required: 'Obligatoire',- namedAccount: (app: string, alias: string) => `Hermes a nommé ce compte ${app} ${alias}.`,- renameAccount: 'Renommer'- },+ connectors: frConnectorCard,connectorsPage: {title: 'Connecteurs',searchPlaceholder: (count: number) => `Rechercher parmi ${count} applications`,@@ -206,31 +175,8 @@ export const frOverrides = {advancedHint: "l'entrée mcp.json et les journaux"},- accounts: {- heading: 'Comptes',- count: (count: number) => `${count} compte${count === 1 ? '' : 's'}`,- addAnother: 'Ajouter un autre compte',- aliasLabel: 'Nom du compte',- aliasHint: 'Lettres minuscules, chiffres et tirets, 32 au plus. Par exemple travail ou maison.',- aliasInvalid:- 'Utilisez des lettres minuscules, des chiffres et des tirets, en commençant par une lettre ou un chiffre.',- aliasTaken: 'Ce nom est déjà utilisé.',- add: 'Connecter',- rename: 'Renommer',- renameLabel: (name: string) => `Nouveau nom pour ${name}`,- remove: 'Retirer',- removeTitle: (app: string, name: string) => `Retirer le compte ${app} ${name} ?`,- removeBody: "Hermes cesse d'agir avec ce compte. Vos autres comptes restent connectés.",- retiredCount: (count: number) => `${count} retiré${count === 1 ? '' : 's'}`,- status: {- expired: 'Accès expiré',- failed: 'Connexion impossible',- inactive: 'Inactif',- pending: 'En attente de connexion',- retired: 'Remplacé par une reconnexion',- revoked: 'Accès révoqué'- }- },+ accounts: frConnectorAccounts,+tools: {title: 'Outils',notInstalledBody: "Installez-le sur cet appareil pour voir les outils qu'il apporte.",diff --git a/apps/desktop/src/i18n/fr_connector_accounts.ts b/apps/desktop/src/i18n/fr_connector_accounts.tsnew file mode 100644index 00000000000..dd553102e0c--- /dev/null+++ b/apps/desktop/src/i18n/fr_connector_accounts.ts@@ -0,0 +1,27 @@+import type { TranslationOverrides } from './define-locale'++export const frConnectorAccounts: NonNullable<TranslationOverrides['connectorsPage']>['accounts'] = {+ heading: 'Comptes',+ count: (count: number) => `${count} compte${count === 1 ? '' : 's'}`,+ addAnother: 'Ajouter un autre compte',+ aliasLabel: 'Nom du compte',+ aliasHint: 'Lettres minuscules, chiffres et tirets, 32 au plus. Par exemple travail ou maison.',+ aliasInvalid:+ 'Utilisez des lettres minuscules, des chiffres et des tirets, en commençant par une lettre ou un chiffre.',+ aliasTaken: 'Ce nom est déjà utilisé.',+ add: 'Connecter',+ rename: 'Renommer',+ renameLabel: (name: string) => `Nouveau nom pour ${name}`,+ remove: 'Retirer',+ removeTitle: (app: string, name: string) => `Retirer le compte ${app} ${name} ?`,+ removeBody: "Hermes cesse d'agir avec ce compte. Vos autres comptes restent connectés.",+ retiredCount: (count: number) => `${count} retiré${count === 1 ? '' : 's'}`,+ status: {+ expired: 'Accès expiré',+ failed: 'Connexion impossible',+ inactive: 'Inactif',+ pending: 'En attente de connexion',+ retired: 'Remplacé par une reconnexion',+ revoked: 'Accès révoqué'+ }+}diff --git a/apps/desktop/src/i18n/fr_connector_card.ts b/apps/desktop/src/i18n/fr_connector_card.tsnew file mode 100644index 00000000000..9d2d31f173c--- /dev/null+++ b/apps/desktop/src/i18n/fr_connector_card.ts@@ -0,0 +1,36 @@+import type { TranslationOverrides } from './define-locale'++export const frConnectorCard: TranslationOverrides['connectors'] = {+ title: 'Connectez vos applications',+ connect: 'Connecter',+ skip: 'Pas maintenant',+ cancel: "Arrêter l'attente",+ retry: 'Réessayer',+ grant: 'Reconnecter',+ connected: 'Connecté',+ checking: 'Vérification de vos applications…',+ notConnected: 'Non connecté',+ skipped: 'Ignoré',+ disabled: 'Indisponible',+ failed: 'Connexion impossible',+ needsAuth: 'Accès expiré',+ opening: 'Ouverture de la connexion…',+ waiting: 'Terminez la connexion dans votre navigateur…',+ timeout: "Toujours en attente de l'autorisation.",+ refresh: "Actualiser l'état",+ connectError: "Impossible de démarrer l'autorisation. Réessayez.",+ connectErrorFor: app => `Impossible de démarrer l'autorisation pour ${app}.`,+ unavailable: 'Les connecteurs ne sont pas disponibles pour cette session.',+ ownerMissing: 'Rouvrez cette conversation pour gérer ses connexions.',+ search: 'Rechercher une application',+ empty: 'Aucune application correspondante',+ disclaimer: "La connexion est facultative. N'autorisez que les applications que vous voulez confier à Hermes.",+ execution: 'Outils des connecteurs',+ setup: server => `Configurer ${server}`,+ openInBrowser: 'Ouvrir dans le navigateur',+ setupCancel: 'Annuler',+ authorizedToolsUnavailable: 'Autorisé. Outils indisponibles.',+ required: 'Obligatoire',+ namedAccount: (app: string, alias: string) => `Hermes a nommé ce compte ${app} ${alias}.`,+ renameAccount: 'Renommer'+}diff --git a/apps/desktop/src/i18n/types.ts b/apps/desktop/src/i18n/types.tsindex 12ab238e34e..513385b2f7b 100644--- a/apps/desktop/src/i18n/types.ts+++ b/apps/desktop/src/i18n/types.ts@@ -13,6 +13,7 @@ import type { AuxTaskCopyMap } from './types_aux_tasks'import type { BillingTranslations } from './types_billing'import type { BootTranslations } from './types_boot'import type { CatalogInstallTranslations } from './types_catalog_install'+import type { ConnectorAccountsTranslations, ConnectorCardTranslations } from './types_connectors'import type { ModelMenuTranslations } from './types_model_menu'import type { NoticeTranslations } from './types_notices'import type { OnboardingTranslations } from './types_onboarding'@@ -93,40 +94,7 @@ export interface Translations extends NoticeTranslations {stock: Record<string, string[]>custom: (label: string) => string[]}- connectors: {- title: string- connect: string- skip: string- cancel: string- retry: string- grant: string- connected: string- checking: string- notConnected: string- skipped: string- disabled: string- failed: string- needsAuth: string- opening: string- waiting: string- timeout: string- refresh: string- connectError: string- connectErrorFor: (app: string) => string- unavailable: string- ownerMissing: string- search: string- empty: string- disclaimer: string- execution: string- setup: (server: string) => string- openInBrowser: string- setupCancel: string- authorizedToolsUnavailable: string- required: string- namedAccount: (app: string, alias: string) => string- renameAccount: string- }+ connectors: ConnectorCardTranslationsconnectorsPage: {title: stringsearchPlaceholder: (count: number) => string@@ -280,30 +248,7 @@ export interface Translations extends NoticeTranslations {advanced: stringadvancedHint: string}- accounts: {- heading: string- count: (count: number) => string- addAnother: string- aliasLabel: string- aliasHint: string- aliasInvalid: string- aliasTaken: string- add: string- rename: string- renameLabel: (name: string) => string- remove: string- removeTitle: (app: string, name: string) => string- removeBody: string- retiredCount: (count: number) => string- status: {- expired: string- failed: string- inactive: string- pending: string- retired: string- revoked: string- }- }+ accounts: ConnectorAccountsTranslationstools: {title: stringnotInstalledBody: stringdiff --git a/apps/desktop/src/i18n/types_connectors.ts b/apps/desktop/src/i18n/types_connectors.tsnew file mode 100644index 00000000000..4aa490d611a--- /dev/null+++ b/apps/desktop/src/i18n/types_connectors.ts@@ -0,0 +1,59 @@+export interface ConnectorCardTranslations {+ title: string+ connect: string+ skip: string+ cancel: string+ retry: string+ grant: string+ connected: string+ checking: string+ notConnected: string+ skipped: string+ disabled: string+ failed: string+ needsAuth: string+ opening: string+ waiting: string+ timeout: string+ refresh: string+ connectError: string+ connectErrorFor: (app: string) => string+ unavailable: string+ ownerMissing: string+ search: string+ empty: string+ disclaimer: string+ execution: string+ setup: (server: string) => string+ openInBrowser: string+ setupCancel: string+ authorizedToolsUnavailable: string+ required: string+ namedAccount: (app: string, alias: string) => string+ renameAccount: string+}++export interface ConnectorAccountsTranslations {+ heading: string+ count: (count: number) => string+ addAnother: string+ aliasLabel: string+ aliasHint: string+ aliasInvalid: string+ aliasTaken: string+ add: string+ rename: string+ renameLabel: (name: string) => string+ remove: string+ removeTitle: (app: string, name: string) => string+ removeBody: string+ retiredCount: (count: number) => string+ status: {+ expired: string+ failed: string+ inactive: string+ pending: string+ retired: string+ revoked: string+ }+}diff --git a/apps/desktop/src/i18n/zh.ts b/apps/desktop/src/i18n/zh.tsindex 9ee6c2281e0..116ce448f1e 100644--- a/apps/desktop/src/i18n/zh.ts+++ b/apps/desktop/src/i18n/zh.ts@@ -3,6 +3,7 @@ import { defineFieldCopy } from '@/app/settings/field-copy'import { defineLocale, type TranslationOverrides } from './define-locale'import { introZh } from './intro-zh'import { zhAuxTasks } from './zh_aux_tasks'+import { zhConnectorCard } from './zh_connector_card'import { zhLocalModels } from './zh_local_models'import { zhModelMenu } from './zh_model_menu'import { zhNotices } from './zh_notices'@@ -20,39 +21,7 @@ export const zhOverrides = {},sharedMetrics: zhSharedMetrics,intro: introZh,- connectors: {- title: '连接你的应用',- connect: '连接',- skip: '暂不连接',- cancel: '停止等待',- retry: '重试',- grant: '重新连接',- connected: '已连接',- skipped: '已跳过',- disabled: '不可用',- failed: '连接失败',- needsAuth: '授权已过期',- opening: '正在打开登录…',- waiting: '正在等待浏览器…',- notConnected: '未连接',- timeout: '仍在等待授权。',- refresh: '刷新状态',- connectError: '无法开始授权,请重试。',- connectErrorFor: app => `无法为 ${app} 开始授权。`,- unavailable: '此会话暂时无法使用连接器。',- ownerMissing: '请重新打开此对话以管理连接。',- search: '查找应用',- empty: '没有匹配的应用',- disclaimer: '连接为可选操作。请仅授权你希望 Hermes 使用的应用。',- execution: '连接器工具',- setup: server => `设置 ${server}`,- openInBrowser: '在浏览器中打开',- setupCancel: '取消',- authorizedToolsUnavailable: '已授权。工具不可用。',- required: '必填',- namedAccount: (app, alias) => `Hermes 已将这个 ${app} 账户命名为 ${alias}。`,- renameAccount: '重命名'- },+ connectors: zhConnectorCard,sessionImport: {title: '从其他应用继续',subtitle: '将对话导入 Hermes,接着上次的进度继续。',diff --git a/apps/desktop/src/i18n/zh_connector_card.ts b/apps/desktop/src/i18n/zh_connector_card.tsnew file mode 100644index 00000000000..98ab1a38a96--- /dev/null+++ b/apps/desktop/src/i18n/zh_connector_card.ts@@ -0,0 +1,35 @@+import type { TranslationOverrides } from './define-locale'++export const zhConnectorCard: TranslationOverrides['connectors'] = {+ title: '连接你的应用',+ connect: '连接',+ skip: '暂不连接',+ cancel: '停止等待',+ retry: '重试',+ grant: '重新连接',+ connected: '已连接',+ skipped: '已跳过',+ disabled: '不可用',+ failed: '连接失败',+ needsAuth: '授权已过期',+ opening: '正在打开登录…',+ waiting: '正在等待浏览器…',+ notConnected: '未连接',+ timeout: '仍在等待授权。',+ refresh: '刷新状态',+ connectError: '无法开始授权,请重试。',+ connectErrorFor: app => `无法为 ${app} 开始授权。`,+ unavailable: '此会话暂时无法使用连接器。',+ ownerMissing: '请重新打开此对话以管理连接。',+ search: '查找应用',+ empty: '没有匹配的应用',+ disclaimer: '连接为可选操作。请仅授权你希望 Hermes 使用的应用。',+ execution: '连接器工具',+ setup: server => `设置 ${server}`,+ openInBrowser: '在浏览器中打开',+ setupCancel: '取消',+ authorizedToolsUnavailable: '已授权。工具不可用。',+ required: '必填',+ namedAccount: (app, alias) => `Hermes 已将这个 ${app} 账户命名为 ${alias}。`,+ renameAccount: '重命名'+}diff --git a/locales/_keys.desktop.json b/locales/_keys.desktop.jsonindex 40f58cc328a..406c112f893 100644--- a/locales/_keys.desktop.json+++ b/locales/_keys.desktop.json@@ -1026,12 +1026,14 @@"connectors.execution","connectors.failed","connectors.grant",+ "connectors.namedAccount","connectors.needsAuth","connectors.notConnected","connectors.openInBrowser","connectors.opening","connectors.ownerMissing","connectors.refresh",+ "connectors.renameAccount","connectors.required","connectors.retry","connectors.search",@@ -1043,6 +1045,26 @@"connectors.title","connectors.unavailable","connectors.waiting",+ "connectorsPage.accounts.add",+ "connectorsPage.accounts.addAnother",+ "connectorsPage.accounts.aliasHint",+ "connectorsPage.accounts.aliasInvalid",+ "connectorsPage.accounts.aliasLabel",+ "connectorsPage.accounts.aliasTaken",+ "connectorsPage.accounts.count",+ "connectorsPage.accounts.heading",+ "connectorsPage.accounts.remove",+ "connectorsPage.accounts.removeBody",+ "connectorsPage.accounts.removeTitle",+ "connectorsPage.accounts.rename",+ "connectorsPage.accounts.renameLabel",+ "connectorsPage.accounts.retiredCount",+ "connectorsPage.accounts.status.expired",+ "connectorsPage.accounts.status.failed",+ "connectorsPage.accounts.status.inactive",+ "connectorsPage.accounts.status.pending",+ "connectorsPage.accounts.status.retired",+ "connectorsPage.accounts.status.revoked","connectorsPage.add.action","connectorsPage.add.addArg","connectorsPage.add.addEnvVar",