Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

fix(ui): Zaehlwoerter, die Abbruchmeldung und fuenf deutsche Katalogtexte

purple75c7249f25be
diff --git a/src/api/discover.ts b/src/api/discover.ts
index 11590510..4b49e727 100644
--- a/src/api/discover.ts
+++ b/src/api/discover.ts
@@ -1109,9 +1109,9 @@ export function getUncensoredTextModels(): DiscoverModel[] {
// Architektur am 02.09.2026 aus dem echten Dateikopf gelesen: `qwen35` —
// dieselbe wie beim Nachbareintrag oben, also von b9949 getragen.
{ name: 'Qwen 3.8 27B Heretic', group: 'Qwen 3.8 27B Heretic', description: 'Qwen 3.8 27B RVN Heretic · twice-sharpened abliteration, 0–1 refusals per 100 prompts. Vision, multilingual. Recommended size.', pulls: '1.2M+', tags: ['27B', 'Vision', 'Q4_K_M', '17 GB'], updated: 'Hot', agent: true, released: '2026-08', downloadUrl: HF('0bserverx/Qwen3.8-27B-Heretic-Abliterated-Uncensored-GGUF', 'RVN-Q4_K_M-multilingual.gguf'), filename: 'RVN-Q4_K_M-multilingual.gguf', sizeGB: 16.6, mmprojUrl: HF('0bserverx/Qwen3.8-27B-Heretic-Abliterated-Uncensored-GGUF', 'mmproj-Qwen3.8-27B-Q8_0.gguf'), mmprojSizeGB: 0.63 },
- { name: 'Qwen 3.8 27B Heretic IQ2_M', group: 'Qwen 3.8 27B Heretic', description: 'Qwen 3.8 27B RVN Heretic · kleinster brauchbarer Quant, passt auf eine 12-GB-Karte.', pulls: '1.2M+', tags: ['27B', 'Vision', 'IQ2_M', '10 GB'], updated: 'New', agent: true, released: '2026-08', downloadUrl: HF('0bserverx/Qwen3.8-27B-Heretic-Abliterated-Uncensored-GGUF', 'RVN-IQ2_M-multilingual.gguf'), filename: 'RVN-IQ2_M-multilingual.gguf', sizeGB: 10, mmprojUrl: HF('0bserverx/Qwen3.8-27B-Heretic-Abliterated-Uncensored-GGUF', 'mmproj-Qwen3.8-27B-Q8_0.gguf'), mmprojSizeGB: 0.63 },
+ { name: 'Qwen 3.8 27B Heretic IQ2_M', group: 'Qwen 3.8 27B Heretic', description: 'Qwen 3.8 27B RVN Heretic · the smallest usable quant, fits a 12 GB card.', pulls: '1.2M+', tags: ['27B', 'Vision', 'IQ2_M', '10 GB'], updated: 'New', agent: true, released: '2026-08', downloadUrl: HF('0bserverx/Qwen3.8-27B-Heretic-Abliterated-Uncensored-GGUF', 'RVN-IQ2_M-multilingual.gguf'), filename: 'RVN-IQ2_M-multilingual.gguf', sizeGB: 10, mmprojUrl: HF('0bserverx/Qwen3.8-27B-Heretic-Abliterated-Uncensored-GGUF', 'mmproj-Qwen3.8-27B-Q8_0.gguf'), mmprojSizeGB: 0.63 },
{ name: 'Qwen 3.8 27B Heretic Q5_K_M', group: 'Qwen 3.8 27B Heretic', description: 'Qwen 3.8 27B RVN Heretic · Q5, higher quality. For 24 GB cards.', pulls: '1.2M+', tags: ['27B', 'Vision', 'Q5_K_M', '19 GB'], updated: 'New', agent: true, released: '2026-08', downloadUrl: HF('0bserverx/Qwen3.8-27B-Heretic-Abliterated-Uncensored-GGUF', 'RVN-Q5_K_M-multilingual.gguf'), filename: 'RVN-Q5_K_M-multilingual.gguf', sizeGB: 19.2, mmprojUrl: HF('0bserverx/Qwen3.8-27B-Heretic-Abliterated-Uncensored-GGUF', 'mmproj-Qwen3.8-27B-Q8_0.gguf'), mmprojSizeGB: 0.63 },
- { name: 'Qwen 3.8 27B Heretic Q6_K', group: 'Qwen 3.8 27B Heretic', description: 'Qwen 3.8 27B RVN Heretic · Q6, nahezu verlustfrei. Fuer viel VRAM.', pulls: '1.2M+', tags: ['27B', 'Vision', 'Q6_K', '22 GB'], updated: 'New', agent: true, released: '2026-08', downloadUrl: HF('0bserverx/Qwen3.8-27B-Heretic-Abliterated-Uncensored-GGUF', 'RVN-Q6_K-multilingual.gguf'), filename: 'RVN-Q6_K-multilingual.gguf', sizeGB: 22.1, mmprojUrl: HF('0bserverx/Qwen3.8-27B-Heretic-Abliterated-Uncensored-GGUF', 'mmproj-Qwen3.8-27B-Q8_0.gguf'), mmprojSizeGB: 0.63 },
+ { name: 'Qwen 3.8 27B Heretic Q6_K', group: 'Qwen 3.8 27B Heretic', description: 'Qwen 3.8 27B RVN Heretic · Q6, near-lossless. For high-VRAM setups.', pulls: '1.2M+', tags: ['27B', 'Vision', 'Q6_K', '22 GB'], updated: 'New', agent: true, released: '2026-08', downloadUrl: HF('0bserverx/Qwen3.8-27B-Heretic-Abliterated-Uncensored-GGUF', 'RVN-Q6_K-multilingual.gguf'), filename: 'RVN-Q6_K-multilingual.gguf', sizeGB: 22.1, mmprojUrl: HF('0bserverx/Qwen3.8-27B-Heretic-Abliterated-Uncensored-GGUF', 'mmproj-Qwen3.8-27B-Q8_0.gguf'), mmprojSizeGB: 0.63 },
// ── Gemma 4 12B Heretic ───────────────────────────────────────────
//
// Die Luecke, die dem Katalog am meisten gefehlt hat: alles Unzensierte
@@ -1119,8 +1119,8 @@ export function getUncensoredTextModels(): DiscoverModel[] {
// tun das —, hatte keine Wahl. 302K Downloads, Architektur `gemma4` am
// 02.09.2026 aus dem Dateikopf gelesen, von b9949 getragen.
{ name: 'Gemma 4 12B Heretic', group: 'Gemma 4 12B Heretic', description: 'Gemma 4 12B heretic-abliterated · the uncensored counterpart to Qwen and GLM, with a different voice. Vision. Recommended size.', pulls: '300K+', tags: ['12B', 'Vision', 'Q4_K_M', '7 GB'], updated: 'Hot', agent: true, released: '2026-06', downloadUrl: HF('culturerevolt/gemma-4-12b-heretic-abliterated-GGUF', 'gemma-4-12b-heretic-Q4_K_M.gguf'), filename: 'gemma-4-12b-heretic-Q4_K_M.gguf', sizeGB: 7.4, mmprojUrl: HF('culturerevolt/gemma-4-12b-heretic-abliterated-GGUF', 'gemma-4-12b-heretic-mmproj-f16.gguf'), mmprojSizeGB: 0.18 },
- { name: 'Gemma 4 12B Heretic IQ4_XS', group: 'Gemma 4 12B Heretic', description: 'Gemma 4 12B heretic · IQ4_XS, das guenstigste 4 Bit. Fuer 8-GB-Karten.', pulls: '300K+', tags: ['12B', 'Vision', 'IQ4_XS', '7 GB'], updated: 'New', agent: true, released: '2026-06', downloadUrl: HF('culturerevolt/gemma-4-12b-heretic-abliterated-GGUF', 'gemma-4-12b-heretic-IQ4_XS.gguf'), filename: 'gemma-4-12b-heretic-IQ4_XS.gguf', sizeGB: 6.6, mmprojUrl: HF('culturerevolt/gemma-4-12b-heretic-abliterated-GGUF', 'gemma-4-12b-heretic-mmproj-f16.gguf'), mmprojSizeGB: 0.18 },
- { name: 'Gemma 4 12B Heretic Q6_K', group: 'Gemma 4 12B Heretic', description: 'Gemma 4 12B heretic · Q6, nahezu verlustfrei.', pulls: '300K+', tags: ['12B', 'Vision', 'Q6_K', '10 GB'], updated: 'New', agent: true, released: '2026-06', downloadUrl: HF('culturerevolt/gemma-4-12b-heretic-abliterated-GGUF', 'gemma-4-12b-heretic-Q6_K.gguf'), filename: 'gemma-4-12b-heretic-Q6_K.gguf', sizeGB: 9.8, mmprojUrl: HF('culturerevolt/gemma-4-12b-heretic-abliterated-GGUF', 'gemma-4-12b-heretic-mmproj-f16.gguf'), mmprojSizeGB: 0.18 },
+ { name: 'Gemma 4 12B Heretic IQ4_XS', group: 'Gemma 4 12B Heretic', description: 'Gemma 4 12B heretic · IQ4_XS, the cheapest 4-bit. For 8 GB cards.', pulls: '300K+', tags: ['12B', 'Vision', 'IQ4_XS', '7 GB'], updated: 'New', agent: true, released: '2026-06', downloadUrl: HF('culturerevolt/gemma-4-12b-heretic-abliterated-GGUF', 'gemma-4-12b-heretic-IQ4_XS.gguf'), filename: 'gemma-4-12b-heretic-IQ4_XS.gguf', sizeGB: 6.6, mmprojUrl: HF('culturerevolt/gemma-4-12b-heretic-abliterated-GGUF', 'gemma-4-12b-heretic-mmproj-f16.gguf'), mmprojSizeGB: 0.18 },
+ { name: 'Gemma 4 12B Heretic Q6_K', group: 'Gemma 4 12B Heretic', description: 'Gemma 4 12B heretic · Q6, near-lossless.', pulls: '300K+', tags: ['12B', 'Vision', 'Q6_K', '10 GB'], updated: 'New', agent: true, released: '2026-06', downloadUrl: HF('culturerevolt/gemma-4-12b-heretic-abliterated-GGUF', 'gemma-4-12b-heretic-Q6_K.gguf'), filename: 'gemma-4-12b-heretic-Q6_K.gguf', sizeGB: 9.8, mmprojUrl: HF('culturerevolt/gemma-4-12b-heretic-abliterated-GGUF', 'gemma-4-12b-heretic-mmproj-f16.gguf'), mmprojSizeGB: 0.18 },
// ── Qwen3-VL 8B Abliterated ───────────────────────────────────────
//
// Die zweite echte Luecke: alles Unzensierte mit Bildverstehen ist hier
@@ -1129,7 +1129,7 @@ export function getUncensoredTextModels(): DiscoverModel[] {
// 02.09.2026 aus dem Dateikopf gelesen, von b9949 getragen.
{ name: 'Qwen3-VL 8B Abliterated', group: 'Qwen3-VL 8B Abliterated', description: 'Qwen3-VL 8B abliterated · uncensored image understanding on an 8 GB card. Recommended size.', pulls: '650K+', tags: ['8B', 'Vision', 'Q4_K_M', '5 GB'], updated: 'Hot', agent: true, released: '2025-11', downloadUrl: HF('mradermacher/Qwen3-VL-8B-Instruct-abliterated-GGUF', 'Qwen3-VL-8B-Instruct-abliterated.Q4_K_M.gguf'), filename: 'Qwen3-VL-8B-Instruct-abliterated.Q4_K_M.gguf', sizeGB: 5, mmprojUrl: HF('mradermacher/Qwen3-VL-8B-Instruct-abliterated-GGUF', 'Qwen3-VL-8B-Instruct-abliterated.mmproj-f16.gguf'), mmprojSizeGB: 1.16 },
{ name: 'Qwen3-VL 8B Abliterated Q5_K_M', group: 'Qwen3-VL 8B Abliterated', description: 'Qwen3-VL 8B abliterated · Q5, higher quality.', pulls: '650K+', tags: ['8B', 'Vision', 'Q5_K_M', '6 GB'], updated: 'New', agent: true, released: '2025-11', downloadUrl: HF('mradermacher/Qwen3-VL-8B-Instruct-abliterated-GGUF', 'Qwen3-VL-8B-Instruct-abliterated.Q5_K_M.gguf'), filename: 'Qwen3-VL-8B-Instruct-abliterated.Q5_K_M.gguf', sizeGB: 5.9, mmprojUrl: HF('mradermacher/Qwen3-VL-8B-Instruct-abliterated-GGUF', 'Qwen3-VL-8B-Instruct-abliterated.mmproj-f16.gguf'), mmprojSizeGB: 1.16 },
- { name: 'Qwen3-VL 8B Abliterated Q6_K', group: 'Qwen3-VL 8B Abliterated', description: 'Qwen3-VL 8B abliterated · Q6, nahezu verlustfrei.', pulls: '650K+', tags: ['8B', 'Vision', 'Q6_K', '7 GB'], updated: 'New', agent: true, released: '2025-11', downloadUrl: HF('mradermacher/Qwen3-VL-8B-Instruct-abliterated-GGUF', 'Qwen3-VL-8B-Instruct-abliterated.Q6_K.gguf'), filename: 'Qwen3-VL-8B-Instruct-abliterated.Q6_K.gguf', sizeGB: 6.7, mmprojUrl: HF('mradermacher/Qwen3-VL-8B-Instruct-abliterated-GGUF', 'Qwen3-VL-8B-Instruct-abliterated.mmproj-f16.gguf'), mmprojSizeGB: 1.16 },
+ { name: 'Qwen3-VL 8B Abliterated Q6_K', group: 'Qwen3-VL 8B Abliterated', description: 'Qwen3-VL 8B abliterated · Q6, near-lossless.', pulls: '650K+', tags: ['8B', 'Vision', 'Q6_K', '7 GB'], updated: 'New', agent: true, released: '2025-11', downloadUrl: HF('mradermacher/Qwen3-VL-8B-Instruct-abliterated-GGUF', 'Qwen3-VL-8B-Instruct-abliterated.Q6_K.gguf'), filename: 'Qwen3-VL-8B-Instruct-abliterated.Q6_K.gguf', sizeGB: 6.7, mmprojUrl: HF('mradermacher/Qwen3-VL-8B-Instruct-abliterated-GGUF', 'Qwen3-VL-8B-Instruct-abliterated.mmproj-f16.gguf'), mmprojSizeGB: 1.16 },
// ── Popular: GLM 4.6 Abliterated ──
{ name: 'GLM 4 9B Abliterated', description: 'GLM 4 9B abliterated · strong coding and reasoning.', pulls: '5K+', tags: ['9B', 'Q4_K_M', '5 GB'], updated: 'New', agent: true, released: '2026-03', downloadUrl: HF('bartowski/glm-4-9b-chat-abliterated-GGUF', 'glm-4-9b-chat-abliterated-Q4_K_M.gguf'), filename: 'glm-4-9b-chat-abliterated-Q4_K_M.gguf', sizeGB: 5 },
// ── Popular: Gemma 3 Abliterated ──
diff --git a/src/components/layout/DownloadBadge.tsx b/src/components/layout/DownloadBadge.tsx
index 4341a97d..7e4b5d4f 100644
--- a/src/components/layout/DownloadBadge.tsx
+++ b/src/components/layout/DownloadBadge.tsx
@@ -7,7 +7,7 @@ import { useDownloadStore } from '../../stores/downloadStore'
import { isPermanentDownloadError } from '../../api/discover'
import { useMlxInstallStore } from '../../stores/mlxInstallStore'
import { isMlxImageHost } from '../../api/mlx-image'
-import { formatBytes } from '../../lib/formatters'
+import { formatBytes, countLabel } from '../../lib/formatters'
import { trayAfterPulse, TRAY_CLOSED, NO_PULSE } from '../../lib/download-tray'
function ProgressBar({ progress }: { progress: number }) {
@@ -244,15 +244,15 @@ export function DownloadBadge() {
<button onClick={() => retryable.forEach(f => useDownloadStore.getState().retry(f.id))} className="p-0.5 rounded hover:bg-red-500/20 text-red-400 hover:text-red-300 transition-colors" title="Retry failed"><RotateCcw size={11} /></button>
)}
{allComplete ? (
- <button onClick={() => files.forEach(f => useDownloadStore.getState().dismiss(f.id))} className="p-0.5 rounded hover:bg-white/10 text-gray-500 hover:text-gray-300 transition-colors" title="Dismiss"><X size={11} /></button>
+ <button onClick={() => files.forEach(f => useDownloadStore.getState().dismiss(f.id))} className="p-0.5 rounded hover:bg-white/10 text-gray-500 hover:text-gray-300 transition-colors" title={files.length === 1 ? 'Dismiss' : 'Dismiss all'}><X size={11} /></button>
) : (
- <button onClick={() => files.forEach(f => useDownloadStore.getState().cancel(f.id))} className="p-0.5 rounded hover:bg-white/10 text-gray-500 hover:text-gray-300 transition-colors" title="Cancel all"><X size={11} /></button>
+ <button onClick={() => files.forEach(f => useDownloadStore.getState().cancel(f.id))} className="p-0.5 rounded hover:bg-white/10 text-gray-500 hover:text-gray-300 transition-colors" title={files.length === 1 ? 'Cancel' : 'Cancel all'}><X size={11} /></button>
)}
</div>
</div>
{allComplete ? (
- <div className="flex items-center gap-1.5 text-green-400"><CheckCircle size={11} /><span className="text-[0.65rem]">Complete ({files.length} files)</span></div>
+ <div className="flex items-center gap-1.5 text-green-400"><CheckCircle size={11} /><span className="text-[0.65rem]">Complete ({countLabel(files.length, 'file')})</span></div>
) : (
<>
{totalBytes > 0 && <ProgressBar progress={bundleProg} />}
diff --git a/src/components/models/DiscoverModels.tsx b/src/components/models/DiscoverModels.tsx
index bf8c10ee..39ee5d52 100644
--- a/src/components/models/DiscoverModels.tsx
+++ b/src/components/models/DiscoverModels.tsx
@@ -37,7 +37,7 @@ import { GlassCard } from '../ui/GlassCard'
import { GlowButton } from '../ui/GlowButton'
import { ProgressBar } from '../ui/ProgressBar'
import { Modal } from '../ui/Modal'
-import { formatBytes } from '../../lib/formatters'
+import { formatBytes, countLabel } from '../../lib/formatters'
import type { ModelCategory } from '../../types/models'
import { proxyImageUrl } from '../../lib/privacy'
import { log } from '../../lib/logger'
@@ -808,9 +808,9 @@ export function DiscoverModels({ category, search = '', searchSubmitToken = 0 }:
// Abbruch) oder das Ende der Ansicht. Keiner davon ist ein Fehler,
// und keiner darf spaeter noch eine Engine hochfahren.
if (outcome === 'paused') {
- setInstallNotice(`Download paused. The LU Engine keeps the model it is running. Resume ${f.filename} to finish the switch.`)
+ setInstallNotice(`Download paused, so the chat model was not switched. Resume ${f.filename} to finish it.`)
} else if (outcome === 'cancelled') {
- setInstallNotice('Download cancelled. The LU Engine keeps the model it is running.')
+ setInstallNotice('Download cancelled, so the chat model was not switched.')
}
return
}
@@ -1259,7 +1259,7 @@ export function DiscoverModels({ category, search = '', searchSubmitToken = 0 }:
<div className="space-y-3">
<p className="text-[12px] text-gray-700 dark:text-gray-200">
<span className="font-semibold text-gray-900 dark:text-white">{confirmDownload.name}</span> is split into{' '}
- <span className="font-semibold text-gray-900 dark:text-white">{confirmDownload.files.length} files</span>{' '}
+ <span className="font-semibold text-gray-900 dark:text-white">{countLabel(confirmDownload.files.length, 'file')}</span>{' '}
totalling <span className="font-semibold text-gray-900 dark:text-white">{confirmDownload.totalGB} GB</span>.
</p>
<p className="text-[0.7rem] text-gray-500">
diff --git a/src/components/models/ModelTiles.tsx b/src/components/models/ModelTiles.tsx
index ac95ad4c..012a6ee1 100644
--- a/src/components/models/ModelTiles.tsx
+++ b/src/components/models/ModelTiles.tsx
@@ -10,7 +10,7 @@ import {
} from 'lucide-react'
import type { LucideIcon } from 'lucide-react'
import type { DiscoverModel, DownloadProgress, ModelBundle } from '../../api/discover'
-import { formatBytes } from '../../lib/formatters'
+import { formatBytes, countLabel } from '../../lib/formatters'
import { bundleVramNeedGb } from '../../lib/hardware'
import { modelTileAction } from '../../lib/model-tile-action'
import { ICON_SM } from '../ui/icon-size'
@@ -571,7 +571,7 @@ export function BundleTile({ bundle, vramGb, complete, downloading, hasErrors, o
<div className="flex items-center gap-2 mt-2.5 min-h-[var(--control-h-sm)]">
<SizePill sizeGB={bundle.totalSizeGB} />
- <span className="text-[0.55rem] text-gray-400 dark:text-gray-500">{bundle.files.length} files</span>
+ <span className="text-[0.55rem] text-gray-400 dark:text-gray-500">{countLabel(bundle.files.length, 'file')}</span>
<FitHint fit={fit} />
<div className="flex items-center gap-1 shrink-0 ml-auto">
@@ -608,7 +608,7 @@ export function BundleTile({ bundle, vramGb, complete, downloading, hasErrors, o
<button
onClick={onInstall}
className={TILE_ACTION}
- title={`Install all ${bundle.files.length} files (${bundle.totalSizeGB} GB)`}
+ title={`Install ${countLabel(bundle.files.length, 'file')} (${bundle.totalSizeGB} GB)`}
>
<Download size={ICON_SM} /> Get · {bundle.totalSizeGB} GB
</button>
diff --git a/src/lib/__tests__/die-oberflaeche-spricht-englisch-und-zaehlt-richtig.test.ts b/src/lib/__tests__/die-oberflaeche-spricht-englisch-und-zaehlt-richtig.test.ts
new file mode 100644
index 00000000..e536850f
--- /dev/null
+++ b/src/lib/__tests__/die-oberflaeche-spricht-englisch-und-zaehlt-richtig.test.ts
@@ -0,0 +1,97 @@
+/**
+ * Vier Nebenbefunde der Gegenprobe G2, alle vom selben Schlag: eine Zeichenkette,
+ * die niemand mit dem Fall geprueft hat, in dem sie steht.
+ *
+ * 1. "1 files" auf den Bildmodell-Kacheln unter Models, Image, auch bei genau
+ * einer Datei. Dasselbe im Download-Streifen und im Bestaetigungsfenster.
+ * 2. Das X ueber einem EINZELNEN Download traegt den Titel "Cancel all".
+ * 3. "Download cancelled. The LU Engine keeps the model it is running." stand
+ * da, waehrend gar keine Engine lief. Der Tester hat das ausdruecklich
+ * notiert: "Beim ersten Abbruch lief gar keine Engine auf 8127."
+ * 4. Zwei Katalogeintraege beschrieben sich auf Deutsch in einer englischen
+ * Oberflaeche: "kleinster brauchbarer Quant, passt auf eine 12-GB-Karte"
+ * und "Q6, nahezu verlustfrei". Die Nachbarn derselben Seite sind Englisch.
+ *
+ * Run: npx vitest run src/lib/__tests__/die-oberflaeche-spricht-englisch-und-zaehlt-richtig.test.ts
+ */
+import { describe, it, expect } from 'vitest'
+import { readFileSync } from 'node:fs'
+import { resolve } from 'node:path'
+import { countLabel } from '../formatters'
+
+const lies = (p: string) => readFileSync(resolve(__dirname, '..', '..', p), 'utf8')
+
+describe('countLabel', () => {
+ it('eins ist Einzahl', () => {
+ expect(countLabel(1, 'file')).toBe('1 file')
+ expect(countLabel(1, 'model')).toBe('1 model')
+ })
+
+ it('alles andere ist Mehrzahl', () => {
+ expect(countLabel(0, 'file')).toBe('0 files')
+ expect(countLabel(2, 'file')).toBe('2 files')
+ })
+
+ it('und trennt Tausender wie der Rest der Oberflaeche', () => {
+ expect(countLabel(9766, 'download')).toBe('9,766 downloads')
+ })
+
+ it('eine unregelmaessige Mehrzahl laesst sich sagen', () => {
+ expect(countLabel(1, 'entry', 'entries')).toBe('1 entry')
+ expect(countLabel(3, 'entry', 'entries')).toBe('3 entries')
+ })
+
+ // Negativkontrolle: genau das stand auf der Kachel.
+ it('die alte Fassung sagte "1 files"', () => {
+ expect(`${1} files`).toBe('1 files')
+ expect(countLabel(1, 'file')).not.toBe('1 files')
+ })
+})
+
+describe('die Stellen, an denen es stand', () => {
+ it('keine Kachel und kein Streifen zaehlt mehr von Hand', () => {
+ for (const [datei, stelle] of [
+ ['components/models/ModelTiles.tsx', 'countLabel(bundle.files.length'],
+ ['components/models/DiscoverModels.tsx', 'countLabel(confirmDownload.files.length'],
+ ['components/layout/DownloadBadge.tsx', 'countLabel(files.length'],
+ ] as const) {
+ const src = lies(datei)
+ expect(src).toContain(stelle)
+ expect(src).not.toMatch(/\{[\w.]*files\.length\} files/)
+ }
+ })
+
+ it('das X ueber einem einzelnen Download heisst nicht "Cancel all"', () => {
+ const src = lies('components/layout/DownloadBadge.tsx')
+ expect(src).toContain("files.length === 1 ? 'Cancel' : 'Cancel all'")
+ expect(src).toContain("files.length === 1 ? 'Dismiss' : 'Dismiss all'")
+ expect(src).not.toContain('title="Cancel all"')
+ })
+
+ it('die Abbruchmeldung behauptet nichts ueber eine Engine, die vielleicht nicht laeuft', () => {
+ const src = lies('components/models/DiscoverModels.tsx')
+ expect(src).toContain('Download cancelled, so the chat model was not switched.')
+ expect(src).not.toContain('The LU Engine keeps the model it is running')
+ })
+})
+
+describe('der Modellkatalog spricht die Sprache der Oberflaeche', () => {
+ const KATALOG = lies('api/discover.ts')
+
+ it('kein deutscher Satz in einer Beschreibung', () => {
+ const DE = /\b(der|die|das|und|nicht|fuer|Fuer|eine|einen|einer|kein|keine|nahezu|verlustfrei|guenstigste|kleinster|brauchbarer|passt|Karte|Karten|Speicher)\b/
+ const suender: string[] = []
+ for (const m of KATALOG.matchAll(/description: '((?:[^'\\]|\\.)*)'/g)) {
+ if (DE.test(m[1])) suender.push(m[1].slice(0, 80))
+ }
+ expect(suender).toEqual([])
+ })
+
+ it('und die fuenf Stellen sagen jetzt, was sie sagen wollten', () => {
+ expect(KATALOG).toContain('the smallest usable quant, fits a 12 GB card.')
+ expect(KATALOG).toContain('Qwen 3.8 27B RVN Heretic · Q6, near-lossless. For high-VRAM setups.')
+ expect(KATALOG).toContain('Gemma 4 12B heretic · IQ4_XS, the cheapest 4-bit. For 8 GB cards.')
+ expect(KATALOG).toContain('Gemma 4 12B heretic · Q6, near-lossless.')
+ expect(KATALOG).toContain('Qwen3-VL 8B abliterated · Q6, near-lossless.')
+ })
+})
diff --git a/src/lib/formatters.ts b/src/lib/formatters.ts
index 28e21927..a5a243ea 100644
--- a/src/lib/formatters.ts
+++ b/src/lib/formatters.ts
@@ -85,3 +85,15 @@ export function formatContextWindow(n: number): string {
if (n < 1024) return String(n)
return `${(n / 1024).toFixed(1)}K`
}
+
+/**
+ * "1 files" ist kein Satz.
+ *
+ * Gegenprobe G2, 04.09.2026: die Bildmodell-Kacheln auf der Models-Seite
+ * zeigten "1 files", auch bei genau einer Datei, und das X ueber einem
+ * einzelnen Download hiess "Cancel all". Beides sind Stellen, an denen die
+ * Anzahl VOR dem Wort steht und niemand hingesehen hat.
+ */
+export function countLabel(n: number, one: string, many = `${one}s`): string {
+ return `${formatCount(n)} ${n === 1 ? one : many}`
+}