The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(desktop): local-models copy moves to per-locale siblings
emozillaf30bd45285a8
diff --git a/apps/desktop/src/i18n/de.ts b/apps/desktop/src/i18n/de.tsindex 679e01991b0..084534f7955 100644--- a/apps/desktop/src/i18n/de.ts+++ b/apps/desktop/src/i18n/de.ts@@ -2,6 +2,7 @@ import { defineFieldCopy } from '@/app/settings/field-copy'import { deAuxTasks } from './de_aux_tasks'import { deBoot } from './de_boot'+import { deLocalModels } from './de_local_models'import { deModelMenu } from './de_model_menu'import { deNotices } from './de_notices'import { deSharedMetrics } from './de_shared_metrics'@@ -2030,125 +2031,7 @@ export const deOverrides = {moaReferenceHint: 'berät standardmäßig einmal pro Turn',tasks: deAuxTasks},- localModels: {- connectionChanged: 'Verbindung für lokale Modelle geändert',- title: 'Lokale Modelle',- runtimeTitle: 'Lokale Laufzeit',- runtimeReady: backend => `Bereit · ${backend}`,- serverRunning: 'Läuft',- runtimeInstalled: 'llama.cpp-Laufzeit installiert',- runtimeInstalledDetail: (tag, backend) =>- `Build ${tag}, ${backend}-Backend. Hermes startet und verwaltet den Server für Sie.`,- installTitle: 'Lokale Laufzeit installieren',- installDetail:- 'Lädt die llama.cpp-Inferenz-Engine herunter (einige hundert MB). Heruntergeladene Modelle laufen komplett auf diesem Rechner – kein Konto, nichts verlässt Ihren Computer.',- installAction: 'Laufzeit installieren',- installing: 'Laufzeit wird installiert…',- installFailed: 'Laufzeit-Installation fehlgeschlagen',- hardwareTitle: 'Dieser Rechner',- hardwareLoading: 'Ihre Hardware wird geprüft…',- vram: label => `${label} GPU-Speicher`,- ram: label => `${label} RAM`,- unifiedMemory: 'Kombinierter Speicher',- modelsTitle: 'Modelle',- recommended: 'Empfohlen',- recommendedReason: {- 'best-quality-resident':- 'Das Modell mit der höchsten Qualität, das komplett auf Ihrer GPU mit voller Geschwindigkeit läuft. Die Auswahl wägt Qualität gegen die erwartete Geschwindigkeit auf dieser Hardware ab.',- 'speed-gated-quality':- 'Ein besseres Modell würde auf diesen Rechner passen, aber bei seiner Speicherbandbreite zu langsam reagieren — das ist das beste Modell, das schnell bleibt.',- 'fastest-resident':- 'Kein Modell erreicht volle Geschwindigkeit auf dieser Hardware; dieses kommt am nächsten und läuft komplett im GPU-Speicher.'- },- noRecommendationTitle: 'Keine automatische Empfehlung für diesen Rechner',- noRecommendationDetail:- 'Die automatische Einrichtung braucht ein kuratiertes Modell, das vollständig in den Grafikspeicher oder den gemeinsamen Speicher passt. Sie können unten trotzdem ein Modell wählen oder weitere Modelle durchsuchen.',- noRecommendationAction: 'Modelle durchsuchen',- downloaded: 'Heruntergeladen',- downloadAction: size => `Download · ${size}`,- downloadProgress: (done, total) => `${done} von ${total} werden heruntergeladen`,- downloadDoneToast: model => `${model} ist bereit.`,- installDoneToast: 'Lokale Laufzeit installiert und bereit.',- quickstartTitle: 'Ein Modell auf diesem Rechner ausführen',- quickstartDetail: (model, size) =>- `Ein Klick richtet alles ein: die lokale Engine, ${model} (${size} Download) und Ihre Voreinstellung für neue Chats. Nichts verlässt diesen Computer.`,- quickstartDetailReady: model =>- `Ein Klick macht ${model} zu Ihrer Voreinstellung für neue Chats. Alles läuft auf diesem Rechner.`,- quickstartAction: 'Für mich einrichten',- quickstartConfigure: 'Konfigurieren…',- quickstartDoneToast: model => `${model} ist eingerichtet — neue Chats laufen auf diesem Rechner.`,- quickstartFailed: 'Einrichtung des lokalen Modells fehlgeschlagen',- quickstartStageEngine: 'Engine',- quickstartStageModel: 'Modell',- quickstartStageFinish: 'Fertig',- useAction: 'Verwenden',- activePill: 'Voreinstellung',- updateTitle: 'Engine-Update verfügbar',- updateDetail: (next, current) =>- `Eine neuere llama.cpp-Version (${next}) ist bereit zur Installation – Sie verwenden ${current}. Während des Downloads laufen die Modelle weiter.`,- updateAction: 'Engine aktualisieren',- updating: 'Engine wird aktualisiert…',- upToDateTitle: 'Engine aktuell',- upToDateDetail: (tag, backend) =>- `llama.cpp ${tag} (${backend}) wird ausgeführt — der neueste Build, den Hermes mitliefert.`,- activeDetail: 'Neue Chats verwenden dieses Modell – es wird geladen, wenn Sie Ihre erste Nachricht senden',- activeNotLoaded: 'Wird bei Ihrer ersten Nachricht geladen',- loadedPill: 'Im Speicher',- placementResident: 'komplett auf GPU',- placementSpilled: 'teils im RAM',- placementResidentTip: 'Läuft komplett im GPU-Speicher bei diesem Kontextfenster — volle Geschwindigkeit.',- placementSpilledTip:- 'Ein Teil dieses Modells läuft aus dem Arbeitsspeicher — es funktioniert, aber langsamer. Ein kompakterer Build oder ein kleinerer Kontext würde komplett passen.',- loadingPill: 'Wird geladen…',- ejectTip: 'GPU-Speicher freigeben (wird bei der nächsten Nachricht wieder geladen)',- ejected: 'Modell entladen — GPU-Speicher freigegeben.',- ejectFailed: 'Das Modell konnte nicht entladen werden',- stopServer: 'Ausschalten',- startServer: 'Einschalten',- runtimeRunningDetail:- 'Der lokale Server läuft. Wenn Sie ihn ausschalten, wird der gesamte GPU-Speicher freigegeben, und neue Chats können keine lokalen Modelle verwenden, bis Sie ihn wieder einschalten.',- serverStopped: 'Lokaler Server gestoppt — GPU-Speicher freigegeben.',- serverStarted: 'Lokaler Server läuft.',- serverStopFailed: 'Der lokale Server konnte nicht gestoppt werden',- serverStartFailed: 'Der lokale Server konnte nicht gestartet werden',- activating: 'Wird gestartet…',- activateFailed: model => `Konnte nicht zu ${model} wechseln`,- activateDoneToast: model => `Neue Chats verwenden ${model}.`,- downloadFailed: model => `Download von ${model} fehlgeschlagen`,- pillFitsGpu: 'Passt auf Ihre GPU',- pillUsesRam: 'Verwendet Arbeitsspeicher',- pillTooBig: 'Zu groß für diesen Rechner',- browseTitle: 'Weitere Modelle finden',- browseHint:- 'Durchsuchen Sie ganz Hugging Face. Hier heruntergeladene Modelle werden automatisch an Ihren Rechner angepasst, aber nicht von uns getestet.',- browsePlaceholder: 'Modelle nach Name oder Autor suchen…',- browseSearching: 'Hugging Face wird durchsucht',- browseListing: 'Modelldateien werden gelesen',- browseShowFiles: 'Dateien anzeigen',- browseRefresh: 'Aktualisieren',- browseDownloads: 'Downloads',- browseLikes: 'Likes',- browseGated: 'erfordert Hugging-Face-Anmeldung',- browseNoGguf: 'Keine kompatiblen Modelldateien gefunden.',- browseFitUnknown: 'Passform unbekannt',- browseAlreadyDownloaded: 'Bereits heruntergeladen.',- addedByYou: 'Von Ihnen hinzugefügt',- browseDownloadStarted: '{name} wird heruntergeladen',- browseDownloadAria: '{name} herunterladen',- sideloadButton: 'Modelldatei hinzufügen',- sideloadTitle: 'Eine GGUF-Modelldatei wählen',- sideloadDone: '{name} hinzugefügt.',- sideloadAlreadyPresent: 'Bereits in Ihrer Bibliothek.',- pillFullContext: max => `Voller ${max}-Kontext`,- pillFullContextTip: 'Läuft von Anfang an mit dem kompletten Kontextfenster des Modells',- pillUpTo: max => `Bis zu ${max} Kontext`,- pillGrowsTip: 'Wächst automatisch, wenn Ihr Gespräch mehr Platz braucht',- pillVision: 'Sieht Bilder',- deleteAction: 'Modell löschen',- deleteConfirm: model => `${model} von der Festplatte löschen?`,- deleted: model => `${model} gelöscht.`,- deleteFailed: 'Löschen fehlgeschlagen'- },+ localModels: deLocalModels,billing: {perMonth: (amount: string) => `${amount}/Monat`,creditsPerMonth: (amount: string) => `${amount} Credits/Monat`,diff --git a/apps/desktop/src/i18n/de_local_models.ts b/apps/desktop/src/i18n/de_local_models.tsnew file mode 100644index 00000000000..65784877814--- /dev/null+++ b/apps/desktop/src/i18n/de_local_models.ts@@ -0,0 +1,123 @@+import type { TranslationOverride } from '@hermes/shared/i18n'++import type { Translations } from './types'++export const deLocalModels: TranslationOverride<Translations['settings']['localModels']> = {+ connectionChanged: 'Verbindung für lokale Modelle geändert',+ title: 'Lokale Modelle',+ runtimeTitle: 'Lokale Laufzeit',+ runtimeReady: backend => `Bereit · ${backend}`,+ serverRunning: 'Läuft',+ runtimeInstalled: 'llama.cpp-Laufzeit installiert',+ runtimeInstalledDetail: (tag, backend) =>+ `Build ${tag}, ${backend}-Backend. Hermes startet und verwaltet den Server für Sie.`,+ installTitle: 'Lokale Laufzeit installieren',+ installDetail:+ 'Lädt die llama.cpp-Inferenz-Engine herunter (einige hundert MB). Heruntergeladene Modelle laufen komplett auf diesem Rechner – kein Konto, nichts verlässt Ihren Computer.',+ installAction: 'Laufzeit installieren',+ installing: 'Laufzeit wird installiert…',+ installFailed: 'Laufzeit-Installation fehlgeschlagen',+ hardwareTitle: 'Dieser Rechner',+ hardwareLoading: 'Ihre Hardware wird geprüft…',+ vram: label => `${label} GPU-Speicher`,+ ram: label => `${label} RAM`,+ unifiedMemory: 'Kombinierter Speicher',+ modelsTitle: 'Modelle',+ recommended: 'Empfohlen',+ recommendedReason: {+ 'best-quality-resident':+ 'Das Modell mit der höchsten Qualität, das komplett auf Ihrer GPU mit voller Geschwindigkeit läuft. Die Auswahl wägt Qualität gegen die erwartete Geschwindigkeit auf dieser Hardware ab.',+ 'speed-gated-quality':+ 'Ein besseres Modell würde auf diesen Rechner passen, aber bei seiner Speicherbandbreite zu langsam reagieren — das ist das beste Modell, das schnell bleibt.',+ 'fastest-resident':+ 'Kein Modell erreicht volle Geschwindigkeit auf dieser Hardware; dieses kommt am nächsten und läuft komplett im GPU-Speicher.'+ },+ noRecommendationTitle: 'Keine automatische Empfehlung für diesen Rechner',+ noRecommendationDetail:+ 'Die automatische Einrichtung braucht ein kuratiertes Modell, das vollständig in den Grafikspeicher oder den gemeinsamen Speicher passt. Sie können unten trotzdem ein Modell wählen oder weitere Modelle durchsuchen.',+ noRecommendationAction: 'Modelle durchsuchen',+ downloaded: 'Heruntergeladen',+ downloadAction: size => `Download · ${size}`,+ downloadProgress: (done, total) => `${done} von ${total} werden heruntergeladen`,+ downloadDoneToast: model => `${model} ist bereit.`,+ installDoneToast: 'Lokale Laufzeit installiert und bereit.',+ quickstartTitle: 'Ein Modell auf diesem Rechner ausführen',+ quickstartDetail: (model, size) =>+ `Ein Klick richtet alles ein: die lokale Engine, ${model} (${size} Download) und Ihre Voreinstellung für neue Chats. Nichts verlässt diesen Computer.`,+ quickstartDetailReady: model =>+ `Ein Klick macht ${model} zu Ihrer Voreinstellung für neue Chats. Alles läuft auf diesem Rechner.`,+ quickstartAction: 'Für mich einrichten',+ quickstartConfigure: 'Konfigurieren…',+ quickstartDoneToast: model => `${model} ist eingerichtet — neue Chats laufen auf diesem Rechner.`,+ quickstartFailed: 'Einrichtung des lokalen Modells fehlgeschlagen',+ quickstartStageEngine: 'Engine',+ quickstartStageModel: 'Modell',+ quickstartStageFinish: 'Fertig',+ useAction: 'Verwenden',+ activePill: 'Voreinstellung',+ updateTitle: 'Engine-Update verfügbar',+ updateDetail: (next, current) =>+ `Eine neuere llama.cpp-Version (${next}) ist bereit zur Installation – Sie verwenden ${current}. Während des Downloads laufen die Modelle weiter.`,+ updateAction: 'Engine aktualisieren',+ updating: 'Engine wird aktualisiert…',+ upToDateTitle: 'Engine aktuell',+ upToDateDetail: (tag, backend) =>+ `llama.cpp ${tag} (${backend}) wird ausgeführt — der neueste Build, den Hermes mitliefert.`,+ activeDetail: 'Neue Chats verwenden dieses Modell – es wird geladen, wenn Sie Ihre erste Nachricht senden',+ activeNotLoaded: 'Wird bei Ihrer ersten Nachricht geladen',+ loadedPill: 'Im Speicher',+ placementResident: 'komplett auf GPU',+ placementSpilled: 'teils im RAM',+ placementResidentTip: 'Läuft komplett im GPU-Speicher bei diesem Kontextfenster — volle Geschwindigkeit.',+ placementSpilledTip:+ 'Ein Teil dieses Modells läuft aus dem Arbeitsspeicher — es funktioniert, aber langsamer. Ein kompakterer Build oder ein kleinerer Kontext würde komplett passen.',+ loadingPill: 'Wird geladen…',+ ejectTip: 'GPU-Speicher freigeben (wird bei der nächsten Nachricht wieder geladen)',+ ejected: 'Modell entladen — GPU-Speicher freigegeben.',+ ejectFailed: 'Das Modell konnte nicht entladen werden',+ stopServer: 'Ausschalten',+ startServer: 'Einschalten',+ runtimeRunningDetail:+ 'Der lokale Server läuft. Wenn Sie ihn ausschalten, wird der gesamte GPU-Speicher freigegeben, und neue Chats können keine lokalen Modelle verwenden, bis Sie ihn wieder einschalten.',+ serverStopped: 'Lokaler Server gestoppt — GPU-Speicher freigegeben.',+ serverStarted: 'Lokaler Server läuft.',+ serverStopFailed: 'Der lokale Server konnte nicht gestoppt werden',+ serverStartFailed: 'Der lokale Server konnte nicht gestartet werden',+ activating: 'Wird gestartet…',+ activateFailed: model => `Konnte nicht zu ${model} wechseln`,+ activateDoneToast: model => `Neue Chats verwenden ${model}.`,+ downloadFailed: model => `Download von ${model} fehlgeschlagen`,+ pillFitsGpu: 'Passt auf Ihre GPU',+ pillUsesRam: 'Verwendet Arbeitsspeicher',+ pillTooBig: 'Zu groß für diesen Rechner',+ browseTitle: 'Weitere Modelle finden',+ browseHint:+ 'Durchsuchen Sie ganz Hugging Face. Hier heruntergeladene Modelle werden automatisch an Ihren Rechner angepasst, aber nicht von uns getestet.',+ browsePlaceholder: 'Modelle nach Name oder Autor suchen…',+ browseSearching: 'Hugging Face wird durchsucht',+ browseListing: 'Modelldateien werden gelesen',+ browseShowFiles: 'Dateien anzeigen',+ browseRefresh: 'Aktualisieren',+ browseDownloads: 'Downloads',+ browseLikes: 'Likes',+ browseGated: 'erfordert Hugging-Face-Anmeldung',+ browseNoGguf: 'Keine kompatiblen Modelldateien gefunden.',+ browseFitUnknown: 'Passform unbekannt',+ browseAlreadyDownloaded: 'Bereits heruntergeladen.',+ addedByYou: 'Von Ihnen hinzugefügt',+ browseDownloadStarted: '{name} wird heruntergeladen',+ browseDownloadAria: '{name} herunterladen',+ sideloadButton: 'Modelldatei hinzufügen',+ sideloadTitle: 'Eine GGUF-Modelldatei wählen',+ sideloadDone: '{name} hinzugefügt.',+ sideloadAlreadyPresent: 'Bereits in Ihrer Bibliothek.',+ pillFullContext: max => `Voller ${max}-Kontext`,+ pillFullContextTip: 'Läuft von Anfang an mit dem kompletten Kontextfenster des Modells',+ pillUpTo: max => `Bis zu ${max} Kontext`,+ pillGrowsTip: 'Wächst automatisch, wenn Ihr Gespräch mehr Platz braucht',+ pillVision: 'Sieht Bilder',+ deleteAction: 'Modell löschen',+ deleteConfirm: model => `${model} von der Festplatte löschen?`,+ deleted: model => `${model} gelöscht.`,+ deleteFailed: 'Löschen fehlgeschlagen'+}diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.tsindex 87af184eab2..c345155a8a9 100644--- a/apps/desktop/src/i18n/en.ts+++ b/apps/desktop/src/i18n/en.ts@@ -4,6 +4,7 @@ import { enAppTour, enHandoffTour } from './en_app_tour'import { enAuxTasks } from './en_aux_tasks'import { enBoot } from './en_boot'import { enCatalogInstall } from './en_catalog_install'+import { enLocalModels } from './en_local_models'import { enModelMenu } from './en_model_menu'import { enNotices } from './en_notices'import { enSharedMetrics } from './en_shared_metrics'@@ -1675,138 +1676,7 @@ export const en: Translations = {moaReferenceHint: 'advises once per turn by default',tasks: enAuxTasks},- localModels: {- connectionChanged: 'Local models connection changed',- title: 'Local Models',- runtimeTitle: 'Local runtime',- runtimeReady: backend => `Ready · ${backend}`,- serverRunning: 'Running',- runtimeInstalled: 'llama.cpp runtime installed',- runtimeInstalledDetail: (tag, backend) =>- `Build ${tag}, ${backend} backend. Hermes starts and manages the server for you.`,- installTitle: 'Install the local runtime',- installDetail:- 'Downloads the llama.cpp inference engine (a few hundred MB). Models you download run entirely on this machine — no account, nothing leaves your computer.',- installAction: 'Install runtime',- installing: 'Installing runtime…',- installFailed: 'Runtime install failed',- hardwareTitle: 'This machine',- hardwareLoading: 'Checking your hardware…',- vram: label => `${label} GPU memory`,- ram: label => `${label} RAM`,- unifiedMemory: 'Unified memory',- modelsTitle: 'Models',- recommended: 'Recommended',- /* The Recommended badge's tooltip, keyed by the resolver branch that- made the pick. Qualitative on purpose: predictions order candidates,- they are not promises to print. */- recommendedReason: {- 'best-quality-resident':- 'The highest-quality model that runs entirely on your GPU at full speed. Picks weigh quality against predicted speed on this hardware.',- 'speed-gated-quality':- 'A higher-quality model fits this machine but would respond too slowly on its memory bandwidth — this is the best model that stays fast.',- 'fastest-resident':- 'No model reaches full speed on this hardware; this one comes closest while running entirely in GPU memory.'- } as Record<string, string>,- noRecommendationTitle: 'No automatic recommendation for this machine',- noRecommendationDetail:- 'Automatic setup requires a curated model that fits entirely in GPU or unified memory. You can still choose a model below or browse more models.',- noRecommendationAction: 'Browse models',- downloaded: 'Downloaded',- downloadAction: size => `Download · ${size}`,- downloadProgress: (done, total) => `${done} of ${total}`,- downloadStatusRunning: 'Downloading',- downloadSpeed: rate => `${rate}`,- downloadEta: time => `~${time} left`,- downloadEtaSeconds: count => `${count} sec`,- downloadEtaMinutes: count => `${count} min`,- downloadEtaHours: (hours, minutes) => (minutes ? `${hours} h ${minutes} min` : `${hours} h`),- downloadPausedLabel: 'Paused',- downloadPauseAction: 'Pause',- downloadResumeAction: 'Resume',- downloadDoneToast: model => `${model} is ready.`,- installDoneToast: 'Local runtime installed and ready.',- quickstartTitle: 'Run a model on this machine',- quickstartDetail: (model, size) =>- `One click sets everything up: the local engine, ${model} (${size} download), and your default for new chats. Nothing leaves this computer.`,- quickstartDetailReady: model =>- `One click makes ${model} your default for new chats. Everything runs on this machine.`,- quickstartAction: 'Set up for me',- quickstartConfigure: 'Let me choose',- quickstartDoneToast: model => `${model} is set up — new chats run on this machine.`,- quickstartFailed: 'Local model setup failed',- quickstartStageEngine: 'Engine',- quickstartStageModel: 'Model',- quickstartStageFinish: 'Finish',- useAction: 'Use',- activePill: 'Default',- updateTitle: 'Engine update available',- updateDetail: (next, current) =>- `A newer llama.cpp build (${next}) is ready to install — you're on ${current}. Models keep working during the download.`,- updateAction: 'Update engine',- updating: 'Updating engine…',- upToDateTitle: 'Engine up to date',- upToDateDetail: (tag, backend) => `Running llama.cpp ${tag} (${backend}).`,- activeDetail: 'New chats use this model — it loads when you send your first message',- activeNotLoaded: 'Loads on your first message',- loadedPill: 'In memory',- placementResident: 'all on GPU',- placementSpilled: 'partly in RAM',- placementResidentTip: 'Running entirely in GPU memory at this context window — full speed.',- placementSpilledTip:- 'Part of this model runs from system RAM — it works, but slower. A more compact build or a smaller context would fit fully.',- loadingPill: 'Loading…',- ejectTip: 'Free GPU memory (loads again on the next message)',- ejected: 'Model unloaded — GPU memory freed.',- ejectFailed: 'Could not unload the model',- stopServer: 'Turn off',- startServer: 'Turn on',- runtimeRunningDetail:- 'The local server is running. Turning it off frees all GPU memory and stops new chats from using local models until you turn it back on.',- serverStopped: 'Local server stopped — GPU memory freed.',- serverStarted: 'Local server running.',- serverStopFailed: 'Could not stop the local server',- serverStartFailed: 'Could not start the local server',- activating: 'Starting…',- activateFailed: model => `Could not switch to ${model}`,- activateDoneToast: model => `New chats use ${model}.`,- downloadFailed: model => `Download of ${model} failed`,- downloadPauseFailed: model => `Couldn’t pause the download of ${model}`,- downloadResumeFailed: model => `Couldn’t resume the download of ${model}`,- pillFitsGpu: 'Fits your GPU',- pillUsesRam: 'Uses system RAM',- pillTooBig: 'Too big for this machine',- browseTitle: 'Find more models',- browseHint:- 'Search all of Hugging Face. Models you download here are sized to your machine automatically, but not tested by us.',- browsePlaceholder: 'Search models by name or author…',- browseSearching: 'Searching Hugging Face',- browseListing: 'Reading model files',- browseShowFiles: 'Show files',- browseRefresh: 'Refresh',- browseDownloads: 'downloads',- browseLikes: 'likes',- browseGated: 'requires Hugging Face sign-in',- browseNoGguf: 'No compatible model files found.',- browseFitUnknown: 'Fit unknown',- browseAlreadyDownloaded: 'Already downloaded.',- addedByYou: 'Added by you',- browseDownloadStarted: 'Downloading {name}',- browseDownloadAria: 'Download {name}',- sideloadButton: 'Add model file',- sideloadTitle: 'Choose a GGUF model file',- sideloadDone: 'Added {name}.',- sideloadAlreadyPresent: 'Already in your library.',- pillFullContext: max => `Full ${max} context`,- pillFullContextTip: "Runs at the model's complete context window from the start",- pillUpTo: max => `Up to ${max} context`,- pillGrowsTip: 'Grows automatically as your conversation needs more room',- pillVision: 'Sees images',- deleteAction: 'Delete model',- deleteConfirm: model => `Delete ${model} from disk?`,- deleted: model => `${model} deleted.`,- deleteFailed: 'Delete failed'- },+ localModels: enLocalModels,billing: {perMonth: amount => `${amount}/mo`,creditsPerMonth: amount => `${amount} credits/mo`,diff --git a/apps/desktop/src/i18n/en_local_models.ts b/apps/desktop/src/i18n/en_local_models.tsnew file mode 100644index 00000000000..0ae4a8250cc--- /dev/null+++ b/apps/desktop/src/i18n/en_local_models.ts@@ -0,0 +1,134 @@+import type { Translations } from './types'++export const enLocalModels: Translations['settings']['localModels'] = {+ connectionChanged: 'Local models connection changed',+ title: 'Local Models',+ runtimeTitle: 'Local runtime',+ runtimeReady: backend => `Ready · ${backend}`,+ serverRunning: 'Running',+ runtimeInstalled: 'llama.cpp runtime installed',+ runtimeInstalledDetail: (tag, backend) =>+ `Build ${tag}, ${backend} backend. Hermes starts and manages the server for you.`,+ installTitle: 'Install the local runtime',+ installDetail:+ 'Downloads the llama.cpp inference engine (a few hundred MB). Models you download run entirely on this machine — no account, nothing leaves your computer.',+ installAction: 'Install runtime',+ installing: 'Installing runtime…',+ installFailed: 'Runtime install failed',+ hardwareTitle: 'This machine',+ hardwareLoading: 'Checking your hardware…',+ vram: label => `${label} GPU memory`,+ ram: label => `${label} RAM`,+ unifiedMemory: 'Unified memory',+ modelsTitle: 'Models',+ recommended: 'Recommended',+ /* The Recommended badge's tooltip, keyed by the resolver branch that+ made the pick. Qualitative on purpose: predictions order candidates,+ they are not promises to print. */+ recommendedReason: {+ 'best-quality-resident':+ 'The highest-quality model that runs entirely on your GPU at full speed. Picks weigh quality against predicted speed on this hardware.',+ 'speed-gated-quality':+ 'A higher-quality model fits this machine but would respond too slowly on its memory bandwidth — this is the best model that stays fast.',+ 'fastest-resident':+ 'No model reaches full speed on this hardware; this one comes closest while running entirely in GPU memory.'+ } as Record<string, string>,+ noRecommendationTitle: 'No automatic recommendation for this machine',+ noRecommendationDetail:+ 'Automatic setup requires a curated model that fits entirely in GPU or unified memory. You can still choose a model below or browse more models.',+ noRecommendationAction: 'Browse models',+ downloaded: 'Downloaded',+ downloadAction: size => `Download · ${size}`,+ downloadProgress: (done, total) => `${done} of ${total}`,+ downloadStatusRunning: 'Downloading',+ downloadSpeed: rate => `${rate}`,+ downloadEta: time => `~${time} left`,+ downloadEtaSeconds: count => `${count} sec`,+ downloadEtaMinutes: count => `${count} min`,+ downloadEtaHours: (hours, minutes) => (minutes ? `${hours} h ${minutes} min` : `${hours} h`),+ downloadPausedLabel: 'Paused',+ downloadPauseAction: 'Pause',+ downloadResumeAction: 'Resume',+ downloadDoneToast: model => `${model} is ready.`,+ installDoneToast: 'Local runtime installed and ready.',+ quickstartTitle: 'Run a model on this machine',+ quickstartDetail: (model, size) =>+ `One click sets everything up: the local engine, ${model} (${size} download), and your default for new chats. Nothing leaves this computer.`,+ quickstartDetailReady: model =>+ `One click makes ${model} your default for new chats. Everything runs on this machine.`,+ quickstartAction: 'Set up for me',+ quickstartConfigure: 'Let me choose',+ quickstartDoneToast: model => `${model} is set up — new chats run on this machine.`,+ quickstartFailed: 'Local model setup failed',+ quickstartStageEngine: 'Engine',+ quickstartStageModel: 'Model',+ quickstartStageFinish: 'Finish',+ useAction: 'Use',+ activePill: 'Default',+ updateTitle: 'Engine update available',+ updateDetail: (next, current) =>+ `A newer llama.cpp build (${next}) is ready to install — you're on ${current}. Models keep working during the download.`,+ updateAction: 'Update engine',+ updating: 'Updating engine…',+ upToDateTitle: 'Engine up to date',+ upToDateDetail: (tag, backend) => `Running llama.cpp ${tag} (${backend}).`,+ activeDetail: 'New chats use this model — it loads when you send your first message',+ activeNotLoaded: 'Loads on your first message',+ loadedPill: 'In memory',+ placementResident: 'all on GPU',+ placementSpilled: 'partly in RAM',+ placementResidentTip: 'Running entirely in GPU memory at this context window — full speed.',+ placementSpilledTip:+ 'Part of this model runs from system RAM — it works, but slower. A more compact build or a smaller context would fit fully.',+ loadingPill: 'Loading…',+ ejectTip: 'Free GPU memory (loads again on the next message)',+ ejected: 'Model unloaded — GPU memory freed.',+ ejectFailed: 'Could not unload the model',+ stopServer: 'Turn off',+ startServer: 'Turn on',+ runtimeRunningDetail:+ 'The local server is running. Turning it off frees all GPU memory and stops new chats from using local models until you turn it back on.',+ serverStopped: 'Local server stopped — GPU memory freed.',+ serverStarted: 'Local server running.',+ serverStopFailed: 'Could not stop the local server',+ serverStartFailed: 'Could not start the local server',+ activating: 'Starting…',+ activateFailed: model => `Could not switch to ${model}`,+ activateDoneToast: model => `New chats use ${model}.`,+ downloadFailed: model => `Download of ${model} failed`,+ downloadPauseFailed: model => `Couldn’t pause the download of ${model}`,+ downloadResumeFailed: model => `Couldn’t resume the download of ${model}`,+ pillFitsGpu: 'Fits your GPU',+ pillUsesRam: 'Uses system RAM',+ pillTooBig: 'Too big for this machine',+ browseTitle: 'Find more models',+ browseHint:+ 'Search all of Hugging Face. Models you download here are sized to your machine automatically, but not tested by us.',+ browsePlaceholder: 'Search models by name or author…',+ browseSearching: 'Searching Hugging Face',+ browseListing: 'Reading model files',+ browseShowFiles: 'Show files',+ browseRefresh: 'Refresh',+ browseDownloads: 'downloads',+ browseLikes: 'likes',+ browseGated: 'requires Hugging Face sign-in',+ browseNoGguf: 'No compatible model files found.',+ browseFitUnknown: 'Fit unknown',+ browseAlreadyDownloaded: 'Already downloaded.',+ addedByYou: 'Added by you',+ browseDownloadStarted: 'Downloading {name}',+ browseDownloadAria: 'Download {name}',+ sideloadButton: 'Add model file',+ sideloadTitle: 'Choose a GGUF model file',+ sideloadDone: 'Added {name}.',+ sideloadAlreadyPresent: 'Already in your library.',+ pillFullContext: max => `Full ${max} context`,+ pillFullContextTip: "Runs at the model's complete context window from the start",+ pillUpTo: max => `Up to ${max} context`,+ pillGrowsTip: 'Grows automatically as your conversation needs more room',+ pillVision: 'Sees images',+ deleteAction: 'Delete model',+ deleteConfirm: model => `Delete ${model} from disk?`,+ deleted: model => `${model} deleted.`,+ deleteFailed: 'Delete failed'+}diff --git a/apps/desktop/src/i18n/es.ts b/apps/desktop/src/i18n/es.tsindex 5557514ceca..d69d88b1648 100644--- a/apps/desktop/src/i18n/es.ts+++ b/apps/desktop/src/i18n/es.ts@@ -3,6 +3,7 @@ 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 { esLocalModels } from './es_local_models'import { esModelMenu } from './es_model_menu'import { esNotices } from './es_notices'import { esSharedMetrics } from './es_shared_metrics'@@ -2025,125 +2026,7 @@ export const esOverrides = {moaReferenceHint: 'asesora una vez por turno por defecto',tasks: esAuxTasks},- localModels: {- connectionChanged: 'Cambió la conexión de los modelos locales',- title: 'Modelos locales',- runtimeTitle: 'Entorno local',- runtimeReady: backend => `Listo · ${backend}`,- serverRunning: 'En ejecución',- runtimeInstalled: 'Entorno llama.cpp instalado',- runtimeInstalledDetail: (tag, backend) =>- `Compilación ${tag}, backend ${backend}. Hermes inicia y gestiona el servidor por ti.`,- installTitle: 'Instalar el entorno local',- installDetail:- 'Descarga el motor de inferencia llama.cpp (unos cientos de MB). Los modelos que descargues se ejecutan por completo en este equipo: sin cuenta y sin que nada salga de tu computadora.',- installAction: 'Instalar entorno',- installing: 'Instalando el entorno…',- installFailed: 'Falló la instalación del entorno',- hardwareTitle: 'Este equipo',- hardwareLoading: 'Comprobando tu hardware…',- vram: label => `${label} de memoria de GPU`,- ram: label => `${label} de RAM`,- unifiedMemory: 'Memoria unificada',- modelsTitle: 'Modelos',- recommended: 'Recomendado',- recommendedReason: {- 'best-quality-resident':- 'El modelo de mayor calidad que se ejecuta por completo en tu GPU a máxima velocidad. La selección equilibra la calidad con la velocidad prevista en este hardware.',- 'speed-gated-quality':- 'Cabe un modelo de mayor calidad en este equipo, pero respondería demasiado lento por el ancho de banda de su memoria; este es el mejor modelo que se mantiene rápido.',- 'fastest-resident':- 'Ningún modelo alcanza la velocidad máxima en este hardware; este es el que más se acerca ejecutándose por completo en la memoria de la GPU.'- },- noRecommendationTitle: 'No hay recomendación automática para este equipo',- noRecommendationDetail:- 'La configuración automática requiere un modelo seleccionado que quepa por completo en la memoria de la GPU o unificada. Aun así, puedes elegir un modelo abajo o explorar más modelos.',- noRecommendationAction: 'Explorar modelos',- downloaded: 'Descargado',- downloadAction: size => `Descargar · ${size}`,- downloadProgress: (done, total) => `Descargando ${done} de ${total}`,- downloadDoneToast: model => `${model} está listo.`,- installDoneToast: 'Entorno local instalado y listo.',- quickstartTitle: 'Ejecutar un modelo en este equipo',- quickstartDetail: (model, size) =>- `Un clic lo configura todo: el motor local, ${model} (${size} de descarga) y tu modelo predeterminado para chats nuevos. Nada sale de este equipo.`,- quickstartDetailReady: model =>- `Un clic convierte ${model} en tu modelo predeterminado para chats nuevos. Todo se ejecuta en este equipo.`,- quickstartAction: 'Configurarlo por mí',- quickstartConfigure: 'Prefiero elegir',- quickstartDoneToast: model => `${model} está configurado: los chats nuevos se ejecutan en este equipo.`,- quickstartFailed: 'Falló la configuración del modelo local',- quickstartStageEngine: 'Motor',- quickstartStageModel: 'Modelo',- quickstartStageFinish: 'Finalizar',- useAction: 'Usar',- activePill: 'Predeterminado',- updateTitle: 'Hay una actualización del motor',- updateDetail: (next, current) =>- `Hay una compilación más reciente de llama.cpp (${next}) lista para instalar; tienes ${current}. Los modelos siguen funcionando durante la descarga.`,- updateAction: 'Actualizar motor',- updating: 'Actualizando el motor…',- upToDateTitle: 'Motor actualizado',- upToDateDetail: (tag, backend) => `Ejecutando llama.cpp ${tag} (${backend}), la compilación configurada.`,- activeDetail: 'Los chats nuevos usan este modelo; se carga cuando envías tu primer mensaje',- activeNotLoaded: 'Se carga con tu primer mensaje',- loadedPill: 'En memoria',- placementResident: 'todo en GPU',- placementSpilled: 'parte en RAM',- placementResidentTip:- 'Se ejecuta por completo en la memoria de la GPU con esta ventana de contexto: máxima velocidad.',- placementSpilledTip:- 'Parte de este modelo se ejecuta desde la RAM del sistema: funciona, pero más lento. Una compilación más compacta o un contexto menor cabría por completo.',- loadingPill: 'Cargando…',- ejectTip: 'Liberar memoria de GPU (se vuelve a cargar con el siguiente mensaje)',- ejected: 'Modelo descargado de memoria: memoria de GPU liberada.',- ejectFailed: 'No se pudo descargar el modelo de memoria',- stopServer: 'Apagar',- startServer: 'Encender',- runtimeRunningDetail:- 'El servidor local está en ejecución. Apagarlo libera toda la memoria de GPU e impide que los chats nuevos usen modelos locales hasta que lo vuelvas a encender.',- serverStopped: 'Servidor local detenido: memoria de GPU liberada.',- serverStarted: 'Servidor local en ejecución.',- serverStopFailed: 'No se pudo detener el servidor local',- serverStartFailed: 'No se pudo iniciar el servidor local',- activating: 'Iniciando…',- activateFailed: model => `No se pudo cambiar a ${model}`,- activateDoneToast: model => `Los chats nuevos usan ${model}.`,- downloadFailed: model => `Falló la descarga de ${model}`,- pillFitsGpu: 'Cabe en tu GPU',- pillUsesRam: 'Usa RAM del sistema',- pillTooBig: 'Demasiado grande para este equipo',- browseTitle: 'Buscar más modelos',- browseHint:- 'Busca en todo Hugging Face. Los modelos que descargues aquí se ajustan automáticamente a tu equipo, pero no los hemos probado.',- browsePlaceholder: 'Busca modelos por nombre o autor…',- browseSearching: 'Buscando en Hugging Face',- browseListing: 'Leyendo los archivos del modelo',- browseShowFiles: 'Mostrar archivos',- browseRefresh: 'Actualizar',- browseDownloads: 'descargas',- browseLikes: 'me gusta',- browseGated: 'requiere iniciar sesión en Hugging Face',- browseNoGguf: 'No se encontraron archivos de modelo compatibles.',- browseFitUnknown: 'Ajuste desconocido',- browseAlreadyDownloaded: 'Ya descargado.',- addedByYou: 'Añadido por ti',- browseDownloadStarted: 'Descargando {name}',- browseDownloadAria: 'Descargar {name}',- sideloadButton: 'Añadir archivo de modelo',- sideloadTitle: 'Elige un archivo de modelo GGUF',- sideloadDone: 'Se añadió {name}.',- sideloadAlreadyPresent: 'Ya está en tu biblioteca.',- pillFullContext: (max: string) => `Contexto completo de ${max}`,- pillFullContextTip: 'Se ejecuta con la ventana de contexto completa del modelo desde el principio',- pillUpTo: (max: string) => `Hasta ${max} de contexto`,- pillGrowsTip: 'Crece automáticamente cuando tu conversación necesita más espacio',- pillVision: 'Ve imágenes',- deleteAction: 'Eliminar modelo',- deleteConfirm: (model: string) => `¿Eliminar ${model} del disco?`,- deleted: (model: string) => `${model} eliminado.`,- deleteFailed: 'Error al eliminar'- },+ localModels: esLocalModels,billing: {perMonth: (amount: string) => `${amount}/mes`,creditsPerMonth: (amount: string) => `${amount} créditos/mes`,diff --git a/apps/desktop/src/i18n/es_local_models.ts b/apps/desktop/src/i18n/es_local_models.tsnew file mode 100644index 00000000000..3da0256b9e8--- /dev/null+++ b/apps/desktop/src/i18n/es_local_models.ts@@ -0,0 +1,123 @@+import type { TranslationOverride } from '@hermes/shared/i18n'++import type { Translations } from './types'++export const esLocalModels: TranslationOverride<Translations['settings']['localModels']> = {+ connectionChanged: 'Cambió la conexión de los modelos locales',+ title: 'Modelos locales',+ runtimeTitle: 'Entorno local',+ runtimeReady: backend => `Listo · ${backend}`,+ serverRunning: 'En ejecución',+ runtimeInstalled: 'Entorno llama.cpp instalado',+ runtimeInstalledDetail: (tag, backend) =>+ `Compilación ${tag}, backend ${backend}. Hermes inicia y gestiona el servidor por ti.`,+ installTitle: 'Instalar el entorno local',+ installDetail:+ 'Descarga el motor de inferencia llama.cpp (unos cientos de MB). Los modelos que descargues se ejecutan por completo en este equipo: sin cuenta y sin que nada salga de tu computadora.',+ installAction: 'Instalar entorno',+ installing: 'Instalando el entorno…',+ installFailed: 'Falló la instalación del entorno',+ hardwareTitle: 'Este equipo',+ hardwareLoading: 'Comprobando tu hardware…',+ vram: label => `${label} de memoria de GPU`,+ ram: label => `${label} de RAM`,+ unifiedMemory: 'Memoria unificada',+ modelsTitle: 'Modelos',+ recommended: 'Recomendado',+ recommendedReason: {+ 'best-quality-resident':+ 'El modelo de mayor calidad que se ejecuta por completo en tu GPU a máxima velocidad. La selección equilibra la calidad con la velocidad prevista en este hardware.',+ 'speed-gated-quality':+ 'Cabe un modelo de mayor calidad en este equipo, pero respondería demasiado lento por el ancho de banda de su memoria; este es el mejor modelo que se mantiene rápido.',+ 'fastest-resident':+ 'Ningún modelo alcanza la velocidad máxima en este hardware; este es el que más se acerca ejecutándose por completo en la memoria de la GPU.'+ },+ noRecommendationTitle: 'No hay recomendación automática para este equipo',+ noRecommendationDetail:+ 'La configuración automática requiere un modelo seleccionado que quepa por completo en la memoria de la GPU o unificada. Aun así, puedes elegir un modelo abajo o explorar más modelos.',+ noRecommendationAction: 'Explorar modelos',+ downloaded: 'Descargado',+ downloadAction: size => `Descargar · ${size}`,+ downloadProgress: (done, total) => `Descargando ${done} de ${total}`,+ downloadDoneToast: model => `${model} está listo.`,+ installDoneToast: 'Entorno local instalado y listo.',+ quickstartTitle: 'Ejecutar un modelo en este equipo',+ quickstartDetail: (model, size) =>+ `Un clic lo configura todo: el motor local, ${model} (${size} de descarga) y tu modelo predeterminado para chats nuevos. Nada sale de este equipo.`,+ quickstartDetailReady: model =>+ `Un clic convierte ${model} en tu modelo predeterminado para chats nuevos. Todo se ejecuta en este equipo.`,+ quickstartAction: 'Configurarlo por mí',+ quickstartConfigure: 'Prefiero elegir',+ quickstartDoneToast: model => `${model} está configurado: los chats nuevos se ejecutan en este equipo.`,+ quickstartFailed: 'Falló la configuración del modelo local',+ quickstartStageEngine: 'Motor',+ quickstartStageModel: 'Modelo',+ quickstartStageFinish: 'Finalizar',+ useAction: 'Usar',+ activePill: 'Predeterminado',+ updateTitle: 'Hay una actualización del motor',+ updateDetail: (next, current) =>+ `Hay una compilación más reciente de llama.cpp (${next}) lista para instalar; tienes ${current}. Los modelos siguen funcionando durante la descarga.`,+ updateAction: 'Actualizar motor',+ updating: 'Actualizando el motor…',+ upToDateTitle: 'Motor actualizado',+ upToDateDetail: (tag, backend) => `Ejecutando llama.cpp ${tag} (${backend}), la compilación configurada.`,+ activeDetail: 'Los chats nuevos usan este modelo; se carga cuando envías tu primer mensaje',+ activeNotLoaded: 'Se carga con tu primer mensaje',+ loadedPill: 'En memoria',+ placementResident: 'todo en GPU',+ placementSpilled: 'parte en RAM',+ placementResidentTip:+ 'Se ejecuta por completo en la memoria de la GPU con esta ventana de contexto: máxima velocidad.',+ placementSpilledTip:+ 'Parte de este modelo se ejecuta desde la RAM del sistema: funciona, pero más lento. Una compilación más compacta o un contexto menor cabría por completo.',+ loadingPill: 'Cargando…',+ ejectTip: 'Liberar memoria de GPU (se vuelve a cargar con el siguiente mensaje)',+ ejected: 'Modelo descargado de memoria: memoria de GPU liberada.',+ ejectFailed: 'No se pudo descargar el modelo de memoria',+ stopServer: 'Apagar',+ startServer: 'Encender',+ runtimeRunningDetail:+ 'El servidor local está en ejecución. Apagarlo libera toda la memoria de GPU e impide que los chats nuevos usen modelos locales hasta que lo vuelvas a encender.',+ serverStopped: 'Servidor local detenido: memoria de GPU liberada.',+ serverStarted: 'Servidor local en ejecución.',+ serverStopFailed: 'No se pudo detener el servidor local',+ serverStartFailed: 'No se pudo iniciar el servidor local',+ activating: 'Iniciando…',+ activateFailed: model => `No se pudo cambiar a ${model}`,+ activateDoneToast: model => `Los chats nuevos usan ${model}.`,+ downloadFailed: model => `Falló la descarga de ${model}`,+ pillFitsGpu: 'Cabe en tu GPU',+ pillUsesRam: 'Usa RAM del sistema',+ pillTooBig: 'Demasiado grande para este equipo',+ browseTitle: 'Buscar más modelos',+ browseHint:+ 'Busca en todo Hugging Face. Los modelos que descargues aquí se ajustan automáticamente a tu equipo, pero no los hemos probado.',+ browsePlaceholder: 'Busca modelos por nombre o autor…',+ browseSearching: 'Buscando en Hugging Face',+ browseListing: 'Leyendo los archivos del modelo',+ browseShowFiles: 'Mostrar archivos',+ browseRefresh: 'Actualizar',+ browseDownloads: 'descargas',+ browseLikes: 'me gusta',+ browseGated: 'requiere iniciar sesión en Hugging Face',+ browseNoGguf: 'No se encontraron archivos de modelo compatibles.',+ browseFitUnknown: 'Ajuste desconocido',+ browseAlreadyDownloaded: 'Ya descargado.',+ addedByYou: 'Añadido por ti',+ browseDownloadStarted: 'Descargando {name}',+ browseDownloadAria: 'Descargar {name}',+ sideloadButton: 'Añadir archivo de modelo',+ sideloadTitle: 'Elige un archivo de modelo GGUF',+ sideloadDone: 'Se añadió {name}.',+ sideloadAlreadyPresent: 'Ya está en tu biblioteca.',+ pillFullContext: (max: string) => `Contexto completo de ${max}`,+ pillFullContextTip: 'Se ejecuta con la ventana de contexto completa del modelo desde el principio',+ pillUpTo: (max: string) => `Hasta ${max} de contexto`,+ pillGrowsTip: 'Crece automáticamente cuando tu conversación necesita más espacio',+ pillVision: 'Ve imágenes',+ deleteAction: 'Eliminar modelo',+ deleteConfirm: (model: string) => `¿Eliminar ${model} del disco?`,+ deleted: (model: string) => `${model} eliminado.`,+ deleteFailed: 'Error al eliminar'+}diff --git a/apps/desktop/src/i18n/fr.ts b/apps/desktop/src/i18n/fr.tsindex cf5e860d128..7b03263333b 100644--- a/apps/desktop/src/i18n/fr.ts+++ b/apps/desktop/src/i18n/fr.ts@@ -3,6 +3,7 @@ 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 { frLocalModels } from './fr_local_models'import { frModelMenu } from './fr_model_menu'import { frNotices } from './fr_notices'import { frSharedMetrics } from './fr_shared_metrics'@@ -2036,128 +2037,7 @@ export const frOverrides = {moaReferenceHint: 'donne un avis une fois par tour par défaut',tasks: frAuxTasks},- localModels: {- connectionChanged: 'La connexion des modèles locaux a changé',- title: 'Modèles locaux',- runtimeTitle: 'Moteur local',- runtimeReady: backend => `Prêt · ${backend}`,- serverRunning: 'En cours',- runtimeInstalled: 'Moteur llama.cpp installé',- runtimeInstalledDetail: (tag, backend) =>- `Build ${tag}, backend ${backend}. Hermes démarre et gère le serveur pour vous.`,- installTitle: 'Installer le moteur local',- installDetail:- "Télécharge le moteur d'inférence llama.cpp (quelques centaines de Mo). Les modèles téléchargés s'exécutent entièrement sur cette machine : aucun compte requis et aucune donnée ne quitte votre ordinateur.",- installAction: 'Installer le moteur',- installing: 'Installation du moteur…',- installFailed: "Échec de l'installation du moteur",- hardwareTitle: 'Cette machine',- hardwareLoading: 'Analyse de votre matériel…',- vram: label => `${label} de mémoire GPU`,- ram: label => `${label} de RAM`,- unifiedMemory: 'Mémoire unifiée',- modelsTitle: 'Modèles',- recommended: 'Recommandé',- recommendedReason: {- 'best-quality-resident':- "Le modèle de meilleure qualité qui tient entièrement dans votre GPU et s'exécute à pleine vitesse. La sélection équilibre qualité et vitesse prévue sur ce matériel.",- 'speed-gated-quality':- 'Un modèle de meilleure qualité tient sur cette machine, mais sa bande passante mémoire le rendrait trop lent. Celui-ci est le meilleur modèle qui reste rapide.',- 'fastest-resident':- "Aucun modèle n'atteint sa pleine vitesse sur ce matériel. Celui-ci s'en approche le plus tout en tenant entièrement dans la mémoire GPU."- },- noRecommendationTitle: 'Aucune recommandation automatique pour cette machine',- noRecommendationDetail:- "La configuration automatique nécessite un modèle présélectionné qui tient entièrement dans la mémoire GPU ou unifiée. Vous pouvez toujours choisir un modèle ci-dessous ou parcourir d'autres modèles.",- noRecommendationAction: 'Parcourir les modèles',- downloaded: 'Téléchargé',- downloadAction: size => `Télécharger · ${size}`,- downloadProgress: (done, total) => `Téléchargement de ${done} sur ${total}`,- downloadDoneToast: model => `${model} est prêt.`,- installDoneToast: 'Le moteur local est installé et prêt.',- quickstartTitle: 'Exécuter un modèle sur cette machine',- quickstartDetail: (model, size) =>- `Un clic configure tout : le moteur local, ${model} (téléchargement de ${size}) et votre modèle par défaut pour les nouvelles conversations. Aucune donnée ne quitte cet ordinateur.`,- quickstartDetailReady: model =>- `Un clic définit ${model} comme modèle par défaut pour les nouvelles conversations. Tout s'exécute sur cette machine.`,- quickstartAction: 'Configurer pour moi',- quickstartConfigure: 'Configuration…',- quickstartDoneToast: model =>- `${model} est configuré : les nouvelles conversations s'exécutent sur cette machine.`,- quickstartFailed: 'Échec de la configuration du modèle local',- quickstartStageEngine: 'Moteur',- quickstartStageModel: 'Modèle',- quickstartStageFinish: 'Terminer',- useAction: 'Utiliser',- activePill: 'Par défaut',- updateTitle: 'Mise à jour du moteur disponible',- updateDetail: (next, current) =>- `Une nouvelle build llama.cpp (${next}) est prête à être installée. Vous utilisez ${current}. Les modèles continuent de fonctionner pendant le téléchargement.`,- updateAction: 'Mettre à jour le moteur',- updating: 'Mise à jour du moteur…',- upToDateTitle: 'Moteur à jour',- upToDateDetail: (tag, backend) =>- `llama.cpp ${tag} (${backend}) est en cours d'exécution : il s'agit de la dernière build fournie par Hermes.`,- activeDetail:- "Les nouvelles conversations utilisent ce modèle. Il se charge lors de l'envoi de votre premier message.",- activeNotLoaded: 'Se charge avec votre premier message',- loadedPill: 'En mémoire',- placementResident: 'entièrement sur le GPU',- placementSpilled: 'partiellement dans la RAM',- placementResidentTip:- 'S’exécute entièrement dans la mémoire GPU avec cette fenêtre de contexte, à pleine vitesse.',- placementSpilledTip:- 'Une partie de ce modèle s’exécute depuis la RAM système. Il fonctionne, mais plus lentement. Une build plus compacte ou un contexte plus petit tiendrait entièrement dans le GPU.',- loadingPill: 'Chargement…',- ejectTip: 'Libérer la mémoire GPU (le modèle se rechargera au prochain message)',- ejected: 'Modèle déchargé : mémoire GPU libérée.',- ejectFailed: 'Impossible de décharger le modèle',- stopServer: 'Désactiver',- startServer: 'Activer',- runtimeRunningDetail:- "Le serveur local est en cours d'exécution. Le désactiver libère toute la mémoire GPU et empêche les nouvelles conversations d'utiliser les modèles locaux jusqu'à sa réactivation.",- serverStopped: 'Serveur local arrêté : mémoire GPU libérée.',- serverStarted: 'Serveur local en cours d’exécution.',- serverStopFailed: "Impossible d'arrêter le serveur local",- serverStartFailed: 'Impossible de démarrer le serveur local',- activating: 'Démarrage…',- activateFailed: model => `Impossible de passer à ${model}`,- activateDoneToast: model => `Les nouvelles conversations utilisent ${model}.`,- downloadFailed: model => `Échec du téléchargement de ${model}`,- pillFitsGpu: 'Tient dans votre GPU',- pillUsesRam: 'Utilise la RAM système',- pillTooBig: 'Trop volumineux pour cette machine',- browseTitle: 'Trouver davantage de modèles',- browseHint:- 'Recherchez dans tout Hugging Face. La taille des modèles téléchargés ici est automatiquement adaptée à votre machine, mais ils ne sont pas testés par notre équipe.',- browsePlaceholder: 'Rechercher un modèle par nom ou auteur…',- browseSearching: 'Recherche dans Hugging Face',- browseListing: 'Lecture des fichiers du modèle',- browseShowFiles: 'Afficher les fichiers',- browseRefresh: 'Actualiser',- browseDownloads: 'téléchargements',- browseLikes: "mentions J'aime",- browseGated: 'nécessite une connexion à Hugging Face',- browseNoGguf: 'Aucun fichier de modèle compatible trouvé.',- browseFitUnknown: 'Compatibilité inconnue',- browseAlreadyDownloaded: 'Déjà téléchargé.',- addedByYou: 'Ajouté par vous',- browseDownloadStarted: 'Téléchargement de {name}',- browseDownloadAria: 'Télécharger {name}',- sideloadButton: 'Ajouter un fichier de modèle',- sideloadTitle: 'Choisir un fichier de modèle GGUF',- sideloadDone: '{name} ajouté.',- sideloadAlreadyPresent: 'Déjà présent dans votre bibliothèque.',- pillFullContext: max => `Contexte complet de ${max}`,- pillFullContextTip: 'Utilise dès le départ la fenêtre de contexte complète du modèle',- pillUpTo: max => `Contexte jusqu’à ${max}`,- pillGrowsTip: 'Augmente automatiquement lorsque votre conversation a besoin de plus de place',- pillVision: 'Comprend les images',- deleteAction: 'Supprimer le modèle',- deleteConfirm: model => `Supprimer ${model} du disque ?`,- deleted: model => `${model} supprimé.`,- deleteFailed: 'Échec de la suppression'- },+ localModels: frLocalModels,billing: {perMonth: (amount: string) => `${amount}/mois`,creditsPerMonth: (amount: string) => `${amount} crédits/mois`,diff --git a/apps/desktop/src/i18n/fr_local_models.ts b/apps/desktop/src/i18n/fr_local_models.tsnew file mode 100644index 00000000000..dc5135b295a--- /dev/null+++ b/apps/desktop/src/i18n/fr_local_models.ts@@ -0,0 +1,124 @@+import type { TranslationOverride } from '@hermes/shared/i18n'++import type { Translations } from './types'++export const frLocalModels: TranslationOverride<Translations['settings']['localModels']> = {+ connectionChanged: 'La connexion des modèles locaux a changé',+ title: 'Modèles locaux',+ runtimeTitle: 'Moteur local',+ runtimeReady: backend => `Prêt · ${backend}`,+ serverRunning: 'En cours',+ runtimeInstalled: 'Moteur llama.cpp installé',+ runtimeInstalledDetail: (tag, backend) =>+ `Build ${tag}, backend ${backend}. Hermes démarre et gère le serveur pour vous.`,+ installTitle: 'Installer le moteur local',+ installDetail:+ "Télécharge le moteur d'inférence llama.cpp (quelques centaines de Mo). Les modèles téléchargés s'exécutent entièrement sur cette machine : aucun compte requis et aucune donnée ne quitte votre ordinateur.",+ installAction: 'Installer le moteur',+ installing: 'Installation du moteur…',+ installFailed: "Échec de l'installation du moteur",+ hardwareTitle: 'Cette machine',+ hardwareLoading: 'Analyse de votre matériel…',+ vram: label => `${label} de mémoire GPU`,+ ram: label => `${label} de RAM`,+ unifiedMemory: 'Mémoire unifiée',+ modelsTitle: 'Modèles',+ recommended: 'Recommandé',+ recommendedReason: {+ 'best-quality-resident':+ "Le modèle de meilleure qualité qui tient entièrement dans votre GPU et s'exécute à pleine vitesse. La sélection équilibre qualité et vitesse prévue sur ce matériel.",+ 'speed-gated-quality':+ 'Un modèle de meilleure qualité tient sur cette machine, mais sa bande passante mémoire le rendrait trop lent. Celui-ci est le meilleur modèle qui reste rapide.',+ 'fastest-resident':+ "Aucun modèle n'atteint sa pleine vitesse sur ce matériel. Celui-ci s'en approche le plus tout en tenant entièrement dans la mémoire GPU."+ },+ noRecommendationTitle: 'Aucune recommandation automatique pour cette machine',+ noRecommendationDetail:+ "La configuration automatique nécessite un modèle présélectionné qui tient entièrement dans la mémoire GPU ou unifiée. Vous pouvez toujours choisir un modèle ci-dessous ou parcourir d'autres modèles.",+ noRecommendationAction: 'Parcourir les modèles',+ downloaded: 'Téléchargé',+ downloadAction: size => `Télécharger · ${size}`,+ downloadProgress: (done, total) => `Téléchargement de ${done} sur ${total}`,+ downloadDoneToast: model => `${model} est prêt.`,+ installDoneToast: 'Le moteur local est installé et prêt.',+ quickstartTitle: 'Exécuter un modèle sur cette machine',+ quickstartDetail: (model, size) =>+ `Un clic configure tout : le moteur local, ${model} (téléchargement de ${size}) et votre modèle par défaut pour les nouvelles conversations. Aucune donnée ne quitte cet ordinateur.`,+ quickstartDetailReady: model =>+ `Un clic définit ${model} comme modèle par défaut pour les nouvelles conversations. Tout s'exécute sur cette machine.`,+ quickstartAction: 'Configurer pour moi',+ quickstartConfigure: 'Configuration…',+ quickstartDoneToast: model => `${model} est configuré : les nouvelles conversations s'exécutent sur cette machine.`,+ quickstartFailed: 'Échec de la configuration du modèle local',+ quickstartStageEngine: 'Moteur',+ quickstartStageModel: 'Modèle',+ quickstartStageFinish: 'Terminer',+ useAction: 'Utiliser',+ activePill: 'Par défaut',+ updateTitle: 'Mise à jour du moteur disponible',+ updateDetail: (next, current) =>+ `Une nouvelle build llama.cpp (${next}) est prête à être installée. Vous utilisez ${current}. Les modèles continuent de fonctionner pendant le téléchargement.`,+ updateAction: 'Mettre à jour le moteur',+ updating: 'Mise à jour du moteur…',+ upToDateTitle: 'Moteur à jour',+ upToDateDetail: (tag, backend) =>+ `llama.cpp ${tag} (${backend}) est en cours d'exécution : il s'agit de la dernière build fournie par Hermes.`,+ activeDetail:+ "Les nouvelles conversations utilisent ce modèle. Il se charge lors de l'envoi de votre premier message.",+ activeNotLoaded: 'Se charge avec votre premier message',+ loadedPill: 'En mémoire',+ placementResident: 'entièrement sur le GPU',+ placementSpilled: 'partiellement dans la RAM',+ placementResidentTip: 'S’exécute entièrement dans la mémoire GPU avec cette fenêtre de contexte, à pleine vitesse.',+ placementSpilledTip:+ 'Une partie de ce modèle s’exécute depuis la RAM système. Il fonctionne, mais plus lentement. Une build plus compacte ou un contexte plus petit tiendrait entièrement dans le GPU.',+ loadingPill: 'Chargement…',+ ejectTip: 'Libérer la mémoire GPU (le modèle se rechargera au prochain message)',+ ejected: 'Modèle déchargé : mémoire GPU libérée.',+ ejectFailed: 'Impossible de décharger le modèle',+ stopServer: 'Désactiver',+ startServer: 'Activer',+ runtimeRunningDetail:+ "Le serveur local est en cours d'exécution. Le désactiver libère toute la mémoire GPU et empêche les nouvelles conversations d'utiliser les modèles locaux jusqu'à sa réactivation.",+ serverStopped: 'Serveur local arrêté : mémoire GPU libérée.',+ serverStarted: 'Serveur local en cours d’exécution.',+ serverStopFailed: "Impossible d'arrêter le serveur local",+ serverStartFailed: 'Impossible de démarrer le serveur local',+ activating: 'Démarrage…',+ activateFailed: model => `Impossible de passer à ${model}`,+ activateDoneToast: model => `Les nouvelles conversations utilisent ${model}.`,+ downloadFailed: model => `Échec du téléchargement de ${model}`,+ pillFitsGpu: 'Tient dans votre GPU',+ pillUsesRam: 'Utilise la RAM système',+ pillTooBig: 'Trop volumineux pour cette machine',+ browseTitle: 'Trouver davantage de modèles',+ browseHint:+ 'Recherchez dans tout Hugging Face. La taille des modèles téléchargés ici est automatiquement adaptée à votre machine, mais ils ne sont pas testés par notre équipe.',+ browsePlaceholder: 'Rechercher un modèle par nom ou auteur…',+ browseSearching: 'Recherche dans Hugging Face',+ browseListing: 'Lecture des fichiers du modèle',+ browseShowFiles: 'Afficher les fichiers',+ browseRefresh: 'Actualiser',+ browseDownloads: 'téléchargements',+ browseLikes: "mentions J'aime",+ browseGated: 'nécessite une connexion à Hugging Face',+ browseNoGguf: 'Aucun fichier de modèle compatible trouvé.',+ browseFitUnknown: 'Compatibilité inconnue',+ browseAlreadyDownloaded: 'Déjà téléchargé.',+ addedByYou: 'Ajouté par vous',+ browseDownloadStarted: 'Téléchargement de {name}',+ browseDownloadAria: 'Télécharger {name}',+ sideloadButton: 'Ajouter un fichier de modèle',+ sideloadTitle: 'Choisir un fichier de modèle GGUF',+ sideloadDone: '{name} ajouté.',+ sideloadAlreadyPresent: 'Déjà présent dans votre bibliothèque.',+ pillFullContext: max => `Contexte complet de ${max}`,+ pillFullContextTip: 'Utilise dès le départ la fenêtre de contexte complète du modèle',+ pillUpTo: max => `Contexte jusqu’à ${max}`,+ pillGrowsTip: 'Augmente automatiquement lorsque votre conversation a besoin de plus de place',+ pillVision: 'Comprend les images',+ deleteAction: 'Supprimer le modèle',+ deleteConfirm: model => `Supprimer ${model} du disque ?`,+ deleted: model => `${model} supprimé.`,+ deleteFailed: 'Échec de la suppression'+}diff --git a/apps/desktop/src/i18n/ja.ts b/apps/desktop/src/i18n/ja.tsindex e120127dc88..96cec6b16b1 100644--- a/apps/desktop/src/i18n/ja.ts+++ b/apps/desktop/src/i18n/ja.ts@@ -3,6 +3,7 @@ import { defineFieldCopy } from '@/app/settings/field-copy'import { defineLocale } from './define-locale'import { introJa } from './intro-ja'import { jaAuxTasks } from './ja_aux_tasks'+import { jaLocalModels } from './ja_local_models'import { jaModelMenu } from './ja_model_menu'import { jaNotices } from './ja_notices'import { jaPluginSettings } from './ja_plugins'@@ -1304,119 +1305,7 @@ export const ja = defineLocale({providerDefault: '(プロバイダーのデフォルト)',tasks: jaAuxTasks},- localModels: {- connectionChanged: 'ローカルモデルの接続が変更されました',- title: 'ローカルモデル',- runtimeTitle: 'ローカルランタイム',- runtimeReady: backend => `準備完了 · ${backend}`,- serverRunning: '実行中',- runtimeInstalled: 'llama.cpp ランタイムをインストール済み',- runtimeInstalledDetail: (tag, backend) =>- `ビルド ${tag}、${backend} バックエンド。サーバーは Hermes が起動・管理します。`,- installTitle: 'ローカルランタイムをインストール',- installDetail:- 'llama.cpp 推論エンジン(数百 MB)をダウンロードします。ダウンロードしたモデルはすべてこのマシン上で動作します——アカウント不要、データが外部に送られることはありません。',- installAction: 'ランタイムをインストール',- installing: 'ランタイムをインストール中…',- installFailed: 'ランタイムのインストールに失敗しました',- hardwareTitle: 'このマシン',- hardwareLoading: 'ハードウェアを確認中…',- vram: label => `GPU メモリ ${label}`,- ram: label => `RAM ${label}`,- unifiedMemory: 'ユニファイドメモリ',- modelsTitle: 'モデル',- recommended: 'おすすめ',- recommendedReason: {- 'best-quality-resident':- 'GPU に完全に載り、フルスピードで動くモデルの中で最高品質です。おすすめは品質とこのハードウェアでの予測速度を両立させて選ばれます。',- 'speed-gated-quality':- 'より高品質なモデルもこのマシンに載りますが、メモリ帯域の制約で応答が遅くなります — これは速度を保てる最良のモデルです。',- 'fastest-resident':- 'このハードウェアでフルスピードに達するモデルはありません。GPU メモリ内で動くものの中で最速です。'- } as Record<string, string>,- noRecommendationTitle: 'このマシン向けの自動推奨モデルはありません',- noRecommendationDetail:- '自動セットアップには、GPU メモリまたはユニファイドメモリに完全に収まる厳選モデルが必要です。下の一覧から選ぶか、ほかのモデルを探すこともできます。',- noRecommendationAction: 'モデルを探す',- quickstartConfigure: '自分で選ぶ',- downloaded: 'ダウンロード済み',- downloadAction: size => `ダウンロード · ${size}`,- downloadProgress: (done, total) => `${done} / ${total}`,- downloadStatusRunning: 'ダウンロード中',- downloadSpeed: rate => `${rate}`,- downloadEta: time => `残り約${time}`,- downloadPausedLabel: '一時停止中',- downloadPauseAction: '一時停止',- downloadResumeAction: '再開',- downloadDoneToast: model => `${model} の準備ができました。`,- installDoneToast: 'ローカルランタイムのインストールが完了しました。',- useAction: '使用する',- activePill: 'デフォルト',- updateTitle: 'エンジンの更新があります',- updateDetail: (next, current) =>- `新しい llama.cpp ビルド(${next})をインストールできます——現在は ${current} です。ダウンロード中もモデルは引き続き使えます。`,- updateAction: 'エンジンを更新',- updating: 'エンジンを更新中…',- upToDateTitle: 'エンジンは最新です',- upToDateDetail: (tag, backend) => `llama.cpp ${tag}(${backend})で動作中。`,- activeDetail: '新しいチャットはこのモデルを使用——最初のメッセージ送信時に読み込みます',- activeNotLoaded: '最初のメッセージで読み込みます',- loadedPill: '読み込み済み',- placementResident: 'すべて GPU 上',- placementSpilled: '一部 RAM 上',- placementResidentTip: 'このコンテキストウィンドウで GPU メモリ内で完全に動作しています — フルスピード。',- placementSpilledTip:- 'モデルの一部がシステム RAM から動作しています — 動作しますが遅くなります。よりコンパクトなビルドか小さいコンテキストなら完全に収まります。',- loadingPill: '読み込み中…',- ejectTip: 'GPU メモリを解放(必要時に再読み込み)',- ejected: 'モデルをアンロードしました——GPU メモリを解放しました。',- ejectFailed: 'モデルをアンロードできませんでした',- stopServer: 'オフにする',- startServer: 'オンにする',- runtimeRunningDetail:- 'ローカルサーバーが実行中です。オフにすると GPU メモリを全て解放し、再度オンにするまで新しいチャットはローカルモデルを使用しません。',- serverStopped: 'ローカルサーバーを停止しました——GPU メモリを解放しました。',- serverStarted: 'ローカルサーバー実行中。',- serverStopFailed: 'ローカルサーバーを停止できませんでした',- serverStartFailed: 'ローカルサーバーを起動できませんでした',- activating: '起動中…',- activateFailed: model => `${model} への切り替えに失敗しました`,- activateDoneToast: model => `新しいチャットは ${model} を使用します。`,- downloadFailed: model => `${model} のダウンロードに失敗しました`,- pillFitsGpu: 'GPU に完全に収まります',- pillUsesRam: 'システム RAM を使用',- pillTooBig: 'このマシンには大きすぎます',- browseTitle: 'さらにモデルを探す',- browseHint:- 'Hugging Face 全体を検索できます。ここでダウンロードしたモデルは自動でマシンに合わせて動作しますが、当方でのテストは行われていません。',- browsePlaceholder: 'モデル名または作者で検索…',- browseSearching: 'Hugging Face を検索中',- browseListing: 'モデルファイルを読み込み中',- browseShowFiles: 'ファイルを表示',- browseRefresh: '更新',- browseDownloads: 'ダウンロード',- browseLikes: 'いいね',- browseGated: 'Hugging Face へのサインインが必要',- browseNoGguf: '互換性のあるモデルファイルが見つかりません。',- browseFitUnknown: '適合状況は不明',- browseAlreadyDownloaded: 'ダウンロード済みです。',- addedByYou: 'あなたが追加',- browseDownloadStarted: '{name} をダウンロード中',- browseDownloadAria: '{name} をダウンロード',- sideloadButton: 'モデルファイルを追加',- sideloadTitle: 'GGUF モデルファイルを選択',- sideloadDone: '{name} を追加しました。',- sideloadAlreadyPresent: '既にライブラリにあります。',- pillFullContext: max => `フル ${max} コンテキスト`,- pillFullContextTip: '最初からモデルの完全なコンテキストウィンドウで動作します',- pillUpTo: max => `最大 ${max} コンテキスト`,- pillGrowsTip: '会話が必要とするにつれて自動的に拡張します',- pillVision: '画像対応',- deleteAction: 'モデルを削除',- deleteConfirm: model => `${model} をディスクから削除しますか?`,- deleted: model => `${model} を削除しました。`,- deleteFailed: '削除に失敗しました'- },+ localModels: jaLocalModels,providers: {connectAccount: 'アカウントを接続',haveApiKey: 'API キーをお持ちですか?',diff --git a/apps/desktop/src/i18n/ja_local_models.ts b/apps/desktop/src/i18n/ja_local_models.tsnew file mode 100644index 00000000000..b2eafbde0bc--- /dev/null+++ b/apps/desktop/src/i18n/ja_local_models.ts@@ -0,0 +1,117 @@+import type { TranslationOverride } from '@hermes/shared/i18n'++import type { Translations } from './types'++export const jaLocalModels: TranslationOverride<Translations['settings']['localModels']> = {+ connectionChanged: 'ローカルモデルの接続が変更されました',+ title: 'ローカルモデル',+ runtimeTitle: 'ローカルランタイム',+ runtimeReady: backend => `準備完了 · ${backend}`,+ serverRunning: '実行中',+ runtimeInstalled: 'llama.cpp ランタイムをインストール済み',+ runtimeInstalledDetail: (tag, backend) =>+ `ビルド ${tag}、${backend} バックエンド。サーバーは Hermes が起動・管理します。`,+ installTitle: 'ローカルランタイムをインストール',+ installDetail:+ 'llama.cpp 推論エンジン(数百 MB)をダウンロードします。ダウンロードしたモデルはすべてこのマシン上で動作します——アカウント不要、データが外部に送られることはありません。',+ installAction: 'ランタイムをインストール',+ installing: 'ランタイムをインストール中…',+ installFailed: 'ランタイムのインストールに失敗しました',+ hardwareTitle: 'このマシン',+ hardwareLoading: 'ハードウェアを確認中…',+ vram: label => `GPU メモリ ${label}`,+ ram: label => `RAM ${label}`,+ unifiedMemory: 'ユニファイドメモリ',+ modelsTitle: 'モデル',+ recommended: 'おすすめ',+ recommendedReason: {+ 'best-quality-resident':+ 'GPU に完全に載り、フルスピードで動くモデルの中で最高品質です。おすすめは品質とこのハードウェアでの予測速度を両立させて選ばれます。',+ 'speed-gated-quality':+ 'より高品質なモデルもこのマシンに載りますが、メモリ帯域の制約で応答が遅くなります — これは速度を保てる最良のモデルです。',+ 'fastest-resident':+ 'このハードウェアでフルスピードに達するモデルはありません。GPU メモリ内で動くものの中で最速です。'+ } as Record<string, string>,+ noRecommendationTitle: 'このマシン向けの自動推奨モデルはありません',+ noRecommendationDetail:+ '自動セットアップには、GPU メモリまたはユニファイドメモリに完全に収まる厳選モデルが必要です。下の一覧から選ぶか、ほかのモデルを探すこともできます。',+ noRecommendationAction: 'モデルを探す',+ quickstartConfigure: '自分で選ぶ',+ downloaded: 'ダウンロード済み',+ downloadAction: size => `ダウンロード · ${size}`,+ downloadProgress: (done, total) => `${done} / ${total}`,+ downloadStatusRunning: 'ダウンロード中',+ downloadSpeed: rate => `${rate}`,+ downloadEta: time => `残り約${time}`,+ downloadPausedLabel: '一時停止中',+ downloadPauseAction: '一時停止',+ downloadResumeAction: '再開',+ downloadDoneToast: model => `${model} の準備ができました。`,+ installDoneToast: 'ローカルランタイムのインストールが完了しました。',+ useAction: '使用する',+ activePill: 'デフォルト',+ updateTitle: 'エンジンの更新があります',+ updateDetail: (next, current) =>+ `新しい llama.cpp ビルド(${next})をインストールできます——現在は ${current} です。ダウンロード中もモデルは引き続き使えます。`,+ updateAction: 'エンジンを更新',+ updating: 'エンジンを更新中…',+ upToDateTitle: 'エンジンは最新です',+ upToDateDetail: (tag, backend) => `llama.cpp ${tag}(${backend})で動作中。`,+ activeDetail: '新しいチャットはこのモデルを使用——最初のメッセージ送信時に読み込みます',+ activeNotLoaded: '最初のメッセージで読み込みます',+ loadedPill: '読み込み済み',+ placementResident: 'すべて GPU 上',+ placementSpilled: '一部 RAM 上',+ placementResidentTip: 'このコンテキストウィンドウで GPU メモリ内で完全に動作しています — フルスピード。',+ placementSpilledTip:+ 'モデルの一部がシステム RAM から動作しています — 動作しますが遅くなります。よりコンパクトなビルドか小さいコンテキストなら完全に収まります。',+ loadingPill: '読み込み中…',+ ejectTip: 'GPU メモリを解放(必要時に再読み込み)',+ ejected: 'モデルをアンロードしました——GPU メモリを解放しました。',+ ejectFailed: 'モデルをアンロードできませんでした',+ stopServer: 'オフにする',+ startServer: 'オンにする',+ runtimeRunningDetail:+ 'ローカルサーバーが実行中です。オフにすると GPU メモリを全て解放し、再度オンにするまで新しいチャットはローカルモデルを使用しません。',+ serverStopped: 'ローカルサーバーを停止しました——GPU メモリを解放しました。',+ serverStarted: 'ローカルサーバー実行中。',+ serverStopFailed: 'ローカルサーバーを停止できませんでした',+ serverStartFailed: 'ローカルサーバーを起動できませんでした',+ activating: '起動中…',+ activateFailed: model => `${model} への切り替えに失敗しました`,+ activateDoneToast: model => `新しいチャットは ${model} を使用します。`,+ downloadFailed: model => `${model} のダウンロードに失敗しました`,+ pillFitsGpu: 'GPU に完全に収まります',+ pillUsesRam: 'システム RAM を使用',+ pillTooBig: 'このマシンには大きすぎます',+ browseTitle: 'さらにモデルを探す',+ browseHint:+ 'Hugging Face 全体を検索できます。ここでダウンロードしたモデルは自動でマシンに合わせて動作しますが、当方でのテストは行われていません。',+ browsePlaceholder: 'モデル名または作者で検索…',+ browseSearching: 'Hugging Face を検索中',+ browseListing: 'モデルファイルを読み込み中',+ browseShowFiles: 'ファイルを表示',+ browseRefresh: '更新',+ browseDownloads: 'ダウンロード',+ browseLikes: 'いいね',+ browseGated: 'Hugging Face へのサインインが必要',+ browseNoGguf: '互換性のあるモデルファイルが見つかりません。',+ browseFitUnknown: '適合状況は不明',+ browseAlreadyDownloaded: 'ダウンロード済みです。',+ addedByYou: 'あなたが追加',+ browseDownloadStarted: '{name} をダウンロード中',+ browseDownloadAria: '{name} をダウンロード',+ sideloadButton: 'モデルファイルを追加',+ sideloadTitle: 'GGUF モデルファイルを選択',+ sideloadDone: '{name} を追加しました。',+ sideloadAlreadyPresent: '既にライブラリにあります。',+ pillFullContext: max => `フル ${max} コンテキスト`,+ pillFullContextTip: '最初からモデルの完全なコンテキストウィンドウで動作します',+ pillUpTo: max => `最大 ${max} コンテキスト`,+ pillGrowsTip: '会話が必要とするにつれて自動的に拡張します',+ pillVision: '画像対応',+ deleteAction: 'モデルを削除',+ deleteConfirm: model => `${model} をディスクから削除しますか?`,+ deleted: model => `${model} を削除しました。`,+ deleteFailed: '削除に失敗しました'+}diff --git a/apps/desktop/src/i18n/zh.ts b/apps/desktop/src/i18n/zh.tsindex f113ff13db6..5e36910b816 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 } from './define-locale'import { introZh } from './intro-zh'import { zhAuxTasks } from './zh_aux_tasks'+import { zhLocalModels } from './zh_local_models'import { zhModelMenu } from './zh_model_menu'import { zhNotices } from './zh_notices'import { zhSharedMetrics } from './zh_shared_metrics'@@ -1708,121 +1709,7 @@ export const zh = defineLocale({moaReferenceHint: '默认每轮仅建议一次',tasks: zhAuxTasks},- localModels: {- connectionChanged: '本地模型连接已更改',- title: '本地模型',- runtimeTitle: '本地运行时',- runtimeReady: backend => `就绪 · ${backend}`,- serverRunning: '运行中',- runtimeInstalled: '已安装 llama.cpp 运行时',- runtimeInstalledDetail: (tag, backend) => `构建 ${tag},${backend} 后端。Hermes 会为您启动并管理服务器。`,- installTitle: '安装本地运行时',- installDetail: '下载 llama.cpp 推理引擎(几百 MB)。下载的模型完全在本机运行——无需账号,数据不会离开您的电脑。',- installAction: '安装运行时',- installing: '正在安装运行时…',- installFailed: '运行时安装失败',- quickstartTitle: '在本机运行模型',- quickstartDetail: (model, size) =>- `一键完成所有设置:本地引擎、${model}(需下载 ${size}),并设为新会话的默认模型。数据不会离开这台电脑。`,- quickstartDetailReady: model => `一键将 ${model} 设为新会话的默认模型。所有内容都在本机运行。`,- quickstartAction: '为我设置',- quickstartConfigure: '让我选择',- quickstartDoneToast: model => `${model} 已就绪——新会话将在本机运行。`,- quickstartFailed: '本地模型设置失败',- quickstartStageEngine: '引擎',- quickstartStageModel: '模型',- quickstartStageFinish: '完成',- hardwareTitle: '本机配置',- hardwareLoading: '正在检测硬件…',- vram: label => `${label} 显存`,- ram: label => `${label} 内存`,- unifiedMemory: '统一内存',- modelsTitle: '模型',- recommended: '推荐',- recommendedReason: {- 'best-quality-resident': '在完全驻留 GPU 且保持全速的模型中质量最高。推荐会在质量与该硬件的预计速度之间权衡。',- 'speed-gated-quality': '有更高质量的模型可以装入这台机器,但受内存带宽限制响应会太慢——这是保持流畅的最佳模型。',- 'fastest-resident': '没有模型能在该硬件上达到全速;这是完全驻留 GPU 内存中最快的一个。'- } as Record<string, string>,- noRecommendationTitle: '此设备暂无自动推荐模型',- noRecommendationDetail:- '自动设置需要一个可完全放入显存或统一内存的精选模型。你仍可在下方自行选择,或浏览更多模型。',- noRecommendationAction: '浏览模型',- downloaded: '已下载',- downloadAction: size => `下载 · ${size}`,- downloadProgress: (done, total) => `${done} / ${total}`,- downloadStatusRunning: '下载中',- downloadSpeed: rate => `${rate}`,- downloadEta: time => `剩余约 ${time}`,- downloadPausedLabel: '已暂停',- downloadPauseAction: '暂停',- downloadResumeAction: '继续',- downloadDoneToast: model => `${model} 已就绪。`,- installDoneToast: '本地运行时已安装就绪。',- useAction: '使用',- activePill: '默认',- updateTitle: '引擎有可用更新',- updateDetail: (next, current) =>- `新的 llama.cpp 构建(${next})可以安装——当前为 ${current}。下载期间模型仍可正常使用。`,- updateAction: '更新引擎',- updating: '正在更新引擎…',- upToDateTitle: '引擎已是最新',- upToDateDetail: (tag, backend) => `正在运行 llama.cpp ${tag}(${backend})。`,- activeDetail: '新对话使用此模型——发送首条消息时加载',- activeNotLoaded: '首条消息时加载',- loadedPill: '已加载',- placementResident: '全部在 GPU',- placementSpilled: '部分在内存',- placementResidentTip: '完全在 GPU 显存中以此上下文窗口运行——全速。',- placementSpilledTip: '模型的一部分从系统内存运行——可用但较慢。更紧凑的版本或更小的上下文可以完全放入显存。',- loadingPill: '加载中…',- ejectTip: '释放显存(需要时重新加载)',- ejected: '模型已卸载——显存已释放。',- ejectFailed: '无法卸载模型',- stopServer: '关闭',- startServer: '开启',- runtimeRunningDetail: '本地服务器正在运行。关闭后将释放全部显存,新对话将不再使用本地模型,直到您重新开启。',- serverStopped: '本地服务器已停止——显存已释放。',- serverStarted: '本地服务器运行中。',- serverStopFailed: '无法停止本地服务器',- serverStartFailed: '无法启动本地服务器',- activating: '启动中…',- activateFailed: model => `无法切换到 ${model}`,- activateDoneToast: model => `新对话将使用 ${model}。`,- downloadFailed: model => `${model} 下载失败`,- pillFitsGpu: '完全在 GPU 上运行',- pillUsesRam: '使用系统内存',- pillTooBig: '超出本机内存',- browseTitle: '发现更多模型',- browseHint: '搜索整个 Hugging Face。在这里下载的模型会自动适配你的机器,但未经我们测试。',- browsePlaceholder: '按名称或作者搜索模型…',- browseSearching: '正在搜索 Hugging Face',- browseListing: '正在读取模型文件',- browseShowFiles: '查看文件',- browseRefresh: '刷新',- browseDownloads: '次下载',- browseLikes: '个赞',- browseGated: '需要登录 Hugging Face',- browseNoGguf: '未找到兼容的模型文件。',- browseFitUnknown: '适配情况未知',- browseAlreadyDownloaded: '已下载。',- addedByYou: '由你添加',- browseDownloadStarted: '正在下载 {name}',- browseDownloadAria: '下载 {name}',- sideloadButton: '添加模型文件',- sideloadTitle: '选择 GGUF 模型文件',- sideloadDone: '已添加 {name}。',- sideloadAlreadyPresent: '已在你的库中。',- pillFullContext: max => `完整 ${max} 上下文`,- pillFullContextTip: '从一开始就以模型的完整上下文窗口运行',- pillUpTo: max => `最高 ${max} 上下文`,- pillGrowsTip: '随着对话需要更多空间自动增长',- pillVision: '识图',- deleteAction: '删除模型',- deleteConfirm: model => `从磁盘删除 ${model}?`,- deleted: model => `已删除 ${model}。`,- deleteFailed: '删除失败'- },+ localModels: zhLocalModels,billing: {perMonth: amount => `${amount}/月`,creditsPerMonth: amount => `${amount} 额度/月`,diff --git a/apps/desktop/src/i18n/zh_local_models.ts b/apps/desktop/src/i18n/zh_local_models.tsnew file mode 100644index 00000000000..b28bd0a1e38--- /dev/null+++ b/apps/desktop/src/i18n/zh_local_models.ts@@ -0,0 +1,118 @@+import type { TranslationOverride } from '@hermes/shared/i18n'++import type { Translations } from './types'++export const zhLocalModels: TranslationOverride<Translations['settings']['localModels']> = {+ connectionChanged: '本地模型连接已更改',+ title: '本地模型',+ runtimeTitle: '本地运行时',+ runtimeReady: backend => `就绪 · ${backend}`,+ serverRunning: '运行中',+ runtimeInstalled: '已安装 llama.cpp 运行时',+ runtimeInstalledDetail: (tag, backend) => `构建 ${tag},${backend} 后端。Hermes 会为您启动并管理服务器。`,+ installTitle: '安装本地运行时',+ installDetail: '下载 llama.cpp 推理引擎(几百 MB)。下载的模型完全在本机运行——无需账号,数据不会离开您的电脑。',+ installAction: '安装运行时',+ installing: '正在安装运行时…',+ installFailed: '运行时安装失败',+ quickstartTitle: '在本机运行模型',+ quickstartDetail: (model, size) =>+ `一键完成所有设置:本地引擎、${model}(需下载 ${size}),并设为新会话的默认模型。数据不会离开这台电脑。`,+ quickstartDetailReady: model => `一键将 ${model} 设为新会话的默认模型。所有内容都在本机运行。`,+ quickstartAction: '为我设置',+ quickstartConfigure: '让我选择',+ quickstartDoneToast: model => `${model} 已就绪——新会话将在本机运行。`,+ quickstartFailed: '本地模型设置失败',+ quickstartStageEngine: '引擎',+ quickstartStageModel: '模型',+ quickstartStageFinish: '完成',+ hardwareTitle: '本机配置',+ hardwareLoading: '正在检测硬件…',+ vram: label => `${label} 显存`,+ ram: label => `${label} 内存`,+ unifiedMemory: '统一内存',+ modelsTitle: '模型',+ recommended: '推荐',+ recommendedReason: {+ 'best-quality-resident': '在完全驻留 GPU 且保持全速的模型中质量最高。推荐会在质量与该硬件的预计速度之间权衡。',+ 'speed-gated-quality': '有更高质量的模型可以装入这台机器,但受内存带宽限制响应会太慢——这是保持流畅的最佳模型。',+ 'fastest-resident': '没有模型能在该硬件上达到全速;这是完全驻留 GPU 内存中最快的一个。'+ } as Record<string, string>,+ noRecommendationTitle: '此设备暂无自动推荐模型',+ noRecommendationDetail: '自动设置需要一个可完全放入显存或统一内存的精选模型。你仍可在下方自行选择,或浏览更多模型。',+ noRecommendationAction: '浏览模型',+ downloaded: '已下载',+ downloadAction: size => `下载 · ${size}`,+ downloadProgress: (done, total) => `${done} / ${total}`,+ downloadStatusRunning: '下载中',+ downloadSpeed: rate => `${rate}`,+ downloadEta: time => `剩余约 ${time}`,+ downloadPausedLabel: '已暂停',+ downloadPauseAction: '暂停',+ downloadResumeAction: '继续',+ downloadDoneToast: model => `${model} 已就绪。`,+ installDoneToast: '本地运行时已安装就绪。',+ useAction: '使用',+ activePill: '默认',+ updateTitle: '引擎有可用更新',+ updateDetail: (next, current) =>+ `新的 llama.cpp 构建(${next})可以安装——当前为 ${current}。下载期间模型仍可正常使用。`,+ updateAction: '更新引擎',+ updating: '正在更新引擎…',+ upToDateTitle: '引擎已是最新',+ upToDateDetail: (tag, backend) => `正在运行 llama.cpp ${tag}(${backend})。`,+ activeDetail: '新对话使用此模型——发送首条消息时加载',+ activeNotLoaded: '首条消息时加载',+ loadedPill: '已加载',+ placementResident: '全部在 GPU',+ placementSpilled: '部分在内存',+ placementResidentTip: '完全在 GPU 显存中以此上下文窗口运行——全速。',+ placementSpilledTip: '模型的一部分从系统内存运行——可用但较慢。更紧凑的版本或更小的上下文可以完全放入显存。',+ loadingPill: '加载中…',+ ejectTip: '释放显存(需要时重新加载)',+ ejected: '模型已卸载——显存已释放。',+ ejectFailed: '无法卸载模型',+ stopServer: '关闭',+ startServer: '开启',+ runtimeRunningDetail: '本地服务器正在运行。关闭后将释放全部显存,新对话将不再使用本地模型,直到您重新开启。',+ serverStopped: '本地服务器已停止——显存已释放。',+ serverStarted: '本地服务器运行中。',+ serverStopFailed: '无法停止本地服务器',+ serverStartFailed: '无法启动本地服务器',+ activating: '启动中…',+ activateFailed: model => `无法切换到 ${model}`,+ activateDoneToast: model => `新对话将使用 ${model}。`,+ downloadFailed: model => `${model} 下载失败`,+ pillFitsGpu: '完全在 GPU 上运行',+ pillUsesRam: '使用系统内存',+ pillTooBig: '超出本机内存',+ browseTitle: '发现更多模型',+ browseHint: '搜索整个 Hugging Face。在这里下载的模型会自动适配你的机器,但未经我们测试。',+ browsePlaceholder: '按名称或作者搜索模型…',+ browseSearching: '正在搜索 Hugging Face',+ browseListing: '正在读取模型文件',+ browseShowFiles: '查看文件',+ browseRefresh: '刷新',+ browseDownloads: '次下载',+ browseLikes: '个赞',+ browseGated: '需要登录 Hugging Face',+ browseNoGguf: '未找到兼容的模型文件。',+ browseFitUnknown: '适配情况未知',+ browseAlreadyDownloaded: '已下载。',+ addedByYou: '由你添加',+ browseDownloadStarted: '正在下载 {name}',+ browseDownloadAria: '下载 {name}',+ sideloadButton: '添加模型文件',+ sideloadTitle: '选择 GGUF 模型文件',+ sideloadDone: '已添加 {name}。',+ sideloadAlreadyPresent: '已在你的库中。',+ pillFullContext: max => `完整 ${max} 上下文`,+ pillFullContextTip: '从一开始就以模型的完整上下文窗口运行',+ pillUpTo: max => `最高 ${max} 上下文`,+ pillGrowsTip: '随着对话需要更多空间自动增长',+ pillVision: '识图',+ deleteAction: '删除模型',+ deleteConfirm: model => `从磁盘删除 ${model}?`,+ deleted: model => `已删除 ${model}。`,+ deleteFailed: '删除失败'+}