Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

PRD-7630 Add saveable custom themes (#3351)

serafin-garcia5e770e104d09
diff --git a/.changeset/saveable-custom-themes.md b/.changeset/saveable-custom-themes.md
new file mode 100644
index 000000000..96aef15c6
--- /dev/null
+++ b/.changeset/saveable-custom-themes.md
@@ -0,0 +1,5 @@
+---
+"@inkeep/open-knowledge": patch
+---
+
+Custom themes can now be saved under a name, assigned independently to light and dark mode, edited in place, and deleted with a time-limited undo. Saved palettes persist as portable Tinted Theming files and retain the existing no-flash theme behavior across reloads.
diff --git a/docs/content/reference/configuration.mdx b/docs/content/reference/configuration.mdx
index 7367ebab4..1e755662a 100644
--- a/docs/content/reference/configuration.mdx
+++ b/docs/content/reference/configuration.mdx
@@ -38,9 +38,9 @@ A key set in a file more specific than its scope (a user-scope key in `.ok/confi
| `contentRules.frontmatter.schemas` | array | `[]` | project | Frontmatter schema mappings: each entry scopes one JSON Schema file to a set of docs — `file` (project-root-relative path), optional `appliesTo` (glob or list; leading `!` excludes; absent means every doc), optional `enabled: false` to park a mapping. Schema content lives in the mapped files, not here. See [Frontmatter schemas](/docs/advanced/content-rules/frontmatter). |
| `appearance.theme` | `"light" \| "dark" \| "system"` | (unset) | user | Editor light/dark theme. |
| `appearance.language` | `"system" \| "en" \| "zh-Hans" \| "zh-Hant" \| "hi" \| "es" \| "ar" \| "fr" \| "bn" \| "pt-BR" \| "id" \| "ur"` | (unset) | user | Interface language. `system` (the effective value when unset) follows your operating system or browser, and keeps following it. A personal preference, not project-shared — and it applies to the app's own chrome only: your documents, titles, file and folder names, frontmatter values and tags stay in the language you wrote them in. **Settings → Preferences → Language** offers nine of them (English, 简体中文, 繁體中文, हिन्दी, Español, Français, বাংলা, Português do Brasil, Indonesia). Every catalog is complete, but only `es` has been through a Spanish reader; the rest, `zh-Hans` included, are machine-translated and nobody who reads them has checked the wording. Treat it as provisional and [tell us what is wrong](/docs/contribute/translations). `ar` and `ur` are complete translations too, but they stay out of the picker until the interface lays out right to left; set either here by hand to run the app in it, and note the app will not select them from your OS language alone. `OK_LANG=<tag>` overrides the desktop app's native menus for a single run; the rest of the interface follows this field. |
-| `appearance.colorThemeLight` | `"default" \| "dracula" \| "catppuccin-frappe" \| "catppuccin-latte" \| "monokai" \| "gruvbox" \| "solarized" \| "custom"` | (unset) | user | IDE color palette applied while the resolved mode is light. `default` (the effective value when unset) means no palette — the base stylesheet shows through. `custom` applies `appearance.customTheme`. Pick it in **Settings → Plugins → Themes** with the tile's sun. |
-| `appearance.colorThemeDark` | `"default" \| "dracula" \| "catppuccin-frappe" \| "catppuccin-latte" \| "monokai" \| "gruvbox" \| "solarized" \| "custom"` | (unset) | user | IDE color palette applied while the resolved mode is dark — the tile's moon. `appearance.theme` chooses between the two; on `system` your OS does, so the palette follows the OS appearance. Any palette may sit in either slot, and it keeps forcing its own light/dark variant. |
-| `appearance.colorTheme` | `"default" \| "dracula" \| "catppuccin-frappe" \| "catppuccin-latte" \| "monokai" \| "gruvbox" \| "solarized" \| "custom"` | (unset) | user | Legacy single-palette field, superseded by `colorThemeLight` / `colorThemeDark` above. When set, it supplies the palette for whichever of those two slots is unset, so one palette applies in both modes. Writing either slot from **Settings → Plugins → Themes** removes this key. |
+| `appearance.colorThemeLight` | theme id (`[a-z0-9-]`, 1–32 characters) | (unset) | user | IDE color palette applied while the resolved mode is light. Built-in ids include `default`, `dracula`, `catppuccin-frappe`, `catppuccin-latte`, `monokai`, `gruvbox`, `solarized`, and `custom`; saved themes use their generated `saved-*` id. `default` (the effective value when unset or when no available palette matches an explicitly configured id) means no palette — the base stylesheet shows through. `custom` applies `appearance.customTheme`. Pick it in **Settings → Plugins → Themes** with the tile's sun. |
+| `appearance.colorThemeDark` | theme id (`[a-z0-9-]`, 1–32 characters) | (unset) | user | IDE color palette applied while the resolved mode is dark — the tile's moon. Built-in and saved-theme ids follow the same constrained string grammar. `appearance.theme` chooses between the two; on `system` your OS does, so the palette follows the OS appearance. Any available palette may sit in either slot, and it keeps forcing its own light/dark variant. An explicitly configured id that is not available falls back to `default`. |
+| `appearance.colorTheme` | theme id (`[a-z0-9-]`, 1–32 characters) | (unset) | user | Legacy single-palette field, superseded by `colorThemeLight` / `colorThemeDark` above. A valid available id supplies the palette only for a slot that is truly unset; an explicit unknown per-mode id falls back to `default` instead of reviving this legacy value. Writing either slot from **Settings → Plugins → Themes** removes this key. |
| `appearance.colorThemeEnabled` | boolean | `true` | user | Whether the Themes plugin appears in **Settings → Plugins**. On by default (absent = enabled). |
| `appearance.customTheme` | object | (unset) | user | The `custom` palette's [base16](https://github.com/tinted-theming/schemes) scheme: sixteen `base00`–`base0F` `#rrggbb` slots, plus optional `name`, `author` (a credit line carried through from an imported scheme), and `variant` (`"dark" \| "light"`, auto-detected from the tonal ramp when absent). A config written before base16 carried six semantic seed colors (`background`/`surface`/`foreground`/`primary`/`accent`/`border`) instead; that shape still parses and is upgraded to the sixteen slots automatically on read. Edit in **Settings → Plugins → Themes**. |
| `appearance.sidebar.showHiddenFiles` | boolean | `false` | project-local | Show files whose path segments start with `.`. The sidebar otherwise lists every file on disk under the content directory; tooling internals (`.git/`, `.ok/`, `node_modules/`) stay hidden regardless. Toggled from the sidebar's right-click menu or the macOS **View → Show Hidden Files** item. |
diff --git a/packages/app/index.html b/packages/app/index.html
index 1c4f65983..6f4bc82d5 100644
--- a/packages/app/index.html
+++ b/packages/app/index.html
@@ -45,7 +45,7 @@
The IDE color palette comes from `ok-color-theme-pair-v1`, which holds one
palette per mode plus the mode preference that chooses between them:
- `{ pref, light: { id, dark }, dark: { id, dark } }`. The script resolves
+ `{ pref, light: { id, dark, css? }, dark: { id, dark, css? } }`. The script resolves
`pref` (asking the OS for `system`), reads that slot, applies its `id` as
the `data-color-theme` attribute consumed by `color-themes.generated.css`,
and takes the `dark` class straight from the slot's own flag — a palette
@@ -58,17 +58,20 @@
that key as soon as it writes the pair, so this branch runs at most once
per install.
- The `custom` palette is replayed from `ok-custom-theme-v1`
- (`{ css, dark }`): its prebuilt stylesheet is injected as a `<style>` and
- its `dark` flag drives the class. Paired consumer:
+ Runtime palettes (`custom` and `saved-*`) carry their prebuilt stylesheet
+ on each pair-cache slot as `css`. The active slot's stylesheet is injected
+ before paint; a missing stylesheet drops that runtime palette instead of
+ borrowing the other slot's CSS. For one upgrade, a `custom` slot written by
+ the preceding cache format may recover its stylesheet and mode from
+ `ok-custom-theme-v1`; the current writer deletes that legacy key. Paired consumer:
`src/lib/use-apply-config-color-theme.ts` — it writes the
- `ok-color-theme-pair-v1` and `ok-custom-theme-v1` caches and clears the legacy
- `ok-color-theme-v1`; `ok-theme-v1` is next-themes' (see above).
+ `ok-color-theme-pair-v1` cache and clears the legacy `ok-color-theme-v1` and
+ `ok-custom-theme-v1` caches; `ok-theme-v1` is next-themes' (see above).
Single-line script body — same biome HTML-formatter constraint as
the editor-mode FOUC above.
-->
- <script>(() => { const isMode = (v) => v === 'light' || v === 'dark' || v === 'system'; const isThemeId = (v) => typeof v === 'string' && /^[a-z0-9-]{1,32}$/.test(v); let pref = 'system'; try { const r = localStorage.getItem('ok-theme-v1'); if (isMode(r)) pref = r; } catch {} let slots = null; try { const raw = localStorage.getItem('ok-color-theme-pair-v1'); if (raw) { const o = JSON.parse(raw); if (o?.light && o?.dark) { slots = o; if (isMode(o.pref)) pref = o.pref; } } } catch {} let dark = pref === 'dark'; if (pref === 'system') { try { dark = window.matchMedia('(prefers-color-scheme: dark)').matches; } catch {} } let ct = null; if (slots) { const slot = dark ? slots.dark : slots.light; if (isThemeId(slot?.id)) { dark = !!slot.dark; if (slot.id !== 'default') ct = slot.id; } } else { try { const c = localStorage.getItem('ok-color-theme-v1'); if (isThemeId(c) && c !== 'default') ct = c; } catch {} } let customCss = null; if (ct === 'custom') { try { const raw = localStorage.getItem('ok-custom-theme-v1'); if (raw) { const o = JSON.parse(raw); if (o?.css) { customCss = o.css; dark = !!o.dark; } } } catch {} if (!customCss) ct = null; } if (dark) document.documentElement.classList.add('dark'); if (ct) document.documentElement.setAttribute('data-color-theme', ct); if (customCss) { const s = document.createElement('style'); s.id = 'ok-custom-theme'; s.textContent = customCss; document.head.appendChild(s); } if (window.okDesktop) { document.documentElement.classList.add('electron-mode'); document.documentElement.classList.add(`electron-platform-${window.okDesktop.platform}`); } })();</script>
+ <script>(() => { const isMode = (v) => v === 'light' || v === 'dark' || v === 'system'; const isThemeId = (v) => typeof v === 'string' && /^[a-z0-9-]{1,32}$/.test(v); let pref = 'system'; try { const r = localStorage.getItem('ok-theme-v1'); if (isMode(r)) pref = r; } catch {} let slots = null; try { const raw = localStorage.getItem('ok-color-theme-pair-v1'); if (raw) { const o = JSON.parse(raw); if (o?.light && o?.dark) { slots = o; if (isMode(o.pref)) pref = o.pref; } } } catch {} let dark = pref === 'dark'; if (pref === 'system') { try { dark = window.matchMedia('(prefers-color-scheme: dark)').matches; } catch {} } let ct = null; let slot = null; if (slots) { slot = dark ? slots.dark : slots.light; if (isThemeId(slot?.id)) { dark = !!slot.dark; if (slot.id !== 'default') ct = slot.id; } } else { try { const c = localStorage.getItem('ok-color-theme-v1'); if (isThemeId(c) && c !== 'default') ct = c; } catch {} } let runtimeCss = null; if (ct === 'custom' || ct?.startsWith('saved-')) { if (typeof slot?.css === 'string' && slot.css) runtimeCss = slot.css; if (!runtimeCss && slots && ct === 'custom') { try { const raw = localStorage.getItem('ok-custom-theme-v1'); if (raw) { const o = JSON.parse(raw); if (typeof o?.css === 'string' && o.css) { runtimeCss = o.css; dark = !!o.dark; } } } catch {} } if (!runtimeCss) ct = null; } if (dark) document.documentElement.classList.add('dark'); if (ct) document.documentElement.setAttribute('data-color-theme', ct); if (runtimeCss) { const s = document.createElement('style'); s.id = ct === 'custom' ? 'ok-custom-theme' : 'ok-saved-theme'; s.textContent = runtimeCss; document.head.appendChild(s); } if (window.okDesktop) { document.documentElement.classList.add('electron-mode'); document.documentElement.classList.add(`electron-platform-${window.okDesktop.platform}`); } })();</script>
<!--
Language FOUC prevention. Reads the persisted interface language
synchronously before React mounts so the first painted frame carries the
diff --git a/packages/app/src/components/settings/ColorThemePicker.dom.test.tsx b/packages/app/src/components/settings/ColorThemePicker.dom.test.tsx
index 821794e38..1a021b5f2 100644
--- a/packages/app/src/components/settings/ColorThemePicker.dom.test.tsx
+++ b/packages/app/src/components/settings/ColorThemePicker.dom.test.tsx
@@ -4,9 +4,24 @@ import { afterEach, describe, expect, test, vi } from 'vitest';
import { COLOR_THEMES, type ColorThemeSelection, defaultThemeTokens } from '@/lib/color-themes';
import { renderLinguiTemplate } from '@/test-utils/lingui-mock';
+let activeLocale = 'en';
+
+function translateLingui(message: TemplateStringsArray | string, ...values: unknown[]): string {
+ const rendered = renderLinguiTemplate(message, ...values);
+ if (activeLocale !== 'fr' || !Array.isArray(message)) return rendered;
+ const messageShape = [...message].join('{}');
+ if (messageShape === 'Use {} for the active dark mode') {
+ return `Utiliser ${String(values[0])} pour le mode sombre actif`;
+ }
+ if (messageShape === 'Use {} for the active light mode') {
+ return `Utiliser ${String(values[0])} pour le mode clair actif`;
+ }
+ return rendered;
+}
+
vi.doMock('@lingui/react/macro', () => ({
Trans: ({ children }: { children: ReactNode }) => <>{children}</>,
- useLingui: () => ({ t: renderLinguiTemplate }),
+ useLingui: () => ({ t: translateLingui }),
}));
type Assignment = [slot: 'light' | 'dark', id: string];
@@ -40,7 +55,10 @@ function swatchStyles(themeLabel: RegExp): string {
}
describe('ColorThemePicker', () => {
- afterEach(cleanup);
+ afterEach(() => {
+ activeLocale = 'en';
+ cleanup();
+ });
test('renders one tile per registered theme, each with a sun and a moon', async () => {
await renderPicker(DEFAULTS);
@@ -51,6 +69,35 @@ describe('ColorThemePicker', () => {
}
});
+ test('exposes editing only for declared saved palettes', async () => {
+ const selected: Array<string | null> = [];
+ const { ColorThemePicker } = await import('./ColorThemePicker');
+ const savedTheme = {
+ ...(COLOR_THEMES[1] as (typeof COLOR_THEMES)[number]),
+ id: 'saved-personal',
+ label: 'Personal',
+ };
+ render(
+ <ColorThemePicker
+ selection={DEFAULTS}
+ themes={[...COLOR_THEMES, savedTheme]}
+ onAssign={() => {}}
+ editControl={{
+ themeIds: ['saved-personal'],
+ selectedId: 'saved-personal',
+ onSelect: (id) => selected.push(id),
+ }}
+ aria-label="Color theme"
+ />,
+ );
+
+ const editPersonal = screen.getByRole('button', { name: 'Hide Personal editor' });
+ expect(editPersonal.getAttribute('data-state')).toBe('on');
+ expect(screen.queryByRole('button', { name: 'Edit Dracula' })).toBeNull();
+ fireEvent.click(editPersonal);
+ expect(selected).toEqual([null]);
+ });
+
test('presses the sun on the light palette and the moon on the dark one', async () => {
await renderPicker({ light: 'catppuccin-latte', dark: 'dracula' });
expect(
@@ -112,6 +159,27 @@ describe('ColorThemePicker', () => {
expect(calls).toEqual([['dark', 'dracula']]);
});
+ test('exposes the clickable swatch as a named keyboard control', async () => {
+ await renderPicker(DEFAULTS, () => {}, 'dark');
+
+ const swatchButton = screen.getByRole('button', {
+ name: 'Use Dracula for the active dark mode',
+ });
+ expect(swatchButton.tabIndex).toBe(0);
+ expect(swatchButton.getAttribute('aria-hidden')).toBeNull();
+ expect(swatchButton.querySelector('[data-theme-swatch]')).not.toBeNull();
+ });
+
+ test('localizes the active mode inside the swatch accessible name', async () => {
+ activeLocale = 'fr';
+ await renderPicker(DEFAULTS, () => {}, 'dark');
+
+ expect(
+ screen.getByRole('button', { name: 'Utiliser Dracula pour le mode sombre actif' }),
+ ).toBeDefined();
+ expect(screen.queryByRole('button', { name: /active dark mode/ })).toBeNull();
+ });
+
test('fires onAssign with the slot the pressed icon owns', async () => {
const calls: Assignment[] = [];
await renderPicker(DEFAULTS, (slot, id) => calls.push([slot, id]));
diff --git a/packages/app/src/components/settings/ColorThemePicker.tsx b/packages/app/src/components/settings/ColorThemePicker.tsx
index 031140bfe..ce062259e 100644
--- a/packages/app/src/components/settings/ColorThemePicker.tsx
+++ b/packages/app/src/components/settings/ColorThemePicker.tsx
@@ -1,5 +1,5 @@
import { useLingui } from '@lingui/react/macro';
-import { Moon, Sun } from 'lucide-react';
+import { CircleAlert, Moon, Pencil, Plus, Sun, Trash2 } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { Toggle } from '@/components/ui/toggle';
import {
@@ -9,17 +9,54 @@ import {
type ColorThemeSelection,
defaultThemeTokens,
resolveCustomScheme,
- type ThemePluginId,
} from '@/lib/color-themes';
import { cn } from '@/lib/utils';
type SeedInput = Record<string, unknown> | undefined;
-interface ColorThemePickerProps {
+interface UnavailableColorTheme {
+ key: string;
+ label: string;
+ problem: string;
+ detail: string;
+}
+
+interface ColorThemeEditControl {
+ /** The user-owned saved themes that expose the editor toggle. */
+ themeIds: readonly string[];
+ selectedId: string | null;
+ onSelect: (id: string | null) => void;
+}
+
+interface ColorThemeDeleteControl {
+ themeIds: readonly string[];
+ onDelete: (id: string) => boolean | undefined | Promise<boolean | undefined>;
+}
+
+interface ColorThemeCreateControl {
+ onCreate: () => void;
+}
+
+export interface ColorThemePickerProps {
/** The palette assigned to each mode (`appearance.colorThemeLight` / `…Dark`). */
selection: ColorThemeSelection;
- /** Fired with the mode slot and the theme id when a tile's sun/moon is pressed. */
- onAssign: (slot: 'light' | 'dark', id: ThemePluginId) => void;
+ /**
+ * The palettes to render as tiles, in order. Defaults to the built-in
+ * registry; the settings surface passes the built-ins plus the user's saved
+ * themes, which are ordinary `ColorTheme`s and so render identically.
+ */
+ themes?: readonly ColorTheme[];
+ /** Saved files that exist but cannot provide a usable palette. */
+ unavailableThemes?: readonly UnavailableColorTheme[];
+ /** Fired with the mode slot and the theme id when a tile's sun/moon is pressed.
+ * The id is any shape-valid theme id — a built-in's or a saved theme's. */
+ onAssign: (slot: 'light' | 'dark', id: string) => void;
+ /** Optional editor binding shown only on the theme ids declared here. */
+ editControl?: ColorThemeEditControl;
+ /** Optional destructive action shown only for the user-owned ids declared here. */
+ deleteControl?: ColorThemeDeleteControl;
+ /** Optional gallery tile that starts the saved-theme creation flow. */
+ createControl?: ColorThemeCreateControl;
/**
* The mode on screen right now — the one `appearance.theme` resolves to. Rings
* the tile currently in effect, and paints the Default tile: that tile has no
@@ -168,7 +205,12 @@ function slotIconClass(pressed: boolean): string {
*/
export function ColorThemePicker({
selection,
+ themes = COLOR_THEMES,
+ unavailableThemes = [],
onAssign,
+ editControl,
+ deleteControl,
+ createControl,
slotMode = 'light',
customSeed,
firstItemId,
@@ -184,41 +226,74 @@ export function ColorThemePicker({
aria-describedby={ariaDescribedby}
className="grid w-full min-w-0 grid-cols-2 gap-2 sm:grid-cols-3"
>
- {COLOR_THEMES.map((theme, index) => {
+ {themes.map((theme, index) => {
const isLight = selection.light === theme.id;
const isDark = selection.dark === theme.id;
+ const isEditable = editControl?.themeIds.includes(theme.id) ?? false;
+ const isDeletable = deleteControl?.themeIds.includes(theme.id) ?? false;
+ const isEditing = editControl?.selectedId === theme.id;
+ const activeModeLabel =
+ slotMode === 'light'
+ ? t`Use ${theme.label} for the active light mode`
+ : t`Use ${theme.label} for the active dark mode`;
return (
<fieldset
key={theme.id}
aria-label={theme.label}
className={cn(
- 'flex min-w-0 flex-col gap-1.5 rounded-lg border-2 p-1 text-left',
+ 'relative flex min-w-0 flex-col gap-1.5 rounded-lg border-2 p-1 text-left',
selection[slotMode] === theme.id ? 'border-primary' : 'border-transparent',
)}
>
- {/*
- * Pointer-only convenience: the old picker made the whole tile the
- * selection target, so a click on the swatch has to keep doing
- * something. It assigns the mode on screen — never both slots — so
- * a click can't silently drop the other mode's palette.
- *
- * Hidden from the a11y tree (and out of the tab order) because it
- * duplicates an action the named sun/moon toggles already expose;
- * surfacing it would announce two controls with one behavior.
- */}
<Button
type="button"
variant="ghost"
- aria-hidden
- tabIndex={-1}
+ aria-label={activeModeLabel}
+ data-theme-focus-target=""
onClick={() => onAssign(slotMode, theme.id)}
className="h-auto w-full cursor-pointer p-0 transition-opacity hover:bg-transparent hover:opacity-90"
>
<ThemeSwatch theme={theme} customSeed={customSeed} slotMode={slotMode} />
</Button>
+ {isDeletable ? (
+ <Button
+ type="button"
+ variant="outline"
+ size="icon-sm"
+ title={t`Delete ${theme.label}`}
+ aria-label={t`Delete ${theme.label}`}
+ className="absolute top-2 end-2 z-10 border-border/80 bg-background/85 text-muted-foreground shadow-sm backdrop-blur-sm hover:border-destructive/50 hover:bg-destructive/15 hover:text-destructive focus-visible:border-destructive/50 focus-visible:text-destructive focus-visible:ring-destructive/20 dark:bg-background/80 dark:hover:bg-destructive/20"
+ onClick={async (event) => {
+ const tile = event.currentTarget.closest('fieldset');
+ const focusTarget =
+ tile?.previousElementSibling?.querySelector<HTMLButtonElement>(
+ '[data-theme-focus-target]',
+ ) ??
+ tile?.nextElementSibling?.querySelector<HTMLButtonElement>(
+ '[data-theme-focus-target]',
+ );
+ const deleted = await deleteControl?.onDelete(theme.id);
+ if (deleted !== false) focusTarget?.focus();
+ }}
+ >
+ <Trash2 aria-hidden />
+ </Button>
+ ) : null}
<div className="flex items-center justify-between gap-1 px-0.5">
<span className="truncate text-1sm font-medium text-foreground">{theme.label}</span>
<div className="flex shrink-0 items-center gap-1">
+ {isEditable ? (
+ <Toggle
+ className={slotToggleClass(isEditing)}
+ pressed={isEditing}
+ onPressedChange={(pressed) => {
+ editControl?.onSelect(pressed ? theme.id : null);
+ }}
+ aria-label={isEditing ? t`Hide ${theme.label} editor` : t`Edit ${theme.label}`}
+ >
+ <Pencil className="size-3.5" />
+ </Toggle>
+ ) : null}
<Toggle
id={index === 0 ? firstItemId : undefined}
className={slotToggleClass(isLight)}
@@ -245,6 +320,38 @@ export function ColorThemePicker({
</fieldset>
);
})}
+ {createControl ? (
+ <Button
+ type="button"
+ variant="ghost"
+ onClick={createControl.onCreate}
+ className="group h-auto min-w-0 flex-col items-stretch gap-1.5 rounded-lg border-2 border-transparent p-1 text-left text-muted-foreground hover:bg-transparent hover:text-foreground"
+ >
+ <span className="flex aspect-[4/3] w-full items-center justify-center rounded-md border border-dashed border-border bg-muted/10 transition-colors group-hover:border-foreground/40">
+ <Plus aria-hidden className="size-6" />
+ </span>
+ <span className="truncate px-0.5 text-1sm font-medium">{t`Create new theme`}</span>
+ </Button>
+ ) : null}
+ {unavailableThemes.map((theme) => (
+ <fieldset
+ key={theme.key}
+ aria-label={theme.label}
+ className="flex min-w-0 flex-col gap-1.5 rounded-lg border-2 border-destructive/40 bg-destructive/5 p-1 text-left"
+ >
+ <div
+ aria-hidden
+ className="flex aspect-[4/3] w-full items-center justify-center rounded-md border border-destructive/30 bg-muted/40 text-destructive"
+ >
+ <CircleAlert className="size-6" />
+ </div>
+ <span className="truncate px-0.5 text-1sm font-medium text-foreground">
+ {theme.label}
+ </span>
+ <span className="px-0.5 text-xs font-medium text-destructive">{theme.problem}</span>
+ <span className="px-0.5 pb-0.5 text-xs text-muted-foreground">{theme.detail}</span>
+ </fieldset>
+ ))}
</fieldset>
);
}
diff --git a/packages/app/src/components/settings/CustomThemeEditor.dom.test.tsx b/packages/app/src/components/settings/CustomThemeEditor.dom.test.tsx
index aed90c900..158ffc041 100644
--- a/packages/app/src/components/settings/CustomThemeEditor.dom.test.tsx
+++ b/packages/app/src/components/settings/CustomThemeEditor.dom.test.tsx
@@ -1,24 +1,65 @@
-import { BASE16_SLOT_ROLES, BASE16_SLOTS, parseBase16Scheme } from '@inkeep/open-knowledge-core';
-import { cleanup, fireEvent, render } from '@testing-library/react';
+import { BASE16_SLOT_ROLES, parseBase16Scheme } from '@inkeep/open-knowledge-core';
+import { act, cleanup, fireEvent, render, waitFor } from '@testing-library/react';
+import userEvent from '@testing-library/user-event';
import type { ReactNode } from 'react';
import { afterEach, describe, expect, test, vi } from 'vitest';
-import { DEFAULT_CUSTOM_SCHEME } from '@/lib/color-themes';
+import { COLOR_THEMES, type ColorTheme, DEFAULT_CUSTOM_SCHEME } from '@/lib/color-themes';
+import type { UpdateSavedThemeResult } from '@/lib/saved-themes-client';
import { renderLinguiTemplate } from '@/test-utils/lingui-mock';
-let mergedConfig: { appearance?: { colorTheme?: string; customTheme?: Record<string, string> } } =
- {};
+let mergedConfig: {
+ appearance?: {
+ theme?: 'system' | 'light' | 'dark';
+ colorTheme?: string;
+ colorThemeLight?: string;
+ colorThemeDark?: string;
+ customTheme?: Record<string, string>;
+ };
+} = {};
const patchCalls: unknown[] = [];
+let savedThemes: ColorTheme[] = [];
+let editingThemeId = 'custom';
+let themeIncarnations: Record<string, number> = {};
+const applyColorThemeToDom = vi.fn();
+const refreshSavedThemes = vi.fn(async () => {});
+const selectThemeToEdit = vi.fn();
+const updateTheme = vi.fn(
+ async (): Promise<UpdateSavedThemeResult> => ({
+ ok: true,
+ id: 'saved-theme',
+ filename: 'theme.yaml',
+ }),
+);
+
+function translateLingui(
+ message: TemplateStringsArray | string | { message?: string },
+ ...values: unknown[]
+): string {
+ if (typeof message === 'object' && 'message' in message) return message.message ?? '';
+ return renderLinguiTemplate(message, ...values);
+}
vi.doMock('@lingui/react/macro', () => ({
Trans: ({ children }: { children: ReactNode }) => <>{children}</>,
- useLingui: () => ({ t: renderLinguiTemplate }),
+ msg: renderLinguiTemplate,
+ useLingui: () => ({ t: translateLingui }),
}));
vi.doMock('next-themes', () => ({ useTheme: () => ({ setTheme: () => {} }) }));
vi.doMock('@/lib/config-context', () => ({
useConfigContextOptional: () => ({ merged: mergedConfig }),
}));
vi.doMock('@/lib/use-apply-config-color-theme', () => ({
- applyColorThemeToDom: () => {},
+ applyColorThemeToDom,
+}));
+vi.doMock('@/lib/saved-themes-client', () => ({
+ useSavedThemes: () => ({
+ themes: savedThemes,
+ refresh: refreshSavedThemes,
+ updateTheme,
+ editingThemeId,
+ themeIncarnations,
+ selectThemeToEdit,
+ }),
}));
const userBinding = { patch: (p: unknown) => patchCalls.push(p) } as never;
@@ -68,13 +109,23 @@ palette:
base0F: "#e6b673"
`;
+function pasteTheme(target: HTMLElement, value: string) {
+ fireEvent.paste(target, {
+ clipboardData: { getData: (type: string) => (type === 'text/plain' ? value : '') },
+ });
+}
+
async function renderEditor() {
const { CustomThemeEditor } = await import('./CustomThemeEditor');
- return render(<CustomThemeEditor userBinding={userBinding} />);
+ const view = render(<CustomThemeEditor userBinding={userBinding} />);
+ return {
+ ...view,
+ rerenderEditor: () => view.rerender(<CustomThemeEditor userBinding={userBinding} />),
+ };
}
function hexInputs(container: HTMLElement): HTMLInputElement[] {
- return [...container.querySelectorAll<HTMLInputElement>('input:not([type="color"])')];
+ return [...container.querySelectorAll<HTMLInputElement>('input[aria-label$="hex value"]')];
}
describe('CustomThemeEditor', () => {
@@ -82,13 +133,25 @@ describe('CustomThemeEditor', () => {
cleanup();
patchCalls.length = 0;
mergedConfig = {};
+ savedThemes = [];
+ editingThemeId = 'custom';
+ themeIncarnations = {};
+ applyColorThemeToDom.mockClear();
+ refreshSavedThemes.mockClear();
+ selectThemeToEdit.mockClear();
+ updateTheme.mockReset();
+ updateTheme.mockResolvedValue({
+ ok: true,
+ id: 'saved-theme',
+ filename: 'theme.yaml',
+ });
});
- test('renders a color + hex input for each of the sixteen base16 slots', async () => {
+ test('renders sixteen selectable swatches with one focused color editor', async () => {
const { container } = await renderEditor();
- expect(container.querySelectorAll('input[type="color"]').length).toBe(16);
- // 16 color + 16 hex text inputs.
- expect(hexInputs(container).length).toBe(16);
+ expect(container.querySelectorAll('button[aria-label^="Select base"]').length).toBe(16);
+ expect(container.querySelectorAll('input[type="color"]').length).toBe(1);
+ expect(hexInputs(container).length).toBe(1);
});
test('the section is a landmark labelled by its heading, like sibling subsections', async () => {
@@ -108,6 +171,84 @@ describe('CustomThemeEditor', () => {
expect(patchCalls).toContainEqual({ appearance: { customTheme: { base00: '#123456' } } });
});
+ test('previews edits immediately when the saved theme is assigned to the active slot', async () => {
+ editingThemeId = 'saved-active';
+ savedThemes = [
+ ...COLOR_THEMES,
+ {
+ id: 'saved-active',
+ label: 'Active',
+ kind: 'dark',
+ scheme: DEFAULT_CUSTOM_SCHEME,
+ },
+ ];
+ mergedConfig = {
+ appearance: {
+ theme: 'light',
+ colorThemeLight: 'saved-active',
+ colorThemeDark: 'default',
+ },
+ };
+ const { container } = await renderEditor();
+ const hex = hexInputs(container)[0] as HTMLInputElement;
+
+ fireEvent.change(hex, { target: { value: '#224466' } });
+
+ expect(applyColorThemeToDom).toHaveBeenCalledTimes(1);
+ expect(applyColorThemeToDom).toHaveBeenCalledWith(
+ expect.objectContaining({
+ selection: { light: 'saved-active', dark: 'default' },
+ slotMode: 'light',
+ }),
+ );
+ });
+
+ test('keeps the committed custom slot cache while previewing a saved theme', async () => {
+ editingThemeId = 'saved-active';
+ savedThemes = [
+ ...COLOR_THEMES,
+ {
+ id: 'saved-active',
+ label: 'Active',
+ kind: 'dark',
+ scheme: DEFAULT_CUSTOM_SCHEME,
+ },
+ ];
+ const customSeed = {
+ name: 'Legacy custom',
+ variant: 'light',
+ ...DEFAULT_CUSTOM_SCHEME.palette,
+ base00: '#abcdef',
+ };
+ mergedConfig = {
+ appearance: {
+ theme: 'light',
+ colorThemeLight: 'saved-active',
+ colorThemeDark: 'custom',
+ customTheme: customSeed,
+ },
+ };
+ const { container } = await renderEditor();
+ const hex = hexInputs(container)[0] as HTMLInputElement;
+
+ fireEvent.change(hex, { target: { value: '#224466' } });
+
+ expect(applyColorThemeToDom).toHaveBeenCalledWith(
+ expect.objectContaining({
+ customSeed,
+ selection: { light: 'saved-active', dark: 'custom' },
+ themes: expect.arrayContaining([
+ expect.objectContaining({
+ id: 'saved-active',
+ scheme: expect.objectContaining({
+ palette: expect.objectContaining({ base00: '#224466' }),
+ }),
+ }),
+ ]),
+ }),
+ );
+ });
+
test('an invalid hex does not patch', async () => {
const { container } = await renderEditor();
const hex = hexInputs(container)[0] as HTMLInputElement;
@@ -159,9 +300,9 @@ describe('CustomThemeEditor', () => {
// `author` included: a scheme's credit line has to survive the write, or it
// is gone by the next reload and "Copy as YAML" hands back an uncredited
// copy of someone else's scheme.
- const { getByTestId, getByText } = await renderEditor();
- fireEvent.change(getByTestId('custom-theme-import'), { target: { value: PASTED_SCHEME } });
- fireEvent.click(getByText('Import scheme'));
+ const { getByTestId, queryByRole } = await renderEditor();
+ pasteTheme(getByTestId('custom-theme-import'), PASTED_SCHEME);
+ expect(queryByRole('button', { name: 'Import theme' })).toBeNull();
expect(patchCalls).toContainEqual({
appearance: {
customTheme: {
@@ -191,18 +332,40 @@ describe('CustomThemeEditor', () => {
});
test('an imported scheme repopulates the slot inputs', async () => {
- const { container, getByTestId, getByText } = await renderEditor();
- fireEvent.change(getByTestId('custom-theme-import'), { target: { value: PASTED_SCHEME } });
- fireEvent.click(getByText('Import scheme'));
- const values = hexInputs(container).map((input) => input.value);
- expect(values[0]).toBe('#0f1419');
- expect(values[BASE16_SLOTS.indexOf('base0D')]).toBe('#59c2ff');
+ const { container, getByTestId } = await renderEditor();
+ pasteTheme(getByTestId('custom-theme-import'), PASTED_SCHEME);
+ expect((hexInputs(container)[0] as HTMLInputElement).value).toBe('#0f1419');
+ const base0D = container.querySelector<HTMLButtonElement>(
+ 'button[aria-label^="Select base0D "]',
+ );
+ expect(base0D).not.toBeNull();
+ fireEvent.click(base0D as HTMLButtonElement);
+ expect((hexInputs(container)[0] as HTMLInputElement).value).toBe('#59c2ff');
+ });
+
+ test('copies the selected swatch value', async () => {
+ const written: string[] = [];
+ Object.defineProperty(navigator, 'clipboard', {
+ configurable: true,
+ value: {
+ writeText: (text: string) => {
+ written.push(text);
+ return Promise.resolve();
+ },
+ },
+ });
+ const { container, getByRole } = await renderEditor();
+ const base0D = container.querySelector<HTMLButtonElement>(
+ 'button[aria-label^="Select base0D "]',
+ );
+ fireEvent.click(base0D as HTMLButtonElement);
+ fireEvent.click(getByRole('button', { name: 'Copy' }));
+ await waitFor(() => expect(written).toEqual([DEFAULT_CUSTOM_SCHEME.palette.base0D]));
});
test('an unparseable paste surfaces an inline error and writes nothing', async () => {
- const { getByTestId, getByText, queryByTestId } = await renderEditor();
- fireEvent.change(getByTestId('custom-theme-import'), { target: { value: 'not a scheme' } });
- fireEvent.click(getByText('Import scheme'));
+ const { getByTestId, queryByTestId } = await renderEditor();
+ pasteTheme(getByTestId('custom-theme-import'), 'not a scheme');
expect(queryByTestId('custom-theme-import-error')).not.toBeNull();
expect(patchCalls.length).toBe(0);
});
@@ -256,14 +419,14 @@ describe('CustomThemeEditor', () => {
expect(patchCalls).toContainEqual({ appearance: { customTheme: { base00: '#123456' } } });
});
- test('every slot shows its role, not just the opaque slot id', async () => {
- // `base09` teaches nothing on its own; the role is what makes the control
- // legible without cross-referencing the spec.
+ test('every swatch exposes its role, not just the opaque slot id', async () => {
const { container } = await renderEditor();
- const text = container.textContent ?? '';
- expect(text).toContain('base09');
- expect(text).toContain(BASE16_SLOT_ROLES.base09);
- expect(text).toContain(BASE16_SLOT_ROLES.base0D);
+ const orange = container.querySelector<HTMLButtonElement>(
+ 'button[aria-label^="Select base09 "]',
+ );
+ const blue = container.querySelector<HTMLButtonElement>('button[aria-label^="Select base0D "]');
+ expect(orange?.getAttribute('aria-label')).toContain(BASE16_SLOT_ROLES.base09);
+ expect(blue?.getAttribute('aria-label')).toContain(BASE16_SLOT_ROLES.base0D);
});
test('the preview renders and marks the surfaces a hovered slot drives', async () => {
@@ -273,28 +436,32 @@ describe('CustomThemeEditor', () => {
// Nothing is lit until a slot is pointed at.
expect(container.querySelectorAll('[data-lit="true"]').length).toBe(0);
- const stringSwatch = container.querySelector<HTMLInputElement>('input[aria-label^="base0B "]');
+ const stringSwatch = container.querySelector<HTMLButtonElement>(
+ 'button[aria-label^="Select base0B "]',
+ );
expect(stringSwatch).not.toBeNull();
- fireEvent.mouseEnter(stringSwatch as HTMLInputElement);
+ fireEvent.mouseEnter(stringSwatch as HTMLButtonElement);
// base0B is the strings slot — the code sample's string literal lights up.
expect(
container.querySelectorAll('[data-lit="true"][data-slot="base0B"]').length,
).toBeGreaterThan(0);
- fireEvent.mouseLeave(stringSwatch as HTMLInputElement);
+ fireEvent.mouseLeave(stringSwatch as HTMLButtonElement);
expect(container.querySelectorAll('[data-lit="true"]').length).toBe(0);
});
test('keyboard focus lights the same surfaces as hover', async () => {
// The spotlight must not be pointer-only — the slot list is a tab sequence.
const { container } = await renderEditor();
- const hex = container.querySelector<HTMLInputElement>('input[aria-label="base0E hex value"]');
- expect(hex).not.toBeNull();
- fireEvent.focus(hex as HTMLInputElement);
+ const swatch = container.querySelector<HTMLButtonElement>(
+ 'button[aria-label^="Select base0E "]',
+ );
+ expect(swatch).not.toBeNull();
+ fireEvent.focus(swatch as HTMLButtonElement);
expect(
container.querySelectorAll('[data-lit="true"][data-slot="base0E"]').length,
).toBeGreaterThan(0);
- fireEvent.blur(hex as HTMLInputElement);
+ fireEvent.blur(swatch as HTMLButtonElement);
expect(container.querySelectorAll('[data-lit="true"]').length).toBe(0);
});
@@ -329,12 +496,427 @@ describe('CustomThemeEditor', () => {
});
test('the import error clears once the user edits the paste again', async () => {
- const { getByTestId, getByText, queryByTestId } = await renderEditor();
+ const { getByTestId, queryByTestId } = await renderEditor();
const textarea = getByTestId('custom-theme-import');
- fireEvent.change(textarea, { target: { value: 'not a scheme' } });
- fireEvent.click(getByText('Import scheme'));
+ pasteTheme(textarea, 'not a scheme');
expect(queryByTestId('custom-theme-import-error')).not.toBeNull();
fireEvent.change(textarea, { target: { value: 'base00: "#111111"' } });
expect(queryByTestId('custom-theme-import-error')).toBeNull();
});
+
+ test('does not refresh or announce saved until the newest autosave revision settles', async () => {
+ editingThemeId = 'saved-active';
+ savedThemes = [
+ {
+ id: 'saved-active',
+ label: 'Active',
+ kind: 'dark',
+ scheme: DEFAULT_CUSTOM_SCHEME,
+ },
+ ];
+ const resolvers: Array<(result: UpdateSavedThemeResult) => void> = [];
+ updateTheme.mockImplementation(
+ async () =>
+ new Promise<UpdateSavedThemeResult>((resolve) => {
+ resolvers.push(resolve);
+ }),
+ );
+ const { container, getByText, queryByText } = await renderEditor();
+ const first = hexInputs(container)[0] as HTMLInputElement;
+
+ fireEvent.change(first, { target: { value: '#112233' } });
+ fireEvent.blur(first, { target: { value: '#112233' } });
+ const base01 = container.querySelector<HTMLButtonElement>(
+ 'button[aria-label^="Select base01 "]',
+ );
+ fireEvent.click(base01 as HTMLButtonElement);
+ const second = hexInputs(container)[0] as HTMLInputElement;
+ fireEvent.change(second, { target: { value: '#223344' } });
+ fireEvent.blur(second, { target: { value: '#223344' } });
+
+ await waitFor(() => expect(updateTheme).toHaveBeenCalledTimes(2));
+ expect(getByText('Saving changes…')).toBeDefined();
+
+ await act(async () => {
+ resolvers[0]?.({ ok: true, id: 'saved-active', filename: 'active.yaml' });
+ });
+ expect(refreshSavedThemes).not.toHaveBeenCalled();
+ expect(queryByText('Changes saved automatically.')).toBeNull();
+ expect(getByText('Saving changes…')).toBeDefined();
+
+ await act(async () => {
+ resolvers[1]?.({ ok: true, id: 'saved-active', filename: 'active.yaml' });
+ });
+ await waitFor(() => expect(refreshSavedThemes).toHaveBeenCalledTimes(1));
+ expect(getByText('Changes saved automatically.')).toBeDefined();
+ });
+
+ test('shows a problem status when autosaving a saved theme fails', async () => {
+ editingThemeId = 'saved-active';
+ savedThemes = [
+ {
+ id: 'saved-active',
+ label: 'Active',
+ kind: 'dark',
+ scheme: DEFAULT_CUSTOM_SCHEME,
+ },
+ ];
+ updateTheme.mockResolvedValueOnce({ ok: false, reason: 'unexpected' });
+ const { container, getByText } = await renderEditor();
+ const first = hexInputs(container)[0] as HTMLInputElement;
+
+ fireEvent.change(first, { target: { value: '#112233' } });
+ fireEvent.blur(first, { target: { value: '#112233' } });
+
+ await waitFor(() =>
+ expect(getByText('Couldn’t save changes. Try editing a color again.')).toBeDefined(),
+ );
+ expect(refreshSavedThemes).not.toHaveBeenCalled();
+ });
+
+ test('does not roll back a newer palette selection when an older autosave fails', async () => {
+ editingThemeId = 'saved-active';
+ savedThemes = [
+ ...COLOR_THEMES,
+ {
+ id: 'saved-active',
+ label: 'Active',
+ kind: 'dark',
+ scheme: DEFAULT_CUSTOM_SCHEME,
+ },
+ ];
+ mergedConfig = {
+ appearance: {
+ theme: 'light',
+ colorThemeLight: 'saved-active',
+ colorThemeDark: 'default',
+ },
+ };
+ let resolveUpdate: ((result: UpdateSavedThemeResult) => void) | undefined;
+ updateTheme.mockImplementation(
+ async () =>
+ new Promise<UpdateSavedThemeResult>((resolve) => {
+ resolveUpdate = resolve;
+ }),
+ );
+ const { container, rerenderEditor, getByText } = await renderEditor();
+ const first = hexInputs(container)[0] as HTMLInputElement;
+
+ fireEvent.change(first, { target: { value: '#112233' } });
+ fireEvent.blur(first, { target: { value: '#112233' } });
+ await waitFor(() => expect(updateTheme).toHaveBeenCalledTimes(1));
+ applyColorThemeToDom.mockClear();
+
+ mergedConfig = {
+ appearance: {
+ theme: 'light',
+ colorThemeLight: 'default',
+ colorThemeDark: 'default',
+ },
+ };
+ rerenderEditor();
+ await act(async () => {
+ resolveUpdate?.({ ok: false, reason: 'unexpected' });
+ });
+
+ expect(getByText('Couldn’t save changes. Try editing a color again.')).toBeDefined();
+ expect(applyColorThemeToDom).not.toHaveBeenCalled();
+ });
+
+ test('rolls a failed preview back to the latest committed registry state', async () => {
+ editingThemeId = 'saved-active';
+ savedThemes = [
+ ...COLOR_THEMES,
+ {
+ id: 'saved-active',
+ label: 'Active',
+ kind: 'dark',
+ scheme: DEFAULT_CUSTOM_SCHEME,
+ },
+ ];
+ mergedConfig = {
+ appearance: {
+ theme: 'light',
+ colorThemeLight: 'saved-active',
+ colorThemeDark: 'custom',
+ },
+ };
+ let resolveUpdate: ((result: UpdateSavedThemeResult) => void) | undefined;
+ updateTheme.mockImplementation(
+ async () =>
+ new Promise<UpdateSavedThemeResult>((resolve) => {
+ resolveUpdate = resolve;
+ }),
+ );
+ const { container, rerenderEditor } = await renderEditor();
+ const first = hexInputs(container)[0] as HTMLInputElement;
+
+ fireEvent.change(first, { target: { value: '#112233' } });
+ fireEvent.blur(first, { target: { value: '#112233' } });
+ await waitFor(() => expect(updateTheme).toHaveBeenCalledTimes(1));
+ applyColorThemeToDom.mockClear();
+
+ const latestCommitted = {
+ ...DEFAULT_CUSTOM_SCHEME,
+ palette: { ...DEFAULT_CUSTOM_SCHEME.palette, base00: '#abcdef' },
+ };
+ savedThemes = [
+ ...COLOR_THEMES,
+ {
+ id: 'saved-active',
+ label: 'Active',
+ kind: 'dark',
+ scheme: latestCommitted,
+ },
+ ];
+ rerenderEditor();
+ await act(async () => {
+ resolveUpdate?.({ ok: false, reason: 'unexpected' });
+ });
+
+ expect(applyColorThemeToDom).toHaveBeenCalledWith(
+ expect.objectContaining({
+ themes: expect.arrayContaining([
+ expect.objectContaining({ id: 'saved-active', scheme: latestCommitted }),
+ ]),
+ }),
+ );
+ });
+
+ test('retries after an autosave problem and reports the later save', async () => {
+ editingThemeId = 'saved-active';
+ savedThemes = [
+ {
+ id: 'saved-active',
+ label: 'Active',
+ kind: 'dark',
+ scheme: DEFAULT_CUSTOM_SCHEME,
+ },
+ ];
+ updateTheme
+ .mockResolvedValueOnce({ ok: false, reason: 'unexpected' })
+ .mockResolvedValueOnce({ ok: true, id: 'saved-active', filename: 'active.yaml' });
+ const { container, getByText, queryByText } = await renderEditor();
+ const first = hexInputs(container)[0] as HTMLInputElement;
+
+ fireEvent.change(first, { target: { value: '#112233' } });
+ fireEvent.blur(first, { target: { value: '#112233' } });
+ await waitFor(() =>
+ expect(getByText('Couldn’t save changes. Try editing a color again.')).toBeDefined(),
+ );
+
+ fireEvent.change(first, { target: { value: '#445566' } });
+ fireEvent.blur(first, { target: { value: '#445566' } });
+
+ await waitFor(() => expect(getByText('Changes saved automatically.')).toBeDefined());
+ expect(queryByText('Couldn’t save changes. Try editing a color again.')).toBeNull();
+ expect(refreshSavedThemes).toHaveBeenCalledTimes(1);
+ });
+
+ test('keeps a newer local draft when an intermediate registry refresh arrives', async () => {
+ editingThemeId = 'saved-active';
+ savedThemes = [
+ {
+ id: 'saved-active',
+ label: 'Active',
+ kind: 'dark',
+ scheme: DEFAULT_CUSTOM_SCHEME,
+ },
+ ];
+ let resolveUpdate: ((result: UpdateSavedThemeResult) => void) | undefined;
+ updateTheme.mockImplementation(
+ async () =>
+ new Promise<UpdateSavedThemeResult>((resolve) => {
+ resolveUpdate = resolve;
+ }),
+ );
+ const { container, rerenderEditor } = await renderEditor();
+ const first = hexInputs(container)[0] as HTMLInputElement;
+
+ fireEvent.change(first, { target: { value: '#112233' } });
+ fireEvent.blur(first, { target: { value: '#112233' } });
+ await waitFor(() => expect(updateTheme).toHaveBeenCalledTimes(1));
+
+ savedThemes = [
+ {
+ id: 'saved-active',
+ label: 'Active',
+ kind: 'dark',
+ scheme: {
+ ...DEFAULT_CUSTOM_SCHEME,
+ palette: { ...DEFAULT_CUSTOM_SCHEME.palette, base00: '#abcdef' },
+ },
+ },
+ ];
+ rerenderEditor();
+
+ expect((hexInputs(container)[0] as HTMLInputElement).value).toBe('#112233');
+
+ await act(async () => {
+ resolveUpdate?.({ ok: true, id: 'saved-active', filename: 'active.yaml' });
+ });
+ });
+
+ test('keeps a newer uncommitted draft when an older autosave finishes', async () => {
+ editingThemeId = 'saved-active';
+ savedThemes = [
+ {
+ id: 'saved-active',
+ label: 'Active',
+ kind: 'dark',
+ scheme: DEFAULT_CUSTOM_SCHEME,
+ },
+ ];
+ let resolveUpdate: ((result: UpdateSavedThemeResult) => void) | undefined;
+ updateTheme
+ .mockImplementationOnce(
+ async () =>
+ new Promise<UpdateSavedThemeResult>((resolve) => {
+ resolveUpdate = resolve;
+ }),
+ )
+ .mockResolvedValue({ ok: true, id: 'saved-active', filename: 'active.yaml' });
+ const { container } = await renderEditor();
+ const first = hexInputs(container)[0] as HTMLInputElement;
+
+ fireEvent.change(first, { target: { value: '#112233' } });
+ fireEvent.blur(first, { target: { value: '#112233' } });
+ await waitFor(() => expect(updateTheme).toHaveBeenCalledTimes(1));
+
+ fireEvent.change(first, { target: { value: '#445566' } });
+
+ await act(async () => {
+ resolveUpdate?.({ ok: true, id: 'saved-active', filename: 'active.yaml' });
+ });
+ expect(first.value).toBe('#445566');
+
+ fireEvent.blur(first, { target: { value: '#445566' } });
+ await waitFor(() => expect(updateTheme).toHaveBeenCalledTimes(2));
+ expect(updateTheme).toHaveBeenLastCalledWith({
+ id: 'saved-active',
+ scheme: {
+ ...DEFAULT_CUSTOM_SCHEME,
+ palette: { ...DEFAULT_CUSTOM_SCHEME.palette, base00: '#445566' },
+ },
+ });
+ });
+
+ test('keeps pending drafts isolated when switching between saved themes', async () => {
+ const themeA = {
+ ...DEFAULT_CUSTOM_SCHEME,
+ name: 'Theme A',
+ palette: { ...DEFAULT_CUSTOM_SCHEME.palette, base00: '#aaaaaa' },
+ };
+ const themeB = {
+ ...DEFAULT_CUSTOM_SCHEME,
+ name: 'Theme B',
+ palette: { ...DEFAULT_CUSTOM_SCHEME.palette, base00: '#bbbbbb' },
+ };
+ editingThemeId = 'saved-a';
+ savedThemes = [
+ { id: 'saved-a', label: 'Theme A', kind: 'dark', scheme: themeA },
+ { id: 'saved-b', label: 'Theme B', kind: 'dark', scheme: themeB },
+ ];
+ let resolveUpdate: ((result: UpdateSavedThemeResult) => void) | undefined;
+ updateTheme.mockImplementation(
+ async () =>
+ new Promise<UpdateSavedThemeResult>((resolve) => {
+ resolveUpdate = resolve;
+ }),
+ );
+ const { container, rerenderEditor } = await renderEditor();
+ const first = hexInputs(container)[0] as HTMLInputElement;
+
+ fireEvent.change(first, { target: { value: '#112233' } });
+ fireEvent.blur(first, { target: { value: '#112233' } });
+ await waitFor(() => expect(updateTheme).toHaveBeenCalledTimes(1));
+
+ editingThemeId = 'saved-b';
+ rerenderEditor();
+ await waitFor(() =>
+ expect((hexInputs(container)[0] as HTMLInputElement).value).toBe('#bbbbbb'),
+ );
+
+ editingThemeId = 'saved-a';
+ rerenderEditor();
+ await waitFor(() =>
+ expect((hexInputs(container)[0] as HTMLInputElement).value).toBe('#112233'),
+ );
+
+ await act(async () => {
+ resolveUpdate?.({ ok: true, id: 'saved-a', filename: 'a.yaml' });
+ });
+ });
+
+ test('drops draft and autosave state when a deleted id is recreated', async () => {
+ editingThemeId = 'saved-active';
+ savedThemes = [
+ {
+ id: 'saved-active',
+ label: 'Old',
+ kind: 'dark',
+ scheme: DEFAULT_CUSTOM_SCHEME,
+ },
+ ];
+ let resolveUpdate: ((result: UpdateSavedThemeResult) => void) | undefined;
+ updateTheme.mockImplementation(
+ async () =>
+ new Promise<UpdateSavedThemeResult>((resolve) => {
+ resolveUpdate = resolve;
+ }),
+ );
+ const { container, rerenderEditor, getByText, queryByText } = await renderEditor();
+ const first = hexInputs(container)[0] as HTMLInputElement;
+
+ fireEvent.change(first, { target: { value: '#112233' } });
+ fireEvent.blur(first, { target: { value: '#112233' } });
+ await waitFor(() => expect(getByText('Saving changes…')).toBeDefined());
+
+ themeIncarnations = { 'saved-active': 1 };
+ savedThemes = [
+ {
+ id: 'saved-active',
+ label: 'Recreated',
+ kind: 'light',
+ scheme: {
+ ...DEFAULT_CUSTOM_SCHEME,
+ name: 'Recreated',
+ variant: 'light',
+ palette: { ...DEFAULT_CUSTOM_SCHEME.palette, base00: '#abcdef' },
+ },
+ },
+ ];
+ rerenderEditor();
+
+ await waitFor(() =>
+ expect((hexInputs(container)[0] as HTMLInputElement).value).toBe('#abcdef'),
+ );
+ expect(queryByText('Saving changes…')).toBeNull();
+
+ await act(async () => {
+ resolveUpdate?.({ ok: true, id: 'saved-active', filename: 'active.yaml' });
+ });
+
+ expect(refreshSavedThemes).not.toHaveBeenCalled();
+ expect((hexInputs(container)[0] as HTMLInputElement).value).toBe('#abcdef');
+ expect(queryByText('Changes saved automatically.')).toBeNull();
+ });
+
+ test('Done closes a saved theme editor', async () => {
+ editingThemeId = 'saved-active';
+ savedThemes = [
+ {
+ id: 'saved-active',
+ label: 'Active',
+ kind: 'dark',
+ scheme: { ...DEFAULT_CUSTOM_SCHEME, name: 'Active' },
+ },
+ ];
+ const user = userEvent.setup();
+ const { getByRole } = await renderEditor();
+
+ await user.click(getByRole('button', { name: 'Done' }));
+
+ expect(selectThemeToEdit).toHaveBeenCalledWith(null);
+ });
});
diff --git a/packages/app/src/components/settings/CustomThemeEditor.tsx b/packages/app/src/components/settings/CustomThemeEditor.tsx
index 4f062734e..ce3a4894d 100644
--- a/packages/app/src/components/settings/CustomThemeEditor.tsx
+++ b/packages/app/src/components/settings/CustomThemeEditor.tsx
@@ -13,7 +13,7 @@ import {
import { useLingui } from '@lingui/react/macro';
import { ArrowUpRight } from 'lucide-react';
import { useTheme } from 'next-themes';
-import { useEffect, useState } from 'react';
+import { type ClipboardEvent, useEffect, useLayoutEffect, useRef, useState } from 'react';
import { toast } from 'sonner';
import { Button } from '@/components/ui/button';
import { FieldError } from '@/components/ui/field';
@@ -21,6 +21,7 @@ import { Input } from '@/components/ui/input';
import { Label } from '@/components/ui/label';
import { Textarea } from '@/components/ui/textarea';
import {
+ base16ToTokens,
customThemeKind,
customThemeWritePatch,
DEFAULT_CUSTOM_SCHEME,
@@ -32,71 +33,205 @@ import {
} from '@/lib/color-themes';
import { useConfigContextOptional } from '@/lib/config-context';
import { dispatchExternalLinkClick } from '@/lib/external-link';
+import { useSavedThemes } from '@/lib/saved-themes-client';
import { applyColorThemeToDom } from '@/lib/use-apply-config-color-theme';
+import { cn } from '@/lib/utils';
import { ThemePreviewCanvas } from './ThemePreviewCanvas';
-/** The tonal ramp and the accents are edited as separate groups — they're read differently. */
-const RAMP_SLOTS = BASE16_SLOTS.slice(0, 8) as readonly Base16Slot[];
-const ACCENT_SLOTS = BASE16_SLOTS.slice(8) as readonly Base16Slot[];
-
const SCHEMES_URL = 'https://github.com/tinted-theming/schemes';
/**
- * Editor for the `custom` color theme's base16 scheme.
+ * Editor for one user-owned saved theme's base16 scheme.
*
* Two ways in: paste a scheme from the base16 ecosystem (the fast path — any of
* the several hundred published schemes works unmodified), or adjust the
- * sixteen slots by hand. Reads the live scheme from merged config, writes
- * through the user `ConfigBinding`, and — when `custom` is the active theme —
- * applies edits to the DOM optimistically so the whole app previews as you
- * type. Light/dark mode comes from the scheme's own variant.
+ * sixteen slots by hand. Saved-theme edits replace that theme's file in place. When
+ * the edited palette is active, edits apply to the DOM optimistically so the
+ * whole app previews as you type. Light/dark mode comes from the scheme's own
+ * variant.
*
* Slot names are opaque on their own, so every slot carries its role in the
* label and lights up the surfaces it drives in the preview on hover/focus.
*/
export function CustomThemeEditor({ userBinding }: { userBinding: ConfigBinding }) {
const { t } = useLingui();
+ const {
+ themes,
+ refresh: refreshSavedThemes,
+ updateTheme,
+ editingThemeId,
+ themeIncarnations,
+ selectThemeToEdit,
+ } = useSavedThemes();
const { setTheme, systemTheme } = useTheme();
const merged = useConfigContextOptional()?.merged ?? null;
- const committed = resolveCustomScheme(merged?.appearance?.customTheme);
+ const savedTheme =
+ editingThemeId === 'custom' ? undefined : themes.find((theme) => theme.id === editingThemeId);
+ const isEditingSavedTheme = savedTheme?.scheme !== undefined;
+ const workbenchScheme = resolveCustomScheme(merged?.appearance?.customTheme);
+ const committed = savedTheme?.scheme ?? workbenchScheme;
+ const themeIncarnation = themeIncarnations[editingThemeId] ?? 0;
+ const editorStateKey = `${editingThemeId}:${themeIncarnation}`;
const modePreference = merged?.appearance?.theme;
- const selection = resolveColorThemeSelection(merged?.appearance);
+ const selection = resolveColorThemeSelection(merged?.appearance, themes);
const slotMode = resolveModePreference(modePreference, systemTheme === 'dark');
- // Live preview only when the custom scheme is the palette actually on screen —
- // it may be assigned to the other mode's slot, where an edit shouldn't repaint.
- const isActive = selection[slotMode] === 'custom';
+ // Live preview only when the edited scheme is the palette actually on screen.
+ // It may be assigned to the other mode's slot, where an edit shouldn't repaint.
+ const isActive = selection[slotMode] === editingThemeId;
+ const applicationStateRef = useRef({
+ editorStateKey,
+ selection,
+ modePreference,
+ slotMode,
+ customSeed: merged?.appearance?.customTheme,
+ themes,
+ committed,
+ });
+ useLayoutEffect(() => {
+ applicationStateRef.current = {
+ editorStateKey,
+ selection,
+ modePreference,
+ slotMode,
+ customSeed: merged?.appearance?.customTheme,
+ themes,
+ committed,
+ };
+ });
// Local working copy for smooth live editing; re-sync when committed config
// changes underneath us (another window, a reset, a hand-edit).
const [scheme, setScheme] = useState<Base16Scheme>(committed);
- const committedKey = JSON.stringify(committed);
+ const draftsRef = useRef<Record<string, Base16Scheme>>({});
+ const themeIncarnationsRef = useRef(themeIncarnations);
+ useLayoutEffect(() => {
+ themeIncarnationsRef.current = themeIncarnations;
+ }, [themeIncarnations]);
+ const editorStateKeyRef = useRef(editorStateKey);
+ useLayoutEffect(() => {
+ editorStateKeyRef.current = editorStateKey;
+ }, [editorStateKey]);
+ const pendingCountsRef = useRef<Record<string, number>>({});
+ const revisionsRef = useRef<Record<string, number>>({});
+ const latestOutcomesRef = useRef<Record<string, boolean>>({});
+ const committedKey = `${editorStateKey}:${JSON.stringify(committed)}`;
// biome-ignore lint/correctness/useExhaustiveDependencies: committedKey is the value-stable proxy for `committed`.
useEffect(() => {
- setScheme(committed);
+ setScheme(draftsRef.current[editorStateKey] ?? committed);
}, [committedKey]);
const [paste, setPaste] = useState('');
const [pasteError, setPasteError] = useState<string | null>(null);
+ const [pasteAnnouncement, setPasteAnnouncement] = useState('');
+ const [autoSaveStatuses, setAutoSaveStatuses] = useState<
+ Record<string, 'saving' | 'saved' | 'problem'>
+ >({});
+ const autoSaveStatus = autoSaveStatuses[editorStateKey] ?? 'idle';
// Which slot the pointer/keyboard is on, so the preview can ring its surfaces.
const [hoveredSlot, setHoveredSlot] = useState<Base16Slot | null>(null);
+ const [selectedSlot, setSelectedSlot] = useState<Base16Slot>('base00');
// A config written before base16 still carries the six seed colors. It reads
// correctly (they upgrade into slots), but the next write should normalize it.
const needsLegacyMigration = hasLegacyCustomSeed(merged?.appearance?.customTheme);
+ function setWorkingScheme(next: Base16Scheme) {
+ if (isEditingSavedTheme) draftsRef.current[editorStateKey] = next;
+ setScheme(next);
+ }
+
function preview(next: Base16Scheme) {
if (!isActive) return;
+ const previewThemes = isEditingSavedTheme
+ ? themes.map((theme) =>
+ theme.id === editingThemeId
+ ? {
+ ...theme,
+ kind: next.variant,
+ scheme: next,
+ toTokens: () => base16ToTokens(next),
+ }
+ : theme,
+ )
+ : themes;
applyColorThemeToDom({
selection,
modePreference,
slotMode,
- customSeed: customThemeWritePatch(next),
+ customSeed: isEditingSavedTheme
+ ? merged?.appearance?.customTheme
+ : customThemeWritePatch(next),
+ themes: previewThemes,
});
setTheme(customThemeKind(next) === 'dark' ? 'dark' : 'light');
}
+ function persistSavedTheme(next: Base16Scheme) {
+ if (!isEditingSavedTheme) return;
+ const id = editingThemeId;
+ const incarnation = themeIncarnation;
+ const lifecycleKey = editorStateKey;
+ draftsRef.current[lifecycleKey] = next;
+ const revision = (revisionsRef.current[lifecycleKey] ?? 0) + 1;
+ revisionsRef.current[lifecycleKey] = revision;
+ pendingCountsRef.current[lifecycleKey] = (pendingCountsRef.current[lifecycleKey] ?? 0) + 1;
+ setAutoSaveStatuses((current) => ({ ...current, [lifecycleKey]: 'saving' }));
+ void updateTheme({ id, scheme: next }).then((result) => {
+ const discardDeletedLifecycle = () => {
+ delete draftsRef.current[lifecycleKey];
+ delete pendingCountsRef.current[lifecycleKey];
+ delete revisionsRef.current[lifecycleKey];
+ delete latestOutcomesRef.current[lifecycleKey];
+ setAutoSaveStatuses((current) => {
+ const nextStatuses = { ...current };
+ delete nextStatuses[lifecycleKey];
+ return nextStatuses;
+ });
+ };
+ if ((themeIncarnationsRef.current[id] ?? 0) !== incarnation) {
+ discardDeletedLifecycle();
+ return;
+ }
+ if (revision === revisionsRef.current[lifecycleKey]) {
+ latestOutcomesRef.current[lifecycleKey] = result.ok;
+ if (result.ok) void refreshSavedThemes();
+ }
+ const remaining = Math.max(0, (pendingCountsRef.current[lifecycleKey] ?? 1) - 1);
+ pendingCountsRef.current[lifecycleKey] = remaining;
+ if (remaining === 0) {
+ const saved = latestOutcomesRef.current[lifecycleKey] === true;
+ const savedCurrentDraft = saved && draftsRef.current[lifecycleKey] === next;
+ if (savedCurrentDraft) {
+ delete draftsRef.current[lifecycleKey];
+ if (editorStateKeyRef.current === lifecycleKey) setScheme(next);
+ } else if (!saved) {
+ const current = applicationStateRef.current;
+ if (
+ current.editorStateKey === lifecycleKey &&
+ current.selection[current.slotMode] === id
+ ) {
+ applyColorThemeToDom({
+ selection: current.selection,
+ modePreference: current.modePreference,
+ slotMode: current.slotMode,
+ customSeed: current.customSeed,
+ themes: current.themes,
+ });
+ setTheme(customThemeKind(current.committed) === 'dark' ? 'dark' : 'light');
+ }
+ }
+ setAutoSaveStatuses((current) => {
+ const nextStatuses = { ...current };
+ if (saved && !savedCurrentDraft) delete nextStatuses[lifecycleKey];
+ else nextStatuses[lifecycleKey] = savedCurrentDraft ? 'saved' : 'problem';
+ return nextStatuses;
+ });
+ }
+ });
+ }
+
function onPick(slot: Base16Slot, value: string) {
const next = { ...scheme, palette: { ...scheme.palette, [slot]: value } };
- setScheme(next);
+ setWorkingScheme(next);
// Only push valid hex to the live DOM preview — an invalid partial the user
// is mid-typing shouldn't repaint the app with a broken color.
if (isHexColor(value)) preview(next);
@@ -107,6 +242,10 @@ export function CustomThemeEditor({ userBinding }: { userBinding: ConfigBinding
// correct it — no silent revert, and nothing is written to config until the
// value is a valid 6-digit hex.
if (!isHexColor(value)) return;
+ if (isEditingSavedTheme) {
+ persistSavedTheme({ ...scheme, palette: { ...scheme.palette, [slot]: value } });
+ return;
+ }
if (needsLegacyMigration) {
// First edit against a pre-base16 config: write the resolved scheme in
// full and retire the old keys, rather than leaving a half-format behind.
@@ -117,17 +256,37 @@ export function CustomThemeEditor({ userBinding }: { userBinding: ConfigBinding
userBinding.patch({ appearance: { customTheme: { [slot]: value } } });
}
- function importPasted() {
- const result = parseBase16Scheme(paste);
+ function importThemeText(value: string) {
+ const result = parseBase16Scheme(value);
if (!result.ok) {
setPasteError(describeParseError(result.error, t));
- return;
+ setPasteAnnouncement('');
+ return false;
}
setPasteError(null);
setPaste('');
- setScheme(result.scheme);
+ setPasteAnnouncement(t`Theme imported.`);
+ setWorkingScheme(result.scheme);
preview(result.scheme);
+ if (isEditingSavedTheme) {
+ persistSavedTheme(result.scheme);
+ return true;
+ }
userBinding.patch({ appearance: { customTheme: customThemeWritePatch(result.scheme) } });
+ return true;
+ }
+
+ function pasteTheme(event: ClipboardEvent<HTMLTextAreaElement>) {
+ const pastedText = event.clipboardData.getData('text/plain');
+ if (!pastedText) return;
+ event.preventDefault();
+ const target = event.currentTarget;
+ const start = target.selectionStart ?? target.value.length;
+ const end = target.selectionEnd ?? target.value.length;
+ const nextValue = `${target.value.slice(0, start)}${pastedText}${target.value.slice(end)}`;
+ setPaste(nextValue);
+ setPasteAnnouncement('');
+ importThemeText(nextValue);
}
async function exportYaml() {
@@ -136,7 +295,7 @@ export function CustomThemeEditor({ userBinding }: { userBinding: ConfigBinding
if (write) {
try {
await write(yaml);
- toast.success(t`Scheme copied as base16 YAML`);
+ toast.success(t`Theme copied as base16 YAML`);
return;
} catch {
// Denied or unavailable — fall through to the in-page path below.
@@ -147,13 +306,39 @@ export function CustomThemeEditor({ userBinding }: { userBinding: ConfigBinding
// copyable by hand, and re-importing it is a no-op.
setPaste(yaml);
setPasteError(null);
- toast.error(t`Couldn’t reach the clipboard — the scheme is in the box below.`);
+ toast.error(t`Couldn’t reach the clipboard — the theme is in the box below.`);
+ }
+
+ async function copySelectedColor() {
+ const value = scheme.palette[selectedSlot];
+ const write = navigator.clipboard?.writeText?.bind(navigator.clipboard);
+ if (!write) {
+ toast.error(t`Couldn’t reach the clipboard.`);
+ return;
+ }
+ try {
+ await write(value);
+ toast.success(t`Copied ${selectedSlot}`);
+ } catch {
+ toast.error(t`Couldn’t reach the clipboard.`);
+ }
}
function reset() {
- setScheme(DEFAULT_CUSTOM_SCHEME);
+ const next = isEditingSavedTheme
+ ? {
+ ...DEFAULT_CUSTOM_SCHEME,
+ name: scheme.name,
+ ...(scheme.author ? { author: scheme.author } : {}),
+ }
+ : DEFAULT_CUSTOM_SCHEME;
+ setWorkingScheme(next);
setPasteError(null);
- preview(DEFAULT_CUSTOM_SCHEME);
+ preview(next);
+ if (isEditingSavedTheme) {
+ persistSavedTheme(next);
+ return;
+ }
userBinding.patch({
appearance: { customTheme: customThemeWritePatch(DEFAULT_CUSTOM_SCHEME) },
});
@@ -168,13 +353,35 @@ export function CustomThemeEditor({ userBinding }: { userBinding: ConfigBinding
<div className="flex items-start justify-between gap-2">
<div>
<h3 id="settings-custom-theme-title" className="font-medium text-sm">
- {t`Custom theme`}
+ {isEditingSavedTheme ? t`Editing ${scheme.name}` : t`Custom theme`}
</h3>
<p className="text-1sm text-muted-foreground">
- {isActive
- ? t`Edits apply live. Light or dark comes from the scheme.`
- : t`Press the sun or moon on “Custom” above to use this scheme.`}
+ {isEditingSavedTheme
+ ? isActive
+ ? t`Edits apply live and save automatically to this theme.`
+ : t`Changes save automatically to this theme.`
+ : isActive
+ ? t`Edits apply live. Light or dark comes from the theme.`
+ : t`Press the sun or moon on “Custom” above to use this theme.`}
</p>
+ {isEditingSavedTheme ? (
+ <p
+ role="status"
+ aria-live="polite"
+ className={cn(
+ 'text-xs text-muted-foreground',
+ autoSaveStatus === 'problem' && 'text-destructive',
+ )}
+ >
+ {autoSaveStatus === 'saving'
+ ? t`Saving changes…`
+ : autoSaveStatus === 'saved'
+ ? t`Changes saved automatically.`
+ : autoSaveStatus === 'problem'
+ ? t`Couldn’t save changes. Try editing a color again.`
+ : t`Changes save automatically.`}
+ </p>
+ ) : null}
</div>
<div className="flex shrink-0 items-center gap-1">
<Button variant="outline" size="sm" onClick={exportYaml}>
@@ -183,38 +390,36 @@ export function CustomThemeEditor({ userBinding }: { userBinding: ConfigBinding
<Button variant="ghost" size="sm" onClick={reset} className="text-muted-foreground">
{t`Reset`}
</Button>
+ {isEditingSavedTheme ? (
+ <Button size="sm" onClick={() => selectThemeToEdit(null)}>
+ {t`Done`}
+ </Button>
+ ) : null}
</div>
</div>
{/* Preview first: it is the thing that makes the slots below legible. */}
<ThemePreviewCanvas scheme={scheme} highlightSlot={hoveredSlot} className="w-full" />
- <div className="space-y-3">
- <SlotGroup
- label={t`Background to foreground`}
- slots={RAMP_SLOTS}
- scheme={scheme}
- onPick={onPick}
- commit={commit}
- onSlotFocus={setHoveredSlot}
- hexLabel={(slot) => t`${slot} hex value`}
- invalidHint={t`Enter a 6-digit hex like #1A2B3C`}
- />
- <SlotGroup
- label={t`Accents`}
- slots={ACCENT_SLOTS}
- scheme={scheme}
- onPick={onPick}
- commit={commit}
- onSlotFocus={setHoveredSlot}
- hexLabel={(slot) => t`${slot} hex value`}
- invalidHint={t`Enter a 6-digit hex like #1A2B3C`}
- />
- </div>
+ <ColorWorkbench
+ scheme={scheme}
+ selectedSlot={selectedSlot}
+ onSelectSlot={setSelectedSlot}
+ onPick={onPick}
+ commit={commit}
+ onSlotFocus={setHoveredSlot}
+ onCopy={copySelectedColor}
+ colorsLabel={t`Theme colors`}
+ selectLabel={(slot) => t`Select ${slot} — ${BASE16_SLOT_ROLES[slot]}`}
+ colorLabel={(slot) => t`${slot} color — ${BASE16_SLOT_ROLES[slot]}`}
+ hexLabel={(slot) => t`${slot} hex value`}
+ copyLabel={t`Copy`}
+ invalidHint={t`Enter a 6-digit hex like #1A2B3C`}
+ />
<div className="space-y-1.5 border-t pt-3">
<Label htmlFor="custom-theme-import" className="text-1sm text-muted-foreground">
- {t`Paste a base16 scheme`}
+ {t`Paste a base16 theme`}
</Label>
<Textarea
id="custom-theme-import"
@@ -225,9 +430,18 @@ export function CustomThemeEditor({ userBinding }: { userBinding: ConfigBinding
'system: "base16"\nname: "Ayu Dark"\nvariant: "dark"\npalette:\n base00: "#0f1419"\n base01: "#131721"'
}
aria-invalid={pasteError !== null}
- aria-describedby={pasteError ? 'custom-theme-import-error' : undefined}
+ aria-describedby={
+ pasteError
+ ? 'custom-theme-import-help custom-theme-import-error'
+ : 'custom-theme-import-help'
+ }
+ onPaste={pasteTheme}
+ onBlur={() => {
+ if (paste.trim()) importThemeText(paste);
+ }}
onChange={(e) => {
setPaste(e.target.value);
+ setPasteAnnouncement('');
if (pasteError) setPasteError(null);
}}
className="font-mono text-1sm"
@@ -239,10 +453,7 @@ export function CustomThemeEditor({ userBinding }: { userBinding: ConfigBinding
</FieldError>
) : null}
<div className="flex flex-wrap items-center gap-x-2 gap-y-1">
- <Button variant="outline" size="sm" disabled={!paste.trim()} onClick={importPasted}>
- {t`Import scheme`}
- </Button>
- <span className="text-xs text-muted-foreground">
+ <span id="custom-theme-import-help" className="text-xs text-muted-foreground">
{t`YAML or JSON, in either base16 layout.`}{' '}
<a
href={SCHEMES_URL}
@@ -252,105 +463,154 @@ export function CustomThemeEditor({ userBinding }: { userBinding: ConfigBinding
onAuxClick={(e) => dispatchExternalLinkClick(e, SCHEMES_URL)}
className="inline-flex items-center gap-0.5 underline-offset-2 hover:text-foreground hover:underline"
>
- {t`Browse hundreds of schemes`}
+ {t`Browse hundreds of themes`}
<ArrowUpRight aria-hidden className="size-3" />
</a>
</span>
</div>
+ <span role="status" aria-live="polite" className="sr-only">
+ {pasteAnnouncement}
+ </span>
</div>
</section>
);
}
-function SlotGroup({
- label,
- slots,
+function ColorWorkbench({
scheme,
+ selectedSlot,
+ onSelectSlot,
onPick,
commit,
+ colorsLabel,
+ selectLabel,
+ colorLabel,
hexLabel,
+ copyLabel,
invalidHint,
onSlotFocus,
+ onCopy,
}: {
- label: string;
- slots: readonly Base16Slot[];
scheme: Base16Scheme;
+ selectedSlot: Base16Slot;
+ onSelectSlot: (slot: Base16Slot) => void;
onPick: (slot: Base16Slot, value: string) => void;
commit: (slot: Base16Slot, value: string) => void;
+ colorsLabel: string;
+ selectLabel: (slot: Base16Slot) => string;
+ colorLabel: (slot: Base16Slot) => string;
hexLabel: (slot: Base16Slot) => string;
+ copyLabel: string;
invalidHint: string;
onSlotFocus: (slot: Base16Slot | null) => void;
+ onCopy: () => void;
}) {
+ const value = scheme.palette[selectedSlot];
+ const valid = isHexColor(value);
+ const spotlight = {
+ onMouseEnter: () => onSlotFocus(selectedSlot),
+ onMouseLeave: () => onSlotFocus(null),
+ onFocus: () => onSlotFocus(selectedSlot),
+ };
+
return (
- <div className="space-y-1.5">
- <span className="text-xs font-medium uppercase tracking-wide text-muted-foreground">
- {label}
- </span>
- <div className="grid grid-cols-1 gap-x-3 gap-y-2 sm:grid-cols-2">
- {slots.map((slot) => {
- const value = scheme.palette[slot];
- const valid = isHexColor(value);
- // Hover and focus both drive the preview highlight: pointer users
- // sweep the list, keyboard users tab through it. The handlers live on
- // the inputs rather than the row wrapper — a static container with
- // pointer handlers is unreachable by keyboard and fails a11y lint.
- const spotlight = {
- onMouseEnter: () => onSlotFocus(slot),
- onMouseLeave: () => onSlotFocus(null),
- onFocus: () => onSlotFocus(slot),
- };
+ <div className="space-y-3">
+ <fieldset
+ aria-label={colorsLabel}
+ className="grid min-w-0 grid-cols-4 gap-2 border-0 p-0 md:grid-cols-8"
+ >
+ {BASE16_SLOTS.map((slot) => {
+ const slotValue = scheme.palette[slot];
+ const slotValid = isHexColor(slotValue);
+ const selected = slot === selectedSlot;
return (
- <div key={slot} className="flex items-center gap-1.5 rounded px-1 py-0.5">
- <Input
- type="color"
- aria-label={`${slot} — ${BASE16_SLOT_ROLES[slot]}`}
- value={valid ? value : '#000000'}
- onChange={(e) => onPick(slot, e.target.value)}
- onBlur={(e) => {
- onSlotFocus(null);
- commit(slot, e.target.value);
- }}
- {...spotlight}
- className="h-7 w-8 shrink-0 cursor-pointer rounded-md p-1"
+ <Button
+ key={slot}
+ type="button"
+ variant="ghost"
+ aria-label={selectLabel(slot)}
+ aria-pressed={selected}
+ onClick={() => onSelectSlot(slot)}
+ onMouseEnter={() => onSlotFocus(slot)}
+ onMouseLeave={() => onSlotFocus(null)}
+ onFocus={() => onSlotFocus(slot)}
+ onBlur={() => onSlotFocus(null)}
+ className="h-auto min-w-0 flex-col gap-1.5 rounded-md p-1 text-muted-foreground hover:bg-transparent hover:text-foreground"
+ >
+ <span
+ aria-hidden
+ className={cn(
+ 'aspect-[4/3] w-full rounded-lg border border-border/70 shadow-sm transition-[box-shadow,border-color,transform]',
+ selected &&
+ 'border-foreground ring-2 ring-foreground ring-offset-2 ring-offset-background',
+ !slotValid && 'border-destructive bg-destructive/10',
+ )}
+ style={{ backgroundColor: slotValid ? slotValue : undefined }}
/>
- <div className="relative min-w-0 flex-1">
- {/* The role, not just the slot id — "base09" alone teaches nothing. */}
- <Label className="block truncate text-[10px] leading-tight text-muted-foreground">
- <span className="font-mono">{slot}</span>{' '}
- <span className="opacity-80">{BASE16_SLOT_ROLES[slot]}</span>
- </Label>
- <Input
- value={value}
- spellCheck={false}
- aria-label={hexLabel(slot)}
- aria-invalid={!valid}
- aria-describedby={!valid ? `custom-theme-hex-error-${slot}` : undefined}
- onChange={(e) => onPick(slot, e.target.value)}
- onBlur={(e) => {
- onSlotFocus(null);
- commit(slot, e.target.value);
- }}
- onKeyDown={(e) => {
- if (e.key === 'Enter') commit(slot, (e.target as HTMLInputElement).value);
- }}
- {...spotlight}
- className="h-6 font-mono text-[11px] uppercase"
- />
- {!valid ? (
- // Absolutely positioned so an invalid value doesn't reflow the
- // other swatches in the grid — every tile stays put.
- <FieldError
- id={`custom-theme-hex-error-${slot}`}
- className="absolute top-full left-0 mt-0.5 text-xs leading-tight"
- data-testid={`custom-theme-hex-error-${slot}`}
- >
- {invalidHint}
- </FieldError>
- ) : null}
- </div>
- </div>
+ <span aria-hidden className="font-mono text-xs uppercase">
+ {slot.slice(4)}
+ </span>
+ <span className="sr-only">{BASE16_SLOT_ROLES[slot]}</span>
+ </Button>
);
})}
+ </fieldset>
+
+ <div className="flex flex-col gap-3 rounded-lg border bg-card p-3 sm:flex-row sm:items-center">
+ <Input
+ type="color"
+ aria-label={colorLabel(selectedSlot)}
+ value={valid ? value : '#000000'}
+ onChange={(event) => onPick(selectedSlot, event.target.value)}
+ onBlur={(event) => {
+ onSlotFocus(null);
+ commit(selectedSlot, event.target.value);
+ }}
+ {...spotlight}
+ className="h-16 w-24 shrink-0 cursor-pointer rounded-lg p-1"
+ />
+ <div className="min-w-0 flex-1">
+ <Label htmlFor={`custom-theme-hex-${selectedSlot}`} className="block">
+ <span className="font-mono text-base">{selectedSlot}</span>
+ <span className="mt-0.5 block truncate text-xs font-normal text-muted-foreground">
+ {BASE16_SLOT_ROLES[selectedSlot]}
+ </span>
+ </Label>
+ </div>
+ <div className="relative flex shrink-0 items-center gap-2">
+ <Input
+ id={`custom-theme-hex-${selectedSlot}`}
+ value={value}
+ spellCheck={false}
+ aria-label={hexLabel(selectedSlot)}
+ aria-invalid={!valid}
+ aria-describedby={!valid ? `custom-theme-hex-error-${selectedSlot}` : undefined}
+ onChange={(event) => onPick(selectedSlot, event.target.value)}
+ onBlur={(event) => {
+ onSlotFocus(null);
+ commit(selectedSlot, event.target.value);
+ }}
+ onKeyDown={(event) => {
+ if (event.key === 'Enter') {
+ commit(selectedSlot, (event.target as HTMLInputElement).value);
+ }
+ }}
+ {...spotlight}
+ className="w-28 font-mono uppercase"
+ />
+ <Button type="button" variant="outline" onClick={onCopy} disabled={!valid}>
+ {copyLabel}
+ </Button>
+ {!valid ? (
+ <FieldError
+ id={`custom-theme-hex-error-${selectedSlot}`}
+ className="absolute top-full right-0 mt-1 whitespace-nowrap text-xs leading-tight"
+ data-testid={`custom-theme-hex-error-${selectedSlot}`}
+ >
+ {invalidHint}
+ </FieldError>
+ ) : null}
+ </div>
</div>
</div>
);
@@ -365,7 +625,7 @@ function describeParseError(error: Base16ParseError, t: Translate): string {
? t`That doesn’t parse as YAML or JSON.`
: t`That doesn’t parse as YAML or JSON — check line ${error.line}.`;
case 'not-a-scheme':
- return t`That parsed, but it isn’t a base16 scheme.`;
+ return t`That parsed, but it isn’t a base16 theme.`;
case 'missing-slots':
return t`Missing ${error.slots.length} slot(s): ${error.slots.join(', ')}`;
case 'bad-hex':
diff --git a/packages/app/src/components/settings/SavedThemesTiles.dom.test.tsx b/packages/app/src/components/settings/SavedThemesTiles.dom.test.tsx
new file mode 100644
index 000000000..df0607685
--- /dev/null
+++ b/packages/app/src/components/settings/SavedThemesTiles.dom.test.tsx
@@ -0,0 +1,612 @@
+import {
+ BASE16_SLOTS,
+ ProblemDetailsSchema,
+ SavedThemeDeleteSuccessSchema,
+ SavedThemeSaveSuccessSchema,
+ SavedThemesListSuccessSchema,
+} from '@inkeep/open-knowledge-core';
+import { act, cleanup, fireEvent, render, screen, waitFor, within } from '@testing-library/react';
+import userEvent from '@testing-library/user-event';
+import { type ReactNode, useState } from 'react';
+import * as actualSonner from 'sonner';
+import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';
+import { COLOR_THEMES, type ColorThemeSelectionInput } from '@/lib/color-themes';
+import { SavedThemesProvider } from '@/lib/saved-themes-client';
+import { renderLinguiTemplate } from '@/test-utils/lingui-mock';
+
+vi.doMock('@lingui/react/macro', () => ({
+ Trans: ({ children }: { children: ReactNode }) => <>{children}</>,
+ useLingui: () => ({ t: renderLinguiTemplate }),
+}));
+
+const toastMessage = vi.fn((_message: string, _options?: unknown) => 'theme-delete');
+const toastError = vi.fn((_message: string) => 'theme-delete-error');
+const toastSuccess = vi.fn((_message: string) => 'theme-restore');
+const toastDismiss = vi.fn((_id?: string | number) => {});
+vi.doMock('sonner', () => ({
+ ...actualSonner,
+ toast: Object.assign(toastMessage, {
+ error: toastError,
+ success: toastSuccess,
+ dismiss: toastDismiss,
+ }),
+}));
+
+type FetchFn = typeof globalThis.fetch;
+let originalFetch: FetchFn;
+
+beforeEach(() => {
+ originalFetch = globalThis.fetch;
+ toastMessage.mockClear();
+ toastError.mockClear();
+ toastSuccess.mockClear();
+ toastDismiss.mockClear();
+});
+afterEach(() => {
+ globalThis.fetch = originalFetch;
+ cleanup();
+});
+
+function palette(): Record<string, string> {
+ return Object.fromEntries(
+ BASE16_SLOTS.map((slot, i) => {
+ const byte = (i * 16).toString(16).padStart(2, '0');
+ return [slot, `#${byte}${byte}${byte}`];
+ }),
+ );
+}
+
+function listBody(themes: unknown[], truncated = false): unknown {
+ return SavedThemesListSuccessSchema.parse({ themes, truncated });
+}
+
+function stubFetch(body: unknown): void {
+ globalThis.fetch = async () =>
+ new Response(JSON.stringify(body), {
+ status: 200,
+ headers: { 'content-type': 'application/json' },
+ });
+}
+
+const DEFAULTS: ColorThemeSelectionInput = {
+ colorThemeLight: 'default',
+ colorThemeDark: 'default',
+};
+
+async function renderTiles() {
+ const { SavedThemesTiles } = await import('./SavedThemesTiles');
+ return render(
+ <SavedThemesProvider>
+ <SavedThemesTiles appearance={DEFAULTS} onAssign={() => {}} aria-label="Color theme" />
+ </SavedThemesProvider>,
+ );
+}
+
+describe('SavedThemesTiles', () => {
+ test('shows a saved palette alongside the built-ins', async () => {
+ stubFetch(
+ listBody([
+ {
+ ok: true,
+ id: 'saved-ocean',
+ filename: 'ocean.yaml',
+ scheme: { name: 'Ocean', variant: 'dark', palette: palette() },
+ },
+ ]),
+ );
+
+ await renderTiles();
+
+ expect(await screen.findByText('Ocean')).toBeDefined();
+ expect(screen.getByText('Dracula')).toBeDefined();
+ expect(screen.getAllByRole('group')).toHaveLength(COLOR_THEMES.length + 1);
+ });
+
+ test('assigns a saved palette to light and dark with the same tile controls as a built-in', async () => {
+ stubFetch(
+ listBody([
+ {
+ ok: true,
+ id: 'saved-ocean',
+ filename: 'ocean.yaml',
+ scheme: { name: 'Ocean', variant: 'dark', palette: palette() },
+ },
+ ]),
+ );
+ const { SavedThemesTiles } = await import('./SavedThemesTiles');
+ function Harness() {
+ const [appearance, setAppearance] = useState(DEFAULTS);
+ return (
+ <SavedThemesTiles
+ appearance={appearance}
+ onAssign={(slot, id) =>
+ setAppearance((current) => ({
+ ...current,
+ [slot === 'light' ? 'colorThemeLight' : 'colorThemeDark']: id,
+ }))
+ }
+ aria-label="Color theme"
+ />
+ );
+ }
+
+ render(
+ <SavedThemesProvider>
+ <Harness />
+ </SavedThemesProvider>,
+ );
+ const tile = await screen.findByRole('group', { name: 'Ocean' });
+ const light = within(tile).getByRole('button', { name: 'Use Ocean as the light theme' });
+ const dark = within(tile).getByRole('button', { name: 'Use Ocean as the dark theme' });
+
+ fireEvent.click(light);
+ expect(light.getAttribute('data-state')).toBe('on');
+ fireEvent.click(dark);
+ expect(light.getAttribute('data-state')).toBe('on');
+ expect(dark.getAttribute('data-state')).toBe('on');
+ });
+
+ test('keeps a malformed saved file visible as an unusable tile with its reason', async () => {
+ stubFetch(
+ listBody([{ ok: false, filename: 'broken.yaml', id: 'saved-broken', code: 'missing-slots' }]),
+ );
+
+ await renderTiles();
+
+ const tile = await screen.findByRole('group', { name: 'broken.yaml' });
+ expect(within(tile).getByText('Missing palette colors')).toBeDefined();
+ expect(
+ within(tile).getByText('This theme can’t be used until the file is fixed.'),
+ ).toBeDefined();
+ expect(within(tile).queryByRole('button')).toBeNull();
+ });
+
+ test('localizes bounded-read warning codes instead of exposing machine values', async () => {
+ stubFetch(
+ listBody([
+ {
+ ok: false,
+ filename: 'enormous.yaml',
+ id: 'saved-enormous',
+ code: 'file-too-large',
+ },
+ ]),
+ );
+
+ await renderTiles();
+
+ const tile = await screen.findByRole('group', { name: 'enormous.yaml' });
+ expect(within(tile).getByText('This theme file is too large')).toBeDefined();
+ expect(tile.textContent).not.toContain('file-too-large');
+ });
+
+ test('scans again when the settings surface closes and reopens', async () => {
+ stubFetch(listBody([]));
+ const first = await renderTiles();
+ expect(await screen.findByText('Dracula')).toBeDefined();
+ expect(screen.queryByText('New file')).toBeNull();
+ first.unmount();
+
+ stubFetch(
+ listBody([
+ {
+ ok: true,
+ id: 'saved-new-file',
+ filename: 'new-file.yaml',
+ scheme: { name: 'New file', variant: 'light', palette: palette() },
+ },
+ ]),
+ );
+ await renderTiles();
+
+ expect(await screen.findByText('New file')).toBeDefined();
+ });
+
+ test('an empty store shows the built-ins exactly as today, with no empty-state artifact', async () => {
+ stubFetch(listBody([]));
+
+ await renderTiles();
+
+ expect(await screen.findByText('Dracula')).toBeDefined();
+ expect(screen.getAllByRole('group')).toHaveLength(COLOR_THEMES.length);
+ expect(screen.getByRole('button', { name: 'Create new theme' })).toBeDefined();
+ });
+
+ test('warns when the saved-theme scan returns an incomplete list', async () => {
+ let resolveScan: ((response: Response) => void) | undefined;
+ globalThis.fetch = async () =>
+ new Promise<Response>((resolve) => {
+ resolveScan = resolve;
+ });
+
+ await renderTiles();
+ const status = screen.getByRole('status');
+ expect(status.textContent).toBe('');
+
+ await waitFor(() => expect(resolveScan).toBeDefined());
+ await act(async () => {
+ resolveScan?.(Response.json(listBody([], true)));
+ });
+
+ await waitFor(() =>
+ expect(status.textContent).toBe(
+ 'Some saved themes aren’t shown because the theme folder exceeds the scan limit.',
+ ),
+ );
+ });
+
+ test('shows a localized bounded retry when the authoritative list fails', async () => {
+ let available = false;
+ globalThis.fetch = async () =>
+ available
+ ? Response.json(
+ listBody([
+ {
+ ok: true,
+ id: 'saved-ocean',
+ filename: 'ocean.yaml',
+ scheme: { name: 'Ocean', variant: 'dark', palette: palette() },
+ },
+ ]),
+ )
+ : Response.json({ error: 'offline' }, { status: 503 });
+
+ await renderTiles();
+
+ const alert = await screen.findByRole('alert');
+ expect(alert.textContent).toContain('Saved themes couldn’t load.');
+ expect(screen.getByText('Dracula')).toBeDefined();
+
+ available = true;
+ fireEvent.click(within(alert).getByRole('button', { name: 'Try again' }));
+
+ expect(await screen.findByRole('group', { name: 'Ocean' })).toBeDefined();
+ await waitFor(() => expect(screen.queryByRole('alert')).toBeNull());
+ });
+
+ test('deletes an assigned saved theme without confirmation and restores its palette from undo', async () => {
+ const oceanScheme = { name: 'Ocean', variant: 'dark' as const, palette: palette() };
+ const deletedScheme = {
+ ...oceanScheme,
+ author: 'Exact disk author',
+ palette: { ...oceanScheme.palette, base00: '#123456' },
+ };
+ let exists = true;
+ const requests: Array<{ path: string; init?: RequestInit }> = [];
+ globalThis.fetch = async (input, init) => {
+ const path = String(input);
+ requests.push({ path, init });
+ if (init?.method === 'DELETE') {
+ exists = false;
+ return Response.json(
+ SavedThemeDeleteSuccessSchema.parse({
+ existed: true,
+ filename: 'ocean.yml',
+ scheme: deletedScheme,
+ }),
+ );
+ }
+ if (init?.method === 'POST') {
+ exists = true;
+ return Response.json(
+ SavedThemeSaveSuccessSchema.parse({ id: 'saved-ocean', filename: 'ocean.yml' }),
+ { status: 201 },
+ );
+ }
+ return Response.json(
+ listBody(
+ exists
+ ? [
+ {
+ ok: true,
+ id: 'saved-ocean',
+ filename: 'ocean.yml',
+ scheme: oceanScheme,
+ },
+ ]
+ : [],
+ ),
+ );
+ };
+ const confirm = vi.spyOn(window, 'confirm');
+ const assigned: ColorThemeSelectionInput = {
+ colorThemeLight: 'saved-ocean',
+ colorThemeDark: 'saved-ocean',
+ };
+ const { SavedThemesTiles } = await import('./SavedThemesTiles');
+ render(
+ <SavedThemesProvider>
+ <SavedThemesTiles appearance={assigned} onAssign={() => {}} aria-label="Color theme" />
+ </SavedThemesProvider>,
+ );
+
+ const tile = await screen.findByRole('group', { name: 'Ocean' });
+ fireEvent.click(within(tile).getByRole('button', { name: 'Delete Ocean' }));
+
+ await waitFor(() => expect(screen.queryByRole('group', { name: 'Ocean' })).toBeNull());
+ expect(document.activeElement).toBe(
+ screen.getByRole('button', { name: 'Use Solarized for the active light mode' }),
+ );
+ expect(confirm).not.toHaveBeenCalled();
+ expect(screen.queryByRole('alert')).toBeNull();
+ expect(
+ requests.some(
+ ({ path, init }) => path.endsWith('?id=saved-ocean') && init?.method === 'DELETE',
+ ),
+ ).toBe(true);
+ expect(toastMessage).toHaveBeenCalledTimes(1);
+ const options = toastMessage.mock.calls[0]?.[1] as
+ | { duration?: number; action?: { label: string; onClick: () => Promise<void> } }
+ | undefined;
+ expect(options?.duration).toBeGreaterThanOrEqual(10_000);
+ expect(options?.action?.label).toBe('Undo');
+
+ fireEvent.click(screen.getByRole('button', { name: 'Use Dracula as the light theme' }));
+ expect(toastDismiss).not.toHaveBeenCalled();
+
+ await act(async () => {
+ await options?.action?.onClick();
+ });
+
+ const restored = await screen.findByRole('group', { name: 'Ocean' });
+ expect(restored).toBeDefined();
+ const restoreRequest = requests.find(({ init }) => init?.method === 'POST');
+ expect(JSON.parse(String(restoreRequest?.init?.body))).toEqual({
+ name: 'Ocean',
+ stem: 'ocean',
+ scheme: deletedScheme,
+ extension: '.yml',
+ });
+ expect(toastSuccess).toHaveBeenCalledWith('Restored Ocean.');
+ expect(toastError).not.toHaveBeenCalled();
+ confirm.mockRestore();
+ });
+
+ test('keeps the theme visible and shows an error toast when deletion fails', async () => {
+ const oceanScheme = { name: 'Ocean', variant: 'dark' as const, palette: palette() };
+ globalThis.fetch = async (_input, init) => {
+ if (init?.method === 'DELETE') {
+ return Response.json({ error: 'offline' }, { status: 503 });
+ }
+ return Response.json(
+ listBody([
+ {
+ ok: true,
+ id: 'saved-ocean',
+ filename: 'ocean.yaml',
+ scheme: oceanScheme,
+ },
+ ]),
+ );
+ };
+
+ await renderTiles();
+
+ const tile = await screen.findByRole('group', { name: 'Ocean' });
+ fireEvent.click(within(tile).getByRole('button', { name: 'Delete Ocean' }));
+
+ await waitFor(() =>
+ expect(toastError).toHaveBeenCalledWith('Couldn’t delete Ocean. Try again.'),
+ );
+ expect(screen.getByRole('group', { name: 'Ocean' })).toBeDefined();
+ expect(toastMessage).not.toHaveBeenCalled();
+ });
+
+ test.each([
+ {
+ failure: 'name conflict',
+ status: 409,
+ body: ProblemDetailsSchema.parse({
+ type: 'urn:ok:error:theme-name-taken',
+ title: 'A saved theme with that name already exists.',
+ status: 409,
+ }),
+ message: 'Couldn’t restore Ocean. That name is already in use.',
+ },
+ {
+ failure: 'unexpected server error',
+ status: 503,
+ body: { error: 'offline' },
+ message: 'Couldn’t restore Ocean. Try again.',
+ },
+ ])('keeps a deleted theme removed when undo restore hits a $failure', async (failure) => {
+ const oceanScheme = { name: 'Ocean', variant: 'dark' as const, palette: palette() };
+ let exists = true;
+ globalThis.fetch = async (_input, init) => {
+ if (init?.method === 'DELETE') {
+ exists = false;
+ return Response.json(
+ SavedThemeDeleteSuccessSchema.parse({
+ existed: true,
+ filename: 'ocean.yaml',
+ scheme: oceanScheme,
+ }),
+ );
+ }
+ if (init?.method === 'POST') {
+ return Response.json(failure.body, { status: failure.status });
+ }
+ return Response.json(
+ listBody(
+ exists
+ ? [
+ {
+ ok: true,
+ id: 'saved-ocean',
+ filename: 'ocean.yaml',
+ scheme: oceanScheme,
+ },
+ ]
+ : [],
+ ),
+ );
+ };
+
+ await renderTiles();
+
+ const tile = await screen.findByRole('group', { name: 'Ocean' });
+ fireEvent.click(within(tile).getByRole('button', { name: 'Delete Ocean' }));
+ await waitFor(() => expect(toastMessage).toHaveBeenCalledTimes(1));
+ const options = toastMessage.mock.calls[0]?.[1] as
+ | { action?: { onClick: () => Promise<void> } }
+ | undefined;
+
+ await act(async () => {
+ await options?.action?.onClick();
+ });
+
+ await waitFor(() => expect(toastError).toHaveBeenCalledWith(failure.message));
+ expect(screen.queryByRole('group', { name: 'Ocean' })).toBeNull();
+ expect(toastSuccess).not.toHaveBeenCalled();
+ });
+
+ test('renders an inline error and focuses the name field when create is submitted empty', async () => {
+ const requestMethods: string[] = [];
+ globalThis.fetch = async (_input, init) => {
+ requestMethods.push(init?.method ?? 'GET');
+ return Response.json(listBody([]));
+ };
+ await renderTiles();
+ const user = userEvent.setup();
+
+ await user.click(screen.getByRole('button', { name: 'Create new theme' }));
+ const dialog = screen.getByRole('dialog', { name: 'Name your theme' });
+ const name = within(dialog).getByLabelText('Theme name');
+ await user.click(within(dialog).getByRole('button', { name: 'Create & edit' }));
+
+ expect(within(dialog).getByText('Enter a name for this theme.')).toBeDefined();
+ expect(name.getAttribute('aria-invalid')).toBe('true');
+ expect(document.activeElement).toBe(name);
+ expect(requestMethods).not.toContain('POST');
+ });
+
+ test('keeps the create dialog open and renders the name conflict returned by the server', async () => {
+ globalThis.fetch = async (_input, init) => {
+ if (init?.method === 'POST') {
+ return Response.json(
+ ProblemDetailsSchema.parse({
+ type: 'urn:ok:error:theme-name-taken',
+ title: 'A saved theme with that name already exists.',
+ status: 409,
+ }),
+ { status: 409 },
+ );
+ }
+ return Response.json(listBody([]));
+ };
+ await renderTiles();
+ const user = userEvent.setup();
+
+ await user.click(screen.getByRole('button', { name: 'Create new theme' }));
+ const dialog = screen.getByRole('dialog', { name: 'Name your theme' });
+ const name = within(dialog).getByLabelText('Theme name');
+ await user.type(name, 'Ocean');
+ await user.click(within(dialog).getByRole('button', { name: 'Create & edit' }));
+
+ expect(await within(dialog).findByText('A saved theme already uses this name.')).toBeDefined();
+ expect((name as HTMLInputElement).value).toBe('Ocean');
+ expect(name.getAttribute('aria-invalid')).toBe('true');
+ expect(document.activeElement).toBe(name);
+ });
+
+ test('keeps the create dialog open and renders an invalid name returned by the server', async () => {
+ globalThis.fetch = async (_input, init) => {
+ if (init?.method === 'POST') {
+ return Response.json(
+ ProblemDetailsSchema.parse({
+ type: 'urn:ok:error:theme-name-invalid',
+ title: 'The saved theme name is invalid.',
+ status: 400,
+ detail: 'invalid-chars',
+ }),
+ { status: 400 },
+ );
+ }
+ return Response.json(listBody([]));
+ };
+ await renderTiles();
+ const user = userEvent.setup();
+
+ await user.click(screen.getByRole('button', { name: 'Create new theme' }));
+ const dialog = screen.getByRole('dialog', { name: 'Name your theme' });
+ const name = within(dialog).getByLabelText('Theme name');
+ await user.type(name, 'Ocean');
+ await user.click(within(dialog).getByRole('button', { name: 'Create & edit' }));
+
+ expect(await within(dialog).findByText('Enter a valid theme name.')).toBeDefined();
+ expect((name as HTMLInputElement).value).toBe('Ocean');
+ expect(name.getAttribute('aria-invalid')).toBe('true');
+ expect(document.activeElement).toBe(name);
+ });
+
+ test('creates a named theme from the active palette and opens it for editing', async () => {
+ const dracula = COLOR_THEMES.find((theme) => theme.id === 'dracula');
+ if (!dracula?.scheme) throw new Error('Dracula must provide a base16 scheme.');
+ let savedScheme: { name: string; variant: 'dark' | 'light'; palette: Record<string, string> };
+ const assigned = vi.fn();
+ globalThis.fetch = async (input, init) => {
+ const path = String(input);
+ if (path === '/api/saved-theme' && init?.method === 'POST') {
+ const request = JSON.parse(String(init.body)) as {
+ name: string;
+ scheme: typeof savedScheme;
+ };
+ savedScheme = request.scheme;
+ expect(request.name).toBe("John's theme");
+ return Response.json(
+ SavedThemeSaveSuccessSchema.parse({
+ id: 'saved-johns-theme',
+ filename: 'johns-theme.yaml',
+ }),
+ { status: 201 },
+ );
+ }
+ return Response.json(
+ listBody(
+ savedScheme
+ ? [
+ {
+ ok: true,
+ id: 'saved-johns-theme',
+ filename: 'johns-theme.yaml',
+ scheme: savedScheme,
+ },
+ ]
+ : [],
+ ),
+ );
+ };
+ const { SavedThemesTiles } = await import('./SavedThemesTiles');
+ render(
+ <SavedThemesProvider>
+ <SavedThemesTiles
+ appearance={{ colorThemeLight: 'dracula', colorThemeDark: 'default' }}
+ onAssign={assigned}
+ slotMode="light"
+ aria-label="Color theme"
+ />
+ </SavedThemesProvider>,
+ );
+ const user = userEvent.setup();
+
+ await user.click(screen.getByRole('button', { name: 'Create new theme' }));
+ const dialog = screen.getByRole('dialog', { name: 'Name your theme' });
+ const name = within(dialog).getByLabelText('Theme name');
+ await user.type(name, "John's theme");
+ expect(within(dialog).getByText('ID: johns-theme')).toBeDefined();
+ await user.click(within(dialog).getByRole('button', { name: 'Create & edit' }));
+
+ expect(await screen.findByRole('button', { name: "Hide John's theme editor" })).toBeDefined();
+ expect(savedScheme).toMatchObject({
+ name: "John's theme",
+ variant: dracula.scheme.variant,
+ palette: dracula.scheme.palette,
+ });
+ expect(assigned).toHaveBeenCalledWith(
+ 'light',
+ 'saved-johns-theme',
+ { light: 'dracula', dark: 'default' },
+ expect.arrayContaining([expect.objectContaining({ id: 'saved-johns-theme' })]),
+ );
+ });
+});
diff --git a/packages/app/src/components/settings/SavedThemesTiles.tsx b/packages/app/src/components/settings/SavedThemesTiles.tsx
new file mode 100644
index 000000000..e065dd75d
--- /dev/null
+++ b/packages/app/src/components/settings/SavedThemesTiles.tsx
@@ -0,0 +1,339 @@
+import { deriveSavedThemeName, parseSavedThemeId } from '@inkeep/open-knowledge-core';
+import { useLingui } from '@lingui/react/macro';
+import { TriangleAlert } from 'lucide-react';
+import { type SyntheticEvent, useEffect, useRef, useState } from 'react';
+import { toast } from 'sonner';
+import { Button } from '@/components/ui/button';
+import {
+ Dialog,
+ DialogBody,
+ DialogContent,
+ DialogDescription,
+ DialogFooter,
+ DialogHeader,
+ DialogTitle,
+} from '@/components/ui/dialog';
+import { Field, FieldDescription, FieldError, FieldLabel } from '@/components/ui/field';
+import { Input } from '@/components/ui/input';
+import {
+ base16ToTokens,
+ type ColorTheme,
+ type ColorThemeSelection,
+ type ColorThemeSelectionInput,
+ resolveColorThemeSelection,
+ resolveCustomScheme,
+} from '@/lib/color-themes';
+import { useSavedThemes } from '@/lib/saved-themes-client';
+import { ColorThemePicker, type ColorThemePickerProps } from './ColorThemePicker';
+
+interface SavedThemesTilesProps
+ extends Omit<ColorThemePickerProps, 'themes' | 'unavailableThemes' | 'selection' | 'onAssign'> {
+ appearance: ColorThemeSelectionInput | undefined;
+ onAssign: (
+ slot: 'light' | 'dark',
+ id: string,
+ selection: ColorThemeSelection,
+ themes: readonly ColorTheme[],
+ ) => void;
+}
+
+const DELETE_UNDO_DURATION_MS = 12_000;
+
+export function SavedThemesTiles({ appearance, onAssign, ...pickerProps }: SavedThemesTilesProps) {
+ const { t } = useLingui();
+ const {
+ themes,
+ warnings,
+ truncated,
+ loadError,
+ refresh,
+ deleteTheme,
+ restoreTheme: restoreSavedTheme,
+ editingThemeId,
+ themeEditorOpen,
+ selectThemeToEdit,
+ } = useSavedThemes();
+ const [createOpen, setCreateOpen] = useState(false);
+ const [createName, setCreateName] = useState('');
+ const [createError, setCreateError] = useState<string | null>(null);
+ const [isCreating, setIsCreating] = useState(false);
+ const createNameRef = useRef<HTMLInputElement>(null);
+ useEffect(() => {
+ void refresh();
+ }, [refresh]);
+ const selection = resolveColorThemeSelection(appearance, themes);
+ const createIdentity = deriveSavedThemeName(createName);
+ const galleryThemes = themes.filter((theme) => theme.id !== 'custom');
+ const deletableThemes = themes.flatMap((theme) => {
+ const parsed = parseSavedThemeId(theme.id);
+ if (!parsed.ok || !theme.scheme) return [];
+ return [{ id: theme.id, stem: parsed.stem, label: theme.label, scheme: theme.scheme }];
+ });
+
+ async function restoreTheme(theme: (typeof deletableThemes)[number] & { filename: string }) {
+ const result = await restoreSavedTheme({
+ id: theme.id,
+ name: theme.scheme.name,
+ stem: theme.stem,
+ scheme: { ...theme.scheme, palette: { ...theme.scheme.palette } },
+ extension: theme.filename.endsWith('.yml') ? '.yml' : '.yaml',
+ });
+ if (result.ok) {
+ await refresh();
+ toast.success(t`Restored ${theme.label}.`);
+ return;
+ }
+ if (result.reason === 'name-taken') {
+ toast.error(t`Couldn’t restore ${theme.label}. That name is already in use.`);
+ return;
+ }
+ toast.error(t`Couldn’t restore ${theme.label}. Try again.`);
+ }
+
+ async function removeTheme(id: string): Promise<boolean> {
+ const theme = deletableThemes.find((candidate) => candidate.id === id);
+ if (!theme) {
+ toast.error(t`Couldn’t delete this theme. Refresh and try again.`);
+ return false;
+ }
+
+ const result = await deleteTheme(theme.id);
+ if (!result.ok) {
+ toast.error(t`Couldn’t delete ${theme.label}. Try again.`);
+ return false;
+ }
+
+ if (editingThemeId === theme.id) selectThemeToEdit(null);
+ await refresh();
+ if (!result.existed) {
+ toast(t`${theme.label} was already deleted.`);
+ return true;
+ }
+ const deletedTheme = {
+ ...theme,
+ filename: result.filename,
+ label: result.scheme.name,
+ scheme: result.scheme,
+ };
+ toast(t`Deleted ${deletedTheme.label}.`, {
+ duration: DELETE_UNDO_DURATION_MS,
+ action: {
+ label: t`Undo`,
+ onClick: () => restoreTheme(deletedTheme),
+ },
+ });
+ return true;
+ }
+
+ async function createTheme(event: SyntheticEvent<HTMLFormElement, SubmitEvent>) {
+ event.preventDefault();
+ if (isCreating) return;
+
+ const derived = deriveSavedThemeName(createName);
+ if (!derived.ok) {
+ setCreateError(t`Enter a name for this theme.`);
+ createNameRef.current?.focus();
+ return;
+ }
+
+ const activeSlot = pickerProps.slotMode ?? 'light';
+ const activeTheme = themes.find((theme) => theme.id === selection[activeSlot]);
+ const seed = activeTheme?.scheme ?? resolveCustomScheme(pickerProps.customSeed);
+ const scheme = {
+ name: derived.name,
+ variant: seed.variant,
+ palette: { ...seed.palette },
+ };
+
+ setCreateError(null);
+ setIsCreating(true);
+ const result = await restoreSavedTheme({
+ id: derived.id,
+ name: derived.name,
+ scheme,
+ });
+ if (!result.ok) {
+ setCreateError(
+ result.reason === 'name-taken'
+ ? t`A saved theme already uses this name.`
+ : result.reason === 'name-invalid'
+ ? t`Enter a valid theme name.`
+ : t`Couldn’t create this theme. Try again.`,
+ );
+ setIsCreating(false);
+ createNameRef.current?.focus();
+ return;
+ }
+
+ const createdTheme: ColorTheme = {
+ id: result.id,
+ label: scheme.name,
+ kind: scheme.variant,
+ scheme,
+ toTokens: () => base16ToTokens(scheme),
+ };
+ onAssign(activeSlot, result.id, selection, [...themes, createdTheme]);
+ await refresh();
+ setCreateName('');
+ setCreateOpen(false);
+ setIsCreating(false);
+ selectThemeToEdit(result.id);
+ }
+
+ const unavailableThemes = warnings.map((warning) => {
+ let problem: string;
+ switch (warning.code) {
+ case 'unparseable':
+ problem = t`Invalid YAML`;
+ break;
+ case 'not-a-scheme':
+ problem = t`Not a base16 theme`;
+ break;
+ case 'missing-slots':
+ problem = t`Missing palette colors`;
+ break;
+ case 'bad-hex':
+ problem = t`Invalid color value`;
+ break;
+ case 'empty':
+ problem = t`Missing theme name`;
+ break;
+ case 'too-long':
+ problem = t`Theme name is too long`;
+ break;
+ case 'invalid-chars':
+ problem = t`Theme name has unsupported characters`;
+ break;
+ case 'unsupported-extension-case':
+ problem = t`Use a lowercase .yaml or .yml extension`;
+ break;
+ case 'duplicate-identity':
+ problem = t`Multiple files use this theme name`;
+ break;
+ case 'symlink':
+ problem = t`Linked theme files aren’t supported`;
+ break;
+ case 'not-regular-file':
+ problem = t`This isn’t a regular theme file`;
+ break;
+ case 'file-too-large':
+ problem = t`This theme file is too large`;
+ break;
+ case 'read-failed':
+ problem = t`This theme file couldn’t be read`;
+ break;
+ default:
+ problem = t`Couldn’t read this theme (${warning.code})`;
+ }
+ return {
+ key: warning.filename,
+ label: warning.filename,
+ problem,
+ detail: warning.conflictingFilenames
+ ? t`Conflicting files: ${warning.conflictingFilenames.join(', ')}.`
+ : t`This theme can’t be used until the file is fixed.`,
+ };
+ });
+ return (
+ <div className="flex w-full min-w-0 flex-col gap-2">
+ {loadError ? (
+ <div
+ role="alert"
+ className="flex items-center justify-between gap-2 rounded-md border border-destructive/30 bg-destructive/5 px-3 py-2 text-sm text-foreground"
+ >
+ <span>{t`Saved themes couldn’t load. The last available theme list is still shown.`}</span>
+ <Button type="button" variant="outline" size="xs" onClick={() => void refresh()}>
+ {t`Try again`}
+ </Button>
+ </div>
+ ) : null}
+ <div role="status">
+ {truncated ? (
+ <div className="flex items-start gap-2 rounded-md border border-amber-500/30 bg-amber-500/5 px-3 py-2 text-sm text-foreground">
+ <TriangleAlert aria-hidden="true" className="mt-0.5 size-4 shrink-0 text-amber-600" />
+ <span>{t`Some saved themes aren’t shown because the theme folder exceeds the scan limit.`}</span>
+ </div>
+ ) : null}
+ </div>
+ <ColorThemePicker
+ {...pickerProps}
+ selection={selection}
+ themes={galleryThemes}
+ unavailableThemes={unavailableThemes}
+ editControl={{
+ themeIds: themes
+ .filter((theme) => theme.id.startsWith('saved-'))
+ .map((theme) => theme.id),
+ selectedId: themeEditorOpen ? editingThemeId : null,
+ onSelect: selectThemeToEdit,
+ }}
+ deleteControl={{
+ themeIds: deletableThemes.map((theme) => theme.id),
+ onDelete: removeTheme,
+ }}
+ createControl={{ onCreate: () => setCreateOpen(true) }}
+ onAssign={(slot, id) => onAssign(slot, id, selection, themes)}
+ />
+ <Dialog
+ open={createOpen}
+ onOpenChange={(open) => {
+ if (!isCreating) setCreateOpen(open);
+ }}
+ >
+ <DialogContent>
+ <DialogHeader className="gap-2">
+ <DialogTitle>{t`Name your theme`}</DialogTitle>
+ <DialogDescription>{t`Give it a name before editing its colors.`}</DialogDescription>
+ </DialogHeader>
+ <DialogBody>
+ <form id="create-saved-theme-form" noValidate onSubmit={createTheme}>
+ <Field data-invalid={createError !== null}>
+ <FieldLabel htmlFor="create-saved-theme-name">{t`Theme name`}</FieldLabel>
+ <Input
+ ref={createNameRef}
+ id="create-saved-theme-name"
+ value={createName}
+ autoFocus
+ autoComplete="off"
+ required
+ readOnly={isCreating}
+ aria-invalid={createError !== null}
+ aria-describedby={
+ createError
+ ? 'create-saved-theme-help create-saved-theme-error'
+ : 'create-saved-theme-help'
+ }
+ onChange={(event) => {
+ setCreateName(event.target.value);
+ if (createError) setCreateError(null);
+ }}
+ />
+ <FieldDescription id="create-saved-theme-help" className="font-mono">
+ {createIdentity.ok
+ ? t`ID: ${createIdentity.stem}`
+ : t`We’ll create a safe theme ID from this name.`}
+ </FieldDescription>
+ {createError ? (
+ <FieldError id="create-saved-theme-error">{createError}</FieldError>
+ ) : null}
+ </Field>
+ </form>
+ </DialogBody>
+ <DialogFooter>
+ <Button
+ type="button"
+ variant="outline"
+ disabled={isCreating}
+ onClick={() => setCreateOpen(false)}
+ >
+ {t`Cancel`}
+ </Button>
+ <Button type="submit" form="create-saved-theme-form" disabled={isCreating}>
+ {isCreating ? t`Creating…` : t`Create & edit`}
+ </Button>
+ </DialogFooter>
+ </DialogContent>
+ </Dialog>
+ </div>
+ );
+}
diff --git a/packages/app/src/components/settings/SettingsDialogBody.dom.test.tsx b/packages/app/src/components/settings/SettingsDialogBody.dom.test.tsx
index e619a281c..ed7b61f70 100644
--- a/packages/app/src/components/settings/SettingsDialogBody.dom.test.tsx
+++ b/packages/app/src/components/settings/SettingsDialogBody.dom.test.tsx
@@ -1,4 +1,5 @@
import {
+ BASE16_SLOTS,
CONFIG_DOC_NAME_PROJECT,
CONFIG_DOC_NAME_USER,
type Config,
@@ -7,8 +8,9 @@ import {
ConfigSchema,
LAYOUT_DEFERRED_LOCALES,
PICKER_LOCALES,
+ SavedThemesListSuccessSchema,
} from '@inkeep/open-knowledge-core';
-import { act, cleanup, render, screen, waitFor, within } from '@testing-library/react';
+import { act, cleanup, fireEvent, render, screen, waitFor, within } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { ThemeProvider, useTheme } from 'next-themes';
import type { ReactNode } from 'react';
@@ -16,9 +18,12 @@ import { afterEach, describe, expect, test } from 'vitest';
import { TooltipProvider } from '@/components/ui/tooltip';
import { ConfigContext, type ConfigContextValue } from '@/lib/config-context';
import { emitConfigValidationRejected } from '@/lib/config-validation-events';
+import { SavedThemesProvider } from '@/lib/saved-themes-client';
import { expectVisualClassTokens } from '@/test-utils/visual-contract';
import { SettingsDialogBody } from './SettingsDialogBody';
+const originalFetch = globalThis.fetch;
+
/** Drop every `null` leaf — the patch spelling for "delete this key". */
function stripNulls(value: unknown): unknown {
if (value === null || typeof value !== 'object' || Array.isArray(value)) return value;
@@ -544,23 +549,28 @@ function renderThemePluginWithTheme(binding: ConfigBinding) {
enableSystem
storageKey={`ok-theme-v1-test-${themeStorageKeySeq}`}
>
- <SettingsContextProvider userBinding={binding}>
- <TooltipProvider>
- <SettingsDialogBody
- activeId="plugin:theme"
- userBinding={binding}
- okignoreBinding={null}
- okignoreSynced={false}
- />
- <ThemeProbe />
- </TooltipProvider>
- </SettingsContextProvider>
+ <SavedThemesProvider>
+ <SettingsContextProvider userBinding={binding}>
+ <TooltipProvider>
+ <SettingsDialogBody
+ activeId="plugin:theme"
+ userBinding={binding}
+ okignoreBinding={null}
+ okignoreSynced={false}
+ />
+ <ThemeProbe />
+ </TooltipProvider>
+ </SettingsContextProvider>
+ </SavedThemesProvider>
</ThemeProvider>,
);
}
describe('SettingsDialogBody color-palette picker — optimistic mode flip', () => {
afterEach(() => {
+ globalThis.fetch = originalFetch;
+ document.documentElement.removeAttribute('data-color-theme');
+ document.getElementById('ok-saved-theme')?.remove();
cleanup();
});
@@ -587,6 +597,223 @@ describe('SettingsDialogBody color-palette picker — optimistic mode flip', ()
});
});
+ test('assigning a saved palette paints its scheme and persists the selected pair', async () => {
+ const palette = Object.fromEntries(
+ BASE16_SLOTS.map((slot, index) => {
+ const byte = (index * 16).toString(16).padStart(2, '0');
+ return [slot, `#${byte}${byte}${byte}`];
+ }),
+ );
+ globalThis.fetch = async () =>
+ new Response(
+ JSON.stringify(
+ SavedThemesListSuccessSchema.parse({
+ themes: [
+ {
+ ok: true,
+ id: 'saved-ocean',
+ filename: 'ocean.yaml',
+ scheme: { name: 'Ocean', variant: 'light', palette },
+ },
+ ],
+ truncated: false,
+ }),
+ ),
+ { status: 200, headers: { 'content-type': 'application/json' } },
+ );
+ const user = userEvent.setup();
+ const { binding, patches } = makeBinding();
+ renderThemePluginWithTheme(binding);
+
+ await user.click(await screen.findByLabelText('Use Ocean as the light theme'));
+
+ await waitFor(() => {
+ expect(document.documentElement.getAttribute('data-color-theme')).toBe('saved-ocean');
+ });
+ expect(document.getElementById('ok-saved-theme')?.textContent).toContain(
+ '--background: #000000;',
+ );
+ expect(patches).toEqual([
+ {
+ appearance: {
+ colorThemeLight: 'saved-ocean',
+ colorThemeDark: 'default',
+ colorTheme: null,
+ },
+ },
+ ]);
+ });
+
+ test('creates multiple saved themes without reloading settings', async () => {
+ const savedRequests: Array<{
+ name: string;
+ scheme: { name: string; variant: 'dark' | 'light'; palette: Record<string, string> };
+ }> = [];
+ globalThis.fetch = async (input, init) => {
+ const path = String(input);
+ if (path === '/api/saved-theme' && init?.method === 'POST') {
+ const savedRequest = JSON.parse(String(init.body)) as (typeof savedRequests)[number];
+ savedRequests.push(savedRequest);
+ return new Response(
+ JSON.stringify({
+ id: `saved-${savedRequest.name}`,
+ filename: `${savedRequest.name}.yaml`,
+ }),
+ {
+ status: 201,
+ headers: { 'content-type': 'application/json' },
+ },
+ );
+ }
+ if (path === '/api/saved-themes') {
+ return new Response(
+ JSON.stringify(
+ SavedThemesListSuccessSchema.parse({
+ themes: savedRequests.map((savedRequest) => ({
+ ok: true,
+ id: `saved-${savedRequest.name}`,
+ filename: `${savedRequest.name}.yaml`,
+ scheme: savedRequest.scheme,
+ })),
+ truncated: false,
+ }),
+ ),
+ { status: 200, headers: { 'content-type': 'application/json' } },
+ );
+ }
+ throw new Error(`Unexpected request: ${path}`);
+ };
+ const user = userEvent.setup();
+ const { binding } = makeBinding();
+ renderThemePluginWithTheme(binding);
+
+ expect(screen.queryByRole('heading', { name: /Editing/ })).toBeNull();
+ await user.click(screen.getByRole('button', { name: 'Create new theme' }));
+ await user.type(screen.getByLabelText('Theme name'), 'midnight');
+ await user.click(screen.getByRole('button', { name: 'Create & edit' }));
+
+ expect(await screen.findByLabelText('Use midnight as the dark theme')).toBeTruthy();
+ await user.click(screen.getByRole('button', { name: 'Done' }));
+ await user.click(screen.getByRole('button', { name: 'Create new theme' }));
+ await user.type(screen.getByLabelText('Theme name'), 'dawn');
+ await user.click(screen.getByRole('button', { name: 'Create & edit' }));
+
+ expect(await screen.findByLabelText('Use dawn as the dark theme')).toBeTruthy();
+ expect(savedRequests.map((request) => request.name)).toEqual(['midnight', 'dawn']);
+ expect(Object.keys(savedRequests[0]?.scheme ?? {}).sort()).toEqual([
+ 'name',
+ 'palette',
+ 'variant',
+ ]);
+ expect(Object.keys(savedRequests[0]?.scheme.palette ?? {})).toHaveLength(16);
+ });
+
+ test('editing saved palettes updates each file in place while the workbench remains unchanged', async () => {
+ const records = new Map(
+ ['ocean', 'forest'].map((stem, themeIndex) => {
+ const palette = Object.fromEntries(
+ BASE16_SLOTS.map((slot, slotIndex) => {
+ const byte = (themeIndex * 32 + slotIndex).toString(16).padStart(2, '0');
+ return [slot, `#${byte}${byte}${byte}`];
+ }),
+ );
+ return [
+ `saved-${stem}`,
+ {
+ ok: true as const,
+ id: `saved-${stem}`,
+ filename: `${stem}.yaml`,
+ scheme: {
+ name: stem === 'ocean' ? 'Ocean' : 'Forest',
+ variant: 'dark' as const,
+ palette,
+ },
+ },
+ ];
+ }),
+ );
+ const updates: Array<{ id: string; scheme: { palette: Record<string, string> } }> = [];
+ let creates = 0;
+ globalThis.fetch = async (input, init) => {
+ const path = String(input);
+ if (path === '/api/saved-theme' && init?.method === 'PUT') {
+ const request = JSON.parse(String(init.body)) as {
+ id: string;
+ scheme: { name: string; variant: 'dark' | 'light'; palette: Record<string, string> };
+ };
+ updates.push(request);
+ const current = records.get(request.id);
+ if (!current) return new Response('{}', { status: 404 });
+ records.set(request.id, { ...current, scheme: request.scheme });
+ return new Response(JSON.stringify({ id: request.id, filename: current.filename }), {
+ status: 200,
+ headers: { 'content-type': 'application/json' },
+ });
+ }
+ if (path === '/api/saved-theme' && init?.method === 'POST') {
+ creates += 1;
+ return new Response('{}', { status: 500 });
+ }
+ if (path === '/api/saved-themes') {
+ return new Response(
+ JSON.stringify(
+ SavedThemesListSuccessSchema.parse({
+ themes: [...records.values()],
+ truncated: false,
+ }),
+ ),
+ { status: 200, headers: { 'content-type': 'application/json' } },
+ );
+ }
+ throw new Error(`Unexpected request: ${path}`);
+ };
+ const user = userEvent.setup();
+ const { binding, patches } = makeBinding();
+ renderThemePluginWithTheme(binding);
+
+ await user.click(await screen.findByRole('button', { name: 'Edit Ocean' }));
+ expect(screen.getByRole('heading', { name: 'Editing Ocean' })).toBeDefined();
+ expect(screen.queryByRole('button', { name: 'Save theme' })).toBeNull();
+ await user.click(screen.getByRole('button', { name: 'Hide Ocean editor' }));
+ expect(screen.queryByRole('heading', { name: 'Editing Ocean' })).toBeNull();
+ await user.click(screen.getByRole('button', { name: 'Edit Ocean' }));
+ const oceanEditor = screen.getByRole('heading', { name: 'Editing Ocean' }).closest('section');
+ if (!oceanEditor) throw new Error('Saved-theme editor section was not rendered.');
+ const oceanBase00 = within(oceanEditor).getByLabelText('base00 hex value');
+ await user.click(oceanBase00);
+ fireEvent.change(oceanBase00, {
+ target: { value: '#123456' },
+ });
+
+ await user.click(screen.getByRole('button', { name: 'Edit Forest' }));
+ await waitFor(() => expect(updates).toHaveLength(1));
+ expect(updates[0]).toMatchObject({
+ id: 'saved-ocean',
+ scheme: { palette: { base00: '#123456' } },
+ });
+
+ const forestEditor = screen.getByRole('heading', { name: 'Editing Forest' }).closest('section');
+ if (!forestEditor) throw new Error('Second saved-theme editor section was not rendered.');
+ await user.click(within(forestEditor).getByRole('button', { name: /^Select base01 / }));
+ const forestBase01 = within(forestEditor).getByLabelText('base01 hex value');
+ await user.click(forestBase01);
+ fireEvent.change(forestBase01, {
+ target: { value: '#654321' },
+ });
+ await user.click(screen.getByRole('button', { name: 'Edit Ocean' }));
+
+ await waitFor(() => expect(updates).toHaveLength(2));
+ expect(updates[1]).toMatchObject({
+ id: 'saved-forest',
+ scheme: { palette: { base01: '#654321' } },
+ });
+ expect(patches).toEqual([]);
+ expect(creates).toBe(0);
+
+ await user.click(screen.getByRole('button', { name: 'Done' }));
+ expect(screen.queryByRole('heading', { name: 'Editing Ocean' })).toBeNull();
+ });
+
test('a cross-variant palette in the on-screen slot forces its own mode', async () => {
// Dracula is a dark-kind palette. Assigned to the LIGHT slot while the mode
// on screen is light, it still forces its own dark variant, so the flip has
diff --git a/packages/app/src/components/settings/ThemePluginSection.dom.test.tsx b/packages/app/src/components/settings/ThemePluginSection.dom.test.tsx
new file mode 100644
index 000000000..c6dc94963
--- /dev/null
+++ b/packages/app/src/components/settings/ThemePluginSection.dom.test.tsx
@@ -0,0 +1,56 @@
+import { cleanup, render, screen, waitFor } from '@testing-library/react';
+import type { ReactNode } from 'react';
+import { afterEach, describe, expect, test, vi } from 'vitest';
+import { type ColorTheme, DEFAULT_CUSTOM_SCHEME } from '@/lib/color-themes';
+import { renderLinguiTemplate } from '@/test-utils/lingui-mock';
+
+let themes: ColorTheme[] = [];
+let editingThemeId = 'custom';
+let themeEditorOpen = false;
+const selectThemeToEdit = vi.fn();
+
+vi.doMock('@lingui/react/macro', () => ({
+ Trans: ({ children }: { children: ReactNode }) => <>{children}</>,
+ msg: renderLinguiTemplate,
+ useLingui: () => ({ t: renderLinguiTemplate }),
+}));
+vi.doMock('@/lib/saved-themes-client', () => ({
+ useSavedThemes: () => ({ themes, editingThemeId, themeEditorOpen, selectThemeToEdit }),
+}));
+vi.doMock('./CustomThemeEditor', () => ({
+ CustomThemeEditor: () => <div data-testid="theme-editor" />,
+}));
+vi.doMock('./schema-section', () => ({
+ BoundSchemaSection: () => <div data-testid="theme-picker" />,
+}));
+
+describe('ThemePluginSection', () => {
+ afterEach(() => {
+ cleanup();
+ themes = [];
+ editingThemeId = 'custom';
+ themeEditorOpen = false;
+ selectThemeToEdit.mockClear();
+ });
+
+ test('closes the editor instead of falling back to custom when its saved theme disappears', async () => {
+ const savedTheme = {
+ id: 'saved-active',
+ label: 'Active',
+ kind: 'dark' as const,
+ scheme: { ...DEFAULT_CUSTOM_SCHEME, name: 'Active' },
+ };
+ themes = [savedTheme];
+ editingThemeId = savedTheme.id;
+ themeEditorOpen = true;
+ const { ThemePluginSection } = await import('./ThemePluginSection');
+ const view = render(<ThemePluginSection userBinding={{} as never} />);
+ expect(screen.getByTestId('theme-editor')).toBeDefined();
+
+ themes = [];
+ view.rerender(<ThemePluginSection userBinding={{} as never} />);
+
+ expect(screen.queryByTestId('theme-editor')).toBeNull();
+ await waitFor(() => expect(selectThemeToEdit).toHaveBeenCalledWith(null));
+ });
+});
diff --git a/packages/app/src/components/settings/ThemePluginSection.tsx b/packages/app/src/components/settings/ThemePluginSection.tsx
index 6a4038f23..71d018cc9 100644
--- a/packages/app/src/components/settings/ThemePluginSection.tsx
+++ b/packages/app/src/components/settings/ThemePluginSection.tsx
@@ -7,23 +7,32 @@
import type { ConfigBinding } from '@inkeep/open-knowledge-core';
import { useLingui } from '@lingui/react/macro';
+import { useEffect } from 'react';
+import { useSavedThemes } from '@/lib/saved-themes-client';
import { CustomThemeEditor } from './CustomThemeEditor';
import { BoundSchemaSection } from './schema-section';
import { FIELDS_THEME_PLUGIN } from './settings-fields';
export function ThemePluginSection({ userBinding }: { userBinding: ConfigBinding }) {
const { t } = useLingui();
+ const { themes, editingThemeId, themeEditorOpen, selectThemeToEdit } = useSavedThemes();
+ const editableTheme = themes.find(
+ (theme) => theme.id === editingThemeId && theme.id.startsWith('saved-') && theme.scheme,
+ );
+ useEffect(() => {
+ if (themeEditorOpen && !editableTheme) selectThemeToEdit(null);
+ }, [editableTheme, selectThemeToEdit, themeEditorOpen]);
return (
<div className="space-y-6">
<BoundSchemaSection
title={t`Themes`}
- description={t`Pick a built-in IDE color palette, or define your own.`}
+ description={t`Pick a theme or create your own.`}
scope="user"
scopeBadge="user"
binding={userBinding}
fields={FIELDS_THEME_PLUGIN}
/>
- <CustomThemeEditor userBinding={userBinding} />
+ {themeEditorOpen && editableTheme ? <CustomThemeEditor userBinding={userBinding} /> : null}
</div>
);
}
diff --git a/packages/app/src/components/settings/field-controls.tsx b/packages/app/src/components/settings/field-controls.tsx
index 55704a731..ca700a335 100644
--- a/packages/app/src/components/settings/field-controls.tsx
+++ b/packages/app/src/components/settings/field-controls.tsx
@@ -45,15 +45,15 @@ import {
colorThemeResetPatch,
colorThemeWritePatch,
customThemeKind,
- resolveColorThemeSelection,
resolveCustomScheme,
resolveModePreference,
} from '@/lib/color-themes';
import { useConfigContextOptional } from '@/lib/config-context';
+import { recordSavedThemeAssignment } from '@/lib/saved-themes-telemetry';
import { applyColorThemeToDom } from '@/lib/use-apply-config-color-theme';
import { cn } from '@/lib/utils';
-import { ColorThemePicker } from './ColorThemePicker';
import { LanguageSelect } from './LanguageSelect';
+import { SavedThemesTiles } from './SavedThemesTiles';
import {
getEnumOptions,
getFieldDefault,
@@ -374,16 +374,15 @@ function FieldControlBody({
// whatever the applied palette forced.
const modePreference = merged?.appearance?.theme;
const slotMode = resolveModePreference(modePreference, systemTheme === 'dark');
- const selection = resolveColorThemeSelection(merged?.appearance);
return (
- <ColorThemePicker
+ <SavedThemesTiles
{...wrapperSlotProps}
firstItemId={forwardedId}
- selection={selection}
+ appearance={merged?.appearance}
customSeed={customSeed}
slotMode={slotMode}
aria-label={t(field.label)}
- onAssign={(slot, id) => {
+ onAssign={(slot, id, selection, themes) => {
// Paint first, persist second — but only when there is somewhere to
// persist to. Without the binding the optimistic apply would leave
// the screen showing a palette no config carries, which the next
@@ -402,9 +401,15 @@ function FieldControlBody({
const palette = candidate[slotMode];
return palette === 'custom'
? customThemeKind(resolveCustomScheme(customSeed))
- : colorThemeMode(palette);
+ : colorThemeMode(palette, themes);
};
- applyColorThemeToDom({ selection: next, modePreference, slotMode, customSeed });
+ applyColorThemeToDom({
+ selection: next,
+ modePreference,
+ slotMode,
+ customSeed,
+ themes,
+ });
const nextMode = forcedMode(next);
if (nextMode) setTheme(nextMode);
// Both slots are written in ONE patch (and the pre-pair `colorTheme`
@@ -413,6 +418,7 @@ function FieldControlBody({
// neither field is dirty here, so nothing of the user's is stomped.
const result = binding.patch({ appearance: colorThemeWritePatch(next) });
if (result.ok) {
+ recordSavedThemeAssignment(next);
onSavedOutsideForm();
return;
}
@@ -422,7 +428,7 @@ function FieldControlBody({
// no longer parses, say) left the palette painted with nothing
// persisted and nothing said. Repaint the committed selection and
// surface the error on this row.
- applyColorThemeToDom({ selection, modePreference, slotMode, customSeed });
+ applyColorThemeToDom({ selection, modePreference, slotMode, customSeed, themes });
// The optimistic apply flipped two things, so the revert has to undo
// both. Restoring only the palette attribute leaves a cross-variant
// pick's forced `.dark` class on the previous palette.
@@ -688,7 +694,7 @@ export function SavedIndicator({
// theme tiles repaint the whole app) and whose full-width layout the
// appearing icon would momentarily compress.
return (
- <span role="status" aria-live="polite" className="text-emerald-600">
+ <span role="status" aria-live="polite" className={cn('text-emerald-600', srOnly && 'sr-only')}>
{visible ? (
<>
{srOnly ? null : <Check aria-hidden="true" className="size-3.5" />}
diff --git a/packages/app/src/lib/color-themes.test.ts b/packages/app/src/lib/color-themes.test.ts
index bcfa7e005..7867ac5ab 100644
--- a/packages/app/src/lib/color-themes.test.ts
+++ b/packages/app/src/lib/color-themes.test.ts
@@ -1,9 +1,13 @@
import { readFileSync } from 'node:fs';
import { dirname, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
-import { BASE16_SLOTS, ConfigSchema, resolveLeafSchema } from '@inkeep/open-knowledge-core';
+import {
+ BASE16_SLOTS,
+ ConfigSchema,
+ resolveLeafSchema,
+ THEME_ID_PATTERN,
+} from '@inkeep/open-knowledge-core';
import { describe, expect, test } from 'vitest';
-import { getEnumOptions } from '../components/settings/schema-walker';
import {
base16ToTokens,
buildCustomThemeCss,
@@ -25,8 +29,8 @@ import {
import {
COLOR_THEME_PAIR_STORAGE_KEY,
COLOR_THEME_STORAGE_KEY,
- CUSTOM_THEME_STORAGE_KEY,
CUSTOM_THEME_STYLE_ID,
+ SAVED_THEME_STYLE_ID,
} from './use-apply-config-color-theme';
const here = dirname(fileURLToPath(import.meta.url));
@@ -75,6 +79,11 @@ describe('color-themes registry', () => {
expect(resolveColorTheme('dracula').id).toBe('dracula');
});
+ test('resolveColorTheme remains safe when a caller supplies a partial live registry', () => {
+ expect(resolveColorTheme('dracula', [])).toMatchObject({ id: 'dracula', kind: 'dark' });
+ expect(resolveColorTheme('not-a-theme', [])).toMatchObject({ id: 'default', kind: 'system' });
+ });
+
test('isDarkColorTheme is true for dark IDE themes, false for default and light themes', () => {
expect(isDarkColorTheme('default')).toBe(false);
expect(isDarkColorTheme(undefined)).toBe(false);
@@ -184,11 +193,30 @@ describe('generated stylesheet', () => {
});
describe('registry stays in sync with its consumers', () => {
- test('ids match every appearance palette enum in ConfigSchema', () => {
+ test('every appearance palette field admits any grammar-valid id, not a closed set', () => {
+ // These fields are shape-constrained strings, not closed enums — that is
+ // what lets a saved theme (an id the built-in registry has never heard of)
+ // be assigned without failing whole-config validation. The invariant this
+ // guards: every built-in id still validates, an id inside the grammar but
+ // outside the registry validates, and a string outside the grammar is
+ // refused so config and the pre-paint validator stay aligned.
for (const field of ['colorTheme', 'colorThemeLight', 'colorThemeDark']) {
- const leaf = resolveLeafSchema(ConfigSchema, ['appearance', field]);
- const enumOptions = leaf ? getEnumOptions(leaf) : undefined;
- expect([...(enumOptions ?? [])].sort(), field).toEqual(COLOR_THEMES.map((t) => t.id).sort());
+ for (const id of COLOR_THEMES.map((t) => t.id)) {
+ expect(
+ ConfigSchema.safeParse({ appearance: { [field]: id } }).success,
+ `${field}=${id}`,
+ ).toBe(true);
+ }
+ expect(
+ ConfigSchema.safeParse({ appearance: { [field]: 'saved-my-personal-theme' } }).success,
+ `${field}=saved id`,
+ ).toBe(true);
+ for (const bad of ['Not A Theme', 'UPPER', 'has_underscore', 'a'.repeat(33)]) {
+ expect(
+ ConfigSchema.safeParse({ appearance: { [field]: bad } }).success,
+ `${field}=${bad}`,
+ ).toBe(false);
+ }
}
});
@@ -199,8 +227,8 @@ describe('registry stays in sync with its consumers', () => {
for (const key of [
COLOR_THEME_PAIR_STORAGE_KEY,
COLOR_THEME_STORAGE_KEY,
- CUSTOM_THEME_STORAGE_KEY,
CUSTOM_THEME_STYLE_ID,
+ SAVED_THEME_STYLE_ID,
]) {
expect(html, key).toContain(`'${key}'`);
}
@@ -218,10 +246,18 @@ describe('registry stays in sync with its consumers', () => {
}
});
- test('custom is registered as a tile and accepted by the schema enum', () => {
+ test('custom is registered as a tile and accepted by the palette fields', () => {
expect(COLOR_THEMES.some((t) => t.id === 'custom')).toBe(true);
- const leaf = resolveLeafSchema(ConfigSchema, ['appearance', 'colorTheme']);
- expect([...(leaf ? (getEnumOptions(leaf) ?? []) : [])]).toContain('custom');
+ expect(ConfigSchema.safeParse({ appearance: { colorTheme: 'custom' } }).success).toBe(true);
+ });
+
+ test('the pre-paint FOUC script validates ids with the config fields grammar', () => {
+ // index.html can't import a module, so its inline id check hardcodes the
+ // grammar. If the two drift, a palette config accepts could fail to
+ // pre-paint (flash of unstyled content) — so the inline source must carry
+ // THEME_ID_PATTERN verbatim.
+ const html = readFileSync(resolve(here, '../../index.html'), 'utf8');
+ expect(html).toContain(THEME_ID_PATTERN.source);
});
test('every base16 slot is settable under appearance.customTheme', () => {
diff --git a/packages/app/src/lib/color-themes.ts b/packages/app/src/lib/color-themes.ts
index afe461da1..9be387f36 100644
--- a/packages/app/src/lib/color-themes.ts
+++ b/packages/app/src/lib/color-themes.ts
@@ -18,7 +18,7 @@ import {
CHROME_BG_DARK,
CHROME_BG_LIGHT,
type ColorThemeSelection,
- colorThemeMode,
+ type ColorThemeSelectionInput,
generateColorThemesCss,
isBase16Hex,
isDarkTheme,
@@ -31,24 +31,38 @@ import {
resolveThemePlugin,
THEME_PLUGINS,
type ThemePlugin,
- type ThemePluginId,
} from '@inkeep/open-knowledge-core';
-export type { Base16Scheme, ColorThemeSelection, ThemePluginId };
+export type { Base16Scheme, ColorThemeSelection, ColorThemeSelectionInput };
// Re-export the core registry + pure token logic under the app's existing names.
export {
base16ToTokens,
- colorThemeMode,
generateColorThemesCss,
isDarkTheme as isDarkColorTheme,
relativeLuminance,
resolveColorThemeSelection,
resolveModePreference,
- resolveThemePlugin as resolveColorTheme,
THEME_PLUGINS as COLOR_THEMES,
};
export type ColorTheme = ThemePlugin;
+/** Resolve an id against the palettes currently available to the app. */
+export function resolveColorTheme(
+ id: string | undefined,
+ themes: readonly ColorTheme[] = THEME_PLUGINS,
+): ColorTheme {
+ return themes.find((theme) => theme.id === id) ?? resolveThemePlugin(id);
+}
+
+/** The light/dark mode a currently available palette forces. */
+export function colorThemeMode(
+ id: string | undefined,
+ themes: readonly ColorTheme[] = THEME_PLUGINS,
+): 'light' | 'dark' | undefined {
+ const kind = resolveColorTheme(id, themes).kind;
+ return kind === 'system' ? undefined : kind;
+}
+
/**
* The `appearance` patch that writes the light/dark palette pair.
*
@@ -58,8 +72,8 @@ export type ColorTheme = ThemePlugin;
* half-format behind that later reads as a seed for whichever slot is missing.
*/
export function colorThemeWritePatch(next: ColorThemeSelection): {
- colorThemeLight: ThemePluginId;
- colorThemeDark: ThemePluginId;
+ colorThemeLight: string;
+ colorThemeDark: string;
colorTheme: null;
} {
return { colorThemeLight: next.light, colorThemeDark: next.dark, colorTheme: null };
diff --git a/packages/app/src/lib/config-provider.tsx b/packages/app/src/lib/config-provider.tsx
index e1df7a51d..fa3815362 100644
--- a/packages/app/src/lib/config-provider.tsx
+++ b/packages/app/src/lib/config-provider.tsx
@@ -57,6 +57,7 @@ import {
resolveModePreference,
} from './color-themes';
import { ConfigContext, type ConfigContextValue } from './config-context';
+import { SavedThemesProvider, useSavedThemes } from './saved-themes-client';
import { useServerInstanceId } from './server-instance-store';
import { useApplyConfigColorTheme } from './use-apply-config-color-theme';
import { useApplyConfigLanguage } from './use-apply-config-language';
@@ -154,13 +155,14 @@ function makeOkignoreBinding(collabUrl: string, serverInstanceId: string | null)
return { binding, provider, cleanup };
}
-export function ConfigProvider({
+function ConfigProviderBody({
collabUrl,
children,
}: {
collabUrl: string | null;
children: ReactNode;
}) {
+ const { themes, loaded: savedThemesLoaded, loadError: savedThemesLoadError } = useSavedThemes();
// Re-keying the provider effect on the server epoch is the config-doc recovery
// from a server respawn: an epoch change disposes + recreates the bindings
// (fresh Y.Doc) so they re-sync clean instead of union-merging the retained
@@ -236,7 +238,9 @@ export function ConfigProvider({
});
const unsubUserSynced = userScoped.binding.subscribeSynced(() => {
setUserState((prev) =>
- prev?.binding === userScoped.binding ? { ...prev, synced: true } : prev,
+ prev?.binding === userScoped.binding
+ ? { ...prev, config: userScoped.binding.current(), synced: true }
+ : prev,
);
});
const unsubProject = projectScoped.binding.subscribe((next) => {
@@ -246,7 +250,9 @@ export function ConfigProvider({
});
const unsubProjectSynced = projectScoped.binding.subscribeSynced(() => {
setProjectState((prev) =>
- prev?.binding === projectScoped.binding ? { ...prev, synced: true } : prev,
+ prev?.binding === projectScoped.binding
+ ? { ...prev, config: projectScoped.binding.current(), synced: true }
+ : prev,
);
});
const unsubProjectLocal = projectLocalScoped.binding.subscribe((next) => {
@@ -256,7 +262,9 @@ export function ConfigProvider({
});
const unsubProjectLocalSynced = projectLocalScoped.binding.subscribeSynced(() => {
setProjectLocalState((prev) =>
- prev?.binding === projectLocalScoped.binding ? { ...prev, synced: true } : prev,
+ prev?.binding === projectLocalScoped.binding
+ ? { ...prev, config: projectLocalScoped.binding.current(), synced: true }
+ : prev,
);
});
const handleOkignoreSynced = () => {
@@ -304,13 +312,36 @@ export function ConfigProvider({
// palette applies and the saved pair is ignored (not cleared — it comes back
// when the plugin is re-enabled). Default on (absent → enabled).
const colorThemeEnabled = merged?.appearance?.colorThemeEnabled !== false;
+ const configLayersReady =
+ collabUrl === null ||
+ (userState?.synced === true &&
+ projectState?.synced === true &&
+ projectLocalState?.synced === true);
+ const authoredThemeIds = [
+ merged?.appearance?.colorThemeLight,
+ merged?.appearance?.colorThemeDark,
+ merged?.appearance?.colorTheme,
+ ];
+ const needsSavedThemeRegistry =
+ colorThemeEnabled &&
+ authoredThemeIds.some((id) => typeof id === 'string' && id.startsWith('saved-'));
+ // The prepaint script has already replayed the last complete pair. Do not let
+ // initial empty CRDT bindings or the built-ins-only registry clear it while
+ // the authoritative config/list requests are still converging.
+ const colorThemeReady = configLayersReady && (!needsSavedThemeRegistry || savedThemesLoaded);
+ // A failed saved-theme list must keep the prepaint palette untouched, but it
+ // must not strand Electron's show gate until its five-second safety timeout.
+ // Once the request has settled, the bridge can sample the still-live prepaint
+ // cascade and release the window without asking the DOM reconciler to clear it.
+ const colorThemeBridgeReady =
+ configLayersReady && (!needsSavedThemeRegistry || savedThemesLoaded || savedThemesLoadError);
// One palette per mode. `slotMode` picks between them and is derived from the
// user's OWN preference — `appearance.theme`, with the OS deciding for
// 'system' — never from next-themes' resolved value. That distinction is
// load-bearing: a palette still forces its own variant below, so feeding the
// resolved value back in would let a cross-variant pick (a dark scheme chosen
// as the light palette) flip the app into the other slot, then back.
- const selection = resolveColorThemeSelection(merged?.appearance);
+ const selection = resolveColorThemeSelection(merged?.appearance, themes);
const slotMode = resolveModePreference(themeValue, systemPrefersDark);
const activePalette = colorThemeEnabled ? selection[slotMode] : 'default';
// The applied palette takes over the appearance: it forces next-themes into
@@ -322,12 +353,12 @@ export function ConfigProvider({
const effectiveMode =
activePalette === 'custom'
? customThemeKind(resolveCustomScheme(customSeed))
- : (colorThemeMode(activePalette) ?? themeValue);
+ : (colorThemeMode(activePalette, themes) ?? themeValue);
// Bridge the effective mode from the merged config into next-themes app-wide.
// The hook owns the dependency discipline that prevents a cross-window
// light/dark flicker storm across open project windows — see
// `useApplyConfigTheme`.
- useApplyConfigTheme(effectiveMode);
+ useApplyConfigTheme(colorThemeReady ? effectiveMode : undefined);
// Apply the palette overlay (`data-color-theme` attribute + FOUC caches; for
// `custom`, the runtime `<style>` built from the scheme). Honors the plugin
// toggle: disabled clears the overlay and its FOUC caches.
@@ -336,7 +367,9 @@ export function ConfigProvider({
modePreference: themeValue,
slotMode,
customSeed,
+ themes,
enabled: colorThemeEnabled,
+ ready: colorThemeReady,
});
// Bridge the interface language into the Lingui singleton. `'system'` and an
// absent value are resolved against the browser inside the hook, at
@@ -379,12 +412,28 @@ export function ConfigProvider({
//
// The third argument re-fires the signal on a palette switch (not just a
// light/dark flip) so the OS-drawn chrome tracks the active color theme. It
- // serializes the custom seed too — editing a custom scheme's `--sidebar`
- // should repaint the titlebar live.
+ // serializes runtime-authored schemes too — editing a custom or saved
+ // scheme's `--sidebar` should repaint the titlebar live even when its id and
+ // light/dark variant stay unchanged.
+ const activeRuntimeScheme = activePalette.startsWith('saved-')
+ ? themes.find((theme) => theme.id === activePalette)?.scheme
+ : undefined;
+ const runtimeSchemeKey =
+ activePalette === 'custom'
+ ? JSON.stringify(customSeed ?? null)
+ : activeRuntimeScheme
+ ? JSON.stringify(activeRuntimeScheme)
+ : '';
+ const themeBridgeMode =
+ colorThemeBridgeReady && !colorThemeReady && typeof document !== 'undefined'
+ ? document.documentElement.classList.contains('dark')
+ ? 'dark'
+ : 'light'
+ : (effectiveMode ?? 'system');
useThemeBridge(
- typeof window !== 'undefined' ? window.okDesktop : undefined,
- effectiveMode ?? 'system',
- `${activePalette}:${activePalette === 'custom' ? JSON.stringify(customSeed ?? null) : ''}`,
+ colorThemeBridgeReady && typeof window !== 'undefined' ? window.okDesktop : undefined,
+ colorThemeBridgeReady ? themeBridgeMode : undefined,
+ `${activePalette}:${runtimeSchemeKey}`,
);
const value: ConfigContextValue = {
@@ -404,3 +453,11 @@ export function ConfigProvider({
return <ConfigContext value={value}>{children}</ConfigContext>;
}
+
+export function ConfigProvider(props: { collabUrl: string | null; children: ReactNode }) {
+ return (
+ <SavedThemesProvider>
+ <ConfigProviderBody {...props} />
+ </SavedThemesProvider>
+ );
+}
diff --git a/packages/app/src/lib/config-provider.user-synced.dom.test.tsx b/packages/app/src/lib/config-provider.user-synced.dom.test.tsx
index 3e4aa38fd..5ff4a47a0 100644
--- a/packages/app/src/lib/config-provider.user-synced.dom.test.tsx
+++ b/packages/app/src/lib/config-provider.user-synced.dom.test.tsx
@@ -59,10 +59,11 @@ let okignoreDisposed = false;
let providerRecords: ProviderRecord[] = [];
let mergeLayeredCalls: Array<[unknown, unknown, unknown]> = [];
let mergedConfig: unknown = {};
-let useThemeBridgeCalls: Array<[unknown, string]> = [];
+let useThemeBridgeCalls: Array<[unknown, string | undefined, string | undefined]> = [];
let useLanguageBridgeCalls: Array<[unknown, unknown, boolean]> = [];
let setThemeCalls: string[] = [];
const buildAuthTokenCalls: Array<readonly unknown[]> = [];
+const originalFetch = globalThis.fetch;
function resetCaptures() {
captures.clear();
@@ -87,7 +88,7 @@ function makeFakeConfigBinding(scope: ScopeKey, hasSyncedSeed: boolean): ConfigB
syncedUnsubscribed: false,
});
return {
- current: () => config as never,
+ current: () => captures.get(scope)?.config as never,
patch: () => ({ ok: true, value: { applied: [], effective: {} } }) as never,
subscribe: () => () => {},
hasSynced: () => captures.get(scope)?.hasSyncedSeed ?? false,
@@ -119,8 +120,8 @@ function makeFakeOkignoreBinding(): OkignoreBinding {
}
vi.doMock('@/hooks/use-theme-bridge', () => ({
- useThemeBridge: (bridge: unknown, theme: string) => {
- useThemeBridgeCalls.push([bridge, theme]);
+ useThemeBridge: (bridge: unknown, theme: string | undefined, colorThemeKey?: string) => {
+ useThemeBridgeCalls.push([bridge, theme, colorThemeKey]);
},
}));
@@ -183,22 +184,78 @@ vi.doMock('@/lib/auth-token', () => ({
// calls to produce the binding objects it then subscribes to. The fakes
// return ConfigBindings whose `subscribeSynced` listener is captured per
// scope so the test can trigger the false→true transition by hand.
-//
-// Spreading the real module first keeps this to the three seams the test
-// actually drives. A wholesale factory had to re-declare every core symbol
-// anything in ConfigProvider's transitive graph imports — the theme registry
-// that `@/lib/color-themes` re-exports, then the locale set and resolver the
-// language bridge reaches for — and each one it had not anticipated failed as a
-// hard named-import error somewhere unrelated to what was being tested.
-vi.doMock('@inkeep/open-knowledge-core', async (importOriginal) => ({
- ...(await importOriginal<typeof import('@inkeep/open-knowledge-core')>()),
+vi.doMock('@inkeep/open-knowledge-core', () => ({
bindConfigDoc: (_provider: unknown, scope: WriteScope) =>
makeFakeConfigBinding(scope, scope === 'user' ? userHasSyncedSeed : false),
bindOkignoreDoc: () => makeFakeOkignoreBinding(),
+ CONFIG_DOC_NAME_USER: '__user__/config.yml',
+ CONFIG_DOC_NAME_PROJECT: '__config__/project',
+ CONFIG_DOC_NAME_PROJECT_LOCAL: '__local__/project',
+ CONFIG_DOC_NAME_OKIGNORE: '__config__/okignore',
mergeLayered: (user: unknown, project: unknown, projectLocal: unknown) => {
mergeLayeredCalls.push([user, project, projectLocal]);
return mergedConfig;
},
+ resolveLocale: ({ storedPreference }: { storedPreference?: string }) => ({
+ locale: storedPreference && storedPreference !== 'system' ? storedPreference : 'en',
+ source: storedPreference && storedPreference !== 'system' ? 'explicit' : 'fallback',
+ }),
+ readBrowserLanguages: () => [],
+ localeDirection: (locale: string) => (locale === 'ar' || locale === 'ur' ? 'rtl' : 'ltr'),
+ SUPPORTED_LOCALES: ['en', 'es'],
+ AUTO_DETECTABLE_LOCALES: ['en', 'es'],
+ // `@/lib/color-themes` (pulled in transitively via config-provider and
+ // SettingsDialogBody) now re-exports the theme registry from core, so the
+ // wholesale core mock must stub every re-exported symbol or color-themes'
+ // re-exports fail to resolve (a hard named-import error for `colorThemeMode`,
+ // which SettingsDialogBody imports statically).
+ colorThemeMode: (
+ id?: string,
+ themes?: readonly { id: string; kind: 'light' | 'dark' | 'system' }[],
+ ) => {
+ const kind = themes?.find((theme) => theme.id === id)?.kind;
+ if (kind) return kind === 'system' ? undefined : kind;
+ return id && id !== 'default' && id !== 'custom' ? 'dark' : undefined;
+ },
+ resolveColorThemeSelection: (
+ appearance?: { colorTheme?: string; colorThemeLight?: string; colorThemeDark?: string },
+ themes: readonly { id: string }[] = [],
+ ) => {
+ const ids = new Set(themes.map((theme) => theme.id));
+ const legacy = appearance?.colorTheme;
+ const fallback = legacy && ids.has(legacy) ? legacy : 'default';
+ const pick = (value: string | undefined) =>
+ value === undefined ? fallback : ids.has(value) ? value : 'default';
+ return {
+ light: pick(appearance?.colorThemeLight),
+ dark: pick(appearance?.colorThemeDark),
+ };
+ },
+ SavedThemesListSuccessSchema: {
+ safeParse: (value: unknown) => ({ success: true, data: value }),
+ },
+ base16ToTokens: () => ({}),
+ renderThemeBlock: () => '',
+ resolveModePreference: (preference?: string, prefersDark?: boolean) =>
+ preference === 'light' || preference === 'dark' ? preference : prefersDark ? 'dark' : 'light',
+ expandPalette: () => ({}),
+ generateColorThemesCss: () => '',
+ isDarkTheme: (id?: string) => Boolean(id) && id !== 'default' && id !== 'custom',
+ resolveThemePlugin: (id?: string) => ({ id: id ?? 'default', label: 'Default', kind: 'system' }),
+ THEME_PLUGINS: [],
+ // The base-theme tokens `defaultThemeTokens` composes for the Default tile's
+ // preview. Values are placeholders — no assertion here reads them; they only
+ // need to cover the token names the preview looks up.
+ CHROME_BG_LIGHT: '#fafafa',
+ CHROME_BG_DARK: '#171717',
+ PREVIEW_THEME_TOKENS: [
+ { name: '--background', light: '#ffffff', dark: '#0a0a0a' },
+ { name: '--primary', light: '#2563eb', dark: '#69a3ff' },
+ { name: '--border', light: '#e5e5e5', dark: '#2a2a2a' },
+ { name: '--chart-2', light: '#16a34a', dark: '#4ade80' },
+ { name: '--chart-3', light: '#ca8a04', dark: '#facc15' },
+ { name: '--chart-4', light: '#7c3aed', dark: '#a78bfa' },
+ ],
}));
// Module-level toggle for the second case (mount-time pre-synced seed).
@@ -208,6 +265,10 @@ vi.doMock('@inkeep/open-knowledge-core', async (importOriginal) => ({
let userHasSyncedSeed = false;
const { ConfigProvider, useConfigContext } = await import('./config-provider');
+const { useSavedThemes } = await import('./saved-themes-client');
+const { COLOR_THEME_PAIR_STORAGE_KEY, SAVED_THEME_STYLE_ID } = await import(
+ './use-apply-config-color-theme'
+);
let lastContext: ReturnType<typeof useConfigContext> | null = null;
@@ -232,11 +293,24 @@ function ConfigContextProbe() {
);
}
+let refreshSavedThemes: (() => Promise<void>) | null = null;
+
+function SavedThemesRefreshProbe() {
+ refreshSavedThemes = useSavedThemes().refresh;
+ return null;
+}
+
+function syncAllConfigBindings(): void {
+ act(() => {
+ captures.get('user')?.syncedListener?.();
+ captures.get('project')?.syncedListener?.();
+ captures.get('project-local')?.syncedListener?.();
+ });
+}
+
describe('ConfigProvider — userSynced behavioral wiring (Tier-3)', () => {
let consoleErrorSpy: ReturnType<typeof vi.spyOn>;
- // Loading the Spanish catalog up front makes activation synchronous, so the
- // language assertion below reads a committed state rather than racing a fetch.
beforeAll(async () => {
await dynamicActivate('es');
await dynamicActivate('en');
@@ -245,7 +319,12 @@ describe('ConfigProvider — userSynced behavioral wiring (Tier-3)', () => {
beforeEach(() => {
resetCaptures();
lastContext = null;
+ refreshSavedThemes = null;
userHasSyncedSeed = false;
+ localStorage.clear();
+ document.documentElement.className = '';
+ document.documentElement.removeAttribute('data-color-theme');
+ document.getElementById(SAVED_THEME_STYLE_ID)?.remove();
__resetServerInstanceStoreForTests();
consoleErrorSpy = vi.spyOn(console, 'error').mockImplementation(() => {});
});
@@ -253,6 +332,7 @@ describe('ConfigProvider — userSynced behavioral wiring (Tier-3)', () => {
afterEach(async () => {
cleanup();
consoleErrorSpy.mockRestore();
+ globalThis.fetch = originalFetch;
Reflect.deleteProperty(window, 'okDesktop');
await dynamicActivate('en');
});
@@ -283,6 +363,25 @@ describe('ConfigProvider — userSynced behavioral wiring (Tier-3)', () => {
expect(screen.getByTestId('user-synced').textContent).toBe('true');
});
+ test('the synced transition publishes the binding’s authoritative config atomically', () => {
+ render(
+ <ConfigProvider collabUrl="ws://test.invalid">
+ <ConfigContextProbe />
+ </ConfigProvider>,
+ );
+
+ const userEntry = captures.get('user');
+ if (!userEntry) throw new Error('user binding capture missing');
+ userEntry.config = { scope: 'user', appearance: { theme: 'dark' } };
+
+ act(() => {
+ userEntry.syncedListener?.();
+ });
+
+ expect(lastContext?.userSynced).toBe(true);
+ expect(lastContext?.userConfig).toBe(userEntry.config);
+ });
+
test('userSynced reads true on first render when the binding has already synced at mount time', () => {
// Mount-time seed via the `hasSynced()` short-circuit in
// `ConfigProvider`'s `setUserState` initializer. Mirrors the
@@ -363,7 +462,7 @@ describe('ConfigProvider — userSynced behavioral wiring (Tier-3)', () => {
);
});
- test('passes the Electron theme bridge a system fallback when merged config has no theme', async () => {
+ test('withholds the Electron show-gate signal until config is authoritative', async () => {
const bridge = { nativeTheme: {} };
Object.defineProperty(window, 'okDesktop', {
configurable: true,
@@ -382,7 +481,14 @@ describe('ConfigProvider — userSynced behavioral wiring (Tier-3)', () => {
expect(mergeLayeredCalls.length).toBeGreaterThan(0);
});
- expect(useThemeBridgeCalls.at(-1)).toEqual([bridge, 'system']);
+ expect(useThemeBridgeCalls.at(-1)?.slice(0, 2)).toEqual([undefined, undefined]);
+
+ syncAllConfigBindings();
+
+ await waitFor(() => {
+ expect(useThemeBridgeCalls.at(-1)?.slice(0, 2)).toEqual([bridge, 'system']);
+ });
+
expect(setThemeCalls).toEqual([]);
});
@@ -398,9 +504,6 @@ describe('ConfigProvider — userSynced behavioral wiring (Tier-3)', () => {
await waitFor(() => {
expect(mergeLayeredCalls.length).toBeGreaterThan(0);
});
- // The value is already merged and readable here; withholding it until the
- // user layer syncs is what keeps a boot from activating the browser's
- // language and then correcting itself.
expect(i18n.locale).toBe('en');
act(() => {
@@ -411,10 +514,6 @@ describe('ConfigProvider — userSynced behavioral wiring (Tier-3)', () => {
});
test('the same unresolved preference is handed to the native-menu bridge', async () => {
- // The renderer activates a catalog; main re-resolves and rebuilds its own
- // menu. Both read the one merged value, and what crosses to main must be
- // the user's INTENT — a resolved tag looks identical on the wire and
- // silently stops following the OS.
const bridge = { nativeTheme: {} };
Object.defineProperty(window, 'okDesktop', { configurable: true, value: bridge });
mergedConfig = { appearance: { language: 'system' } };
@@ -438,6 +537,116 @@ describe('ConfigProvider — userSynced behavioral wiring (Tier-3)', () => {
});
});
+ test('releases the Electron show gate with the preserved cross-variant prepaint mode after a saved-theme list failure', async () => {
+ const bridge = { nativeTheme: {} };
+ Object.defineProperty(window, 'okDesktop', {
+ configurable: true,
+ value: bridge,
+ });
+ localStorage.setItem(
+ COLOR_THEME_PAIR_STORAGE_KEY,
+ JSON.stringify({
+ pref: 'dark',
+ light: { id: 'default', dark: false },
+ dark: { id: 'saved-offline', dark: false, css: ':root { --background: #fafafa; }' },
+ }),
+ );
+ document.documentElement.classList.remove('dark');
+ document.documentElement.setAttribute('data-color-theme', 'saved-offline');
+ const prepaintStyle = document.createElement('style');
+ prepaintStyle.id = SAVED_THEME_STYLE_ID;
+ prepaintStyle.textContent = ':root { --background: #fafafa; }';
+ document.head.appendChild(prepaintStyle);
+ globalThis.fetch = vi.fn(async () => Response.json({ error: 'offline' }, { status: 503 }));
+ mergedConfig = {
+ appearance: {
+ theme: 'dark',
+ colorThemeLight: 'saved-offline',
+ colorThemeDark: 'saved-offline',
+ },
+ };
+
+ render(
+ <ConfigProvider collabUrl="ws://test.invalid">
+ <ConfigContextProbe />
+ </ConfigProvider>,
+ );
+
+ await waitFor(() => expect(globalThis.fetch).toHaveBeenCalled());
+ syncAllConfigBindings();
+
+ await waitFor(() => {
+ expect(useThemeBridgeCalls.at(-1)?.slice(0, 2)).toEqual([bridge, 'light']);
+ });
+ // The DOM gate remains closed, preserving the prepaint cache after the list
+ // failure; only the native show gate is released.
+ expect(setThemeCalls).toEqual([]);
+ expect(document.documentElement.classList.contains('dark')).toBe(false);
+ expect(document.documentElement.getAttribute('data-color-theme')).toBe('saved-offline');
+ expect(document.getElementById(SAVED_THEME_STYLE_ID)?.textContent).toContain('#fafafa');
+ });
+
+ test('a live same-id saved-theme edit invalidates the native chrome bridge', async () => {
+ const bridge = { nativeTheme: {} };
+ Object.defineProperty(window, 'okDesktop', {
+ configurable: true,
+ value: bridge,
+ });
+ const palette = Object.fromEntries(
+ Array.from({ length: 16 }, (_, index) => {
+ const slot = `base${index.toString(16).toUpperCase().padStart(2, '0')}`;
+ return [slot, '#111111'];
+ }),
+ );
+ let schemeName = 'Before';
+ globalThis.fetch = vi.fn(
+ async () =>
+ new Response(
+ JSON.stringify({
+ themes: [
+ {
+ ok: true,
+ id: 'saved-active',
+ filename: 'active.yaml',
+ scheme: { name: schemeName, variant: 'light', palette },
+ },
+ ],
+ truncated: false,
+ }),
+ ),
+ );
+ mergedConfig = {
+ appearance: {
+ theme: 'light',
+ colorThemeLight: 'saved-active',
+ colorThemeDark: 'default',
+ },
+ };
+
+ render(
+ <ConfigProvider collabUrl="ws://test.invalid">
+ <ConfigContextProbe />
+ <SavedThemesRefreshProbe />
+ </ConfigProvider>,
+ );
+ syncAllConfigBindings();
+
+ await waitFor(() => {
+ expect(useThemeBridgeCalls.at(-1)?.[2]).toContain('Before');
+ });
+ const beforeKey = useThemeBridgeCalls.at(-1)?.[2];
+
+ schemeName = 'After';
+ await act(async () => {
+ await refreshSavedThemes?.();
+ });
+
+ await waitFor(() => {
+ expect(useThemeBridgeCalls.at(-1)?.[2]).toContain('After');
+ });
+ expect(useThemeBridgeCalls.at(-1)?.[2]).not.toBe(beforeKey);
+ });
+
test('threads the server epoch from the store into every provider auth-token claim', async () => {
setServerInstanceId('epoch-threading-test');
diff --git a/packages/app/src/lib/fouc-prepaint.dom.test.ts b/packages/app/src/lib/fouc-prepaint.dom.test.ts
index 814835657..2a9150798 100644
--- a/packages/app/src/lib/fouc-prepaint.dom.test.ts
+++ b/packages/app/src/lib/fouc-prepaint.dom.test.ts
@@ -16,13 +16,19 @@ import { readFileSync } from 'node:fs';
import { dirname, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
import { beforeAll, beforeEach, describe, expect, test } from 'vitest';
-import type { ColorThemeSelection } from './color-themes';
+import {
+ COLOR_THEMES,
+ type ColorTheme,
+ type ColorThemeSelection,
+ DEFAULT_CUSTOM_SCHEME,
+} from './color-themes';
import {
applyColorThemeToDom,
COLOR_THEME_PAIR_STORAGE_KEY,
COLOR_THEME_STORAGE_KEY,
CUSTOM_THEME_STORAGE_KEY,
CUSTOM_THEME_STYLE_ID,
+ SAVED_THEME_STYLE_ID,
} from './use-apply-config-color-theme';
const here = dirname(fileURLToPath(import.meta.url));
@@ -70,6 +76,7 @@ function reset(): void {
document.documentElement.className = '';
document.documentElement.removeAttribute('data-color-theme');
document.getElementById(CUSTOM_THEME_STYLE_ID)?.remove();
+ document.getElementById(SAVED_THEME_STYLE_ID)?.remove();
localStorage.clear();
}
@@ -79,12 +86,14 @@ function seed(
modePreference: 'light' | 'dark' | 'system',
slotMode: 'light' | 'dark',
customSeed?: Record<string, unknown>,
+ themes?: readonly ColorTheme[],
): void {
- applyColorThemeToDom({ selection, modePreference, slotMode, customSeed });
+ applyColorThemeToDom({ selection, modePreference, slotMode, customSeed, themes });
// Only the caches survive a reload; the live DOM does not.
document.documentElement.className = '';
document.documentElement.removeAttribute('data-color-theme');
document.getElementById(CUSTOM_THEME_STYLE_ID)?.remove();
+ document.getElementById(SAVED_THEME_STYLE_ID)?.remove();
}
const state = () => ({
@@ -92,6 +101,31 @@ const state = () => ({
dark: document.documentElement.classList.contains('dark'),
});
+const SAVED_THEMES: readonly ColorTheme[] = [
+ ...COLOR_THEMES,
+ {
+ id: 'saved-day',
+ label: 'Day',
+ kind: 'light',
+ scheme: {
+ ...DEFAULT_CUSTOM_SCHEME,
+ name: 'Day',
+ variant: 'light',
+ palette: { ...DEFAULT_CUSTOM_SCHEME.palette, base00: '#fafafa' },
+ },
+ },
+ {
+ id: 'saved-night',
+ label: 'Night',
+ kind: 'dark',
+ scheme: {
+ ...DEFAULT_CUSTOM_SCHEME,
+ name: 'Night',
+ palette: { ...DEFAULT_CUSTOM_SCHEME.palette, base00: '#08090a' },
+ },
+ },
+];
+
describe('pre-paint FOUC script', () => {
beforeEach(reset);
@@ -141,6 +175,47 @@ describe('pre-paint FOUC script', () => {
);
});
+ test('replays the previous release custom cache while upgrading its pair shape', () => {
+ localStorage.setItem(
+ COLOR_THEME_PAIR_STORAGE_KEY,
+ JSON.stringify({
+ pref: 'dark',
+ light: { id: 'default', dark: false },
+ dark: { id: 'custom', dark: true },
+ }),
+ );
+ localStorage.setItem(
+ CUSTOM_THEME_STORAGE_KEY,
+ JSON.stringify({ css: 'html[data-color-theme] { --background: #123456; }', dark: true }),
+ );
+
+ runPrePaint(false);
+
+ expect(state()).toEqual({ attr: 'custom', dark: true });
+ expect(document.getElementById(CUSTOM_THEME_STYLE_ID)?.textContent).toContain(
+ '--background: #123456;',
+ );
+ });
+
+ test('replays the saved stylesheet belonging to either active mode slot', () => {
+ seed({ light: 'saved-day', dark: 'saved-night' }, 'system', 'dark', undefined, SAVED_THEMES);
+
+ runPrePaint(false);
+ expect(state()).toEqual({ attr: 'saved-day', dark: false });
+ expect(document.getElementById(SAVED_THEME_STYLE_ID)?.textContent).toContain(
+ '--background: #fafafa;',
+ );
+
+ document.documentElement.className = '';
+ document.documentElement.removeAttribute('data-color-theme');
+ document.getElementById(SAVED_THEME_STYLE_ID)?.remove();
+ runPrePaint(true);
+ expect(state()).toEqual({ attr: 'saved-night', dark: true });
+ expect(document.getElementById(SAVED_THEME_STYLE_ID)?.textContent).toContain(
+ '--background: #08090a;',
+ );
+ });
+
test('falls back to the pre-pair single-palette cache exactly once', () => {
// Written by a build that predates the pair; `ok-theme-v1` already carried
// the mode that palette forced.
@@ -167,12 +242,25 @@ describe('pre-paint FOUC script', () => {
// Setting `data-color-theme="custom"` with no matching rule would paint an
// unstyled frame, so the script drops the palette instead.
seed({ light: 'default', dark: 'custom' }, 'dark', 'dark', { base00: '#0a0a0a' });
- localStorage.removeItem(CUSTOM_THEME_STORAGE_KEY);
+ const cache = JSON.parse(localStorage.getItem(COLOR_THEME_PAIR_STORAGE_KEY) ?? '{}');
+ delete cache.dark.css;
+ localStorage.setItem(COLOR_THEME_PAIR_STORAGE_KEY, JSON.stringify(cache));
runPrePaint(true);
expect(state()).toEqual({ attr: null, dark: true });
expect(document.getElementById(CUSTOM_THEME_STYLE_ID)).toBeNull();
});
+ test('a saved slot with no CSS entry does not borrow the other slot stylesheet', () => {
+ seed({ light: 'saved-day', dark: 'saved-night' }, 'system', 'dark', undefined, SAVED_THEMES);
+ const cache = JSON.parse(localStorage.getItem(COLOR_THEME_PAIR_STORAGE_KEY) ?? '{}');
+ delete cache.dark.css;
+ localStorage.setItem(COLOR_THEME_PAIR_STORAGE_KEY, JSON.stringify(cache));
+
+ runPrePaint(true);
+ expect(state()).toEqual({ attr: null, dark: true });
+ expect(document.getElementById(SAVED_THEME_STYLE_ID)).toBeNull();
+ });
+
test('the pair wins over a stale pre-pair key', () => {
seed({ light: 'catppuccin-latte', dark: 'dracula' }, 'light', 'light');
localStorage.setItem(COLOR_THEME_STORAGE_KEY, 'monokai');
@@ -187,7 +275,6 @@ describe('pre-paint FOUC script', () => {
test('survives corrupt cache JSON without throwing or painting a palette', () => {
localStorage.setItem(COLOR_THEME_PAIR_STORAGE_KEY, '{not json');
- localStorage.setItem(CUSTOM_THEME_STORAGE_KEY, '{also not json');
expect(() => runPrePaint(false)).not.toThrow();
expect(state()).toEqual({ attr: null, dark: false });
});
diff --git a/packages/app/src/lib/saved-themes-client.dom.test.tsx b/packages/app/src/lib/saved-themes-client.dom.test.tsx
new file mode 100644
index 000000000..be29434cc
--- /dev/null
+++ b/packages/app/src/lib/saved-themes-client.dom.test.tsx
@@ -0,0 +1,863 @@
+import {
+ BASE16_SLOTS,
+ base16ToTokens,
+ ProblemDetailsSchema,
+ SavedThemeDeleteSuccessSchema,
+ SavedThemeSaveSuccessSchema,
+ SavedThemesListSuccessSchema,
+ SavedThemeUpdateSuccessSchema,
+} from '@inkeep/open-knowledge-core';
+import { act, cleanup, render, screen, waitFor } from '@testing-library/react';
+import type { ReactNode } from 'react';
+import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';
+import { COLOR_THEMES } from './color-themes';
+import {
+ deleteSavedTheme,
+ fetchSavedThemes,
+ SavedThemesProvider,
+ saveSavedTheme,
+ updateSavedTheme,
+ useSavedThemes,
+} from './saved-themes-client';
+import { __resetServerInstanceStoreForTests, setServerInstanceId } from './server-instance-store';
+
+type FetchFn = typeof globalThis.fetch;
+
+let originalFetch: FetchFn;
+
+function stubFetch(fn: FetchFn): void {
+ globalThis.fetch = fn;
+}
+
+beforeEach(() => {
+ originalFetch = globalThis.fetch;
+ __resetServerInstanceStoreForTests();
+});
+afterEach(() => {
+ globalThis.fetch = originalFetch;
+ vi.useRealTimers();
+ vi.restoreAllMocks();
+ cleanup();
+ __resetServerInstanceStoreForTests();
+});
+
+/** A complete sixteen-slot palette with distinct `#rrggbb` values per slot. */
+function palette(): Record<string, string> {
+ return Object.fromEntries(
+ BASE16_SLOTS.map((slot, i) => {
+ const byte = (i * 16).toString(16).padStart(2, '0');
+ return [slot, `#${byte}${byte}${byte}`];
+ }),
+ );
+}
+
+function scheme(name: string, variant: 'dark' | 'light' = 'dark') {
+ return { name, variant, palette: palette() };
+}
+
+function usableEntry(id: string, name: string, variant: 'dark' | 'light' = 'dark') {
+ return {
+ ok: true as const,
+ id,
+ filename: `${id.replace('saved-', '')}.yaml`,
+ scheme: scheme(name, variant),
+ };
+}
+
+/**
+ * Build a list-response body, validated through the SHARED wire schema so the
+ * fixture can't drift from the contract the real server emits — a malformed
+ * fixture throws here in setup rather than silently testing a shape the server
+ * never sends.
+ */
+function listBody(themes: unknown[], truncated = false): unknown {
+ return SavedThemesListSuccessSchema.parse({ themes, truncated });
+}
+
+function jsonResponse(body: unknown, status = 200): FetchFn {
+ return async () =>
+ new Response(JSON.stringify(body), {
+ status,
+ headers: { 'content-type': 'application/json' },
+ });
+}
+
+describe('fetchSavedThemes', () => {
+ test('adds a usable saved palette after the built-in palettes', async () => {
+ stubFetch(jsonResponse(listBody([usableEntry('saved-midnight', 'Midnight', 'dark')])));
+
+ const { authoritative, themes } = await fetchSavedThemes();
+
+ expect(authoritative).toBe(true);
+ expect(themes.slice(0, COLOR_THEMES.length)).toEqual(COLOR_THEMES);
+ const theme = themes.at(-1);
+ expect(theme?.id).toBe('saved-midnight');
+ expect(theme?.label).toBe('Midnight');
+ expect(theme?.scheme).toEqual(scheme('Midnight', 'dark'));
+ expect(theme.toTokens?.()).toEqual(base16ToTokens(scheme('Midnight', 'dark')));
+ });
+
+ test('resolves each saved theme’s own light/dark variant so the two slots can differ', async () => {
+ stubFetch(
+ jsonResponse(
+ listBody([
+ usableEntry('saved-day', 'Day', 'light'),
+ usableEntry('saved-night', 'Night', 'dark'),
+ ]),
+ ),
+ );
+
+ const { themes } = await fetchSavedThemes();
+
+ expect(themes.find((t) => t.id === 'saved-day')?.kind).toBe('light');
+ expect(themes.find((t) => t.id === 'saved-night')?.kind).toBe('dark');
+ });
+
+ test('carries a malformed file through as a warning rather than dropping it', async () => {
+ stubFetch(
+ jsonResponse(
+ listBody([
+ usableEntry('saved-good', 'Good'),
+ { ok: false, filename: 'broken.yaml', id: 'saved-broken', code: 'missing-slots' },
+ ]),
+ ),
+ );
+
+ const { themes, warnings } = await fetchSavedThemes();
+
+ expect(themes.at(-1)?.id).toBe('saved-good');
+ expect(warnings).toEqual([
+ { filename: 'broken.yaml', id: 'saved-broken', code: 'missing-slots' },
+ ]);
+ });
+
+ test('reports truncation from the scan', async () => {
+ stubFetch(jsonResponse(listBody([usableEntry('saved-a', 'A')], true)));
+
+ const { truncated } = await fetchSavedThemes();
+
+ expect(truncated).toBe(true);
+ });
+
+ test('an empty store returns the built-in list without an empty-state value', async () => {
+ stubFetch(jsonResponse(listBody([], false)));
+
+ expect(await fetchSavedThemes()).toEqual({
+ authoritative: true,
+ themes: COLOR_THEMES,
+ warnings: [],
+ truncated: false,
+ });
+ });
+
+ test('degrades to built-ins-only when the server is unreachable', async () => {
+ const warn = vi.spyOn(console, 'warn').mockImplementation(() => {});
+ const error = new Error('network down');
+ stubFetch(async () => {
+ throw error;
+ });
+
+ expect(await fetchSavedThemes()).toEqual({
+ authoritative: false,
+ themes: COLOR_THEMES,
+ warnings: [],
+ truncated: false,
+ });
+ expect(JSON.parse(String(warn.mock.calls[0]?.[0]))).toEqual({
+ event: 'ok-saved-theme-request-failed',
+ action: 'list',
+ result: 'request-error',
+ errorName: 'Error',
+ });
+ });
+
+ test('degrades to built-ins-only on a non-2xx response', async () => {
+ const warn = vi.spyOn(console, 'warn').mockImplementation(() => {});
+ stubFetch(jsonResponse({ error: 'boom' }, 500));
+
+ expect(await fetchSavedThemes()).toEqual({
+ authoritative: false,
+ themes: COLOR_THEMES,
+ warnings: [],
+ truncated: false,
+ });
+ expect(JSON.parse(String(warn.mock.calls[0]?.[0]))).toEqual({
+ event: 'ok-saved-theme-request-failed',
+ action: 'list',
+ result: 'http-error',
+ status: 500,
+ });
+ });
+
+ test('ignores a response that fails the shared schema (client/server drift)', async () => {
+ const warn = vi.spyOn(console, 'warn').mockImplementation(() => {});
+ stubFetch(jsonResponse({ themes: 'not-an-array', truncated: false }));
+
+ expect(await fetchSavedThemes()).toEqual({
+ authoritative: false,
+ themes: COLOR_THEMES,
+ warnings: [],
+ truncated: false,
+ });
+
+ warn.mockRestore();
+ });
+});
+
+describe('saveSavedTheme', () => {
+ test('posts the shared save shape and validates the success response', async () => {
+ let capturedPath = '';
+ let capturedInit: RequestInit | undefined;
+ const request: FetchFn = async (path, init) => {
+ capturedPath = String(path);
+ capturedInit = init;
+ return new Response(
+ JSON.stringify(
+ SavedThemeSaveSuccessSchema.parse({
+ id: 'saved-midnight',
+ filename: 'midnight.yaml',
+ }),
+ ),
+ { status: 201, headers: { 'content-type': 'application/json' } },
+ );
+ };
+
+ const result = await saveSavedTheme(
+ { name: 'midnight', scheme: scheme('midnight') },
+ { request },
+ );
+
+ expect(result).toEqual({ ok: true, id: 'saved-midnight', filename: 'midnight.yaml' });
+ expect(capturedPath).toBe('/api/saved-theme');
+ expect(capturedInit?.method).toBe('POST');
+ expect(capturedInit?.headers).toEqual({ 'content-type': 'application/json' });
+ expect(JSON.parse(String(capturedInit?.body))).toEqual({
+ name: 'midnight',
+ scheme: scheme('midnight'),
+ });
+ });
+
+ test('discriminates a taken name from other write failures', async () => {
+ const problem = ProblemDetailsSchema.parse({
+ type: 'urn:ok:error:theme-name-taken',
+ title: 'A saved theme with that name already exists.',
+ status: 409,
+ });
+ const result = await saveSavedTheme(
+ { name: 'midnight', scheme: scheme('midnight') },
+ { request: jsonResponse(problem, 409) },
+ );
+
+ expect(result).toEqual({ ok: false, reason: 'name-taken' });
+ });
+
+ test('carries the server’s specific id-grammar refusal', async () => {
+ const problem = ProblemDetailsSchema.parse({
+ type: 'urn:ok:error:theme-name-invalid',
+ title: 'That name cannot be used as a theme id.',
+ status: 400,
+ detail: 'too-long',
+ });
+ const result = await saveSavedTheme(
+ { name: 'a'.repeat(27), scheme: scheme('long') },
+ { request: jsonResponse(problem, 400) },
+ );
+
+ expect(result).toEqual({ ok: false, reason: 'name-invalid', detail: 'too-long' });
+ });
+
+ test('collapses an unreadable server response to an unexpected failure', async () => {
+ const result = await saveSavedTheme(
+ { name: 'midnight', scheme: scheme('midnight') },
+ { request: jsonResponse({ id: 42 }, 201) },
+ );
+
+ expect(result).toEqual({ ok: false, reason: 'unexpected' });
+ });
+
+ test('logs a request failure before returning an unexpected result', async () => {
+ const warn = vi.spyOn(console, 'warn').mockImplementation(() => {});
+ const error = new Error('offline');
+ const result = await saveSavedTheme(
+ { name: 'midnight', scheme: scheme('midnight') },
+ { request: async () => Promise.reject(error) },
+ );
+
+ expect(result).toEqual({ ok: false, reason: 'unexpected' });
+ expect(JSON.parse(String(warn.mock.calls[0]?.[0]))).toEqual({
+ event: 'ok-saved-theme-request-failed',
+ action: 'save',
+ result: 'request-error',
+ errorName: 'Error',
+ });
+ });
+});
+
+describe('updateSavedTheme', () => {
+ test('puts a complete scheme under the immutable saved-theme id', async () => {
+ let capturedPath = '';
+ let capturedInit: RequestInit | undefined;
+ const request: FetchFn = async (path, init) => {
+ capturedPath = String(path);
+ capturedInit = init;
+ return new Response(
+ JSON.stringify(
+ SavedThemeUpdateSuccessSchema.parse({
+ id: 'saved-midnight',
+ filename: 'midnight.yaml',
+ }),
+ ),
+ { status: 200, headers: { 'content-type': 'application/json' } },
+ );
+ };
+
+ const result = await updateSavedTheme(
+ { id: 'saved-midnight', scheme: scheme('Midnight revised') },
+ { request },
+ );
+
+ expect(result).toEqual({ ok: true, id: 'saved-midnight', filename: 'midnight.yaml' });
+ expect(capturedPath).toBe('/api/saved-theme');
+ expect(capturedInit?.method).toBe('PUT');
+ expect(JSON.parse(String(capturedInit?.body))).toEqual({
+ id: 'saved-midnight',
+ scheme: scheme('Midnight revised'),
+ });
+ });
+
+ test('discriminates a missing saved theme from an unexpected write failure', async () => {
+ const problem = ProblemDetailsSchema.parse({
+ type: 'urn:ok:error:not-found',
+ title: 'Saved theme not found.',
+ status: 404,
+ });
+
+ expect(
+ await updateSavedTheme(
+ { id: 'saved-absent', scheme: scheme('Absent') },
+ { request: jsonResponse(problem, 404) },
+ ),
+ ).toEqual({ ok: false, reason: 'not-found' });
+ });
+
+ test('logs a request failure before returning an unexpected result', async () => {
+ const warn = vi.spyOn(console, 'warn').mockImplementation(() => {});
+ const error = new Error('offline');
+
+ expect(
+ await updateSavedTheme(
+ { id: 'saved-midnight', scheme: scheme('Midnight') },
+ { request: async () => Promise.reject(error) },
+ ),
+ ).toEqual({ ok: false, reason: 'unexpected' });
+ expect(JSON.parse(String(warn.mock.calls[0]?.[0]))).toEqual({
+ event: 'ok-saved-theme-request-failed',
+ action: 'update',
+ result: 'request-error',
+ errorName: 'Error',
+ });
+ });
+});
+
+describe('deleteSavedTheme', () => {
+ test('deletes the encoded saved-theme id and validates the response', async () => {
+ let capturedPath = '';
+ let capturedInit: RequestInit | undefined;
+ const request: FetchFn = async (path, init) => {
+ capturedPath = String(path);
+ capturedInit = init;
+ return new Response(
+ JSON.stringify(
+ SavedThemeDeleteSuccessSchema.parse({
+ existed: true,
+ filename: 'midnight.yaml',
+ scheme: scheme('Midnight'),
+ }),
+ ),
+ {
+ status: 200,
+ headers: { 'content-type': 'application/json' },
+ },
+ );
+ };
+
+ const result = await deleteSavedTheme('saved-midnight', { request });
+
+ expect(result).toEqual({
+ ok: true,
+ existed: true,
+ filename: 'midnight.yaml',
+ scheme: scheme('Midnight'),
+ });
+ expect(capturedPath).toBe('/api/saved-theme?id=saved-midnight');
+ expect(capturedInit?.method).toBe('DELETE');
+ });
+
+ test('collapses an unreadable server response to an unexpected failure', async () => {
+ const result = await deleteSavedTheme('saved-midnight', {
+ request: jsonResponse({ existed: 'yes' }),
+ });
+
+ expect(result).toEqual({ ok: false, reason: 'unexpected' });
+ });
+
+ test('logs a request failure before returning an unexpected result', async () => {
+ const warn = vi.spyOn(console, 'warn').mockImplementation(() => {});
+ const error = new Error('offline');
+ const result = await deleteSavedTheme('saved-midnight', {
+ request: async () => Promise.reject(error),
+ });
+
+ expect(result).toEqual({ ok: false, reason: 'unexpected' });
+ expect(JSON.parse(String(warn.mock.calls[0]?.[0]))).toEqual({
+ event: 'ok-saved-theme-request-failed',
+ action: 'delete',
+ result: 'request-error',
+ errorName: 'Error',
+ });
+ });
+});
+
+let context: ReturnType<typeof useSavedThemes> | null = null;
+
+function SavedThemesProbe({ children }: { children?: ReactNode }) {
+ context = useSavedThemes();
+ return (
+ <div>
+ <span data-testid="loaded">{String(context.loaded)}</span>
+ <span data-testid="load-error">{String(context.loadError)}</span>
+ <span data-testid="themes">{context.themes.map((theme) => theme.label).join(',')}</span>
+ <span data-testid="ocean-incarnation">
+ {String(context.themeIncarnations['saved-ocean'] ?? 0)}
+ </span>
+ {children}
+ </div>
+ );
+}
+
+describe('SavedThemesProvider', () => {
+ test('automatically retries an initial list failure', async () => {
+ let requests = 0;
+ stubFetch(async () => {
+ requests += 1;
+ return requests === 1
+ ? Response.json({ error: 'starting' }, { status: 503 })
+ : Response.json(listBody([usableEntry('saved-ocean', 'Ocean')]));
+ });
+
+ render(
+ <SavedThemesProvider>
+ <SavedThemesProbe />
+ </SavedThemesProvider>,
+ );
+
+ await waitFor(() => expect(screen.getByTestId('themes').textContent).toContain('Ocean'), {
+ timeout: 1_000,
+ });
+ expect(requests).toBe(2);
+ expect(screen.getByTestId('loaded').textContent).toBe('true');
+ expect(screen.getByTestId('load-error').textContent).toBe('false');
+ });
+
+ test('stops automatically retrying after the configured attempts are exhausted', async () => {
+ vi.useFakeTimers();
+ let requests = 0;
+ stubFetch(async () => {
+ requests += 1;
+ return Response.json({ error: 'starting' }, { status: 503 });
+ });
+
+ render(
+ <SavedThemesProvider>
+ <SavedThemesProbe />
+ </SavedThemesProvider>,
+ );
+ await act(async () => {
+ await Promise.resolve();
+ });
+
+ await act(async () => {
+ await vi.runAllTimersAsync();
+ });
+
+ expect(requests).toBe(4);
+ expect(vi.getTimerCount()).toBe(0);
+ expect(screen.getByTestId('loaded').textContent).toBe('false');
+ expect(screen.getByTestId('load-error').textContent).toBe('true');
+ });
+
+ test('cancels a pending automatic retry when the provider unmounts', async () => {
+ vi.useFakeTimers();
+ let requests = 0;
+ stubFetch(async () => {
+ requests += 1;
+ return Response.json({ error: 'starting' }, { status: 503 });
+ });
+
+ const view = render(
+ <SavedThemesProvider>
+ <SavedThemesProbe />
+ </SavedThemesProvider>,
+ );
+ await act(async () => {
+ await Promise.resolve();
+ });
+ expect(requests).toBe(1);
+
+ view.unmount();
+ await act(async () => {
+ await vi.advanceTimersByTimeAsync(5_000);
+ });
+
+ expect(requests).toBe(1);
+ });
+
+ test('starts a fresh retry sequence when the server epoch changes', async () => {
+ vi.useFakeTimers();
+ const resolvers: Array<(response: Response) => void> = [];
+ stubFetch(
+ async () =>
+ new Promise<Response>((resolve) => {
+ resolvers.push(resolve);
+ }),
+ );
+ render(
+ <SavedThemesProvider>
+ <SavedThemesProbe />
+ </SavedThemesProvider>,
+ );
+ expect(resolvers).toHaveLength(1);
+
+ act(() => setServerInstanceId('epoch-2'));
+ expect(resolvers).toHaveLength(2);
+
+ await act(async () => {
+ resolvers[0]?.(Response.json(listBody([usableEntry('saved-old', 'Old')])));
+ resolvers[1]?.(Response.json({ error: 'starting' }, { status: 503 }));
+ await Promise.resolve();
+ });
+ expect(screen.getByTestId('themes').textContent).not.toContain('Old');
+
+ await act(async () => {
+ await vi.advanceTimersByTimeAsync(250);
+ });
+ expect(resolvers).toHaveLength(3);
+ await act(async () => {
+ resolvers[2]?.(Response.json(listBody([usableEntry('saved-new', 'New')])));
+ });
+
+ expect(screen.getByTestId('themes').textContent).toContain('New');
+ expect(screen.getByTestId('themes').textContent).not.toContain('Old');
+ expect(screen.getByTestId('load-error').textContent).toBe('false');
+ });
+
+ test('an authoritative manual refresh cancels a scheduled automatic retry', async () => {
+ vi.useFakeTimers();
+ let requests = 0;
+ stubFetch(async () => {
+ requests += 1;
+ return requests === 1
+ ? Response.json({ error: 'starting' }, { status: 503 })
+ : Response.json(listBody([usableEntry('saved-ocean', 'Ocean')]));
+ });
+ render(
+ <SavedThemesProvider>
+ <SavedThemesProbe />
+ </SavedThemesProvider>,
+ );
+ await act(async () => {
+ await Promise.resolve();
+ });
+ expect(requests).toBe(1);
+
+ await act(async () => {
+ await context?.refresh();
+ });
+ expect(requests).toBe(2);
+ expect(screen.getByTestId('load-error').textContent).toBe('false');
+
+ await act(async () => {
+ await vi.advanceTimersByTimeAsync(5_000);
+ });
+ expect(requests).toBe(2);
+ expect(screen.getByTestId('load-error').textContent).toBe('false');
+ });
+
+ test('keeps prepaint readiness false after an initial failed list and recovers on retry', async () => {
+ let requestSucceeds = false;
+ stubFetch(async () => {
+ if (!requestSucceeds) return Response.json({ error: 'offline' }, { status: 503 });
+ return Response.json(listBody([usableEntry('saved-ocean', 'Ocean')]));
+ });
+
+ render(
+ <SavedThemesProvider>
+ <SavedThemesProbe />
+ </SavedThemesProvider>,
+ );
+
+ await waitFor(() => expect(screen.getByTestId('load-error').textContent).toBe('true'));
+ expect(screen.getByTestId('loaded').textContent).toBe('false');
+ expect(screen.getByTestId('themes').textContent).not.toContain('Ocean');
+
+ requestSucceeds = true;
+ await act(async () => {
+ await context?.refresh();
+ });
+
+ expect(screen.getByTestId('loaded').textContent).toBe('true');
+ expect(screen.getByTestId('load-error').textContent).toBe('false');
+ expect(screen.getByTestId('themes').textContent).toContain('Ocean');
+ });
+
+ test('preserves the last authoritative registry when a later list request fails', async () => {
+ let requestSucceeds = true;
+ stubFetch(async () =>
+ requestSucceeds
+ ? Response.json(listBody([usableEntry('saved-ocean', 'Ocean')]))
+ : Response.json({ error: 'offline' }, { status: 503 }),
+ );
+
+ render(
+ <SavedThemesProvider>
+ <SavedThemesProbe />
+ </SavedThemesProvider>,
+ );
+ await waitFor(() => expect(screen.getByTestId('themes').textContent).toContain('Ocean'));
+
+ requestSucceeds = false;
+ await act(async () => {
+ await context?.refresh();
+ });
+
+ expect(screen.getByTestId('loaded').textContent).toBe('true');
+ expect(screen.getByTestId('load-error').textContent).toBe('true');
+ expect(screen.getByTestId('themes').textContent).toContain('Ocean');
+ });
+
+ test('keeps an optimistic update when its follow-up list request fails', async () => {
+ let listRequests = 0;
+ stubFetch(async (_input, init) => {
+ if (init?.method === 'PUT') {
+ return Response.json(
+ SavedThemeUpdateSuccessSchema.parse({
+ id: 'saved-ocean',
+ filename: 'ocean.yaml',
+ }),
+ );
+ }
+ listRequests += 1;
+ if (listRequests === 1) {
+ return Response.json(listBody([usableEntry('saved-ocean', 'Ocean')]));
+ }
+ return Response.json({ error: 'offline' }, { status: 503 });
+ });
+
+ render(
+ <SavedThemesProvider>
+ <SavedThemesProbe />
+ </SavedThemesProvider>,
+ );
+ await waitFor(() => expect(screen.getByTestId('themes').textContent).toContain('Ocean'));
+
+ await act(async () => {
+ await context?.updateTheme({ id: 'saved-ocean', scheme: scheme('Ocean revised', 'light') });
+ await context?.refresh();
+ });
+
+ expect(screen.getByTestId('load-error').textContent).toBe('true');
+ expect(screen.getByTestId('themes').textContent).toContain('Ocean revised');
+ expect(screen.getByTestId('themes').textContent).not.toContain('Ocean,');
+ });
+
+ test('keeps an optimistic delete when its follow-up list request fails', async () => {
+ let listRequests = 0;
+ stubFetch(async (_input, init) => {
+ if (init?.method === 'DELETE') {
+ return Response.json(
+ SavedThemeDeleteSuccessSchema.parse({
+ existed: true,
+ filename: 'ocean.yaml',
+ scheme: scheme('Ocean'),
+ }),
+ );
+ }
+ listRequests += 1;
+ if (listRequests === 1) {
+ return Response.json(listBody([usableEntry('saved-ocean', 'Ocean')]));
+ }
+ return Response.json({ error: 'offline' }, { status: 503 });
+ });
+
+ render(
+ <SavedThemesProvider>
+ <SavedThemesProbe />
+ </SavedThemesProvider>,
+ );
+ await waitFor(() => expect(screen.getByTestId('themes').textContent).toContain('Ocean'));
+
+ await act(async () => {
+ await context?.deleteTheme('saved-ocean');
+ await context?.refresh();
+ });
+
+ expect(screen.getByTestId('load-error').textContent).toBe('true');
+ expect(screen.getByTestId('themes').textContent).not.toContain('Ocean');
+ });
+
+ test('removes an already-deleted theme when its follow-up list request fails', async () => {
+ let listRequests = 0;
+ stubFetch(async (_input, init) => {
+ if (init?.method === 'DELETE') {
+ return Response.json(SavedThemeDeleteSuccessSchema.parse({ existed: false }));
+ }
+ listRequests += 1;
+ if (listRequests === 1) {
+ return Response.json(listBody([usableEntry('saved-ocean', 'Ocean')]));
+ }
+ return Response.json({ error: 'offline' }, { status: 503 });
+ });
+
+ render(
+ <SavedThemesProvider>
+ <SavedThemesProbe />
+ </SavedThemesProvider>,
+ );
+ await waitFor(() => expect(screen.getByTestId('themes').textContent).toContain('Ocean'));
+
+ await act(async () => {
+ await context?.deleteTheme('saved-ocean');
+ await context?.refresh();
+ });
+
+ expect(screen.getByTestId('load-error').textContent).toBe('true');
+ expect(screen.getByTestId('themes').textContent).not.toContain('Ocean');
+ });
+
+ test('queues one trailing list while a refresh is in flight and returns a promise covering it', async () => {
+ const resolvers: Array<(response: Response) => void> = [];
+ stubFetch(
+ async () =>
+ new Promise<Response>((resolve) => {
+ resolvers.push(resolve);
+ }),
+ );
+ render(
+ <SavedThemesProvider>
+ <SavedThemesProbe />
+ </SavedThemesProvider>,
+ );
+ await waitFor(() => expect(resolvers).toHaveLength(1));
+
+ let coveredRefresh: Promise<void> | undefined;
+ act(() => {
+ coveredRefresh = context?.refresh();
+ void context?.refresh();
+ });
+ let settled = false;
+ void coveredRefresh?.then(() => {
+ settled = true;
+ });
+
+ await act(async () => {
+ resolvers[0]?.(Response.json(listBody([])));
+ });
+ await waitFor(() => expect(resolvers).toHaveLength(2));
+ expect(settled).toBe(false);
+
+ await act(async () => {
+ resolvers[1]?.(Response.json(listBody([usableEntry('saved-late', 'Late')])));
+ await coveredRefresh;
+ });
+
+ expect(resolvers).toHaveLength(2);
+ expect(settled).toBe(true);
+ expect(screen.getByTestId('themes').textContent).toContain('Late');
+ });
+
+ test('serializes delete behind pending updates for the same saved theme', async () => {
+ let resolveUpdate: ((response: Response) => void) | undefined;
+ const methods: string[] = [];
+ stubFetch(async (_input, init) => {
+ const method = init?.method ?? 'GET';
+ methods.push(method);
+ if (method === 'PUT') {
+ return new Promise<Response>((resolve) => {
+ resolveUpdate = resolve;
+ });
+ }
+ if (method === 'DELETE') {
+ return Response.json(
+ SavedThemeDeleteSuccessSchema.parse({
+ existed: true,
+ filename: 'latest.yaml',
+ scheme: scheme('Latest'),
+ }),
+ );
+ }
+ return Response.json(listBody([]));
+ });
+ render(
+ <SavedThemesProvider>
+ <SavedThemesProbe />
+ </SavedThemesProvider>,
+ );
+ await waitFor(() => expect(methods).toContain('GET'));
+
+ let updatePromise: ReturnType<NonNullable<typeof context>['updateTheme']> | undefined;
+ let deletePromise: ReturnType<NonNullable<typeof context>['deleteTheme']> | undefined;
+ act(() => {
+ updatePromise = context?.updateTheme({
+ id: 'saved-latest',
+ scheme: scheme('Latest'),
+ });
+ deletePromise = context?.deleteTheme('saved-latest');
+ });
+ await waitFor(() => expect(methods.filter((method) => method === 'PUT')).toHaveLength(1));
+ expect(methods).not.toContain('DELETE');
+
+ await act(async () => {
+ resolveUpdate?.(
+ Response.json(
+ SavedThemeUpdateSuccessSchema.parse({
+ id: 'saved-latest',
+ filename: 'latest.yaml',
+ }),
+ ),
+ );
+ await updatePromise;
+ await deletePromise;
+ });
+
+ expect(methods.slice(-2)).toEqual(['PUT', 'DELETE']);
+ });
+
+ test('increments an id incarnation when a saved theme is deleted', async () => {
+ stubFetch(async (_input, init) => {
+ if (init?.method === 'DELETE') {
+ return Response.json(
+ SavedThemeDeleteSuccessSchema.parse({
+ existed: true,
+ filename: 'ocean.yaml',
+ scheme: scheme('Ocean'),
+ }),
+ );
+ }
+ return Response.json(listBody([usableEntry('saved-ocean', 'Ocean')]));
+ });
+ render(
+ <SavedThemesProvider>
+ <SavedThemesProbe />
+ </SavedThemesProvider>,
+ );
+ await waitFor(() => expect(screen.getByTestId('themes').textContent).toContain('Ocean'));
+ expect(screen.getByTestId('ocean-incarnation').textContent).toBe('0');
+
+ await act(async () => {
+ await context?.deleteTheme('saved-ocean');
+ });
+
+ expect(context?.themeIncarnations['saved-ocean']).toBe(1);
+ expect(screen.getByTestId('ocean-incarnation').textContent).toBe('1');
+ });
+});
diff --git a/packages/app/src/lib/saved-themes-client.ts b/packages/app/src/lib/saved-themes-client.ts
new file mode 100644
index 000000000..46a4efffe
--- /dev/null
+++ b/packages/app/src/lib/saved-themes-client.ts
@@ -0,0 +1,502 @@
+import {
+ type Base16Scheme,
+ type ProblemDetails,
+ ProblemDetailsSchema,
+ parseSavedThemeId,
+ SavedThemeDeleteSuccessSchema,
+ type SavedThemeListEntry,
+ type SavedThemeSaveRequest,
+ SavedThemeSaveRequestSchema,
+ SavedThemeSaveSuccessSchema,
+ type SavedThemeScheme,
+ SavedThemeSchemeSchema,
+ SavedThemesListSuccessSchema,
+ SavedThemeUpdateRequestSchema,
+ SavedThemeUpdateSuccessSchema,
+} from '@inkeep/open-knowledge-core';
+import {
+ createContext,
+ createElement,
+ type ReactNode,
+ use,
+ useEffect,
+ useRef,
+ useState,
+} from 'react';
+import { base16ToTokens, COLOR_THEMES, type ColorTheme } from '@/lib/color-themes';
+import { useServerInstanceId } from '@/lib/server-instance-store';
+
+interface SavedThemeWarning {
+ filename: string;
+ id?: string;
+ code: string;
+ conflictingFilenames?: string[];
+}
+
+export interface SavedThemesData {
+ themes: readonly ColorTheme[];
+ warnings: readonly SavedThemeWarning[];
+ truncated: boolean;
+}
+
+export interface SavedThemesFetchResult extends SavedThemesData {
+ /** True only when the server returned a valid, complete list response. */
+ authoritative: boolean;
+}
+
+interface SavedThemesContextValue extends SavedThemesData {
+ /** True after the first authoritative list response, including an empty store. */
+ loaded: boolean;
+ /** The latest list attempt failed; retained data may still be shown. */
+ loadError: boolean;
+ refresh: () => Promise<boolean>;
+ updateTheme: (input: { id: string; scheme: Base16Scheme }) => Promise<UpdateSavedThemeResult>;
+ deleteTheme: (id: string) => Promise<DeleteSavedThemeResult>;
+ restoreTheme: (input: {
+ id: string;
+ name: string;
+ stem?: string;
+ scheme: SavedThemeScheme;
+ extension?: '.yaml' | '.yml';
+ }) => Promise<SaveSavedThemeResult>;
+ editingThemeId: string;
+ /** Identity generation for an id; increments whenever that saved theme is deleted. */
+ themeIncarnations: Readonly<Record<string, number>>;
+ themeEditorOpen: boolean;
+ selectThemeToEdit: (id: string | null) => void;
+}
+
+type SavedThemesRequest = (path: string, init?: RequestInit) => Promise<Response>;
+
+interface FetchSavedThemesOptions {
+ request?: SavedThemesRequest;
+ signal?: AbortSignal;
+}
+
+interface SavedThemeMutationOptions {
+ request?: SavedThemesRequest;
+}
+
+type SavedThemeNameDetail = 'empty' | 'too-long' | 'invalid-chars';
+
+export type SaveSavedThemeResult =
+ | { ok: true; id: string; filename: string }
+ | { ok: false; reason: 'name-taken' }
+ | { ok: false; reason: 'name-invalid'; detail?: SavedThemeNameDetail }
+ | { ok: false; reason: 'unexpected' };
+
+export type UpdateSavedThemeResult =
+ | { ok: true; id: string; filename: string }
+ | { ok: false; reason: 'not-found' | 'unexpected' };
+
+export type DeleteSavedThemeResult =
+ | { ok: true; existed: true; filename: string; scheme: SavedThemeScheme }
+ | { ok: true; existed: false }
+ | { ok: false; reason: 'unexpected' };
+
+type UsableSavedTheme = Extract<SavedThemeListEntry, { ok: true }>;
+
+function emptySavedThemes(authoritative: boolean): SavedThemesFetchResult {
+ return { authoritative, themes: COLOR_THEMES, warnings: [], truncated: false };
+}
+
+function savedThemeToColorTheme(entry: UsableSavedTheme): ColorTheme {
+ const { scheme } = entry;
+ return {
+ id: entry.id,
+ label: scheme.name,
+ kind: scheme.variant,
+ scheme,
+ toTokens: () => base16ToTokens(scheme),
+ };
+}
+
+function savedThemeSchemeToColorTheme(id: string, scheme: Base16Scheme): ColorTheme {
+ return {
+ id,
+ label: scheme.name,
+ kind: scheme.variant,
+ scheme,
+ toTokens: () => base16ToTokens(scheme),
+ };
+}
+
+function warnSavedThemeRequestFailure(
+ action: 'list' | 'save' | 'update' | 'delete',
+ result: 'http-error' | 'request-error',
+ details: { status?: number; error?: unknown } = {},
+): void {
+ console.warn(
+ JSON.stringify({
+ event: 'ok-saved-theme-request-failed',
+ action,
+ result,
+ ...(details.status === undefined ? {} : { status: details.status }),
+ ...(details.error === undefined
+ ? {}
+ : { errorName: details.error instanceof Error ? details.error.name : 'UnknownError' }),
+ }),
+ );
+}
+
+export async function fetchSavedThemes(
+ options: FetchSavedThemesOptions = {},
+): Promise<SavedThemesFetchResult> {
+ const request = options.request ?? globalThis.fetch;
+ try {
+ const response = await request('/api/saved-themes', { signal: options.signal });
+ if (!response.ok) {
+ warnSavedThemeRequestFailure('list', 'http-error', { status: response.status });
+ return emptySavedThemes(false);
+ }
+
+ const parsed = SavedThemesListSuccessSchema.safeParse(await response.json());
+ if (!parsed.success) {
+ console.warn('[themes] saved-themes response failed schema validation', parsed.error.issues);
+ return emptySavedThemes(false);
+ }
+
+ const savedThemes: ColorTheme[] = [];
+ const warnings: SavedThemeWarning[] = [];
+ for (const entry of parsed.data.themes) {
+ if (entry.ok) savedThemes.push(savedThemeToColorTheme(entry));
+ else {
+ warnings.push({
+ filename: entry.filename,
+ id: entry.id,
+ code: entry.code,
+ ...(entry.conflictingFilenames
+ ? { conflictingFilenames: entry.conflictingFilenames }
+ : {}),
+ });
+ }
+ }
+
+ return {
+ authoritative: true,
+ themes: savedThemes.length === 0 ? COLOR_THEMES : [...COLOR_THEMES, ...savedThemes],
+ warnings,
+ truncated: parsed.data.truncated,
+ };
+ } catch (error) {
+ if (options.signal?.aborted) return emptySavedThemes(false);
+ warnSavedThemeRequestFailure('list', 'request-error', { error });
+ return emptySavedThemes(false);
+ }
+}
+
+function nameDetail(problem: ProblemDetails): SavedThemeNameDetail | undefined {
+ switch (problem.detail) {
+ case 'empty':
+ case 'too-long':
+ case 'invalid-chars':
+ return problem.detail;
+ default:
+ return undefined;
+ }
+}
+
+export async function saveSavedTheme(
+ input: SavedThemeSaveRequest,
+ options: SavedThemeMutationOptions = {},
+): Promise<SaveSavedThemeResult> {
+ const payload = SavedThemeSaveRequestSchema.safeParse(input);
+ if (!payload.success) return { ok: false, reason: 'unexpected' };
+
+ const request = options.request ?? globalThis.fetch;
+ try {
+ const response = await request('/api/saved-theme', {
+ method: 'POST',
+ headers: { 'content-type': 'application/json' },
+ body: JSON.stringify(payload.data),
+ });
+ const body = (await response.json().catch(() => null)) as unknown;
+ if (response.ok) {
+ const success = SavedThemeSaveSuccessSchema.safeParse(body);
+ return success.success ? { ok: true, ...success.data } : { ok: false, reason: 'unexpected' };
+ }
+
+ const problem = ProblemDetailsSchema.safeParse(body);
+ if (!problem.success) return { ok: false, reason: 'unexpected' };
+ if (problem.data.type === 'urn:ok:error:theme-name-taken') {
+ return { ok: false, reason: 'name-taken' };
+ }
+ if (problem.data.type === 'urn:ok:error:theme-name-invalid') {
+ const detail = nameDetail(problem.data);
+ return detail
+ ? { ok: false, reason: 'name-invalid', detail }
+ : { ok: false, reason: 'name-invalid' };
+ }
+ return { ok: false, reason: 'unexpected' };
+ } catch (error) {
+ warnSavedThemeRequestFailure('save', 'request-error', { error });
+ return { ok: false, reason: 'unexpected' };
+ }
+}
+
+export async function updateSavedTheme(
+ input: { id: string; scheme: Base16Scheme },
+ options: SavedThemeMutationOptions = {},
+): Promise<UpdateSavedThemeResult> {
+ const payload = SavedThemeUpdateRequestSchema.safeParse(input);
+ if (!payload.success) return { ok: false, reason: 'unexpected' };
+
+ const request = options.request ?? globalThis.fetch;
+ try {
+ const response = await request('/api/saved-theme', {
+ method: 'PUT',
+ headers: { 'content-type': 'application/json' },
+ body: JSON.stringify(payload.data),
+ });
+ const body = (await response.json().catch(() => null)) as unknown;
+ if (response.ok) {
+ const success = SavedThemeUpdateSuccessSchema.safeParse(body);
+ return success.success ? { ok: true, ...success.data } : { ok: false, reason: 'unexpected' };
+ }
+ const problem = ProblemDetailsSchema.safeParse(body);
+ return problem.success && problem.data.type === 'urn:ok:error:not-found'
+ ? { ok: false, reason: 'not-found' }
+ : { ok: false, reason: 'unexpected' };
+ } catch (error) {
+ warnSavedThemeRequestFailure('update', 'request-error', { error });
+ return { ok: false, reason: 'unexpected' };
+ }
+}
+
+export async function deleteSavedTheme(
+ id: string,
+ options: SavedThemeMutationOptions = {},
+): Promise<DeleteSavedThemeResult> {
+ if (!parseSavedThemeId(id).ok) return { ok: false, reason: 'unexpected' };
+
+ const request = options.request ?? globalThis.fetch;
+ try {
+ const query = new URLSearchParams({ id });
+ const response = await request(`/api/saved-theme?${query}`, { method: 'DELETE' });
+ const body = (await response.json().catch(() => null)) as unknown;
+ if (!response.ok) return { ok: false, reason: 'unexpected' };
+
+ const success = SavedThemeDeleteSuccessSchema.safeParse(body);
+ if (!success.success) return { ok: false, reason: 'unexpected' };
+ if (!success.data.existed) return { ok: true, existed: false };
+ const scheme = SavedThemeSchemeSchema.safeParse(success.data.scheme);
+ return scheme.success
+ ? {
+ ok: true,
+ existed: true,
+ filename: success.data.filename,
+ scheme: scheme.data,
+ }
+ : { ok: false, reason: 'unexpected' };
+ } catch (error) {
+ warnSavedThemeRequestFailure('delete', 'request-error', { error });
+ return { ok: false, reason: 'unexpected' };
+ }
+}
+
+const SavedThemesContext = createContext<SavedThemesContextValue | null>(null);
+
+export function SavedThemesProvider({ children }: { children: ReactNode }) {
+ const serverInstanceId = useServerInstanceId();
+ const [data, setData] = useState<SavedThemesData>(() => emptySavedThemes(false));
+ const [loaded, setLoaded] = useState(false);
+ const [loadError, setLoadError] = useState(false);
+ const [editingThemeId, setEditingThemeId] = useState('custom');
+ const [themeEditorOpen, setThemeEditorOpen] = useState(false);
+ const themeIncarnationsRef = useRef<Record<string, number>>({});
+ const [themeIncarnations, setThemeIncarnations] = useState<Readonly<Record<string, number>>>({});
+ const mutationVersionRef = useRef(0);
+ const [requestManager] = useState(() => {
+ let generation = 0;
+ let inFlight: Promise<boolean> | null = null;
+ let trailingRequested = false;
+ let activeController: AbortController | null = null;
+ let retryTimer: ReturnType<typeof setTimeout> | undefined;
+ const retryDelays = [250, 1_000, 4_000] as const;
+
+ const clearRetryTimer = () => {
+ if (retryTimer !== undefined) clearTimeout(retryTimer);
+ retryTimer = undefined;
+ };
+
+ const refresh = (): Promise<boolean> => {
+ if (inFlight) {
+ trailingRequested = true;
+ return inFlight;
+ }
+ const requestGeneration = generation;
+ const run = async () => {
+ let latestResponseAuthoritative = false;
+ do {
+ trailingRequested = false;
+ const requestVersion = mutationVersionRef.current;
+ const controller = new AbortController();
+ activeController = controller;
+ const { authoritative, ...next } = await fetchSavedThemes({
+ signal: controller.signal,
+ });
+ if (requestGeneration !== generation) return false;
+ latestResponseAuthoritative = authoritative;
+ if (authoritative) {
+ clearRetryTimer();
+ if (requestVersion === mutationVersionRef.current) setData(next);
+ setLoaded(true);
+ setLoadError(false);
+ } else {
+ setLoadError(true);
+ }
+ } while (trailingRequested);
+ return latestResponseAuthoritative;
+ };
+ const promise = run().finally(() => {
+ if (inFlight === promise) inFlight = null;
+ });
+ inFlight = promise;
+ return promise;
+ };
+
+ const startAutomaticRetry = () => {
+ generation += 1;
+ const retryGeneration = generation;
+ activeController?.abort();
+ activeController = null;
+ inFlight = null;
+ trailingRequested = false;
+ clearRetryTimer();
+
+ const load = async (attempt: number) => {
+ const authoritative = await refresh();
+ if (retryGeneration !== generation || authoritative || attempt >= retryDelays.length) {
+ return;
+ }
+ retryTimer = setTimeout(() => void load(attempt + 1), retryDelays[attempt]);
+ };
+
+ void load(0);
+ return () => {
+ if (retryGeneration !== generation) return;
+ generation += 1;
+ activeController?.abort();
+ activeController = null;
+ inFlight = null;
+ trailingRequested = false;
+ clearRetryTimer();
+ };
+ };
+
+ return { refresh, startAutomaticRetry };
+ });
+ const refresh = requestManager.refresh;
+ const [mutations] = useState(() => {
+ const tails = new Map<string, Promise<void>>();
+ const enqueue = <Result>(id: string, mutation: () => Promise<Result>): Promise<Result> => {
+ const previous = tails.get(id) ?? Promise.resolve();
+ const result = previous.then(mutation, mutation);
+ const tail = result.then(
+ () => undefined,
+ () => undefined,
+ );
+ tails.set(id, tail);
+ void tail.finally(() => {
+ if (tails.get(id) === tail) tails.delete(id);
+ });
+ return result;
+ };
+ const upsertTheme = (id: string, scheme: Base16Scheme, filename?: string) => {
+ mutationVersionRef.current += 1;
+ const nextTheme = savedThemeSchemeToColorTheme(id, scheme);
+ setData((current) => ({
+ ...current,
+ themes: current.themes.some((theme) => theme.id === id)
+ ? current.themes.map((theme) => (theme.id === id ? nextTheme : theme))
+ : [...current.themes, nextTheme],
+ warnings: current.warnings.filter(
+ (warning) =>
+ warning.id !== id && (filename === undefined || warning.filename !== filename),
+ ),
+ }));
+ };
+ return {
+ updateTheme: (input: { id: string; scheme: Base16Scheme }) =>
+ enqueue(input.id, async () => {
+ const result = await updateSavedTheme(input);
+ if (result.ok) upsertTheme(input.id, input.scheme, result.filename);
+ return result;
+ }),
+ deleteTheme: (id: string) =>
+ enqueue(id, async () => {
+ const result = await deleteSavedTheme(id);
+ if (result.ok) {
+ const nextIncarnations = {
+ ...themeIncarnationsRef.current,
+ [id]: (themeIncarnationsRef.current[id] ?? 0) + 1,
+ };
+ themeIncarnationsRef.current = nextIncarnations;
+ setThemeIncarnations(nextIncarnations);
+ mutationVersionRef.current += 1;
+ setData((current) => ({
+ ...current,
+ themes: current.themes.filter((theme) => theme.id !== id),
+ warnings: current.warnings.filter((warning) => warning.id !== id),
+ }));
+ }
+ return result;
+ }),
+ restoreTheme: (input: {
+ id: string;
+ name: string;
+ stem?: string;
+ scheme: SavedThemeScheme;
+ extension?: '.yaml' | '.yml';
+ }) =>
+ enqueue(input.id, async () => {
+ const result = await saveSavedTheme({
+ name: input.name,
+ stem: input.stem,
+ scheme: input.scheme,
+ extension: input.extension,
+ });
+ if (result.ok) upsertTheme(result.id, input.scheme, result.filename);
+ return result;
+ }),
+ };
+ });
+
+ // biome-ignore lint/correctness/useExhaustiveDependencies: a new server epoch invalidates in-flight work and restarts startup recovery.
+ useEffect(() => {
+ return requestManager.startAutomaticRetry();
+ }, [requestManager, serverInstanceId]);
+
+ function selectThemeToEdit(id: string | null) {
+ if (id === null) {
+ setThemeEditorOpen(false);
+ return;
+ }
+ setEditingThemeId(id);
+ setThemeEditorOpen(true);
+ }
+
+ return createElement(
+ SavedThemesContext,
+ {
+ value: {
+ ...data,
+ loaded,
+ loadError,
+ refresh,
+ ...mutations,
+ editingThemeId,
+ themeIncarnations,
+ themeEditorOpen,
+ selectThemeToEdit,
+ },
+ },
+ children,
+ );
+}
+
+export function useSavedThemes(): SavedThemesContextValue {
+ const context = use(SavedThemesContext);
+ if (!context) throw new Error('useSavedThemes must be used within <SavedThemesProvider />');
+ return context;
+}
diff --git a/packages/app/src/lib/saved-themes-telemetry.test.ts b/packages/app/src/lib/saved-themes-telemetry.test.ts
new file mode 100644
index 000000000..94fd56935
--- /dev/null
+++ b/packages/app/src/lib/saved-themes-telemetry.test.ts
@@ -0,0 +1,13 @@
+import { describe, expect, test } from 'vitest';
+import { savedThemePairState } from './saved-themes-telemetry';
+
+describe('savedThemePairState', () => {
+ test.each([
+ [{ light: 'saved-day', dark: 'saved-night' }, 'different'],
+ [{ light: 'saved-personal', dark: 'saved-personal' }, 'same'],
+ [{ light: 'saved-day', dark: 'default' }, 'incomplete'],
+ [{ light: 'dracula', dark: 'gruvbox' }, 'incomplete'],
+ ] as const)('classifies %j as %s without exposing either id', (selection, expected) => {
+ expect(savedThemePairState(selection)).toBe(expected);
+ });
+});
diff --git a/packages/app/src/lib/saved-themes-telemetry.ts b/packages/app/src/lib/saved-themes-telemetry.ts
new file mode 100644
index 000000000..fb391fe41
--- /dev/null
+++ b/packages/app/src/lib/saved-themes-telemetry.ts
@@ -0,0 +1,30 @@
+import { trace } from '@opentelemetry/api';
+import type { ColorThemeSelection } from './color-themes';
+
+const TRACER_NAME = 'open-knowledge-app';
+
+export type SavedThemePairState = 'different' | 'incomplete' | 'same';
+
+export function savedThemePairState(selection: ColorThemeSelection): SavedThemePairState {
+ const lightSaved = selection.light.startsWith('saved-');
+ const darkSaved = selection.dark.startsWith('saved-');
+ if (!lightSaved || !darkSaved) return 'incomplete';
+ return selection.light === selection.dark ? 'same' : 'different';
+}
+
+/** Record the bounded relationship only; theme ids and names never leave the renderer. */
+export function recordSavedThemeAssignment(selection: ColorThemeSelection): void {
+ try {
+ trace
+ .getTracer(TRACER_NAME)
+ .startSpan('ok.saved_themes.assignment', {
+ attributes: { 'saved_theme.pair': savedThemePairState(selection) },
+ })
+ .end();
+ } catch (err) {
+ console.warn(
+ '[saved-theme-telemetry] assignment span emit failed:',
+ err instanceof Error ? err : String(err),
+ );
+ }
+}
diff --git a/packages/app/src/lib/use-apply-config-color-theme.dom.test.tsx b/packages/app/src/lib/use-apply-config-color-theme.dom.test.tsx
index 07790b5a1..7d043437f 100644
--- a/packages/app/src/lib/use-apply-config-color-theme.dom.test.tsx
+++ b/packages/app/src/lib/use-apply-config-color-theme.dom.test.tsx
@@ -1,6 +1,11 @@
import { cleanup, render } from '@testing-library/react';
import { afterEach, beforeAll, describe, expect, test } from 'vitest';
-import type { ColorThemeSelection } from './color-themes';
+import {
+ COLOR_THEMES,
+ type ColorTheme,
+ type ColorThemeSelection,
+ DEFAULT_CUSTOM_SCHEME,
+} from './color-themes';
import {
type ApplyColorThemeInput,
applyColorThemeToDom,
@@ -9,6 +14,7 @@ import {
COLOR_THEME_STORAGE_KEY,
CUSTOM_THEME_STORAGE_KEY,
CUSTOM_THEME_STYLE_ID,
+ SAVED_THEME_STYLE_ID,
useApplyConfigColorTheme,
} from './use-apply-config-color-theme';
@@ -32,8 +38,8 @@ function apply(input: Partial<ApplyColorThemeInput> & { selection: ColorThemeSel
function readSelectionCache(): {
pref?: string;
- light?: { id: string; dark: boolean };
- dark?: { id: string; dark: boolean };
+ light?: { id: string; dark: boolean; css?: string };
+ dark?: { id: string; dark: boolean; css?: string };
} {
return JSON.parse(localStorage.getItem(COLOR_THEME_PAIR_STORAGE_KEY) ?? '{}');
}
@@ -42,16 +48,22 @@ function Harness({
selection,
slotMode = 'dark',
enabled,
+ themes,
+ ready,
}: {
selection: ColorThemeSelection;
slotMode?: 'light' | 'dark';
enabled?: boolean;
+ themes?: readonly ColorTheme[];
+ ready?: boolean;
}) {
useApplyConfigColorTheme({
selection,
modePreference: slotMode,
slotMode,
enabled: enabled ?? true,
+ themes,
+ ready,
});
return null;
}
@@ -70,6 +82,7 @@ function CustomHarness({ enabled }: { enabled: boolean }) {
function resetDom(): void {
document.documentElement.removeAttribute(COLOR_THEME_ATTRIBUTE);
document.getElementById(CUSTOM_THEME_STYLE_ID)?.remove();
+ document.getElementById(SAVED_THEME_STYLE_ID)?.remove();
try {
localStorage.removeItem(COLOR_THEME_PAIR_STORAGE_KEY);
localStorage.removeItem(COLOR_THEME_STORAGE_KEY);
@@ -96,6 +109,45 @@ describe('useApplyConfigColorTheme', () => {
expect(document.documentElement.getAttribute(COLOR_THEME_ATTRIBUTE)).toBe('catppuccin-latte');
});
+ test('an OS-driven mode flip applies each saved palette assigned to its slot', () => {
+ const themes: readonly ColorTheme[] = [
+ ...COLOR_THEMES,
+ {
+ id: 'saved-day',
+ label: 'Day',
+ kind: 'light',
+ scheme: {
+ ...DEFAULT_CUSTOM_SCHEME,
+ name: 'Day',
+ variant: 'light',
+ palette: { ...DEFAULT_CUSTOM_SCHEME.palette, base00: '#fafafa' },
+ },
+ },
+ {
+ id: 'saved-night',
+ label: 'Night',
+ kind: 'dark',
+ scheme: {
+ ...DEFAULT_CUSTOM_SCHEME,
+ name: 'Night',
+ palette: { ...DEFAULT_CUSTOM_SCHEME.palette, base00: '#08090a' },
+ },
+ },
+ ];
+ const selection: ColorThemeSelection = { light: 'saved-day', dark: 'saved-night' };
+
+ const { rerender } = render(<Harness selection={selection} slotMode="light" themes={themes} />);
+ expect(document.documentElement.getAttribute(COLOR_THEME_ATTRIBUTE)).toBe('saved-day');
+ expect(document.head.textContent).toContain('--background: #fafafa;');
+ expect(readSelectionCache().light?.css).toContain('--background: #fafafa;');
+ expect(readSelectionCache().dark?.css).toContain('--background: #08090a;');
+
+ rerender(<Harness selection={selection} slotMode="dark" themes={themes} />);
+ expect(document.documentElement.getAttribute(COLOR_THEME_ATTRIBUTE)).toBe('saved-night');
+ expect(document.head.textContent).toContain('--background: #08090a;');
+ expect(document.head.textContent).not.toContain('--background: #fafafa;');
+ });
+
test('caches BOTH slots, so a reload landing in the other mode still pre-paints', () => {
render(<Harness selection={{ light: 'catppuccin-latte', dark: 'dracula' }} slotMode="dark" />);
const cached = readSelectionCache();
@@ -142,6 +194,27 @@ describe('useApplyConfigColorTheme', () => {
render(<Harness selection={both('not-a-real-theme' as ColorThemeSelection['light'])} />);
expect(document.documentElement.hasAttribute(COLOR_THEME_ATTRIBUTE)).toBe(false);
});
+
+ test('preserves the prepaint palette until startup config and saved themes are ready', () => {
+ document.documentElement.setAttribute(COLOR_THEME_ATTRIBUTE, 'saved-prepaint');
+ const style = document.createElement('style');
+ style.id = SAVED_THEME_STYLE_ID;
+ style.textContent = 'html[data-color-theme="saved-prepaint"] { --background: #123456; }';
+ document.head.appendChild(style);
+
+ render(
+ <Harness
+ selection={both('saved-prepaint' as ColorThemeSelection['light'])}
+ themes={COLOR_THEMES}
+ ready={false}
+ />,
+ );
+
+ expect(document.documentElement.getAttribute(COLOR_THEME_ATTRIBUTE)).toBe('saved-prepaint');
+ expect(document.getElementById(SAVED_THEME_STYLE_ID)?.textContent).toContain(
+ '--background: #123456;',
+ );
+ });
});
describe('useApplyConfigColorTheme — Themes plugin disabled', () => {
@@ -170,7 +243,8 @@ describe('useApplyConfigColorTheme — Themes plugin disabled', () => {
test('disabling removes the custom <style> and both FOUC mirror entries', () => {
const { rerender } = render(<CustomHarness enabled />);
expect(document.getElementById(CUSTOM_THEME_STYLE_ID)).not.toBeNull();
- expect(localStorage.getItem(CUSTOM_THEME_STORAGE_KEY)).not.toBeNull();
+ expect(readSelectionCache().dark?.css).toContain('--background: #101014;');
+ expect(localStorage.getItem(CUSTOM_THEME_STORAGE_KEY)).toBeNull();
rerender(<CustomHarness enabled={false} />);
expect(document.documentElement.hasAttribute(COLOR_THEME_ATTRIBUTE)).toBe(false);
@@ -207,6 +281,21 @@ describe('applyColorThemeToDom', () => {
expect(localStorage.getItem(COLOR_THEME_STORAGE_KEY)).toBeNull();
});
+ test('retires the previous custom stylesheet cache after writing the self-contained pair', () => {
+ localStorage.setItem(
+ CUSTOM_THEME_STORAGE_KEY,
+ JSON.stringify({ css: 'legacy custom css', dark: true }),
+ );
+
+ apply({
+ selection: both('custom'),
+ customSeed: { background: '#0a0a0a' },
+ });
+
+ expect(readSelectionCache().dark?.css).toContain('--background: #0a0a0a;');
+ expect(localStorage.getItem(CUSTOM_THEME_STORAGE_KEY)).toBeNull();
+ });
+
test('a default slot caches the mode it resolves to, so pre-paint needs no palette table', () => {
// `default` carries no palette, so its cached flag is just the slot's own
// mode — which is what lets the pre-paint script set the `dark` class
@@ -234,9 +323,10 @@ describe('applyColorThemeToDom — custom palette', () => {
expect(style?.textContent).toContain('--background: #0a0a0a;');
expect(style?.textContent).toContain('--primary: #abcdef;');
- const cached = JSON.parse(localStorage.getItem(CUSTOM_THEME_STORAGE_KEY) ?? '{}');
- expect(cached.css).toContain('--background: #0a0a0a;');
- expect(cached.dark).toBe(true);
+ const cached = readSelectionCache();
+ expect(cached.light?.css).toContain('--background: #0a0a0a;');
+ expect(cached.dark?.css).toContain('--background: #0a0a0a;');
+ expect(cached.dark?.dark).toBe(true);
});
test('caches the custom CSS while custom sits in the OTHER slot, without injecting it', () => {
@@ -249,7 +339,7 @@ describe('applyColorThemeToDom — custom palette', () => {
});
expect(document.documentElement.getAttribute(COLOR_THEME_ATTRIBUTE)).toBe('dracula');
expect(document.getElementById(CUSTOM_THEME_STYLE_ID)).toBeNull();
- expect(localStorage.getItem(CUSTOM_THEME_STORAGE_KEY)).not.toBeNull();
+ expect(readSelectionCache().light?.css).toContain('--background: #0a0a0a;');
});
test('dropping custom from both slots removes the <style> and the cache', () => {
@@ -268,7 +358,6 @@ describe('applyColorThemeToDom — custom palette', () => {
});
const style = document.getElementById(CUSTOM_THEME_STYLE_ID);
expect(style?.textContent).toContain('color-scheme: light;');
- const cached = JSON.parse(localStorage.getItem(CUSTOM_THEME_STORAGE_KEY) ?? '{}');
- expect(cached.dark).toBe(false);
+ expect(readSelectionCache().dark?.dark).toBe(false);
});
});
diff --git a/packages/app/src/lib/use-apply-config-color-theme.ts b/packages/app/src/lib/use-apply-config-color-theme.ts
index c3393d62e..c9d561bf4 100644
--- a/packages/app/src/lib/use-apply-config-color-theme.ts
+++ b/packages/app/src/lib/use-apply-config-color-theme.ts
@@ -1,6 +1,10 @@
+import { renderThemeBlock } from '@inkeep/open-knowledge-core';
import { useEffect } from 'react';
import {
+ base16ToTokens,
buildCustomThemeCss,
+ COLOR_THEMES,
+ type ColorTheme,
type ColorThemeSelection,
colorThemeMode,
customThemeKind,
@@ -29,7 +33,7 @@ export const COLOR_THEME_PAIR_STORAGE_KEY = 'ok-color-theme-pair-v1';
/** The single-palette FOUC cache written before the light/dark pair existed. */
export const COLOR_THEME_STORAGE_KEY = 'ok-color-theme-v1';
-/** localStorage key holding the active custom theme's prebuilt CSS + kind, for flash-free reload. */
+/** Shared single-palette CSS cache written by older builds. Removed after the pair cache is written. */
export const CUSTOM_THEME_STORAGE_KEY = 'ok-custom-theme-v1';
/** The `<html>` attribute the generated `color-themes.generated.css` rules key off. */
@@ -38,12 +42,16 @@ export const COLOR_THEME_ATTRIBUTE = 'data-color-theme';
/** id of the runtime `<style>` element holding the active custom palette. */
export const CUSTOM_THEME_STYLE_ID = 'ok-custom-theme';
+/** id of the runtime `<style>` element holding the active saved palette. */
+export const SAVED_THEME_STYLE_ID = 'ok-saved-theme';
+
type SeedInput = Record<string, unknown> | undefined;
-/** One slot of the FOUC cache: which palette, and whether it paints dark. */
+/** One slot of the FOUC cache, including prebuilt CSS when the palette is runtime-authored. */
interface CachedSlot {
id: string;
dark: boolean;
+ css?: string;
}
export interface ApplyColorThemeInput {
@@ -55,8 +63,17 @@ export interface ApplyColorThemeInput {
slotMode: 'light' | 'dark';
/** The user's custom-theme scheme (partial); only consulted for the `custom` palette. */
customSeed?: SeedInput;
+ /** Built-in and saved palettes available to resolve the selected ids. */
+ themes?: readonly ColorTheme[];
/** The Themes plugin toggle. Off applies exactly like `default`. */
enabled?: boolean;
+ /**
+ * Whether startup config and any selected saved-theme registry entries are
+ * authoritative. While false, the hook leaves the prepaint DOM untouched so
+ * hydration cannot flash the default palette between cache replay and sync.
+ * Direct imperative calls are ready by definition.
+ */
+ ready?: boolean;
}
function upsertCustomStyle(css: string): void {
@@ -73,29 +90,79 @@ function removeCustomStyle(): void {
document.getElementById(CUSTOM_THEME_STYLE_ID)?.remove();
}
+function savedThemeCss(theme: ColorTheme): string | undefined {
+ if (!theme.scheme) return undefined;
+ return renderThemeBlock(
+ `html[${COLOR_THEME_ATTRIBUTE}]`,
+ theme.scheme.variant,
+ base16ToTokens(theme.scheme),
+ );
+}
+
+function upsertSavedThemeStyle(css: string): void {
+ let style = document.getElementById(SAVED_THEME_STYLE_ID) as HTMLStyleElement | null;
+ if (!style) {
+ style = document.createElement('style');
+ style.id = SAVED_THEME_STYLE_ID;
+ document.head.appendChild(style);
+ }
+ if (style.textContent !== css) style.textContent = css;
+}
+
+function removeSavedThemeStyle(): void {
+ document.getElementById(SAVED_THEME_STYLE_ID)?.remove();
+}
+
/**
* The `dark`-class state a palette produces in a given slot. A palette carries
* its own variant and keeps forcing it — a dark scheme picked as the light-mode
* palette still paints dark, so Tailwind `dark:` variants resolve against the
* tokens actually on screen. Only a palette-less `default` defers to the slot.
*/
-function slotIsDark(id: string, slot: 'light' | 'dark', customSeed: SeedInput): boolean {
+function slotIsDark(
+ id: string,
+ slot: 'light' | 'dark',
+ customSeed: SeedInput,
+ themes: readonly ColorTheme[],
+): boolean {
if (id === 'custom') return customThemeKind(resolveCustomScheme(customSeed)) === 'dark';
- return (colorThemeMode(id) ?? slot) === 'dark';
+ return (colorThemeMode(id, themes) ?? slot) === 'dark';
+}
+
+function slotCss(
+ id: string,
+ customSeed: SeedInput,
+ themes: readonly ColorTheme[],
+): string | undefined {
+ if (id === 'custom') return buildCustomThemeCss(resolveCustomScheme(customSeed));
+ if (COLOR_THEMES.some((theme) => theme.id === id)) return undefined;
+ const theme = themes.find((candidate) => candidate.id === id);
+ return theme ? savedThemeCss(theme) : undefined;
+}
+
+function cachedSlot(
+ id: string,
+ slot: 'light' | 'dark',
+ customSeed: SeedInput,
+ themes: readonly ColorTheme[],
+): CachedSlot {
+ const dark = slotIsDark(id, slot, customSeed, themes);
+ const css = slotCss(id, customSeed, themes);
+ return css ? { id, dark, css } : { id, dark };
}
/** Which palette applies right now, and whether it paints dark. */
function activeColorTheme(input: ApplyColorThemeInput): CachedSlot {
- const { selection, slotMode, customSeed, enabled = true } = input;
- const id = resolveColorTheme(enabled ? selection[slotMode] : 'default').id;
- return { id, dark: slotIsDark(id, slotMode, customSeed) };
+ const { selection, slotMode, customSeed, themes = COLOR_THEMES, enabled = true } = input;
+ const id = resolveColorTheme(enabled ? selection[slotMode] : 'default', themes).id;
+ return { id, dark: slotIsDark(id, slotMode, customSeed, themes) };
}
/**
* Apply the mode-selected color theme to the DOM now: set (or clear, for
* `default`) the `data-color-theme` attribute on `<html>`, inject/remove the
- * runtime custom palette `<style>`, and mirror the whole pair into the
- * localStorage caches the pre-paint FOUC script reads on the next reload.
+ * runtime palette `<style>`, and mirror the whole pair into the localStorage
+ * cache the pre-paint FOUC script reads on the next reload.
* Idempotent. Shared by the config effect below and the Settings picker's
* optimistic on-click apply so both paths stay byte-identical.
*
@@ -110,8 +177,9 @@ function activeColorTheme(input: ApplyColorThemeInput): CachedSlot {
*/
export function applyColorThemeToDom(input: ApplyColorThemeInput): void {
if (typeof document === 'undefined') return;
- const { selection, modePreference, customSeed, enabled = true } = input;
+ const { selection, modePreference, customSeed, themes = COLOR_THEMES, enabled = true } = input;
const active = activeColorTheme(input);
+ const activeTheme = resolveColorTheme(active.id, themes);
const root = document.documentElement;
if (active.id === 'default') {
@@ -120,21 +188,16 @@ export function applyColorThemeToDom(input: ApplyColorThemeInput): void {
root.setAttribute(COLOR_THEME_ATTRIBUTE, active.id);
}
- // The custom scheme's stylesheet is cached whenever `custom` sits in EITHER
- // slot, so a reload that lands in the other mode can still replay it; the
- // <style> itself is only injected while `custom` is the palette on screen.
- const customInSelection =
- enabled && (selection.light === 'custom' || selection.dark === 'custom');
- let customCacheEntry: string | null = null;
- if (customInSelection) {
- const scheme = resolveCustomScheme(customSeed);
- const css = buildCustomThemeCss(scheme);
- customCacheEntry = JSON.stringify({ css, dark: customThemeKind(scheme) === 'dark' });
- if (active.id === 'custom') upsertCustomStyle(css);
- else removeCustomStyle();
- } else {
- removeCustomStyle();
- }
+ const activeSavedCss =
+ !COLOR_THEMES.some((theme) => theme.id === active.id) && activeTheme.id === active.id
+ ? savedThemeCss(activeTheme)
+ : undefined;
+ if (activeSavedCss) upsertSavedThemeStyle(activeSavedCss);
+ else removeSavedThemeStyle();
+
+ if (active.id === 'custom') {
+ upsertCustomStyle(buildCustomThemeCss(resolveCustomScheme(customSeed)));
+ } else removeCustomStyle();
const bothDefault = selection.light === 'default' && selection.dark === 'default';
try {
@@ -145,8 +208,8 @@ export function applyColorThemeToDom(input: ApplyColorThemeInput): void {
COLOR_THEME_PAIR_STORAGE_KEY,
JSON.stringify({
pref: modePreference === 'light' || modePreference === 'dark' ? modePreference : 'system',
- light: { id: selection.light, dark: slotIsDark(selection.light, 'light', customSeed) },
- dark: { id: selection.dark, dark: slotIsDark(selection.dark, 'dark', customSeed) },
+ light: cachedSlot(selection.light, 'light', customSeed, themes),
+ dark: cachedSlot(selection.dark, 'dark', customSeed, themes),
}),
);
}
@@ -154,11 +217,7 @@ export function applyColorThemeToDom(input: ApplyColorThemeInput): void {
// pair is absent, so a stale one left by an older build would shadow a
// deliberate reset back to `default`.
localStorage.removeItem(COLOR_THEME_STORAGE_KEY);
- if (customCacheEntry) {
- localStorage.setItem(CUSTOM_THEME_STORAGE_KEY, customCacheEntry);
- } else {
- localStorage.removeItem(CUSTOM_THEME_STORAGE_KEY);
- }
+ localStorage.removeItem(CUSTOM_THEME_STORAGE_KEY);
} catch {
// Private-mode / storage-disabled: the attribute + style are still applied
// for this session; only the next-reload FOUC pre-paint is forgone.
@@ -181,7 +240,15 @@ export function applyColorThemeToDom(input: ApplyColorThemeInput): void {
* this effect in other windows.
*/
export function useApplyConfigColorTheme(input: ApplyColorThemeInput): void {
- const { selection, modePreference, slotMode, customSeed, enabled = true } = input;
+ const {
+ selection,
+ modePreference,
+ slotMode,
+ customSeed,
+ themes,
+ enabled = true,
+ ready = true,
+ } = input;
// Serialize the scheme so the effect re-runs on a live color edit while the
// custom theme is in play, without depending on object identity. `seedKey` is
// the value-stable proxy for `customSeed`; depending on the object directly
@@ -192,6 +259,7 @@ export function useApplyConfigColorTheme(input: ApplyColorThemeInput): void {
: '';
// biome-ignore lint/correctness/useExhaustiveDependencies: seedKey is the value-stable proxy for customSeed (see above).
useEffect(() => {
- applyColorThemeToDom({ selection, modePreference, slotMode, customSeed, enabled });
- }, [selection.light, selection.dark, modePreference, slotMode, seedKey, enabled]);
+ if (!ready) return;
+ applyColorThemeToDom({ selection, modePreference, slotMode, customSeed, themes, enabled });
+ }, [selection.light, selection.dark, modePreference, slotMode, seedKey, themes, enabled, ready]);
}
diff --git a/packages/app/src/locales/ar/messages.json b/packages/app/src/locales/ar/messages.json
index 875697179..bc56328c2 100644
--- a/packages/app/src/locales/ar/messages.json
+++ b/packages/app/src/locales/ar/messages.json
@@ -58,11 +58,13 @@
"يُرسل بشكل خاص إلى فريق OpenKnowledge، مع ملاحظتك ونسخة التطبيق. لا يُنشر علنًا أبدًا."
],
"-oHckY": ["قرأ OpenKnowledge الإعداد ", ["key"]],
+ "-othoN": ["ملف السمة هذا كبير جدًا"],
"-q4abP": [
"النتائج محدودة — تحتوي مساحة العمل هذه على ملفات أكثر مما يستطيع البحث فهرسته. قد يكون الملف المفقود أثرًا للحد، لا خطأً إملائيًا."
],
"-slrNR": ["بدّل قائمة المهام."],
"-uaQnI": ["لا توجد أشجار عمل أو فروع مطابقة."],
+ "-yOx8u": ["جارٍ حفظ التغييرات…"],
"-yPBXI": ["اختر ملفًا"],
"-ySLQJ": ["Git وطلبات السحب"],
"-zA2E7": ["تعذّر إنشاء شجرة العمل. جرّب اسمًا مختلفًا."],
@@ -125,6 +127,7 @@
"0kTAXe": ["فتح المصدر: ", ["mirrorSrc"]],
"0pZmTP": ["تعذّرت مشاركة هذا المسار."],
"0qyKG6": ["متزامن من القرص"],
+ "0r6d6v": ["حُفظت التغييرات تلقائيًا."],
"0rwwOn": ["حسب الوسم"],
"0s8-e8": [
"حدّد مكوّنات الكتل وكتل المصدر الاحتياطية أو ادخلها أو غادرها من حدود لوحة المفاتيح."
@@ -135,6 +138,7 @@
"0xnQ_X": ["تتدفق التحديثات إلى الداخل"],
"0xnmlQ": ["اسم المستودع"],
"0yL--g": ["مراجعة التعارضات"],
+ "0ySP5u": ["تُحفظ التغييرات تلقائيًا في هذه السمة."],
"0zAhu6": ["كل مستند"],
"10g8I_": ["إيقاف «ملفات Markdown فقط»"],
"11ukmX": ["فشلت إعادة التسمية: ", ["0"]],
@@ -144,6 +148,7 @@
"161NCV": ["يجري الإيقاف"],
"16D5Zj": ["هل أنت متأكد أنك تريد حذف ", ["itemName"], "؟ لا يمكن التراجع عن هذا الإجراء."],
"16eIWu": ["إيقاف قسري"],
+ "16tSS_": ["الصق سمة base16"],
"170Js2": ["إخفاء اللوحة"],
"1AumWo": ["فشل الدفع — راجع سجلات الخادم للتفاصيل."],
"1CalO6": ["النمط"],
@@ -174,6 +179,7 @@
"1njn7W": ["فاتح"],
"1nke1r": ["فتح ", ["0"], " على GitHub (يفتح في تبويب جديد)"],
"1oSHI0": ["تعذّر تثبيت ", ["skillName"], ": ", ["0"]],
+ "1qpGKz": ["تعذّر حفظ التغييرات. حاول تعديل لون مرة أخرى."],
"1ruosn": ["OpenKnowledge"],
"1t_NnN": ["رفض"],
"1u-mAI": ["تعذّر بدء المزامنة. تحقق من اتصالك، ثم أعد المحاولة."],
@@ -308,7 +314,6 @@
"3kYcuM": ["هل تريد بالتأكيد حذف العناصر المحددة؟"],
"3l32hp": ["جزء من إضافة ", ["plugin"]],
"3l_cXP": ["ألقِ نظرة إن أردت. هذا الملف بعينه هو ما نستلمه."],
- "3l_knd": ["اضغط الشمس أو القمر على “مخصص” أعلاه لاستخدام هذا المخطط."],
"3m2GBo": ["يجري البحث في المستندات"],
"3mFsc3": ["الاستعادة مع تغييرات المستودع البعيد"],
"3nnyi_": [
@@ -372,6 +377,7 @@
"4TzU0n": ["تهيئة"],
"4buZWd": ["موروث من ", ["path"]],
"4c_a6S": ["لم يُضبط شيء بعد."],
+ "4d0VYJ": ["سننشئ معرّف سمة آمنًا من هذا الاسم."],
"4eO-iB": ["تجاهل هذا التعليق"],
"4g19V6": ["فشل تحديث الخاصية"],
"4h3e0H": ["تعذّر تحديث مشاركة المهارات — ", ["detail"], "."],
@@ -501,6 +507,7 @@
"صِف ما ينبغي أن تفعله، أو أضف واحدة بنفسك. يحفظ OpenKnowledge مهاراتك في مكان واحد، ويؤرشف إصداراتها، ويثبّتها في وكلاء مثل Claude وCodex وCursor."
],
"6MnZEC": ["فشل تحميل الطرفية"],
+ "6Nea1q": ["استخدام ", ["0"], " للوضع الداكن النشط"],
"6O626z": ["لا توجد عناوين تطابق «", ["trimmedAnchorQuery"], "»"],
"6Pxqwv": [
"لا توجد قوالب مشروع بعد. أنشئ واحدًا لإتاحته في كل مكان في هذا المشروع. أما القوالب المقيَّدة بمجلد فتعيش في صفحة النظرة العامة لكل مجلد."
@@ -510,6 +517,7 @@
"6VqW-1": ["إزالة ", ["keyName"]],
"6WdDG7": ["صفحة"],
"6YBJ3m": ["اسأل الذكاء الاصطناعي عن التحديد"],
+ "6YE0P6": ["جارٍ تحرير ", ["0"]],
"6YtxFj": ["الاسم"],
"6ZhdPI": ["ما يجوز للوكيل قراءته وكتابته وإظهاره."],
"6_ZOw4": ["تم نسخ المسار الكامل"],
@@ -565,6 +573,7 @@
]
],
"6vEr3W": ["وجهة الرابط"],
+ "6xeZX9": ["تُطبّق التعديلات مباشرة. تحدد السمة الوضع الفاتح أو الداكن."],
"6zzhQL": ["أرسل تقريرك بالبريد الإلكتروني"],
"72xhRD": ["وضع عرض المخطط"],
"74-bX-": ["الاقتباس البارز يتميز عن النص المحيط به."],
@@ -576,13 +585,13 @@
"تحقّق من frontmatter المستندات مقابل ملفات JSON Schema، بنطاق محدَّد لمجموعات المستندات بأنماط glob."
],
"7Bj3x9": ["فشل"],
- "7EmDc7": ["استيراد مخطط"],
"7FA2iI": ["تعذّرت قراءة التعليقات المنتظرة للإرسال — لم يُرسل شيء."],
"7FamGZ": ["الانتقال إلى سطر"],
"7Fkcej": ["+ إضافة ", ["addChildName"]],
"7H4UHD": ["مستندات موسومة بـ <0>#", ["tagName"], "</0>"],
"7IsvrP": ["يجري التحقق من التحديثات"],
"7JtSLi": ["فشل حذف المسار"],
+ "7O7REc": ["تعذّرت استعادة ", ["0"], ". حاول مرة أخرى."],
"7OhaRy": ["بحث المصدر"],
"7Ongq0": ["اختصر ملف AGENTS.md لديّ إلى أقل من 40 ألف حرف"],
"7OwvEL": ["إظهار معاينة HTML"],
@@ -690,6 +699,8 @@
"8uGMP8": ["يوضع المحتوى المخفي هنا."],
"8vCZcs": ["فشل فتح الملف."],
"8vETh9": ["إظهار"],
+ "8x6zk9": ["إخفاء محرر ", ["0"]],
+ "9-lMCF": ["لون ", ["slot"], " — ", ["0"]],
"90-wKT": ["قرأ OpenKnowledge سجل ", ["subject"]],
"92rbk2": ["يجري تحميل المرآة <0>", ["mirrorRef"], "</0>"],
"93LBnX": ["إخفاء الوكلاء"],
@@ -750,7 +761,6 @@
"9fvog2": ["المعاينة غير متاحة: ", ["errorDetail"]],
"9i21pa": ["تتم الإيداعات تلقائيًا"],
"9ieZhu": ["مثبَّت في ", ["path"], " — انقر للإزالة"],
- "9j1tqo": ["تعذّر الوصول إلى الحافظة — المخطط في المربع أدناه."],
"9jnjV0": ["ضمّن ملفًا صوتيًا بعناصر تحكم مشغّل أصلية."],
"9lso1Y": ["ينشئ المجلد <0>", ["folderPart"], "/</0>"],
"9m4D_h": ["GitHub، أو رابط git، أو مسار محلي."],
@@ -785,6 +795,7 @@
],
"AIn2Yv": ["واجهة ", ["displayName"], " السطرية، ", ["hint"]],
"AItsE5": ["افتحه هناك"],
+ "AJ7_B2": ["إنشاء سمة جديدة"],
"AKxFtn": [
[
"openedWorktreeCount",
@@ -800,6 +811,7 @@
]
],
"ALhMYW": ["الطرفية"],
+ "ANFxWn": ["تعذّر حذف هذه السمة. حدّث الصفحة وحاول مرة أخرى."],
"APNlbk": ["خروج ", ["0"]],
"AQ-Lfg": ["تعذّر تحميل القوالب"],
"AQGtjK": [
@@ -963,9 +975,11 @@
"هذا الملف أكبر من أن يُفتح في محرر النصوص المدمج (الحد 1 ميغابايت). استخدم «فتح ملف» أدناه لفتحه في تطبيق آخر."
],
"C_cPoW": ["انتهت صلاحية جلسة GitHub لديك — سجّل الدخول مرة أخرى للتحقق من صلاحية الدفع."],
+ "CcaU4i": ["تُطبّق التعديلات مباشرة وتُحفظ تلقائيًا في هذه السمة."],
"ChAtFg": ["ليس لديك إذن بالدفع إلى هذا المستودع"],
"ChMshD": ["إنهاء ", ["appName"]],
"Ck9XRt": ["تعذّر حفظ المفتاح — يرجى المحاولة مرة أخرى."],
+ "ClII5l": ["اضغط على الشمس أو القمر بجوار «مخصص» أعلاه لاستخدام هذه السمة."],
"ClTEde": ["تجهيز المقطع المحدد في لوحة الوكلاء، جاهزًا للإضافة والإرسال."],
"CmeH9S": ["إضافة خاصية إلى ", ["keyName"]],
"CnOGgs": ["وضع المزامنة"],
@@ -1018,6 +1032,7 @@
"DKYW1G": [
"هذا الإعداد خاص بكل جهاز ولا يُشارك مع المتعاونين. ويحتاج إلى مفتاح API (يُضبط أدناه) ما لم تكن نقطة نهايتك خادمًا محليًا لا يتطلب واحدًا."
],
+ "DLIljL": ["لا تظهر بعض السمات المحفوظة لأن مجلد السمات يتجاوز حد الفحص."],
"DMLE5q": ["فشل الإصلاح التلقائي لـ MCP"],
"DMeaxi": ["يجري تنزيل ", ["0"], " ", ["1"], "…"],
"DNkveC": ["خيارات العمود"],
@@ -1030,6 +1045,7 @@
"</0>. لديك تغييرات غير مودعة تمنع التبديل هنا — افتحه في شجرة عمل لتبقى تغييراتك دون مساس."
],
"DUWgfT": ["أعد المصادقة مع خادم GitHub Enterprise"],
+ "DUb7Ax": ["تستخدم ملفات متعددة اسم السمة هذا"],
"DVh_Tb": ["فشل التنظيف بعد النقل إلى المهملات"],
"DWJtEo": ["ما الذي سيحدث بعد ذلك"],
"DXd9LM": ["شجرة عمل جديدة"],
@@ -1057,6 +1073,7 @@
"DhT_PK": ["استورد OpenKnowledge مهارة"],
"DiFKSL": ["يجري عد ملفات Markdown"],
"DiZ3pq": ["منتقي الأيقونات"],
+ "DmkTrb": ["تعذّر إنشاء هذه السمة. حاول مرة أخرى."],
"Dnn2XG": ["تلقائي"],
"DpjYd6": ["الانتقال إلى النص المرتبط"],
"DrYM2Z": ["المزامنة معطّلة"],
@@ -1235,6 +1252,7 @@
"اشرح كيف يعمل مستودع الكود لديك ليجد زملاؤك ووكلاء الذكاء الاصطناعي طريقهم فيه. مناسب لتوثيق البنية والأجزاء الرئيسية والأسئلة التي يطرحها المساهمون الجدد دائمًا."
],
"FyW0WO": ["التفويض في المتصفح"],
+ "FyyIjH": ["اسم السمة طويل جدًا"],
"G-JBA1": ["يتطلب وضع المصدر اتصالًا حيًّا — تعديلاتك محفوظة وستظهر عند إعادة الاتصال."],
"G-h6qN": [
[
@@ -1286,6 +1304,7 @@
"GQDSBN": ["خيارات التخطيط"],
"GSYWCm": ["إخفاء لوحة المستند"],
"GUYwCr": ["تجاهل الإشعار"],
+ "GUZHkL": ["ألوان لوحة الألوان مفقودة"],
"GUqTzn": ["بحث المنافسين"],
"GXf9hG": ["يجري استنساخ ", ["repoName"], "..."],
"GZzDqc": ["تفاصيل الخطأ الذي واجهته للتو مُدرجة. تُخفى الأسرار كمفاتيح API والرموز تلقائيًا."],
@@ -1364,6 +1383,7 @@
"HSI88F": ["حذف الجدول"],
"HSh8u_": ["المجلدات"],
"HTW0Zw": ["خطوة أخيرة: شغّل <0>claude</0> في هذا المشروع ووافق على OpenKnowledge مرة واحدة."],
+ "HZ7fEu": ["اسم السمة"],
"HbcQYf": [
"هل تستبدل الرابط الرمزي في ",
["display"],
@@ -1425,6 +1445,7 @@
"IFezUv": ["تعذّر إتمام المراجعة. أعد المحاولة."],
"IInnZo": ["تعارض"],
"IKoTAC": ["إبقاؤه معطّلًا"],
+ "IMLUBh": ["قيمة لون غير صالحة"],
"INp_z6": ["علّق على ", ["0"], " هذا أو اسأل الذكاء الاصطناعي عنه"],
"IO8REi": ["تعذّر فتح «", ["name"], "»: ", ["0"]],
"IQPyrD": ["صفحة مفقودة — انقر لإنشائها"],
@@ -1436,7 +1457,6 @@
"IX_uXB": ["my-feature"],
"IYciRC": ["شكرًا على التقرير!"],
"IajAbS": ["إضافة حزمة بداية"],
- "IbTC7z": ["الصق مخطط base16"],
"If0crP": ["الفتح بالذكاء الاصطناعي ", ["targetDisplayName"], "، ", ["hint"]],
"IgN3LY": ["على النص المحدد في <0>", ["address"], "</0>"],
"IgTwLt": ["افتح هذا المستند في المحرر واطوِ الرسم البياني."],
@@ -1465,6 +1485,7 @@
"Ix0K8o": ["إخفاء عقد الروابط الخارجية"],
"IxHMdF": ["تعذّر حذف ذلك التعليق."],
"IxyZXD": ["لقطة الشاشة"],
+ "J1XRO3": ["ألوان السمة"],
"J2Mv98": ["الاسم (مثل ", ["login"], ")"],
"J2_JuX": ["لا شيء (", ["0"], " لا يمكن أن يطابق مستندًا)"],
"J2eKUI": ["ملف"],
@@ -1490,7 +1511,7 @@
"JOcPqH": ["أحضر مستودعًا بعيدًا إلى هذا الجهاز."],
"JWsZlx": ["افتح مشروعًا للتحرير."],
"JZ8cO6": ["فاتح أو داكن أو تتبع نظام التشغيل."],
- "J_bJiH": ["اختر لوحة ألوان مدمجة لبيئة التطوير، أو عرّف لوحتك الخاصة."],
+ "JaU1ld": ["يحتوي اسم السمة على أحرف غير مدعومة"],
"JddocZ": ["تبديل عمود الرأس"],
"Jejur6": ["تعذّر تحميل المستند"],
"JfPuv7": [["shareBranch"], " ليس اسم فرع صالحًا."],
@@ -1567,6 +1588,7 @@
"KsAPaB": ["هذا الفرع مسحوب في:"],
"KtACeE": ["الافتراضي: <0>", ["0"], "</0>"],
"KujtjC": ["بحث"],
+ "Kx881F": ["تمت استعادة ", ["0"], "."],
"L-rMC9": ["إعادة التعيين إلى الافتراضي"],
"L1BQTH": [["0"], " غير مثبَّت بعد — يجري فتح صفحة تنزيله."],
"L1ZE3M": ["إحصاءات المستند"],
@@ -1781,6 +1803,7 @@
"N55YNr": [
"اختر ما إذا كان إعداد OpenKnowledge لهذا المشروع، بما فيه اتصالات أدوات الذكاء الاصطناعي، يُحفظ مع المشروع ليحصل عليه زملاؤك أيضًا، أم يبقى على جهازك وحده."
],
+ "N6j2JH": ["تحرير ", ["0"]],
"NBdIgR": ["تعليق"],
"NCmYhK": [
"تعلّم المهارات الوكلاء مهامَّ قابلة للتكرار. ألّفها وأدِرها من قسم «المهارات» في المحرر؛ وتتحكم قائمة التثبيت لكل مهارة في مكان وجودها. هذه هي مجلدات مهارات هذا المشروع."
@@ -1978,6 +2001,7 @@
],
"QAi7Q9": ["للفرع <0>", ["trimmed"], "</0> شجرة عمل بالفعل — سيُفتح في نافذته الخاصة."],
"QB-moX": ["ثبّتها في محرراتك الأخرى (Claude Code وCursor وCodex) لمشاركتها."],
+ "QDErHs": ["تحديد ", ["slot"], " — ", ["0"]],
"QDZbvN": ["قبل ", ["diffDays"], " يوم"],
"QGWzup": ["يجري تحميل مهارات OpenKnowledge"],
"QHCx0c": ["سجل تقارير العلل"],
@@ -2018,11 +2042,11 @@
"QlxHAH": ["تُعرض نتائج «", ["semanticResultsLabel"], "»"],
"Qpfxa1": [["secs"], "ث"],
"QqBQu1": ["التسمية <0>(نص الرابط الظاهر)</0>"],
- "Quz_Qu": ["تُطبَّق التعديلات مباشرةً. الوضع الفاتح أو الداكن يأتي من المخطط."],
"Qvls7J": ["مواصفات هندسية"],
"Qw-7Ie": [
"مكان بسيط للكتابة، بملف واحد لكل موضوع ويومية يومية. اختر هذا إن أردت البدء بالكتابة فحسب وترك الروابط بين الملاحظات تتكوّن مع الوقت."
],
+ "QwG_zJ": ["الملفات المتعارضة: ", ["0"], "."],
"QySH4I": ["مشاريع OpenKnowledge المكتشفة"],
"QyioBP": ["تحريك لأعلى"],
"QzofTX": ["لا توجد تعليقات في هذا المشروع بعد. علّق على مقطع للبدء."],
@@ -2041,6 +2065,7 @@
]
],
"R0jJzV": ["الصق رابطًا أو owner/repo، أو ابحث في مستودعاتك"],
+ "R30SFt": ["استخدم الامتداد .yaml أو .yml بأحرف صغيرة"],
"R3y75Z": ["تحرير المصدر"],
"R4OWFD": ["الأقسام"],
"R65q-K": [
@@ -2051,6 +2076,7 @@
"R9dK63": ["صورة نموذجية"],
"RDjuBN": ["الإعداد"],
"RDrXh4": ["اضبط إعدادات المستخدم والمشروع والتكاملات."],
+ "RG3yW6": ["أدخل اسمًا لهذه السمة."],
"RG4XHV": ["نسخ موجّه ", ["0"]],
"RGCCrg": ["نسخ رابط المشاركة"],
"RGkNeJ": ["تهيئة حزمة بداية"],
@@ -2235,6 +2261,7 @@
"UEdTEN": ["يتيم"],
"UGeJuP": ["القيم المسموح بها (فارغ = أي قيمة)"],
"UGtPix": ["انتهت صلاحية الاتصال بـ GitHub. أعد الاتصال للمتابعة."],
+ "UH0Zqw": ["هذا ليس ملف سمة عاديًا"],
"UHwc0P": [
"هذه معاينة لـ ",
["boldName"],
@@ -2283,7 +2310,6 @@
],
"Uci-Ph": ["قائمة مرتّبة"],
"Ud0Pj9": ["<0>تمت إزالة مصدر المرآة.</0> لم يعد المستند <1>", ["src"], "</1> متاحًا."],
- "UeQEbk": ["استعرض مئات المخططات"],
"UfW9Kr": [
"تُرسل استعلامات بحثك والنص الكامل للصفحات المطابقة إلى مزوّد التضمينات لديك (OpenAI افتراضيًا) لحساب التضمينات."
],
@@ -2410,6 +2436,7 @@
],
"W8vpBM": ["حزمة بداية"],
"W9_Bub": ["تتداخل التغييرات المحلية مع المزامنة الواردة"],
+ "WBNpt9": ["تعذّرت قراءة هذه السمة (", ["0"], ")"],
"WFEbV1": ["أشِر إلى مشكلات Markdown الشائعة في المحرر. مدعوم بـ <0>markdownlint<1/></0>."],
"WGMoTY": ["علل أو أعطال أو شعور بعدم الموثوقية"],
"WHPvOb": ["كل الملفات مخفية بمرشحات العرض."],
@@ -2538,6 +2565,7 @@
"Y9c_nf": ["0/0"],
"YBt9YP": ["بيتا"],
"YC6_wP": ["تحرير ", ["keyName"]],
+ "YCmS3k": ["تم حذف ", ["0"], "."],
"YDL7N6": [
"تُضبط إضافات الفحص — أي عائلات القواعد تعمل وإعداداتها لكل قاعدة — في تبويبها الخاص تحت «هذا المشروع ← الإضافات»."
],
@@ -2563,6 +2591,7 @@
"Y_kL7X": ["خصّص مظهر المحرر وسلوكه."],
"Ya3PlJ": ["الإذن مطلوب"],
"YaeyFh": ["قد تستبدل عمليات السحب تعديلات غير مودعة في ملفاتك المحلية."],
+ "Yb82LN": ["المعرّف: ", ["0"]],
"Yea-K5": ["الاستعادة إلى هذه النقطة"],
"Yi0VMG": ["رفع ", ["keyName"]],
"YjMLg2": ["معطّل — تعرض الروابط الخارجية رابطها فقط. لا تغادر أي طلبات هذا الجهاز."],
@@ -2648,6 +2677,7 @@
"ZYtq3m": [
"اربط أدوات الذكاء الاصطناعي التي تستخدمها بهذا المشروع تحديدًا. تعيش هذه الملفات في مجلد المشروع، فيحصل كل من يفتحه على الإعداد نفسه."
],
+ "Z_nNa2": ["سمِّ سمتك"],
"ZatAO_": ["فشل تفعيل معاينات الروابط — ", ["detail"]],
"Zf0w-R": [
"خذ نصًا من فكرة أولية إلى مسودة مكتملة إلى شيء جاهز للمشاركة. مناسب للتدوينات أو المقالات أو أي شيء تريد أن يمر بمراحل واضحة."
@@ -2696,11 +2726,13 @@
["currentLabel"],
"</1>."
],
+ "_DwR-n": ["جارٍ الإنشاء…"],
"_FLBbi": [["sizeText"], " · تم إخفاء الأسرار · لم يُخفَ تفريغ الأعطال"],
"_GRWOJ": ["هل تريد تغيير مزوّد التضمينات؟"],
"_HgF9q": ["الترتيب حسب"],
"_IGfXZ": ["أُغلق OpenKnowledge على نحو غير متوقع في المرة السابقة."],
"_IX_7x": ["أخرى"],
+ "_IfSZn": ["توجد سمة محفوظة بهذا الاسم بالفعل."],
"_JOGC0": ["إرسال ملاحظات…"],
"_LczaQ": ["مرفوض — ", ["optionName"]],
"_NWEid": ["ابحث في ملفات المخططات بالمسار"],
@@ -2816,7 +2848,6 @@
"b6Fgpe": ["تبني كل حزمة هيكل مشروعك بمجلدات وقوالب جاهزة."],
"bBE5tC": ["مكتشف على هذا الجهاز"],
"bBcFK_": ["فتح منتقي الرموز التعبيرية لـ ", ["keyName"]],
- "bD2SLZ": ["تم نسخ المخطط بصيغة base16 YAML"],
"bD8I7O": ["مكتمل"],
"bEp7UY": ["غير متصل بجسر سطح المكتب"],
"bF22t6": ["إزالة الحقل ", ["field"]],
@@ -2889,6 +2920,7 @@
"cIptmH": ["في تطبيق Claude Desktop"],
"cKjLuT": ["(المشروع + المستخدم)"],
"cLP0Lf": ["مصدر مهارة بعيد"],
+ "cLn264": ["تعذّرت قراءة ملف السمة هذا"],
"cMMb6H": ["تم تثبيت ", ["imported"], "، لكن فشل ", ["failed"], ": ", ["failedNames"]],
"cN1Gcp": ["يوجد بالفعل مجلد شجرة عمل للفرع ", ["shareBranch"], "."],
"cOJyVj": ["تعطيل السمات"],
@@ -2915,6 +2947,7 @@
]
],
"cUk6TF": ["فشلت المزامنة — راجع سجلات الخادم للتفاصيل."],
+ "cUt8yN": ["تُحفظ التغييرات تلقائيًا."],
"cV7LOw": ["ويكي الفريق"],
"cVKnqL": ["تعذّرت قراءة التعليقات المنتظرة للإرسال: ", ["0"]],
"cZGNlb": ["إضافة نمط آخر"],
@@ -2953,6 +2986,7 @@
"cstC0z": ["النمط (تعبير نمطي)"],
"ct2kv5": ["لا توجد عناوين في ", ["pageTarget"]],
"cuA8QW": ["تنظيم المواصفات"],
+ "cuHhjo": ["إنشاء وتحرير"],
"d-GtJt": ["عرض في مصدر Markdown"],
"d1JjXo": [
"نسختك المحلية من الفرع <0>",
@@ -3101,6 +3135,7 @@
}
]
],
+ "ekSPiP": ["تم حذف ", ["0"], " بالفعل."],
"el2KyL": ["تم العثور على Slidev في هذا المشروع. ستستخدم الشرائح إصدار المشروع."],
"emMrXQ": ["أعاد الخادم استجابة نسخ مشوّهة."],
"emgiet": ["محتوى مرجعي؛ يُعكس حرفيًا في كل مكان يُشار إليه فيه."],
@@ -3178,6 +3213,7 @@
"fwrPh4": ["يرجى إدخال بريد إلكتروني صالح."],
"fxJk_6": ["<0>هل لديك المزيد لتضيفه؟</0> راسلنا على <1/> واذكر رقم مرجعك."],
"fxbCNQ": ["تمت المزامنة. الرابط محدَّث."],
+ "g12y1g": ["YAML غير صالح"],
"g1ZTh_": [
[
"count",
@@ -3277,7 +3313,6 @@
"gwEcOD": ["نسختك المحلية متأخرة."],
"gwykHF": ["لم يُزامَن هذا المستند مع GitHub بعد. سيعمل الرابط بعد المزامنة التالية."],
"gyHDWC": ["إصلاح الكل بالذكاء الاصطناعي (", ["count"], ")"],
- "gyWc8_": ["ألوان التمييز"],
"h-AdvS": ["المجلدات والقوالب موجودة هنا بالفعل، فلا شيء لإضافته."],
"h06R3C": ["لا توجد صفحات تفتقر إلى روابط صادرة في الرسم البياني."],
"h16FyT": ["القوائم"],
@@ -3295,6 +3330,7 @@
"hDEaQu": ["اربط OpenKnowledge بالأدوات الأخرى التي تستخدمها."],
"hDKtoF": ["قبل ", ["diffHrs"], " ساعة"],
"hDoLrm": ["إزالة ", ["projectName"], " من المشاريع الحديثة"],
+ "hFmYGU": ["ملفات السمات المرتبطة غير مدعومة"],
"hGmuTc": ["مستندات موسومة بـ #", ["tagDocsName"]],
"hHMv6l": ["حذف الكتلة"],
"hHR0tt": ["محادثة جديدة مع ", ["0"]],
@@ -3308,6 +3344,7 @@
"hSBIG-": ["عنوان، وصف، وسوم — أي شيء يصف هذا المجلد."],
"hSySVc": ["فشل تسليم التثبيت: ", ["msg"]],
"hVAkI8": ["تشغيل في الطرفية"],
+ "hVzt9x": ["تعذّر تحميل السمات المحفوظة. ما تزال آخر قائمة سمات متاحة معروضة."],
"hXUWyd": ["القيمة مطلوبة"],
"hXbSxc": ["الأصل: ", ["title"]],
"hY8pka": ["تحديد التكرار التالي"],
@@ -3317,6 +3354,7 @@
"haHgQj": ["تم نسخ المسار النسبي"],
"habOU_": ["فشل تحديث إعداد الموافقة التلقائية — ", ["detail"]],
"he3ygx": ["نسخ"],
+ "hgF0al": ["استخدام ", ["0"], " للوضع الفاتح النشط"],
"hgtsat": ["فشل حذف ", ["file"]],
"hh4mVC": ["اطلب من الذكاء الاصطناعي إصلاح ", ["flatId"]],
"hhI__i": ["هل تريد بالتأكيد حذف ‏«", ["name"], "» ومحتوياته؟"],
@@ -3553,6 +3591,7 @@
]
],
"k_pade": ["أصبحت الإعدادات مشتركة. أودع ملفات OK لمشاركتها مع فريقك."],
+ "k_tFzX": ["اسم السمة مفقود"],
"k_yIIc": ["سيُنشأ في: <0>", ["targetPreview"], "</0>"],
"ka6Eke": ["فتح الملف على القرص"],
"kdzzOK": ["معطّل — يرتّب البحث بالكلمات المفتاحية فقط. لا يغادر أي محتوى هذا الجهاز."],
@@ -3564,6 +3603,7 @@
"khCa4M": ["يعلّم وكلاء البرمجة في هذا المشروع القراءة والكتابة عبر OpenKnowledge."],
"kj9pAE": ["يجري إنشاء الصفحة"],
"kknhfj": ["لا تغييرات"],
+ "kkux8f": ["تعذّر حذف ", ["0"], ". حاول مرة أخرى."],
"klPS-L": ["الملف الأصلي — قبل تعديلات هذا الوكيل."],
"kmKqZg": ["التجمعات"],
"knjOzA": ["قيمة الوسم"],
@@ -3577,6 +3617,7 @@
"kwLcuN": [
"امنح أدوات الذكاء الاصطناعي التي تستخدمها إذن قراءة مشاريعك وتحديثها. اختر ما تريد إعداده أدناه، وغيّره في أي وقت من الإعدادات > أدوات الذكاء الاصطناعي وواجهة سطر الأوامر."
],
+ "kwNS82": ["لا يمكن استخدام هذه السمة حتى يُصلح الملف."],
"ky9Tuc": ["تحرير مصدر ", ["0"]],
"kzpkcn": ["تعذّر حفظ ذلك التعديل."],
"l-4nnw": ["البحث في القواعد"],
@@ -3622,6 +3663,7 @@
"مسار داخل المهارة — أي مجلد يصلح (مثل references/notes.md). تُنشأ المجلدات الواردة في المسار نيابةً عنك."
],
"lPzyrU": ["تم حل كل المقاطع"],
+ "lS83Sg": ["تعذّر الوصول إلى الحافظة."],
"lScd1O": ["تُفتح شرائح Slidev في تطبيق OpenKnowledge لسطح المكتب فقط."],
"lUtr1r": ["تم تحديد ", ["0"], " من ", ["1"]],
"lVWEIL": ["تمت فهرسة ", ["embedded"], " من ", ["total"], " صفحة."],
@@ -3793,6 +3835,7 @@
"nNYV3Y": ["و", ["remaining"], " أخرى"],
"nOEDQs": ["فشل تحديث وضع المزامنة — ", ["detail"]],
"nP-KFo": ["محادثة ", ["0"], " جديدة"],
+ "nTM8ab": ["امنحها اسمًا قبل تعديل ألوانها."],
"nTwL53": ["افتح مستندًا لمشاركة رابطه."],
"nUNZL4": ["اسأل ", ["0"]],
"nWv1ja": ["أدِر الملفات المخفية من الإعدادات ← أنماط التجاهل."],
@@ -3839,6 +3882,7 @@
"هوية Git غير مضبوطة — تستخدم الإيداعات مؤلفًا افتراضيًا. اضبط هويتك ليرى زملاؤك اسمك."
],
"nrXDdR": ["اسم الحقل"],
+ "nsM-_m": ["تصفّح مئات السمات"],
"nsUDL8": ["تم تحديد ", ["0"], " من ", ["1"], " مشروع"],
"nskygk": ["اختر وكيلًا"],
"nwtY4N": ["حدث خطأ ما"],
@@ -3877,6 +3921,7 @@
"إضافات المشروع هي معيار التأليف لمشروعك — شغّلها أو أوقفها هنا. يُودَع الاختيار في config.yml ويُشارك مع كل متعاون عبر git. تحصل كل إضافة مفعّلة على صفحتها الخاصة تحت «الإضافات» في الشريط الجانبي للإعدادات."
],
"oYepHb": ["الطرفية معطّلة لهذا المشروع. أعد تشغيلها لتنفيذ الأوامر هنا."],
+ "oZUYMv": ["تعذّرت استعادة ", ["0"], ". هذا الاسم مستخدم بالفعل."],
"of3tF-": [
"اخترت ~/Documents. سيفهرس OpenKnowledge كل ملف Markdown تحته. إن كنت تريد إدارة مجلد فرعي فقط، فاختر نطاقًا أصغر."
],
@@ -3907,6 +3952,7 @@
["0"],
" — وقد غيّره شيء خارج OK منذ ذلك الحين. الحالة المعروضة هي ما على القرص الآن؛ وعملية الربط أو فك الربط التالية لديك هي التي تسود."
],
+ "p7Utw8": ["ليست سمة base16"],
"p98xmP": ["ينطبق على"],
"p9sdCy": ["نمط تجاهل جديد"],
"pA16WG": ["لا يملك هذا المشروع أي مستودع بعيد على GitHub."],
@@ -4027,6 +4073,7 @@
"qIJIrD": ["يجري الاختبار"],
"qJSo0_": ["ما الفرق بين النسخ والروابط الرمزية؟"],
"qNOgUu": ["تصل التعديلات من المصدر إلى هنا — بلا انحراف نسخ ولصق."],
+ "qQi_um": ["تم استيراد السمة."],
"qRZh7J": ["دع مفتاح Tab يخرج من محرر المصدر بدلًا من الإزاحة."],
"qSKu2v": ["التنقل والتحديد في المصدر"],
"qSxaOz": ["قبول حذفهم"],
@@ -4081,6 +4128,7 @@
"qo4zCg": ["لا يمكن أن يحتوي المسار على شرطات مائلة عكسية"],
"qpQwGC": ["صِف ما تعمل عليه ويتولى الوكيل إعداده لك."],
"qribBG": ["المخطط ", ["deleteTarget"]],
+ "qtnmEX": ["أدخل اسم سمة صالحًا."],
"qvWGzP": ["طيّ الكل"],
"qyLmWw": ["لوحة بحث محرر المصدر"],
"r-OJYm": ["أدخل اسم فرع صالحًا (بلا مسافات، وبلا نقطة في البداية، وبلا «..»)."],
@@ -4098,6 +4146,7 @@
"rFmBG3": ["سمة الألوان"],
"rFw02Q": ["يجري رفع ", ["keyName"]],
"rJVoVX": ["نتائج بحث المصدر"],
+ "rJm8-2": ["تعذّر الوصول إلى الحافظة — السمة موجودة في المربع أدناه."],
"rNifQd": ["إزالة الخاصية"],
"rQAQus": ["تعذّر حفظ القالب: ", ["error"]],
"rQRrkB": ["أمس"],
@@ -4175,7 +4224,6 @@
"sJK6pq": ["الإذن مرفوض"],
"sJWhgo": ["مكوّن غير معروف: ", ["unregisteredComponentName"]],
"sKEgGd": ["الإرسال إلى المحادثة"],
- "sKMhJz": ["من الخلفية إلى المقدمة"],
"sLcbHt": [
"اربط مجلدًا آخر رمزيًا بأحد هذه المجلدات ليقرأ الوكيلان المهارات نفسها؛ وفك الارتباط لإدارة مهارات مجلد واحدةً تلو الأخرى من جديد."
],
@@ -4380,6 +4428,7 @@
"ur2XSb": ["المحرر المرئي"],
"uuoHOU": ["فشل الأمر."],
"uyJsf6": ["حول"],
+ "uyOQ4e": ["تم نسخ السمة بتنسيق base16 YAML"],
"uynXup": [
[
"tokens",
@@ -4510,6 +4559,7 @@
"wXw19Y": ["أُزيل «", ["projectName"], "» من المشاريع الحديثة. لم يعد مجلده موجودًا."],
"wZPUJx": ["«", ["0"], "»"],
"w_Sphq": ["المرفقات"],
+ "wbMbiY": ["تم نسخ ", ["selectedSlot"]],
"wbpoGe": ["تعذّر تثبيت مهارة OpenKnowledge: ", ["message"]],
"wbv9xO": ["إنشاء مشروع جديد"],
"wc54KE": ["يجري التجريب…"],
@@ -4736,6 +4786,7 @@
"zL0LPh": ["عام خارج الحقول النصية"],
"zLGXna": ["لا توجد حزم بداية متاحة."],
"zLak8b": ["تنشيط تبويب جديد"],
+ "zMmwh4": ["اختر سمة أو أنشئ سمتك الخاصة."],
"zQBg2C": ["حرّك الكتلة الحالية موضعًا واحدًا لأعلى أو لأسفل."],
"zXj1rA": ["البحث حسب المعنى"],
"zYp8Sr": [
diff --git a/packages/app/src/locales/ar/messages.po b/packages/app/src/locales/ar/messages.po
index 74cb9cb4f..8aaef383c 100644
--- a/packages/app/src/locales/ar/messages.po
+++ b/packages/app/src/locales/ar/messages.po
@@ -332,6 +332,11 @@ msgstr "{0} إجمالًا"
msgid "{0} version {1}"
msgstr "{0} الإصدار {1}"
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "{0} was already deleted."
+msgstr "تم حذف {0} بالفعل."
+
#. placeholder {0}: activeData.label
#: src/components/EditorWorkspace.tsx
msgid "{0} was not moved."
@@ -777,6 +782,11 @@ msgstr "{sizeText} · تم إخفاء الأسرار · لم يُخفَ تفري
msgid "{skillCount, plural, one {skill} other {skills}}"
msgstr "{skillCount, plural, zero {مهارات} one {مهارة} two {مهارتان} few {مهارات} many {مهارةً} other {مهارة}}"
+#. placeholder {0}: BASE16_SLOT_ROLES[slot]
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "{slot} color — {0}"
+msgstr "لون {slot} — {0}"
+
#: src/components/settings/CustomThemeEditor.tsx
msgid "{slot} hex value"
msgstr "قيمة {slot} الست عشرية"
@@ -1044,6 +1054,10 @@ msgstr "أداة git مطلوبة"
msgid "A reusable starting point for new documents in this folder."
msgstr "نقطة انطلاق قابلة لإعادة الاستخدام للمستندات الجديدة في هذا المجلد."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "A saved theme already uses this name."
+msgstr "توجد سمة محفوظة بهذا الاسم بالفعل."
+
#: src/components/TemplateForm.tsx
msgid "A short line shown under the title in the template list."
msgstr "سطر قصير يظهر تحت العنوان في قائمة القوالب."
@@ -1100,10 +1114,6 @@ msgstr "أعلى"
msgid "absent"
msgstr "غائب"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Accents"
-msgstr "ألوان التمييز"
-
#: src/components/DiffView.tsx
msgid "Accept"
msgstr "قبول"
@@ -1783,10 +1793,6 @@ msgstr "رجوع"
msgid "Back to document view"
msgstr "العودة إلى عرض المستند"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Background to foreground"
-msgstr "من الخلفية إلى المقدمة"
-
#: src/components/LinksPanel.tsx
msgid "Backlinks"
msgstr "الروابط الخلفية"
@@ -1931,8 +1937,8 @@ msgid "Browse folder"
msgstr "استعراض مجلد"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Browse hundreds of schemes"
-msgstr "استعرض مئات المخططات"
+msgid "Browse hundreds of themes"
+msgstr "تصفّح مئات السمات"
#: src/components/ImportSkillDialog.tsx
msgid "Browse or upload a skill for this project."
@@ -2051,6 +2057,7 @@ msgstr "تعذّرت مشاركة هذا المسار."
#: src/components/ReportBugDialogBody.tsx
#: src/components/SeedDialog.tsx
#: src/components/settings/LinkPreviewsSection.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/settings/SearchSection.tsx
#: src/components/ShareBranchSwitchDialog.tsx
#: src/components/ShareReceiveDialog.tsx
@@ -2106,6 +2113,18 @@ msgstr "تغيّر خارجًا"
msgid "Changed outside OK since it last wrote here — the state shown is what's on disk now"
msgstr "تغيّر خارج OK منذ آخر كتابة هنا — الحالة المعروضة هي ما على القرص الآن"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes save automatically to this theme."
+msgstr "تُحفظ التغييرات تلقائيًا في هذه السمة."
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes save automatically."
+msgstr "تُحفظ التغييرات تلقائيًا."
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes saved automatically."
+msgstr "حُفظت التغييرات تلقائيًا."
+
#: src/components/command-palette-commands.ts
msgid "Check for updates"
msgstr "التحقق من التحديثات"
@@ -2703,6 +2722,11 @@ msgstr "تعارض"
msgid "Conflicted files"
msgstr "الملفات المتعارضة"
+#. placeholder {0}: warning.conflictingFilenames.join(', ')
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Conflicting files: {0}."
+msgstr "الملفات المتعارضة: {0}."
+
#: src/components/ConflictsSection.tsx
msgid "Conflicts"
msgstr "التعارضات"
@@ -2895,6 +2919,10 @@ msgstr "يجري التحويل..."
msgid "Copied"
msgstr "تم النسخ"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Copied {selectedSlot}"
+msgstr "تم نسخ {selectedSlot}"
+
#: src/components/EditorTabTargetMenuItems.tsx
#: src/components/FileSidebar.tsx
#: src/components/FileTree.tsx
@@ -2932,6 +2960,7 @@ msgstr "نسخة"
#: src/components/CopyButton.tsx
#: src/components/empty-state/CopyablePromptList.tsx
#: src/components/InstallInClaudeDesktopDialog.tsx
+#: src/components/settings/CustomThemeEditor.tsx
#: src/lib/native-menu-catalog.ts
msgid "Copy"
msgstr "نسخ"
@@ -3216,6 +3245,15 @@ msgstr "تعذّر إنشاء التقرير"
msgid "Couldn't create the worktree. Try a different name."
msgstr "تعذّر إنشاء شجرة العمل. جرّب اسمًا مختلفًا."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t create this theme. Try again."
+msgstr "تعذّر إنشاء هذه السمة. حاول مرة أخرى."
+
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t delete {0}. Try again."
+msgstr "تعذّر حذف {0}. حاول مرة أخرى."
+
#. placeholder {0}: result.error
#: src/components/SkillFileDeleteDialog.tsx
msgid "Couldn't delete file: {0}"
@@ -3233,6 +3271,10 @@ msgstr "تعذّر حذف القالب: {error}"
msgid "Couldn't delete that comment."
msgstr "تعذّر حذف ذلك التعليق."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t delete this theme. Refresh and try again."
+msgstr "تعذّر حذف هذه السمة. حدّث الصفحة وحاول مرة أخرى."
+
#: src/components/settings/AccountSection.tsx
msgid "Couldn't disconnect — please try again."
msgstr "تعذّر قطع الاتصال — يرجى المحاولة مرة أخرى."
@@ -3396,8 +3438,12 @@ msgid "Couldn't reach the agent registry."
msgstr "تعذّر الوصول إلى سجل الوكلاء."
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Couldn’t reach the clipboard — the scheme is in the box below."
-msgstr "تعذّر الوصول إلى الحافظة — المخطط في المربع أدناه."
+msgid "Couldn’t reach the clipboard — the theme is in the box below."
+msgstr "تعذّر الوصول إلى الحافظة — السمة موجودة في المربع أدناه."
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Couldn’t reach the clipboard."
+msgstr "تعذّر الوصول إلى الحافظة."
#: src/components/CommandPalette.tsx
msgid "Couldn't reach the embeddings provider — retry"
@@ -3424,6 +3470,11 @@ msgstr "تعذّرت قراءة التعليقات المنتظرة للإرسا
msgid "Couldn't read the comments waiting to send: {0}"
msgstr "تعذّرت قراءة التعليقات المنتظرة للإرسال: {0}"
+#. placeholder {0}: warning.code
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t read this theme ({0})"
+msgstr "تعذّرت قراءة هذه السمة ({0})"
+
#: src/components/EditorActivityPool.tsx
msgid "Couldn't reconnect after server restart"
msgstr "تعذّرت إعادة الاتصال بعد إعادة تشغيل الخادم"
@@ -3472,6 +3523,16 @@ msgstr "تعذّرت إعادة تشغيل الخادم تلقائيًا. جرّ
msgid "Couldn't restart the server. Try `ok start` in this folder."
msgstr "تعذّرت إعادة تشغيل الخادم. جرّب `ok start` في هذا المجلد."
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t restore {0}. That name is already in use."
+msgstr "تعذّرت استعادة {0}. هذا الاسم مستخدم بالفعل."
+
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t restore {0}. Try again."
+msgstr "تعذّرت استعادة {0}. حاول مرة أخرى."
+
#. placeholder {0}: resumeError.message
#: src/components/acp/ThreadView.tsx
msgid "Couldn't resume this chat: {0}"
@@ -3481,6 +3542,10 @@ msgstr "تعذّر استئناف هذه المحادثة: {0}"
msgid "Couldn't run the test. Check that OpenKnowledge is still running."
msgstr "تعذّر تشغيل الاختبار. تأكد من أن OpenKnowledge لا يزال يعمل."
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Couldn’t save changes. Try editing a color again."
+msgstr "تعذّر حفظ التغييرات. حاول تعديل لون مرة أخرى."
+
#: src/components/TemplateForm.tsx
msgid "Couldn't save template: {error}"
msgstr "تعذّر حفظ القالب: {error}"
@@ -3599,6 +3664,10 @@ msgstr "تفريغ الأعطال"
msgid "Create"
msgstr "إنشاء"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Create & edit"
+msgstr "إنشاء وتحرير"
+
#: src/components/TemplateRow.tsx
msgid "Create a document from {label}"
msgstr "إنشاء مستند من {label}"
@@ -3670,6 +3739,10 @@ msgstr "إنشاء مشروع جديد"
msgid "Create new tag #{tagValue}"
msgstr "إنشاء وسم جديد #{tagValue}"
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Create new theme"
+msgstr "إنشاء سمة جديدة"
+
#: src/components/GraphPanel.tsx
#: src/components/ProblemsPanel.tsx
#: src/editor/extensions/InternalLinkPropPanel.tsx
@@ -3768,6 +3841,10 @@ msgstr "يجري إنشاء الصفحة: {linkTitle}."
msgid "Creating..."
msgstr "يجري الإنشاء..."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Creating…"
+msgstr "جارٍ الإنشاء…"
+
#: src/components/RecentProjectsMenu.tsx
msgid "Current"
msgstr "الحالي"
@@ -3840,8 +3917,10 @@ msgstr "الافتراضي: <0>{0}</0>"
msgid "Delete"
msgstr "حذف"
+#. placeholder {0}: theme.label
#. placeholder {0}: thread.title
#: src/components/acp/ThreadHistoryMenu.tsx
+#: src/components/settings/ColorThemePicker.tsx
msgid "Delete {0}"
msgstr "حذف {0}"
@@ -3921,6 +4000,11 @@ msgstr "هل تريد حذف هذه المحادثة؟"
msgid "Delete this comment"
msgstr "حذف هذا التعليق"
+#. placeholder {0}: deletedTheme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Deleted {0}."
+msgstr "تم حذف {0}."
+
#: src/components/settings/LintingSection.tsx
msgid "Deleted {file}"
msgstr "تم حذف {file}"
@@ -4239,6 +4323,7 @@ msgstr "تم"
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/PublishToGitHubDialog.tsx
#: src/components/ReportBugDialogBody.tsx
+#: src/components/settings/CustomThemeEditor.tsx
#: src/editor/extensions/JsxComponentView.tsx
#: src/editor/extensions/JsxInlineView.tsx
#: src/editor/extensions/MathInlineView.tsx
@@ -4373,6 +4458,11 @@ msgstr "تحصل كل أداة محددة على مدخل MCP لـ OpenKnowledge
msgid "Edit"
msgstr "تحرير"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Edit {0}"
+msgstr "تحرير {0}"
+
#. placeholder {0}: descriptor.displayName ?? descriptor.name
#: src/editor/extensions/JsxComponentView.tsx
msgid "Edit {0} source"
@@ -4446,6 +4536,11 @@ msgstr "حرّر قالبًا"
msgid "editing [[{realCurrentDoc}]]"
msgstr "يحرّر [[{realCurrentDoc}]]"
+#. placeholder {0}: scheme.name
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Editing {0}"
+msgstr "جارٍ تحرير {0}"
+
#: src/components/SkillEditBanner.tsx
msgid "Editing {boldName} in place. Changes save straight to your editor's copy."
msgstr "يجري تحرير {boldName} في مكانه. تُحفظ التغييرات مباشرةً في نسخة محررك."
@@ -4475,8 +4570,12 @@ msgid "Editor status bar"
msgstr "شريط حالة المحرر"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Edits apply live. Light or dark comes from the scheme."
-msgstr "تُطبَّق التعديلات مباشرةً. الوضع الفاتح أو الداكن يأتي من المخطط."
+msgid "Edits apply live and save automatically to this theme."
+msgstr "تُطبّق التعديلات مباشرة وتُحفظ تلقائيًا في هذه السمة."
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Edits apply live. Light or dark comes from the theme."
+msgstr "تُطبّق التعديلات مباشرة. تحدد السمة الوضع الفاتح أو الداكن."
#: src/editor/slash-command/component-items.tsx
msgid "Edits at the source land here — no copy-paste drift."
@@ -4647,6 +4746,10 @@ msgstr "أدخل قيمة ست عشرية من 6 خانات مثل #1A2B3C"
msgid "Enter a folder name (e.g. brain)."
msgstr "أدخل اسم مجلد (مثل brain)."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Enter a name for this theme."
+msgstr "أدخل اسمًا لهذه السمة."
+
#: src/components/CreateProjectDialog.tsx
msgid "Enter a project name"
msgstr "أدخل اسم مشروع"
@@ -4663,6 +4766,10 @@ msgstr "أدخل عنوانًا لهذا القالب."
msgid "Enter a valid branch name (no spaces, no leading dot, no \"..\")."
msgstr "أدخل اسم فرع صالحًا (بلا مسافات، وبلا نقطة في البداية، وبلا «..»)."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Enter a valid theme name."
+msgstr "أدخل اسم سمة صالحًا."
+
#: src/components/settings/SearchSection.tsx
msgid "Enter a valid URL (for example https://api.openai.com/v1)."
msgstr "أدخل رابطًا صالحًا (مثل https://api.openai.com/v1)."
@@ -5555,6 +5662,10 @@ msgstr "تسجيل الدخول إلى GitHub مفقود أو منتهي الص
msgid "GitHub, a git URL, or a local path."
msgstr "GitHub، أو رابط git، أو مسار محلي."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Give it a name before editing its colors."
+msgstr "امنحها اسمًا قبل تعديل ألوانها."
+
#: src/components/settings/AiToolsSection.tsx
msgid "Give the AI tools you use access to read and update your projects. Checking a box sets it up right away; unchecking removes it."
msgstr "امنح أدوات الذكاء الاصطناعي التي تستخدمها إذن قراءة مشاريعك وتحديثها. تحديد مربع يُعدّه فورًا؛ وإلغاء التحديد يزيله."
@@ -5734,6 +5845,11 @@ msgstr "أُخفي المجلد “{basename}”"
msgid "Hide"
msgstr "إخفاء"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Hide {0} editor"
+msgstr "إخفاء محرر {0}"
+
#: src/lib/native-menu-catalog.ts
msgid "Hide {appName}"
msgstr "إخفاء {appName}"
@@ -5939,6 +6055,11 @@ msgstr "أنتقل إلى أداة أخرى"
msgid "Icon picker"
msgstr "منتقي الأيقونات"
+#. placeholder {0}: createIdentity.stem
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "ID: {0}"
+msgstr "المعرّف: {0}"
+
#: src/components/AutoSyncEnableWarning.tsx
msgid "If an update arrives for something you are editing, you choose which version to keep, like a merge conflict."
msgstr "إذا وصل تحديث لشيء تحرّره، فأنت من يختار أي نسخة يُبقي، مثل تعارض الدمج."
@@ -5974,10 +6095,6 @@ msgstr "استيراد كقالب"
msgid "Import failed: {0}"
msgstr "فشل الاستيراد: {0}"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Import scheme"
-msgstr "استيراد مخطط"
-
#. placeholder {0}: result.name
#: src/lib/skill-import-toast.ts
msgid "Imported \"{0}\"."
@@ -6319,6 +6436,10 @@ msgstr "تعليمات للذكاء الاصطناعي"
msgid "Integrations"
msgstr "التكاملات"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Invalid color value"
+msgstr "قيمة لون غير صالحة"
+
#: src/components/CreateProjectDialog.tsx
msgid "Invalid input — pick a different folder."
msgstr "إدخال غير صالح — اختر مجلدًا مختلفًا."
@@ -6339,6 +6460,10 @@ msgstr "بنية استجابة الخادم غير صالحة"
msgid "Invalid share URL."
msgstr "رابط المشاركة غير صالح."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Invalid YAML"
+msgstr "YAML غير صالح"
+
#: src/uninstall/UninstallSurveyScreen.tsx
msgid "It didn't fit into my workflow"
msgstr "لم يناسب سير عملي"
@@ -6572,6 +6697,10 @@ msgstr "رابط الوجهة"
msgid "Link-graph response did not match expected shape."
msgstr "لم تطابق استجابة رسم الروابط الشكل المتوقع."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Linked theme files aren’t supported"
+msgstr "ملفات السمات المرتبطة غير مدعومة"
+
#: src/components/DocPanel.tsx
msgid "Links"
msgstr "الروابط"
@@ -6947,6 +7076,14 @@ msgstr "صفحة مفقودة — انقر لإنشائها"
msgid "Missing page: {linkTitle}. Click to create."
msgstr "صفحة مفقودة: {linkTitle}. انقر لإنشائها."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Missing palette colors"
+msgstr "ألوان لوحة الألوان مفقودة"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Missing theme name"
+msgstr "اسم السمة مفقود"
+
#: src/components/SyncStatusBadge.tsx
msgid "Mode"
msgstr "الوضع"
@@ -7144,6 +7281,10 @@ msgstr "يجري التأمل…"
msgid "Multi-page PDF viewer with toolbar controls (thumbnails, page nav, zoom)."
msgstr "عارض PDF متعدد الصفحات بعناصر تحكم في شريط الأدوات (صور مصغّرة، تنقل بين الصفحات، تكبير)."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Multiple files use this theme name"
+msgstr "تستخدم ملفات متعددة اسم السمة هذا"
+
#: src/components/acp/working-status.ts
msgid "Musing…"
msgstr "يجري التفكّر…"
@@ -7186,6 +7327,10 @@ msgstr "لا يمكن أن يكون الاسم فارغًا"
msgid "Name is required"
msgstr "الاسم مطلوب"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Name your theme"
+msgstr "سمِّ سمتك"
+
#: src/lib/keyboard-shortcuts.ts
msgid "Navigate CodeMirror source search results or dismiss the search panel."
msgstr "تنقّل بين نتائج بحث مصدر CodeMirror أو أغلق لوحة البحث."
@@ -7742,6 +7887,10 @@ msgstr "لا يوجد لأي من هذه المشكلات إصلاح تلقائ
msgid "None of these problems have an automatic fix. Try Fix all with AI."
msgstr "لا يوجد لأي من هذه المشكلات إصلاح تلقائي. جرّب «إصلاح الكل بالذكاء الاصطناعي»."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Not a base16 theme"
+msgstr "ليست سمة base16"
+
#: src/components/acp/ThreadView.tsx
msgid "Not answered"
msgstr "بلا إجابة"
@@ -8642,8 +8791,8 @@ msgid "Paste"
msgstr "لصق"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Paste a base16 scheme"
-msgstr "الصق مخطط base16"
+msgid "Paste a base16 theme"
+msgstr "الصق سمة base16"
#: src/components/AuthModal.tsx
msgid "Paste a personal access token for <0>{host}</0>."
@@ -8766,10 +8915,6 @@ msgstr "خاص بهذا الجهاز — يُخزَّن في إعداد المس
msgid "Pick <0>openknowledge.skill</0> from your <1>Downloads</1> folder. It enables automatically."
msgstr "اختر <0>openknowledge.skill</0> من مجلد <1>التنزيلات</1> لديك. يُفعَّل تلقائيًا."
-#: src/components/settings/ThemePluginSection.tsx
-msgid "Pick a built-in IDE color palette, or define your own."
-msgstr "اختر لوحة ألوان مدمجة لبيئة التطوير، أو عرّف لوحتك الخاصة."
-
#: src/components/settings/SkillTargetsPicker.tsx
msgid "Pick a folder to merge INTO {display}. That folder becomes a symlink to this one, so its agent reads everything placed here. This folder stays real. Conflicting skills abort the merge."
msgstr "اختر مجلدًا لدمجه في {display}. يصبح ذلك المجلد رابطًا رمزيًا إلى هذا، فيقرأ وكيله كل ما يوضع هنا. يبقى هذا المجلد حقيقيًا. المهارات المتعارضة تُبطل الدمج."
@@ -8782,6 +8927,10 @@ msgstr "اختر اسمًا"
msgid "Pick a palette for light mode and one for dark mode. The theme setting in Preferences chooses between them — on “System”, so does your OS."
msgstr "اختر لوحة للوضع الفاتح وأخرى للوضع الداكن. يختار إعداد السمة في «التفضيلات» بينهما — وعلى “النظام”، يختار نظام تشغيلك."
+#: src/components/settings/ThemePluginSection.tsx
+msgid "Pick a theme or create your own."
+msgstr "اختر سمة أو أنشئ سمتك الخاصة."
+
#: src/editor/slash-command/items.tsx
msgid "Pick an emoji to insert at the cursor."
msgstr "اختر رمزًا تعبيريًا لإدراجه عند المؤشر."
@@ -8888,8 +9037,8 @@ msgid "Press Space to pick up a tab. Use the arrow keys to move it within a tab
msgstr "اضغط مفتاح المسافة لالتقاط علامة تبويب. استخدم مفاتيح الأسهم لتحريكها داخل شريط علامات التبويب، ثم اضغط المسافة أو Enter لإفلاتها. اضغط Shift+F10 أو مفتاح القائمة لفتح قائمة سياق علامة التبويب، وفيها إجراءات التقسيم والإغلاق والتثبيت وغيرها."
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Press the sun or moon on “Custom” above to use this scheme."
-msgstr "اضغط الشمس أو القمر على “مخصص” أعلاه لاستخدام هذا المخطط."
+msgid "Press the sun or moon on “Custom” above to use this theme."
+msgstr "اضغط على الشمس أو القمر بجوار «مخصص» أعلاه لاستخدام هذه السمة."
#: src/components/PublishToGitHubDialog.tsx
msgid "Preview browsers can't auto-copy. Use Cmd/Ctrl+C on the URL above, or open OK in the desktop app."
@@ -9789,6 +9938,11 @@ msgstr "هل تستعيد هذه النسخة؟"
msgid "Restore with remote changes"
msgstr "الاستعادة مع تغييرات المستودع البعيد"
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Restored {0}."
+msgstr "تمت استعادة {0}."
+
#. placeholder {0}: descriptor.targetSha7
#: src/components/TimelinePanel.tsx
msgid "Restored an earlier version ({0})"
@@ -9994,6 +10148,10 @@ msgstr "يُحفظ في مجلد مهارات هذا المشروع (مثل <0>.
msgid "Saved into your global skills folder (e.g. <0>~/.agents/skills</0>)."
msgstr "يُحفظ في مجلد مهاراتك العام (مثل <0>~/.agents/skills</0>)."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Saved themes couldn’t load. The last available theme list is still shown."
+msgstr "تعذّر تحميل السمات المحفوظة. ما تزال آخر قائمة سمات متاحة معروضة."
+
#: src/components/SkillProperties.tsx
msgid "Saved to"
msgstr "حُفظ في"
@@ -10011,6 +10169,10 @@ msgstr "يحفظ الملف في <0>~/Downloads/openknowledge.skill</0> ويفت
msgid "Saving"
msgstr "يجري الحفظ"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Saving changes…"
+msgstr "جارٍ حفظ التغييرات…"
+
#: src/components/settings/LintingSection.tsx
msgid "schema {deleteTarget}"
msgstr "المخطط {deleteTarget}"
@@ -10019,10 +10181,6 @@ msgstr "المخطط {deleteTarget}"
msgid "Schema fields"
msgstr "حقول المخطط"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Scheme copied as base16 YAML"
-msgstr "تم نسخ المخطط بصيغة base16 YAML"
-
#: src/components/ImportSkillForm.tsx
#: src/components/PanelScopeHeader.tsx
msgid "Scope"
@@ -10212,6 +10370,11 @@ msgstr "عرض كل حزم البداية {0}"
msgid "See the full install guide"
msgstr "اطّلع على دليل التثبيت الكامل"
+#. placeholder {0}: BASE16_SLOT_ROLES[slot]
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Select {slot} — {0}"
+msgstr "تحديد {slot} — {0}"
+
#: src/components/FrontmatterRow.tsx
msgid "Select a value"
msgstr "اختر قيمة"
@@ -10923,6 +11086,10 @@ msgstr "انتهت مهلة بدء تشغيل Slidev. حاول مرة أخرى."
msgid "Small section heading."
msgstr "عنوان قسم صغير."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Some saved themes aren’t shown because the theme folder exceeds the scan limit."
+msgstr "لا تظهر بعض السمات المحفوظة لأن مجلد السمات يتجاوز حد الفحص."
+
#: src/components/FeedbackForm.tsx
msgid "Something broke"
msgstr "حدث عطل"
@@ -11843,6 +12010,30 @@ msgstr "يحتاج الرمز إلى نطاقي repo وread:user."
msgid "Theme"
msgstr "السمة"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme colors"
+msgstr "ألوان السمة"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme copied as base16 YAML"
+msgstr "تم نسخ السمة بتنسيق base16 YAML"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme imported."
+msgstr "تم استيراد السمة."
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name"
+msgstr "اسم السمة"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name has unsupported characters"
+msgstr "يحتوي اسم السمة على أحرف غير مدعومة"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name is too long"
+msgstr "اسم السمة طويل جدًا"
+
#: src/components/settings/ThemePreviewCanvas.tsx
msgid "Theme preview"
msgstr "معاينة السمة"
@@ -12037,6 +12228,10 @@ msgstr "هذه معاينة لـ {boldName}، اكتُشفت في {boldHarness}
msgid "This is a preview of {boldName}. Install it into your agents."
msgstr "هذه معاينة لـ {boldName}. ثبّتها في وكلائك."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This isn’t a regular theme file"
+msgstr "هذا ليس ملف سمة عاديًا"
+
#: src/components/SlidesToolbarControls.tsx
msgid "This isn't a supported version of Slidev."
msgstr "هذا ليس إصدارًا مدعومًا من Slidev."
@@ -12198,6 +12393,18 @@ msgstr "يحزم هذا المصدر عدة مهارات — اختر ما تر
msgid "This template lives in a parent folder — deleting it affects every folder beneath it that doesn't define its own version."
msgstr "يعيش هذا القالب في مجلد أب — حذفه يؤثر في كل مجلد تحته لا يعرّف نسخته الخاصة."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme can’t be used until the file is fixed."
+msgstr "لا يمكن استخدام هذه السمة حتى يُصلح الملف."
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme file couldn’t be read"
+msgstr "تعذّرت قراءة ملف السمة هذا"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme file is too large"
+msgstr "ملف السمة هذا كبير جدًا"
+
#: src/components/ShareReceiveDialog.tsx
msgid "This usually means one of:"
msgstr "يعني هذا عادةً أحد الأمور التالية:"
@@ -12371,6 +12578,7 @@ msgstr "جرّب موجّهًا"
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/ReportBugDialogBody.tsx
#: src/components/settings/AccountSection.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/ShareReceiveDialog.tsx
msgid "Try again"
msgstr "أعد المحاولة"
@@ -12478,6 +12686,7 @@ msgstr "تم التراجع عن آخر تعديل في {docName}"
#: src/components/ActivityPanelBurstRow.tsx
#: src/components/AppMenubar.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/settings/SharingSection.tsx
#: src/lib/native-menu-catalog.ts
msgid "Undo"
@@ -12745,6 +12954,16 @@ msgstr "استخدام {0} كسمة داكنة"
msgid "Use {0} as the light theme"
msgstr "استخدام {0} كسمة فاتحة"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Use {0} for the active dark mode"
+msgstr "استخدام {0} للوضع الداكن النشط"
+
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Use {0} for the active light mode"
+msgstr "استخدام {0} للوضع الفاتح النشط"
+
#: src/components/SkillForkDialog.tsx
msgid "Use {editor} version"
msgstr "استخدام نسخة {editor}"
@@ -12757,6 +12976,10 @@ msgstr "استخدم <0>{copyShortcut}</0> لنسخ الرابط أدناه، أ
msgid "Use a folder you already have."
msgstr "استخدم مجلدًا لديك بالفعل."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Use a lowercase .yaml or .yml extension"
+msgstr "استخدم الامتداد .yaml أو .yml بأحرف صغيرة"
+
#: src/components/SkillFileCreateDialog.tsx
#: src/components/SkillFileRenameDialog.tsx
msgid "Use a relative path inside the skill (no .., no spaces; SKILL.md is managed)."
@@ -12941,6 +13164,10 @@ msgstr "سنبني <0>openknowledge.skill</0> ونحفظه في <1>~/Downloads</
msgid "We'll create a repository and start syncing — no terminal needed."
msgstr "سننشئ مستودعًا ونبدأ المزامنة — بلا حاجة إلى طرفية."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "We’ll create a safe theme ID from this name."
+msgstr "سننشئ معرّف سمة آمنًا من هذا الاسم."
+
#: src/components/ReportBugDialogBody.tsx
msgid "We've filed it with the team and attached your logs."
msgstr "سجّلناه لدى الفريق وأرفقنا سجلاتك."
diff --git a/packages/app/src/locales/bn/messages.json b/packages/app/src/locales/bn/messages.json
index 2fdc216f9..99e74e8ec 100644
--- a/packages/app/src/locales/bn/messages.json
+++ b/packages/app/src/locales/bn/messages.json
@@ -34,11 +34,13 @@
"আপনার নোট ও অ্যাপের সংস্করণসহ ব্যক্তিগতভাবে OpenKnowledge দলের কাছে পাঠানো হয়। কখনও প্রকাশ্যে প্রকাশ করা হয় না।"
],
"-oHckY": ["OpenKnowledge ", ["key"], " সেটিংটি পড়েছে"],
+ "-othoN": ["এই থিম ফাইলটি খুব বড়"],
"-q4abP": [
"ফলাফল সীমিত — এই ওয়ার্কস্পেসে অনুসন্ধান যত সূচিভুক্ত করতে পারে তার চেয়ে বেশি ফাইল আছে। অনুপস্থিত কোনো ফাইল এই সীমার ফল হতে পারে, বানান ভুল নয়।"
],
"-slrNR": ["কাজের তালিকা চালু বা বন্ধ করুন।"],
"-uaQnI": ["মিলে যাওয়া কোনো ওয়ার্কট্রি বা ব্রাঞ্চ নেই।"],
+ "-yOx8u": ["পরিবর্তনগুলি সংরক্ষণ করা হচ্ছে…"],
"-yPBXI": ["ফাইল বাছুন"],
"-ySLQJ": ["Git ও PR"],
"-zA2E7": ["ওয়ার্কট্রি তৈরি করা যায়নি। অন্য নাম চেষ্টা করুন।"],
@@ -100,6 +102,7 @@
"0kTAXe": ["উৎস খুলুন: ", ["mirrorSrc"]],
"0pZmTP": ["এই পাথ শেয়ার করা যাচ্ছে না।"],
"0qyKG6": ["ডিস্ক থেকে সিঙ্ক করা"],
+ "0r6d6v": ["পরিবর্তনগুলি স্বয়ংক্রিয়ভাবে সংরক্ষিত হয়েছে।"],
"0rwwOn": ["ট্যাগ অনুসারে"],
"0s8-e8": [
"কীবোর্ডের সীমানা থেকে ব্লক কম্পোনেন্ট ও ফলব্যাক সোর্স ব্লক নির্বাচন করুন, তাতে ঢুকুন, বা বেরিয়ে আসুন।"
@@ -110,6 +113,7 @@
"0xnQ_X": ["হালনাগাদ আসতে থাকে"],
"0xnmlQ": ["রিপোজিটরির নাম"],
"0yL--g": ["দ্বন্দ্ব পর্যালোচনা করুন"],
+ "0ySP5u": ["পরিবর্তনগুলি এই থিমে স্বয়ংক্রিয়ভাবে সংরক্ষিত হয়।"],
"0zAhu6": ["প্রতিটি নথি"],
"10g8I_": ["কেবল markdown ফাইল বন্ধ করুন"],
"11ukmX": ["নাম বদলানো ব্যর্থ: ", ["0"]],
@@ -119,6 +123,7 @@
"161NCV": ["থামানো হচ্ছে"],
"16D5Zj": ["আপনি কি নিশ্চিত যে ", ["itemName"], " মুছে ফেলতে চান? এই কাজ ফেরানো যাবে না।"],
"16eIWu": ["জোর করে থামান"],
+ "16tSS_": ["একটি base16 থিম পেস্ট করুন"],
"170Js2": ["প্যানেল লুকান"],
"1AumWo": ["পাঠানো ব্যর্থ — বিস্তারিত জানতে সার্ভার লগ দেখুন।"],
"1CalO6": ["ধরন"],
@@ -151,6 +156,7 @@
"1njn7W": ["হালকা"],
"1nke1r": [["0"], " GitHub-এ খুলুন (নতুন ট্যাবে খোলে)"],
"1oSHI0": [["skillName"], " ইনস্টল করা যায়নি: ", ["0"]],
+ "1qpGKz": ["পরিবর্তনগুলি সংরক্ষণ করা যায়নি। একটি রং আবার সম্পাদনা করে দেখুন।"],
"1ruosn": ["OpenKnowledge"],
"1t_NnN": ["প্রত্যাখ্যান করুন"],
"1u-mAI": ["সিঙ্ক শুরু করা যায়নি। আপনার সংযোগ দেখুন, তারপর আবার চেষ্টা করুন।"],
@@ -269,7 +275,6 @@
"3kYcuM": ["আপনি কি নিশ্চিতভাবে নির্বাচিত আইটেমগুলি মুছতে চান?"],
"3l32hp": [["plugin"], " প্লাগইনের অংশ"],
"3l_cXP": ["ইচ্ছে করলে দেখে নিন। ঠিক এই ফাইলটিই আমরা পাই।"],
- "3l_knd": ["এই স্কিমটি ব্যবহার করতে উপরে “Custom”-এ সূর্য বা চাঁদে চাপ দিন।"],
"3m2GBo": ["নথি খোঁজা হচ্ছে"],
"3mFsc3": ["রিমোটের পরিবর্তনসহ ফিরিয়ে আনুন"],
"3nnyi_": [["0", "plural", { "one": ["মুছুন"], "other": ["#", " আইটেম মুছুন"] }]],
@@ -309,6 +314,7 @@
"4TzU0n": ["চালু করুন"],
"4buZWd": [["path"], " থেকে উত্তরাধিকারসূত্রে পাওয়া"],
"4c_a6S": ["এখনও কিছুই নির্ধারিত হয়নি।"],
+ "4d0VYJ": ["এই নাম থেকে আমরা একটি নিরাপদ থিম আইডি তৈরি করব।"],
"4eO-iB": ["এই মন্তব্যটি বাদ দিন"],
"4g19V6": ["প্রপার্টি হালনাগাদ করতে ব্যর্থ"],
"4h3e0H": ["স্কিল ভাগাভাগি হালনাগাদ করা যায়নি — ", ["detail"], "।"],
@@ -434,6 +440,7 @@
"এটি কী করবে তার বর্ণনা দিন, নয়তো নিজেই একটি যোগ করুন। OpenKnowledge আপনার স্কিলগুলো এক জায়গায় রাখে, সেগুলোর সংস্করণ রাখে, এবং Claude, Codex ও Cursor-এর মতো এজেন্টে ইনস্টল করে।"
],
"6MnZEC": ["টার্মিনাল লোড করা যায়নি"],
+ "6Nea1q": ["সক্রিয় গাঢ় মোডের জন্য ", ["0"], " ব্যবহার করুন"],
"6O626z": ["\"", ["trimmedAnchorQuery"], "\"-এর সঙ্গে কোনো শিরোনাম মেলে না"],
"6Pxqwv": [
"এখনও কোনো প্রকল্প টেমপ্লেট নেই। এই প্রকল্পের সব জায়গায় পেতে একটি তৈরি করুন। ফোল্ডার-সীমিত টেমপ্লেট প্রতিটি ফোল্ডারের সংক্ষিপ্তসার পাতায় থাকে।"
@@ -443,6 +450,7 @@
"6VqW-1": [["keyName"], " সরান"],
"6WdDG7": ["পাতা"],
"6YBJ3m": ["নির্বাচিত অংশ নিয়ে AI-কে জিজ্ঞেস করুন"],
+ "6YE0P6": [["0"], " সম্পাদনা করা হচ্ছে"],
"6YtxFj": ["নাম"],
"6ZhdPI": ["এজেন্ট কী পড়তে, লিখতে ও সামনে আনতে পারে।"],
"6_ZOw4": ["পূর্ণ পথ কপি হয়েছে"],
@@ -472,6 +480,7 @@
"6s7LXO": ["খেয়াল রাখুন"],
"6u9LvN": [["days", "plural", { "one": ["#", " দিন আগে"], "other": ["#", " দিন আগে"] }]],
"6vEr3W": ["লিংকের লক্ষ্য"],
+ "6xeZX9": ["সম্পাদনাগুলি সঙ্গে সঙ্গে প্রয়োগ হয়। হালকা বা গাঢ় থিম থেকে নির্ধারিত হয়।"],
"6zzhQL": ["আপনার রিপোর্ট ইমেইলে পাঠান"],
"72xhRD": ["চিত্র দেখার মোড"],
"74-bX-": ["একটি পুল কোট চারপাশের লেখা থেকে আলাদা করে চোখে পড়ে।"],
@@ -481,13 +490,13 @@
"77SdEP": [["itemName"], " মুছুন"],
"78G7R3": ["নথির frontmatter JSON Schema ফাইলের বিপরীতে যাচাই করুন, গ্লোব দিয়ে নথি-গুচ্ছে সীমাবদ্ধ।"],
"7Bj3x9": ["ব্যর্থ"],
- "7EmDc7": ["স্কিম আমদানি করুন"],
"7FA2iI": ["পাঠানোর অপেক্ষায় থাকা মন্তব্যগুলো পড়া যায়নি — কিছুই পাঠানো হয়নি।"],
"7FamGZ": ["লাইনে যান"],
"7Fkcej": ["+ ", ["addChildName"], " যোগ করুন"],
"7H4UHD": ["<0>#", ["tagName"], "</0> ট্যাগযুক্ত নথি"],
"7IsvrP": ["হালনাগাদ দেখা হচ্ছে"],
"7JtSLi": ["পথ মুছতে ব্যর্থ"],
+ "7O7REc": [["0"], " পুনরুদ্ধার করা যায়নি। আবার চেষ্টা করুন।"],
"7OhaRy": ["সোর্স অনুসন্ধান"],
"7Ongq0": ["আমার AGENTS.md ফাইলটি ৪০k অক্ষরের কমে সংক্ষিপ্ত করুন"],
"7OwvEL": ["HTML প্রাকদর্শন দেখান"],
@@ -592,6 +601,8 @@
"8uGMP8": ["লুকানো বিষয়বস্তু এখানে থাকে।"],
"8vCZcs": ["ফাইল খুলতে ব্যর্থ।"],
"8vETh9": ["দেখান"],
+ "8x6zk9": [["0"], " সম্পাদক লুকান"],
+ "9-lMCF": [["slot"], " রং — ", ["0"]],
"90-wKT": ["OpenKnowledge ", ["subject"], " এর ইতিহাস পড়েছে"],
"92rbk2": ["মিরর <0>", ["mirrorRef"], "</0> লোড হচ্ছে"],
"93LBnX": ["Agents লুকান"],
@@ -647,7 +658,6 @@
"9fvog2": ["প্রাকদর্শন অনুপলব্ধ: ", ["errorDetail"]],
"9i21pa": ["কমিট নিজে থেকেই হয়"],
"9ieZhu": [["path"], "-এ ইনস্টল করা — সরাতে ক্লিক করুন"],
- "9j1tqo": ["ক্লিপবোর্ডের নাগাল পাওয়া যায়নি — স্কিমটি নিচের বাক্সে আছে।"],
"9jnjV0": ["নিজস্ব প্লেয়ার নিয়ন্ত্রণসহ একটি অডিও ফাইল এমবেড করুন।"],
"9lso1Y": ["<0>", ["folderPart"], "/</0> ফোল্ডারটি তৈরি করে"],
"9m4D_h": ["GitHub, একটি git URL, বা একটি স্থানীয় পথ।"],
@@ -684,8 +694,10 @@
],
"AIn2Yv": [["displayName"], " CLI, ", ["hint"]],
"AItsE5": ["সেটি সেখানেই খুলুন"],
+ "AJ7_B2": ["নতুন থিম তৈরি করুন"],
"AKxFtn": [["openedWorktreeCount", "plural", { "one": ["ওয়ার্কট্রি"], "other": ["ওয়ার্কট্রি"] }]],
"ALhMYW": ["টার্মিনাল"],
+ "ANFxWn": ["এই থিম মুছে ফেলা যায়নি। রিফ্রেশ করে আবার চেষ্টা করুন।"],
"APNlbk": ["প্রস্থান ", ["0"]],
"AQ-Lfg": ["টেমপ্লেট লোড করা যায়নি"],
"AQGtjK": [
@@ -814,9 +826,11 @@
"এই ফাইলটি অন্তর্নির্মিত টেক্সট সম্পাদকে খোলার জন্য অত্যন্ত বড় (১ MB সীমা)। অন্য অ্যাপে খুলতে নিচের Open file ব্যবহার করুন।"
],
"C_cPoW": ["আপনার GitHub সেশনের মেয়াদ শেষ — পুশের প্রবেশাধিকার যাচাই করতে আবার সাইন ইন করুন।"],
+ "CcaU4i": ["সম্পাদনাগুলি সঙ্গে সঙ্গে প্রয়োগ হয় এবং এই থিমে স্বয়ংক্রিয়ভাবে সংরক্ষিত হয়।"],
"ChAtFg": ["এই রিপোজিটরিতে পুশ করার অনুমতি আপনার নেই"],
"ChMshD": [["appName"], " থেকে প্রস্থান"],
"Ck9XRt": ["কী সংরক্ষণ করা যায়নি — অনুগ্রহ করে আবার চেষ্টা করুন।"],
+ "ClII5l": ["এই থিম ব্যবহার করতে উপরের “কাস্টম”-এ সূর্য বা চাঁদ চাপুন।"],
"ClTEde": ["নির্বাচিত অংশ এজেন্ট প্যানেলে প্রস্তুত রাখুন, যোগ করে পাঠানোর জন্য তৈরি।"],
"CmeH9S": [["keyName"], "-এ প্রপার্টি যোগ করুন"],
"CnOGgs": ["সিঙ্ক মোড"],
@@ -858,6 +872,7 @@
"DKYW1G": [
"এই সেটিংটি প্রতি-মেশিন ভিত্তিক এবং সহযোগীদের সঙ্গে ভাগ করা হয় না। এর জন্য একটি API কী দরকার (নিচে নির্ধারণ করুন), যদি না আপনার এন্ডপয়েন্ট এমন কোনো স্থানীয় সার্ভার হয় যার সেটি লাগে না।"
],
+ "DLIljL": ["থিম ফোল্ডারটি স্ক্যানের সীমা ছাড়িয়ে যাওয়ায় কিছু সংরক্ষিত থিম দেখানো হচ্ছে না।"],
"DMLE5q": ["MCP স্বয়ংক্রিয় মেরামত ব্যর্থ হয়েছে"],
"DMeaxi": [["0"], " ", ["1"], " ডাউনলোড হচ্ছে…"],
"DNkveC": ["কলাম বিকল্প"],
@@ -870,6 +885,7 @@
"</0>-এ আছে। আপনার কমিট না করা পরিবর্তন আছে যা এখানে বদলানো আটকায় — আপনার পরিবর্তন অক্ষত রাখতে এটি একটি ওয়ার্কট্রিতে খুলুন।"
],
"DUWgfT": ["GitHub Enterprise Server-এর সঙ্গে আবার প্রমাণীকরণ করুন"],
+ "DUb7Ax": ["একাধিক ফাইল এই থিমের নাম ব্যবহার করে"],
"DVh_Tb": ["ট্র্যাশের পরে পরিষ্কার করতে ব্যর্থ"],
"DWJtEo": ["এরপর কী হয়"],
"DXd9LM": ["নতুন ওয়ার্কট্রি"],
@@ -884,6 +900,7 @@
"DhT_PK": ["OpenKnowledge একটি স্কিল আমদানি করেছে"],
"DiFKSL": ["markdown ফাইল গণনা করা হচ্ছে"],
"DiZ3pq": ["আইকন নির্বাচক"],
+ "DmkTrb": ["এই থিম তৈরি করা যায়নি। আবার চেষ্টা করুন।"],
"Dnn2XG": ["স্বয়ংক্রিয়"],
"DpjYd6": ["অ্যাংকর করা লেখায় যান"],
"DrYM2Z": ["সিঙ্ক নিষ্ক্রিয়"],
@@ -1055,6 +1072,7 @@
"আপনার কোডবেস কীভাবে কাজ করে তা বুঝিয়ে বলুন যাতে সহকর্মী ও AI এজেন্ট পথ খুঁজে পায়। স্থাপত্য, প্রধান অংশ এবং নতুন অবদানকারীরা যে প্রশ্নগুলো সবসময় করেন সেগুলো নথিভুক্ত করার জন্য ভালো।"
],
"FyW0WO": ["ব্রাউজারে অনুমোদন দিন"],
+ "FyyIjH": ["থিমের নাম খুব দীর্ঘ"],
"G-JBA1": [
"সোর্স মোডের জন্য একটি সচল সংযোগ দরকার — আপনার সম্পাদনা সংরক্ষিত হয়েছে এবং পুনরায় যুক্ত হলে দেখা যাবে।"
],
@@ -1089,6 +1107,7 @@
"GQDSBN": ["বিন্যাসের বিকল্প"],
"GSYWCm": ["নথি প্যানেল লুকান"],
"GUYwCr": ["বিজ্ঞপ্তি সরিয়ে দিন"],
+ "GUZHkL": ["প্যালেটের রং অনুপস্থিত"],
"GUqTzn": ["প্রতিযোগী গবেষণা"],
"GXf9hG": [["repoName"], " ক্লোন করা হচ্ছে…"],
"GZzDqc": [
@@ -1156,6 +1175,7 @@
"HSI88F": ["টেবিল মুছুন"],
"HSh8u_": ["ফোল্ডার"],
"HTW0Zw": ["আরও একটি ধাপ: এই প্রকল্পে <0>claude</0> চালান এবং OpenKnowledge-কে একবার অনুমোদন দিন।"],
+ "HZ7fEu": ["থিমের নাম"],
"HbcQYf": [["display"], "-এ থাকা সিমলিংকটি স্কিলের একটি স্বতন্ত্র অনুলিপি দিয়ে বদলাবেন? আর কিছু সরে না।"],
"HdkSiO": ["নতুন ফাইল"],
"HfI1dR": ["এটি আমার কাছে আগে থেকেই স্থানীয়ভাবে আছে →"],
@@ -1200,6 +1220,7 @@
"IFezUv": ["নিরীক্ষা সম্পূর্ণ করা যায়নি। আবার চেষ্টা করুন।"],
"IInnZo": ["দ্বন্দ্ব"],
"IKoTAC": ["নিষ্ক্রিয়ই রাখুন"],
+ "IMLUBh": ["অবৈধ রঙের মান"],
"INp_z6": ["এই ", ["0"], " নিয়ে মন্তব্য করুন বা AI-কে জিজ্ঞাসা করুন"],
"IO8REi": ["\"", ["name"], "\" খোলা যায়নি: ", ["0"]],
"IQPyrD": ["অনুপস্থিত পাতা — তৈরি করতে ক্লিক করুন"],
@@ -1211,7 +1232,6 @@
"IX_uXB": ["my-feature"],
"IYciRC": ["রিপোর্টের জন্য ধন্যবাদ!"],
"IajAbS": ["একটি স্টার্টার প্যাক যোগ করুন"],
- "IbTC7z": ["একটি base16 স্কিম পেস্ট করুন"],
"If0crP": ["AI ", ["targetDisplayName"], " দিয়ে খুলুন, ", ["hint"]],
"IgN3LY": ["<0>", ["address"], "</0>-এ নির্বাচিত লেখার উপর"],
"IgTwLt": ["এই নথিটি সম্পাদকে খুলুন এবং গ্রাফ গুটিয়ে নিন।"],
@@ -1229,6 +1249,7 @@
"Ix0K8o": ["বাইরের URL নোড লুকান"],
"IxHMdF": ["ওই মন্তব্যটি মুছে ফেলা যায়নি।"],
"IxyZXD": ["স্ক্রিনশট"],
+ "J1XRO3": ["থিমের রং"],
"J2Mv98": ["নাম (যেমন ", ["login"], ")"],
"J2_JuX": ["কিছুই নয় (", ["0"], " কোনো নথির সঙ্গে মিলতে পারে না)"],
"J2eKUI": ["ফাইল"],
@@ -1254,7 +1275,7 @@
"JOcPqH": ["একটি রিমোট রিপোজিটরি এই মেশিনে আনুন।"],
"JWsZlx": ["সম্পাদনা করতে একটি প্রকল্প খুলুন।"],
"JZ8cO6": ["হালকা, গাঢ়, বা OS অনুসরণ করুন।"],
- "J_bJiH": ["একটি অন্তর্নির্মিত IDE রঙের প্যালেট বাছুন, নয়তো নিজেরটি ঠিক করুন।"],
+ "JaU1ld": ["থিমের নামে অসমর্থিত অক্ষর আছে"],
"JddocZ": ["হেডার কলাম টগল করুন"],
"Jejur6": ["নথি লোড করা যায়নি"],
"JfPuv7": [["shareBranch"], " একটি বৈধ ব্রাঞ্চ নাম নয়।"],
@@ -1331,6 +1352,7 @@
"KsAPaB": ["এই ব্রাঞ্চটি এখানে চেক আউট করা আছে:"],
"KtACeE": ["ডিফল্ট: <0>", ["0"], "</0>"],
"KujtjC": ["খুঁজুন"],
+ "Kx881F": [["0"], " পুনরুদ্ধার করা হয়েছে।"],
"L-rMC9": ["ডিফল্টে রিসেট করুন"],
"L1BQTH": [["0"], " এখনও ইনস্টল করা নেই — এর ডাউনলোড পাতা খোলা হচ্ছে।"],
"L1ZE3M": ["নথির পরিসংখ্যান"],
@@ -1505,6 +1527,7 @@
"N55YNr": [
"বাছুন এই প্রকল্পের OpenKnowledge সেটআপ, তার AI-টুল সংযোগসহ, প্রকল্পের সঙ্গে সংরক্ষিত হবে যাতে সহকর্মীরাও তা পান, নাকি শুধু আপনার কম্পিউটারেই রাখা হবে।"
],
+ "N6j2JH": [["0"], " সম্পাদনা করুন"],
"NBdIgR": ["মন্তব্য করুন"],
"NCmYhK": [
"স্কিল এজেন্টদের পুনরাবৃত্তিযোগ্য কাজ শেখায়। সম্পাদকের Skills বিভাগ থেকে সেগুলো লিখুন ও সামলান; প্রতিটি স্কিলের ইনস্টল মেনু ঠিক করে সেটি কোথায় থাকবে। এগুলো এই প্রকল্পের স্কিল ফোল্ডার।"
@@ -1707,6 +1730,7 @@
"</0>-এর আগে থেকেই একটি ওয়ার্কট্রি আছে — সেটি নিজের জানালায় খুলবে।"
],
"QB-moX": ["এটি ভাগ করতে আপনার অন্য সম্পাদকগুলোতে (Claude Code, Cursor, Codex) ইনস্টল করুন।"],
+ "QDErHs": [["slot"], " নির্বাচন করুন — ", ["0"]],
"QDZbvN": [["diffDays"], " দিন আগে"],
"QGWzup": ["OpenKnowledge স্কিল লোড হচ্ছে"],
"QHCx0c": ["বাগ রিপোর্টের ইতিহাস"],
@@ -1737,11 +1761,11 @@
"QlxHAH": ["\"", ["semanticResultsLabel"], "\"-এর ফলাফল দেখানো হচ্ছে"],
"Qpfxa1": [["secs"], "সে"],
"QqBQu1": ["লেবেল <0>(দৃশ্যমান লিংকের লেখা)</0>"],
- "Quz_Qu": ["সম্পাদনা সঙ্গে সঙ্গে প্রয়োগ হয়। হালকা বা গাঢ় স্কিম থেকে আসে।"],
"Qvls7J": ["ইঞ্জিনিয়ারিং স্পেক"],
"Qw-7Ie": [
"লেখার জন্য একটি সহজ জায়গা, প্রতি বিষয়ে একটি ফাইল আর একটি দৈনিক জার্নাল নিয়ে। আপনি যদি কেবল লেখা শুরু করতে চান এবং সময়ের সঙ্গে নোটগুলোর মধ্যে যোগসূত্র গড়ে উঠতে দিতে চান, তবে এটি বাছুন।"
],
+ "QwG_zJ": ["বিরোধপূর্ণ ফাইল: ", ["0"], "।"],
"QySH4I": ["শনাক্ত হওয়া OpenKnowledge প্রকল্প"],
"QyioBP": ["উপরে সরান"],
"QzofTX": ["এই প্রকল্পে এখনও কোনো মন্তব্য নেই। শুরু করতে কোনো অংশে মন্তব্য করুন।"],
@@ -1756,6 +1780,7 @@
]
],
"R0jJzV": ["URL, owner/repo পেস্ট করুন, বা আপনার রিপোজিটরি খুঁজুন"],
+ "R30SFt": ["ছোট হাতের .yaml বা .yml এক্সটেনশন ব্যবহার করুন"],
"R3y75Z": ["সোর্স সম্পাদনা করুন"],
"R4OWFD": ["বিভাগ"],
"R65q-K": [
@@ -1766,6 +1791,7 @@
"R9dK63": ["নমুনা ছবি"],
"RDjuBN": ["সেটআপ"],
"RDrXh4": ["ব্যবহারকারী, প্রকল্প ও সংযুক্তির সেটিং কনফিগার করুন।"],
+ "RG3yW6": ["এই থিমের জন্য একটি নাম লিখুন।"],
"RG4XHV": [["0"], " প্রম্পট কপি করুন"],
"RGCCrg": ["শেয়ার লিংক কপি করুন"],
"RGkNeJ": ["একটি স্টার্টার প্যাক চালু করুন"],
@@ -1930,6 +1956,7 @@
"UEdTEN": ["অনাথ"],
"UGeJuP": ["অনুমোদিত মান (খালি = যেকোনো)"],
"UGtPix": ["GitHub সংযোগের মেয়াদ শেষ হয়েছে। চালিয়ে যেতে আবার সংযোগ করুন।"],
+ "UH0Zqw": ["এটি একটি সাধারণ থিম ফাইল নয়"],
"UHwc0P": [
"এটি ",
["boldName"],
@@ -1978,7 +2005,6 @@
],
"Uci-Ph": ["ক্রমিক তালিকা"],
"Ud0Pj9": ["<0>মিরর উৎস সরানো হয়েছে।</0> <1>", ["src"], "</1> নথিটি আর নেই।"],
- "UeQEbk": ["শত শত স্কিম ব্রাউজ করুন"],
"UfW9Kr": [
"আপনার অনুসন্ধানের প্রশ্ন ও মিলে যাওয়া পাতাগুলোর পূর্ণ লেখা এমবেডিং হিসাব করতে আপনার এমবেডিং সরবরাহকারীর (ডিফল্টে OpenAI) কাছে পাঠানো হয়।"
],
@@ -2068,6 +2094,7 @@
],
"W8vpBM": ["স্টার্টার প্যাক"],
"W9_Bub": ["স্থানীয় পরিবর্তন আগত সিঙ্কের সঙ্গে মিলে যাচ্ছে"],
+ "WBNpt9": ["এই থিমটি পড়া যায়নি (", ["0"], ")"],
"WFEbV1": ["সম্পাদকে সাধারণ markdown সমস্যা চিহ্নিত করুন। <0>markdownlint<1/></0> দ্বারা চালিত।"],
"WGMoTY": ["বাগ, ক্র্যাশ, বা এটি নির্ভরযোগ্য মনে হয়নি"],
"WHPvOb": ["ভিউ ফিল্টার সব ফাইল লুকিয়ে রেখেছে।"],
@@ -2196,6 +2223,7 @@
"Y9c_nf": ["0/0"],
"YBt9YP": ["বিটা"],
"YC6_wP": [["keyName"], " সম্পাদনা করুন"],
+ "YCmS3k": [["0"], " মুছে ফেলা হয়েছে।"],
"YDL7N6": [
"Lint প্লাগইন — কোন নিয়ম-পরিবারগুলো চলে ও তাদের প্রতি-নিয়ম সেটিং — এই প্রকল্প → Plugins-এর নিচে নিজেদের ট্যাবে কনফিগার করা হয়।"
],
@@ -2221,6 +2249,7 @@
"Y_kL7X": ["সম্পাদক কেমন দেখাবে ও কেমন আচরণ করবে তা নিজের মতো সাজান।"],
"Ya3PlJ": ["অনুমতি প্রয়োজন"],
"YaeyFh": ["টানলে আপনার স্থানীয় ফাইলের কমিট না করা সম্পাদনা মুছে যেতে পারে।"],
+ "Yb82LN": ["আইডি: ", ["0"]],
"Yea-K5": ["এই বিন্দুতে ফিরিয়ে আনুন"],
"Yi0VMG": [["keyName"], " আপলোড করুন"],
"YjMLg2": ["বন্ধ — বাইরের লিংক কেবল তাদের URL দেখায়। কোনো অনুরোধ এই কম্পিউটার ছেড়ে যায় না।"],
@@ -2294,6 +2323,7 @@
"ZYtq3m": [
"আপনি যে AI টুলগুলো ব্যবহার করেন সেগুলোকে এই নির্দিষ্ট প্রকল্পের সঙ্গে যুক্ত করুন। এই ফাইলগুলো প্রকল্পের ফোল্ডারেই থাকে, তাই যে-ই এটি খুলুক একই সেটআপ পায়।"
],
+ "Z_nNa2": ["আপনার থিমের নাম দিন"],
"ZatAO_": ["লিংক প্রাকদর্শন চালু করতে ব্যর্থ — ", ["detail"]],
"Zf0w-R": [
"একটি লেখাকে একটি কাঁচা ধারণা থেকে একটি শেষ খসড়ায়, তারপর ভাগ করার মতো কিছুতে নিয়ে যান। ব্লগ পোস্ট, প্রবন্ধ, বা এমন যেকোনো কিছুর জন্য ভালো যা আপনি স্পষ্ট ধাপে ধাপে এগিয়ে নিতে চান।"
@@ -2329,11 +2359,13 @@
["currentLabel"],
"</1>-এ আছেন।"
],
+ "_DwR-n": ["তৈরি হচ্ছে…"],
"_FLBbi": [["sizeText"], " · গোপন তথ্য সরানো হয়েছে · ক্র্যাশ ডাম্প থেকে সরানো হয়নি"],
"_GRWOJ": ["এমবেডিং সরবরাহকারী বদলাবেন?"],
"_HgF9q": ["এই অনুযায়ী সাজান"],
"_IGfXZ": ["গতবার OpenKnowledge অপ্রত্যাশিতভাবে বন্ধ হয়ে গিয়েছিল।"],
"_IX_7x": ["অন্যান্য"],
+ "_IfSZn": ["এই নামে ইতিমধ্যেই একটি সংরক্ষিত থিম আছে।"],
"_JOGC0": ["মতামত পাঠান…"],
"_LczaQ": ["প্রত্যাখ্যাত — ", ["optionName"]],
"_NWEid": ["পথ দিয়ে স্কিমা ফাইল খুঁজুন"],
@@ -2449,7 +2481,6 @@
"b6Fgpe": ["প্রতিটি প্যাক আপনার প্রকল্পকে তৈরি ফোল্ডার ও টেমপ্লেট দিয়ে কাঠামো দেয়।"],
"bBE5tC": ["এই মেশিনে শনাক্ত হয়েছে"],
"bBcFK_": [["keyName"], "-এর জন্য ইমোজি নির্বাচক খুলুন"],
- "bD2SLZ": ["স্কিম base16 YAML হিসেবে কপি হয়েছে"],
"bD8I7O": ["সম্পূর্ণ"],
"bEp7UY": ["ডেস্কটপ ব্রিজের সাথে সংযুক্ত নয়"],
"bF22t6": ["ফিল্ড ", ["field"], " সরান"],
@@ -2507,6 +2538,7 @@
"cIptmH": ["Claude Desktop App-এ"],
"cKjLuT": ["(প্রকল্প + ব্যবহারকারী)"],
"cLP0Lf": ["রিমোট স্কিল উৎস"],
+ "cLn264": ["এই থিম ফাইলটি পড়া যায়নি"],
"cMMb6H": [["imported"], "টি ইনস্টল হয়েছে, কিন্তু ", ["failed"], "টি ব্যর্থ: ", ["failedNames"]],
"cN1Gcp": [["shareBranch"], "-এর জন্য একটি ওয়ার্কট্রি ফোল্ডার আগে থেকেই আছে।"],
"cOJyVj": ["থিম নিষ্ক্রিয় করুন"],
@@ -2520,6 +2552,7 @@
"cU-seF": ["কার্সরে থাকা ব্লকের markdown সোর্সে যান, মাঝখানে ও হাইলাইট করা অবস্থায়।"],
"cUK8lW": [["conflictCount", "plural", { "one": ["#", " দ্বন্দ্ব"], "other": ["#", " দ্বন্দ্ব"] }]],
"cUk6TF": ["সিঙ্ক ব্যর্থ — বিস্তারিত জানতে সার্ভার লগ দেখুন।"],
+ "cUt8yN": ["পরিবর্তনগুলি স্বয়ংক্রিয়ভাবে সংরক্ষিত হয়।"],
"cV7LOw": ["দলগত উইকি"],
"cVKnqL": ["পাঠানোর অপেক্ষায় থাকা মন্তব্যগুলো পড়া যায়নি: ", ["0"]],
"cZGNlb": ["আরেকটি প্যাটার্ন যোগ করুন"],
@@ -2554,6 +2587,7 @@
"cstC0z": ["প্যাটার্ন (regex)"],
"ct2kv5": [["pageTarget"], "-এ কোনো শিরোনাম নেই"],
"cuA8QW": ["স্পেক সাজান"],
+ "cuHhjo": ["তৈরি ও সম্পাদনা"],
"d-GtJt": ["উৎস Markdown-এ দেখুন"],
"d1JjXo": [
"ব্রাঞ্চ <0>",
@@ -2654,6 +2688,7 @@
"Git এই ফোল্ডারের হিসাব রাখতে পারে না — এটি খালি বা এতে কেবল উপেক্ষিত ফাইল আছে। আপনি একটি হিসাবভুক্ত নথি যোগ না করা পর্যন্ত লিংকটি কাজ করবে না।"
],
"eiUA4k": [["count", "plural", { "one": ["#", " মন্তব্য"], "other": ["#", " মন্তব্য"] }]],
+ "ekSPiP": [["0"], " ইতিমধ্যেই মুছে ফেলা হয়েছে।"],
"el2KyL": ["এই প্রকল্পে Slidev পাওয়া গেছে। ডেকগুলি প্রকল্পের সংস্করণ ব্যবহার করবে।"],
"emMrXQ": ["সার্ভার একটি ত্রুটিপূর্ণ গঠনের ডুপ্লিকেট প্রতিক্রিয়া ফেরত দিয়েছে।"],
"emgiet": ["প্রামাণিক বিষয়বস্তু; যেখানেই উল্লেখ করা হোক হুবহু প্রতিফলিত।"],
@@ -2722,6 +2757,7 @@
"fwrPh4": ["অনুগ্রহ করে একটি বৈধ ইমেইল দিন।"],
"fxJk_6": ["<0>আরও কিছু যোগ করার আছে?</0> <1/>-এ লিখুন এবং আপনার রেফারেন্স উল্লেখ করুন।"],
"fxbCNQ": ["সিঙ্ক হয়েছে। লিংকটি হালনাগাদ।"],
+ "g12y1g": ["অবৈধ YAML"],
"g1ZTh_": [
[
"count",
@@ -2801,7 +2837,6 @@
"gwEcOD": ["আপনার স্থানীয় অনুলিপি পিছিয়ে আছে।"],
"gwykHF": ["এই নথিটি এখনও GitHub-এ সিঙ্ক হয়নি। পরের সিঙ্কের পর লিংকটি কাজ করবে।"],
"gyHDWC": ["AI দিয়ে সব ঠিক করুন (", ["count"], ")"],
- "gyWc8_": ["উচ্চারণ চিহ্ন"],
"h-AdvS": ["ফোল্ডার ও টেমপ্লেট আগে থেকেই এখানে আছে, তাই যোগ করার কিছু নেই।"],
"h06R3C": ["কোনো পাতার বহির্গামী গ্রাফ লিংক অনুপস্থিত নয়।"],
"h16FyT": ["তালিকা"],
@@ -2819,6 +2854,7 @@
"hDEaQu": ["OpenKnowledge-কে আপনার ব্যবহৃত অন্য টুলের সঙ্গে যুক্ত করুন।"],
"hDKtoF": [["diffHrs"], " ঘণ্টা আগে"],
"hDoLrm": [["projectName"], " সাম্প্রতিক প্রকল্প থেকে সরান"],
+ "hFmYGU": ["লিঙ্ক করা থিম ফাইল সমর্থিত নয়"],
"hGmuTc": ["#", ["tagDocsName"], " ট্যাগযুক্ত নথি"],
"hHMv6l": ["ব্লক মুছুন"],
"hHR0tt": [["0"], "-এর সাথে নতুন চ্যাট"],
@@ -2832,6 +2868,7 @@
"hSBIG-": ["একটি শিরোনাম, বিবরণ, ট্যাগ — এই ফোল্ডারকে বর্ণনা করে এমন যা কিছু।"],
"hSySVc": ["ইনস্টল হস্তান্তর ব্যর্থ: ", ["msg"]],
"hVAkI8": ["টার্মিনালে চালান"],
+ "hVzt9x": ["সংরক্ষিত থিমগুলি লোড করা যায়নি। সর্বশেষ উপলভ্য থিমের তালিকাটি এখনও দেখানো হচ্ছে।"],
"hXUWyd": ["মান আবশ্যক"],
"hXbSxc": ["সম্পদ: ", ["title"]],
"hY8pka": ["পরবর্তী উপস্থিতি নির্বাচন করুন"],
@@ -2841,6 +2878,7 @@
"haHgQj": ["আপেক্ষিক পথ কপি হয়েছে"],
"habOU_": ["স্বয়ংক্রিয় অনুমোদনের সেটিং হালনাগাদ করতে ব্যর্থ — ", ["detail"]],
"he3ygx": ["কপি করুন"],
+ "hgF0al": ["সক্রিয় হালকা মোডের জন্য ", ["0"], " ব্যবহার করুন"],
"hgtsat": [["file"], " মুছতে ব্যর্থ"],
"hh4mVC": ["AI-কে ", ["flatId"], " ঠিক করতে বলুন"],
"hhI__i": ["আপনি কি নিশ্চিতভাবে {name} এবং তার বিষয়বস্তু মুছতে চান?"],
@@ -3071,6 +3109,7 @@
]
],
"k_pade": ["কনফিগ ভাগাভাগি এখন ভাগ করা। আপনার দলের সঙ্গে ভাগ করতে OK ফাইলগুলো কমিট করুন।"],
+ "k_tFzX": ["থিমের নাম অনুপস্থিত"],
"k_yIIc": ["এখানে তৈরি হবে: <0>", ["targetPreview"], "</0>"],
"ka6Eke": ["ফাইলটি ডিস্কে খুলুন"],
"kdzzOK": ["বন্ধ — অনুসন্ধান কেবল কীওয়ার্ড দিয়ে ক্রম করে। কোনো বিষয়বস্তু এই কম্পিউটার ছেড়ে যায় না।"],
@@ -3082,6 +3121,7 @@
"khCa4M": ["এই প্রকল্পের কোডিং এজেন্টদের OpenKnowledge-এর মাধ্যমে পড়তে ও লিখতে শেখায়।"],
"kj9pAE": ["পাতা তৈরি করা হচ্ছে"],
"kknhfj": ["কোনো পরিবর্তন নেই"],
+ "kkux8f": [["0"], " মুছে ফেলা যায়নি। আবার চেষ্টা করুন।"],
"klPS-L": ["মূল ফাইল — এই এজেন্টের সম্পাদনার আগে।"],
"kmKqZg": ["গুচ্ছ"],
"knjOzA": ["ট্যাগের মান"],
@@ -3095,6 +3135,7 @@
"kwLcuN": [
"আপনি যে AI টুলগুলো ব্যবহার করেন সেগুলোকে আপনার প্রকল্প পড়া ও হালনাগাদ করার অধিকার দিন। নিচে কী সেট আপ করবেন তা বাছুন, এবং Settings > AI tools & CLI-তে যেকোনো সময় বদলান।"
],
+ "kwNS82": ["ফাইলটি ঠিক না করা পর্যন্ত এই থিম ব্যবহার করা যাবে না।"],
"ky9Tuc": [["0"], " সোর্স সম্পাদনা করুন"],
"kzpkcn": ["ওই সম্পাদনাটি সংরক্ষণ করা যায়নি।"],
"l-4nnw": ["নিয়ম খুঁজুন"],
@@ -3140,6 +3181,7 @@
"স্কিলের ভেতরের একটি পথ — যেকোনো ফোল্ডার চলে (যেমন references/notes.md)। পথের ফোল্ডারগুলো আপনার জন্য তৈরি করে দেওয়া হয়।"
],
"lPzyrU": ["সব হাংক মীমাংসিত"],
+ "lS83Sg": ["ক্লিপবোর্ডে পৌঁছানো যায়নি।"],
"lScd1O": ["Slidev ডেক শুধু OpenKnowledge ডেস্কটপ অ্যাপে খোলে।"],
"lUtr1r": [["1"], "টির মধ্যে ", ["0"], "টি নির্বাচিত"],
"lVWEIL": [["total"], "টির মধ্যে ", ["embedded"], "টি পাতা সূচিভুক্ত।"],
@@ -3280,6 +3322,7 @@
"nNYV3Y": ["এবং আরও ", ["remaining"], "টি"],
"nOEDQs": ["সিঙ্ক মোড হালনাগাদ করতে ব্যর্থ — ", ["detail"]],
"nP-KFo": ["নতুন ", ["0"], " আলাপ"],
+ "nTM8ab": ["রং সম্পাদনা করার আগে এটিকে একটি নাম দিন।"],
"nTwL53": ["কোনো নথির URL ভাগ করতে সেটি খুলুন।"],
"nUNZL4": [["0"], "-কে জিজ্ঞেস করুন"],
"nWv1ja": ["লুকানো ফাইল Settings → Ignore patterns-এ সামলান।"],
@@ -3321,6 +3364,7 @@
"Git পরিচয় নির্ধারিত নেই — কমিটগুলো একটি ডিফল্ট লেখক ব্যবহার করে। আপনারটি নির্ধারণ করুন যাতে সহকর্মীরা আপনার নাম দেখতে পান।"
],
"nrXDdR": ["ফিল্ডের নাম"],
+ "nsM-_m": ["শত শত থিম দেখুন"],
"nsUDL8": [["1"], "টির মধ্যে ", ["0"], "টি প্রকল্প নির্বাচিত"],
"nskygk": ["এজেন্ট বাছুন"],
"nwtY4N": ["কিছু একটা ভুল হয়েছে"],
@@ -3359,6 +3403,7 @@
"প্রকল্প প্লাগইন হলো আপনার প্রকল্পের রচনা-মান — সেগুলো এখানে চালু বা বন্ধ করুন। এই বাছাই config.yml-এ কমিট হয় এবং git-এর মাধ্যমে প্রতিটি সহযোগীর সঙ্গে ভাগ করা হয়। চালু করা প্রতিটি প্লাগইন সেটিং সাইডবারে Plugins-এর নিচে নিজের পাতা পায়।"
],
"oYepHb": ["এই প্রকল্পের জন্য টার্মিনাল বন্ধ। এখানে কমান্ড চালাতে সেটি আবার চালু করুন।"],
+ "oZUYMv": [["0"], " পুনরুদ্ধার করা যায়নি। ওই নামটি ইতিমধ্যে ব্যবহৃত হচ্ছে।"],
"of3tF-": [
"আপনি ~/Documents বেছেছেন। OpenKnowledge এর নিচের প্রতিটি markdown ফাইল সূচিভুক্ত করবে। আপনি যদি কেবল একটি উপ-ফোল্ডার সামলাতে চান, তবে ছোট একটি পরিসর বাছুন।"
],
@@ -3389,6 +3434,7 @@
["0"],
"-এ নির্ধারণ করেছিল — এরপর OK-এর বাইরের কিছু সেটি বদলে দিয়েছে। দেখানো অবস্থাটি এখন ডিস্কে যা আছে তাই; আপনার পরবর্তী Symlink/Unlink কার্যকর হবে।"
],
+ "p7Utw8": ["এটি base16 থিম নয়"],
"p98xmP": ["যার ক্ষেত্রে প্রযোজ্য"],
"p9sdCy": ["নতুন উপেক্ষার প্যাটার্ন"],
"pA16WG": ["এই প্রকল্পের কোনো GitHub রিমোট নেই।"],
@@ -3471,6 +3517,7 @@
"qIJIrD": ["পরীক্ষা করা হচ্ছে"],
"qJSo0_": ["অনুলিপি ও সিমলিংকের মধ্যে পার্থক্য কী?"],
"qNOgUu": ["উৎসে করা সম্পাদনা এখানে এসে পড়ে — কপি-পেস্টের কোনো বিচ্যুতি নেই।"],
+ "qQi_um": ["থিম আমদানি করা হয়েছে।"],
"qRZh7J": ["Tab যেন ভেতরে না নিয়ে সোর্স সম্পাদক থেকে বেরিয়ে যায়।"],
"qSKu2v": ["সোর্স নেভিগেশন ও নির্বাচন"],
"qSxaOz": ["তাদের মুছে ফেলা গ্রহণ করুন"],
@@ -3508,6 +3555,7 @@
"qo4zCg": ["পথে ব্যাকস্ল্যাশ থাকতে পারে না"],
"qpQwGC": ["আপনি কী নিয়ে কাজ করছেন তার বর্ণনা দিন, এজেন্ট আপনার জন্য সেটি সাজিয়ে দেবে।"],
"qribBG": ["স্কিমা ", ["deleteTarget"]],
+ "qtnmEX": ["একটি বৈধ থিমের নাম লিখুন।"],
"qvWGzP": ["সব গুটিয়ে নিন"],
"qyLmWw": ["সোর্স সম্পাদকের অনুসন্ধান প্যানেল"],
"r-OJYm": ["একটি বৈধ ব্রাঞ্চ নাম দিন (ফাঁকা জায়গা নয়, শুরুতে বিন্দু নয়, \"..\" নয়)।"],
@@ -3527,6 +3575,7 @@
"rFmBG3": ["রঙের থিম"],
"rFw02Q": [["keyName"], " আপলোড করা হচ্ছে"],
"rJVoVX": ["সোর্স খোঁজার ফলাফল"],
+ "rJm8-2": ["ক্লিপবোর্ডে পৌঁছানো যায়নি — থিমটি নিচের বাক্সে আছে।"],
"rNifQd": ["প্রপার্টি সরান"],
"rQAQus": ["টেমপ্লেট সংরক্ষণ করা যায়নি: ", ["error"]],
"rQRrkB": ["গতকাল"],
@@ -3595,7 +3644,6 @@
"sJK6pq": ["অনুমতি নেই"],
"sJWhgo": ["অজানা কম্পোনেন্ট: ", ["unregisteredComponentName"]],
"sKEgGd": ["আলাপে পাঠান"],
- "sKMhJz": ["পটভূমি থেকে অগ্রভূমি"],
"sLcbHt": [
"এগুলোর একটিতে আরেকটি ফোল্ডার সিমলিংক করুন যাতে দুই এজেন্ট একই স্কিল পড়ে; কোনো ফোল্ডারের স্কিল আবার এক এক করে সামলাতে আনলিংক করুন।"
],
@@ -3763,6 +3811,7 @@
"ur2XSb": ["দৃশ্য সম্পাদক"],
"uuoHOU": ["কমান্ড ব্যর্থ।"],
"uyJsf6": ["সম্পর্কে"],
+ "uyOQ4e": ["থিমটি base16 YAML হিসেবে কপি করা হয়েছে"],
"uynXup": [["tokens", "plural", { "one": ["টোকেন"], "other": ["টোকেন"] }]],
"v-h2hx": [["targetGitPath"], " মুছুন"],
"v2ZW0K": ["টার্মিনাল চালু করুন"],
@@ -3865,6 +3914,7 @@
"wXw19Y": ["\"", ["projectName"], "\"-কে সাম্প্রতিক প্রকল্প থেকে সরানো হয়েছে। এর ফোল্ডারটি আর নেই।"],
"wZPUJx": ["“", ["0"], "”"],
"w_Sphq": ["সংযুক্তি"],
+ "wbMbiY": [["selectedSlot"], " কপি করা হয়েছে"],
"wbpoGe": ["OpenKnowledge স্কিল ইনস্টল করা যায়নি: ", ["message"]],
"wbv9xO": ["নতুন প্রকল্প তৈরি করুন"],
"wc54KE": ["চেষ্টা করে দেখা হচ্ছে…"],
@@ -4045,6 +4095,7 @@
"zL0LPh": ["লেখার ফিল্ডের বাইরে বৈশ্বিক"],
"zLGXna": ["কোনো স্টার্টার প্যাক নেই।"],
"zLak8b": ["নতুন ট্যাব সক্রিয় করুন"],
+ "zMmwh4": ["একটি থিম বেছে নিন বা নিজের থিম তৈরি করুন।"],
"zQBg2C": ["বর্তমান ব্লকটি এক ধাপ উপরে বা নিচে সরান।"],
"zXj1rA": ["অর্থ অনুযায়ী খুঁজুন"],
"zYp8Sr": [
diff --git a/packages/app/src/locales/bn/messages.po b/packages/app/src/locales/bn/messages.po
index 78745d6f3..b1005f543 100644
--- a/packages/app/src/locales/bn/messages.po
+++ b/packages/app/src/locales/bn/messages.po
@@ -332,6 +332,11 @@ msgstr "মোট {0}"
msgid "{0} version {1}"
msgstr "{0} সংস্করণ {1}"
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "{0} was already deleted."
+msgstr "{0} ইতিমধ্যেই মুছে ফেলা হয়েছে।"
+
#. placeholder {0}: activeData.label
#: src/components/EditorWorkspace.tsx
msgid "{0} was not moved."
@@ -777,6 +782,11 @@ msgstr "{sizeText} · গোপন তথ্য সরানো হয়েছ
msgid "{skillCount, plural, one {skill} other {skills}}"
msgstr "{skillCount, plural, one {স্কিল} other {স্কিল}}"
+#. placeholder {0}: BASE16_SLOT_ROLES[slot]
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "{slot} color — {0}"
+msgstr "{slot} রং — {0}"
+
#: src/components/settings/CustomThemeEditor.tsx
msgid "{slot} hex value"
msgstr "{slot} হেক্স মান"
@@ -1040,6 +1050,10 @@ msgstr "একটি প্রয়োজনীয় git টুল"
msgid "A reusable starting point for new documents in this folder."
msgstr "এই ফোল্ডারে নতুন নথির জন্য একটি পুনর্ব্যবহারযোগ্য শুরুর বিন্দু।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "A saved theme already uses this name."
+msgstr "এই নামে ইতিমধ্যেই একটি সংরক্ষিত থিম আছে।"
+
#: src/components/TemplateForm.tsx
msgid "A short line shown under the title in the template list."
msgstr "টেমপ্লেট তালিকায় শিরোনামের নিচে দেখানো একটি ছোট লাইন।"
@@ -1096,10 +1110,6 @@ msgstr "উপরে"
msgid "absent"
msgstr "অনুপস্থিত"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Accents"
-msgstr "উচ্চারণ চিহ্ন"
-
#: src/components/DiffView.tsx
msgid "Accept"
msgstr "গ্রহণ করুন"
@@ -1779,10 +1789,6 @@ msgstr "ফিরে যান"
msgid "Back to document view"
msgstr "নথি দৃশ্যে ফিরুন"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Background to foreground"
-msgstr "পটভূমি থেকে অগ্রভূমি"
-
#: src/components/LinksPanel.tsx
msgid "Backlinks"
msgstr "ব্যাকলিংক"
@@ -1927,8 +1933,8 @@ msgid "Browse folder"
msgstr "ফোল্ডার ব্রাউজ করুন"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Browse hundreds of schemes"
-msgstr "শত শত স্কিম ব্রাউজ করুন"
+msgid "Browse hundreds of themes"
+msgstr "শত শত থিম দেখুন"
#: src/components/ImportSkillDialog.tsx
msgid "Browse or upload a skill for this project."
@@ -2047,6 +2053,7 @@ msgstr "এই পাথ শেয়ার করা যাচ্ছে না
#: src/components/ReportBugDialogBody.tsx
#: src/components/SeedDialog.tsx
#: src/components/settings/LinkPreviewsSection.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/settings/SearchSection.tsx
#: src/components/ShareBranchSwitchDialog.tsx
#: src/components/ShareReceiveDialog.tsx
@@ -2102,6 +2109,18 @@ msgstr "বাইরে বদলেছে"
msgid "Changed outside OK since it last wrote here — the state shown is what's on disk now"
msgstr "OK শেষবার এখানে লেখার পর বাইরে থেকে বদলানো হয়েছে — দেখানো অবস্থাটি এখন ডিস্কে যা আছে তাই"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes save automatically to this theme."
+msgstr "পরিবর্তনগুলি এই থিমে স্বয়ংক্রিয়ভাবে সংরক্ষিত হয়।"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes save automatically."
+msgstr "পরিবর্তনগুলি স্বয়ংক্রিয়ভাবে সংরক্ষিত হয়।"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes saved automatically."
+msgstr "পরিবর্তনগুলি স্বয়ংক্রিয়ভাবে সংরক্ষিত হয়েছে।"
+
#: src/components/command-palette-commands.ts
msgid "Check for updates"
msgstr "হালনাগাদ দেখুন"
@@ -2699,6 +2718,11 @@ msgstr "দ্বন্দ্ব"
msgid "Conflicted files"
msgstr "দ্বন্দ্বযুক্ত ফাইল"
+#. placeholder {0}: warning.conflictingFilenames.join(', ')
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Conflicting files: {0}."
+msgstr "বিরোধপূর্ণ ফাইল: {0}।"
+
#: src/components/ConflictsSection.tsx
msgid "Conflicts"
msgstr "দ্বন্দ্ব"
@@ -2891,6 +2915,10 @@ msgstr "রূপান্তর করা হচ্ছে…"
msgid "Copied"
msgstr "কপি হয়েছে"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Copied {selectedSlot}"
+msgstr "{selectedSlot} কপি করা হয়েছে"
+
#: src/components/EditorTabTargetMenuItems.tsx
#: src/components/FileSidebar.tsx
#: src/components/FileTree.tsx
@@ -2928,6 +2956,7 @@ msgstr "অনুলিপি"
#: src/components/CopyButton.tsx
#: src/components/empty-state/CopyablePromptList.tsx
#: src/components/InstallInClaudeDesktopDialog.tsx
+#: src/components/settings/CustomThemeEditor.tsx
#: src/lib/native-menu-catalog.ts
msgid "Copy"
msgstr "কপি করুন"
@@ -3212,6 +3241,15 @@ msgstr "রিপোর্ট তৈরি করা যায়নি"
msgid "Couldn't create the worktree. Try a different name."
msgstr "ওয়ার্কট্রি তৈরি করা যায়নি। অন্য নাম চেষ্টা করুন।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t create this theme. Try again."
+msgstr "এই থিম তৈরি করা যায়নি। আবার চেষ্টা করুন।"
+
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t delete {0}. Try again."
+msgstr "{0} মুছে ফেলা যায়নি। আবার চেষ্টা করুন।"
+
#. placeholder {0}: result.error
#: src/components/SkillFileDeleteDialog.tsx
msgid "Couldn't delete file: {0}"
@@ -3229,6 +3267,10 @@ msgstr "টেমপ্লেট মুছে ফেলা যায়নি: {
msgid "Couldn't delete that comment."
msgstr "ওই মন্তব্যটি মুছে ফেলা যায়নি।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t delete this theme. Refresh and try again."
+msgstr "এই থিম মুছে ফেলা যায়নি। রিফ্রেশ করে আবার চেষ্টা করুন।"
+
#: src/components/settings/AccountSection.tsx
msgid "Couldn't disconnect — please try again."
msgstr "সংযোগ বিচ্ছিন্ন করা যায়নি — অনুগ্রহ করে আবার চেষ্টা করুন।"
@@ -3392,8 +3434,12 @@ msgid "Couldn't reach the agent registry."
msgstr "এজেন্ট রেজিস্ট্রির নাগাল পাওয়া যায়নি।"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Couldn’t reach the clipboard — the scheme is in the box below."
-msgstr "ক্লিপবোর্ডের নাগাল পাওয়া যায়নি — স্কিমটি নিচের বাক্সে আছে।"
+msgid "Couldn’t reach the clipboard — the theme is in the box below."
+msgstr "ক্লিপবোর্ডে পৌঁছানো যায়নি — থিমটি নিচের বাক্সে আছে।"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Couldn’t reach the clipboard."
+msgstr "ক্লিপবোর্ডে পৌঁছানো যায়নি।"
#: src/components/CommandPalette.tsx
msgid "Couldn't reach the embeddings provider — retry"
@@ -3420,6 +3466,11 @@ msgstr "পাঠানোর অপেক্ষায় থাকা মন্
msgid "Couldn't read the comments waiting to send: {0}"
msgstr "পাঠানোর অপেক্ষায় থাকা মন্তব্যগুলো পড়া যায়নি: {0}"
+#. placeholder {0}: warning.code
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t read this theme ({0})"
+msgstr "এই থিমটি পড়া যায়নি ({0})"
+
#: src/components/EditorActivityPool.tsx
msgid "Couldn't reconnect after server restart"
msgstr "সার্ভার পুনরায় চালুর পর আবার যুক্ত হওয়া যায়নি"
@@ -3468,6 +3519,16 @@ msgstr "সার্ভার নিজে থেকে পুনরায়
msgid "Couldn't restart the server. Try `ok start` in this folder."
msgstr "সার্ভার পুনরায় চালু করা যায়নি। এই ফোল্ডারে `ok start` চেষ্টা করুন।"
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t restore {0}. That name is already in use."
+msgstr "{0} পুনরুদ্ধার করা যায়নি। ওই নামটি ইতিমধ্যে ব্যবহৃত হচ্ছে।"
+
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t restore {0}. Try again."
+msgstr "{0} পুনরুদ্ধার করা যায়নি। আবার চেষ্টা করুন।"
+
#. placeholder {0}: resumeError.message
#: src/components/acp/ThreadView.tsx
msgid "Couldn't resume this chat: {0}"
@@ -3477,6 +3538,10 @@ msgstr "এই চ্যাট পুনরায় শুরু করা য
msgid "Couldn't run the test. Check that OpenKnowledge is still running."
msgstr "পরীক্ষা চালানো যায়নি। OpenKnowledge এখনও চলছে কি না দেখুন।"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Couldn’t save changes. Try editing a color again."
+msgstr "পরিবর্তনগুলি সংরক্ষণ করা যায়নি। একটি রং আবার সম্পাদনা করে দেখুন।"
+
#: src/components/TemplateForm.tsx
msgid "Couldn't save template: {error}"
msgstr "টেমপ্লেট সংরক্ষণ করা যায়নি: {error}"
@@ -3595,6 +3660,10 @@ msgstr "ক্র্যাশ ডাম্প"
msgid "Create"
msgstr "তৈরি করুন"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Create & edit"
+msgstr "তৈরি ও সম্পাদনা"
+
#: src/components/TemplateRow.tsx
msgid "Create a document from {label}"
msgstr "{label} থেকে একটি নথি তৈরি করুন"
@@ -3666,6 +3735,10 @@ msgstr "নতুন প্রকল্প তৈরি করুন"
msgid "Create new tag #{tagValue}"
msgstr "নতুন ট্যাগ #{tagValue} তৈরি করুন"
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Create new theme"
+msgstr "নতুন থিম তৈরি করুন"
+
#: src/components/GraphPanel.tsx
#: src/components/ProblemsPanel.tsx
#: src/editor/extensions/InternalLinkPropPanel.tsx
@@ -3764,6 +3837,10 @@ msgstr "পাতা তৈরি করা হচ্ছে: {linkTitle}।"
msgid "Creating..."
msgstr "তৈরি করা হচ্ছে…"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Creating…"
+msgstr "তৈরি হচ্ছে…"
+
#: src/components/RecentProjectsMenu.tsx
msgid "Current"
msgstr "বর্তমান"
@@ -3836,8 +3913,10 @@ msgstr "ডিফল্ট: <0>{0}</0>"
msgid "Delete"
msgstr "মুছুন"
+#. placeholder {0}: theme.label
#. placeholder {0}: thread.title
#: src/components/acp/ThreadHistoryMenu.tsx
+#: src/components/settings/ColorThemePicker.tsx
msgid "Delete {0}"
msgstr "{0} মুছুন"
@@ -3917,6 +3996,11 @@ msgstr "এই চ্যাট মুছবেন?"
msgid "Delete this comment"
msgstr "এই মন্তব্যটি মুছুন"
+#. placeholder {0}: deletedTheme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Deleted {0}."
+msgstr "{0} মুছে ফেলা হয়েছে।"
+
#: src/components/settings/LintingSection.tsx
msgid "Deleted {file}"
msgstr "{file} মুছে ফেলা হয়েছে"
@@ -4235,6 +4319,7 @@ msgstr "সম্পন্ন"
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/PublishToGitHubDialog.tsx
#: src/components/ReportBugDialogBody.tsx
+#: src/components/settings/CustomThemeEditor.tsx
#: src/editor/extensions/JsxComponentView.tsx
#: src/editor/extensions/JsxInlineView.tsx
#: src/editor/extensions/MathInlineView.tsx
@@ -4369,6 +4454,11 @@ msgstr "নির্বাচিত প্রতিটি টুল একটি
msgid "Edit"
msgstr "সম্পাদনা করুন"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Edit {0}"
+msgstr "{0} সম্পাদনা করুন"
+
#. placeholder {0}: descriptor.displayName ?? descriptor.name
#: src/editor/extensions/JsxComponentView.tsx
msgid "Edit {0} source"
@@ -4442,6 +4532,11 @@ msgstr "টেমপ্লেট সম্পাদিত হয়েছে"
msgid "editing [[{realCurrentDoc}]]"
msgstr "[[{realCurrentDoc}]] সম্পাদনা করা হচ্ছে"
+#. placeholder {0}: scheme.name
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Editing {0}"
+msgstr "{0} সম্পাদনা করা হচ্ছে"
+
#: src/components/SkillEditBanner.tsx
msgid "Editing {boldName} in place. Changes save straight to your editor's copy."
msgstr "{boldName} সেখানেই সম্পাদনা করা হচ্ছে। পরিবর্তনগুলো সরাসরি আপনার সম্পাদকের অনুলিপিতে সংরক্ষিত হয়।"
@@ -4471,8 +4566,12 @@ msgid "Editor status bar"
msgstr "সম্পাদকের অবস্থা বার"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Edits apply live. Light or dark comes from the scheme."
-msgstr "সম্পাদনা সঙ্গে সঙ্গে প্রয়োগ হয়। হালকা বা গাঢ় স্কিম থেকে আসে।"
+msgid "Edits apply live and save automatically to this theme."
+msgstr "সম্পাদনাগুলি সঙ্গে সঙ্গে প্রয়োগ হয় এবং এই থিমে স্বয়ংক্রিয়ভাবে সংরক্ষিত হয়।"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Edits apply live. Light or dark comes from the theme."
+msgstr "সম্পাদনাগুলি সঙ্গে সঙ্গে প্রয়োগ হয়। হালকা বা গাঢ় থিম থেকে নির্ধারিত হয়।"
#: src/editor/slash-command/component-items.tsx
msgid "Edits at the source land here — no copy-paste drift."
@@ -4643,6 +4742,10 @@ msgstr "#1A2B3C-এর মতো ৬-অঙ্কের হেক্স দি
msgid "Enter a folder name (e.g. brain)."
msgstr "একটি ফোল্ডারের নাম দিন (যেমন brain)।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Enter a name for this theme."
+msgstr "এই থিমের জন্য একটি নাম লিখুন।"
+
#: src/components/CreateProjectDialog.tsx
msgid "Enter a project name"
msgstr "একটি প্রকল্পের নাম দিন"
@@ -4659,6 +4762,10 @@ msgstr "এই টেমপ্লেটের জন্য একটি শি
msgid "Enter a valid branch name (no spaces, no leading dot, no \"..\")."
msgstr "একটি বৈধ ব্রাঞ্চ নাম দিন (ফাঁকা জায়গা নয়, শুরুতে বিন্দু নয়, \"..\" নয়)।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Enter a valid theme name."
+msgstr "একটি বৈধ থিমের নাম লিখুন।"
+
#: src/components/settings/SearchSection.tsx
msgid "Enter a valid URL (for example https://api.openai.com/v1)."
msgstr "একটি বৈধ URL দিন (উদাহরণস্বরূপ https://api.openai.com/v1)।"
@@ -5551,6 +5658,10 @@ msgstr "GitHub সাইন-ইন অনুপস্থিত বা এর ম
msgid "GitHub, a git URL, or a local path."
msgstr "GitHub, একটি git URL, বা একটি স্থানীয় পথ।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Give it a name before editing its colors."
+msgstr "রং সম্পাদনা করার আগে এটিকে একটি নাম দিন।"
+
#: src/components/settings/AiToolsSection.tsx
msgid "Give the AI tools you use access to read and update your projects. Checking a box sets it up right away; unchecking removes it."
msgstr "আপনি যে AI টুলগুলো ব্যবহার করেন সেগুলোকে আপনার প্রকল্প পড়া ও হালনাগাদ করার অধিকার দিন। একটি বাক্সে টিক দিলেই সেটি সঙ্গে সঙ্গে সেট হয়ে যায়; টিক সরালে সরে যায়।"
@@ -5730,6 +5841,11 @@ msgstr "লুকানো ফোল্ডার “{basename}”"
msgid "Hide"
msgstr "লুকান"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Hide {0} editor"
+msgstr "{0} সম্পাদক লুকান"
+
#: src/lib/native-menu-catalog.ts
msgid "Hide {appName}"
msgstr "{appName} লুকান"
@@ -5935,6 +6051,11 @@ msgstr "আমি অন্য একটি টুলে যাচ্ছি"
msgid "Icon picker"
msgstr "আইকন নির্বাচক"
+#. placeholder {0}: createIdentity.stem
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "ID: {0}"
+msgstr "আইডি: {0}"
+
#: src/components/AutoSyncEnableWarning.tsx
msgid "If an update arrives for something you are editing, you choose which version to keep, like a merge conflict."
msgstr "আপনি যা সম্পাদনা করছেন তার জন্য কোনো হালনাগাদ এলে আপনি বেছে নেন কোন সংস্করণটি রাখবেন, ঠিক মার্জ দ্বন্দ্বের মতো।"
@@ -5970,10 +6091,6 @@ msgstr "টেমপ্লেট হিসেবে আমদানি করু
msgid "Import failed: {0}"
msgstr "আমদানি ব্যর্থ: {0}"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Import scheme"
-msgstr "স্কিম আমদানি করুন"
-
#. placeholder {0}: result.name
#: src/lib/skill-import-toast.ts
msgid "Imported \"{0}\"."
@@ -6315,6 +6432,10 @@ msgstr "AI-এর জন্য নির্দেশ"
msgid "Integrations"
msgstr "সংযুক্তি"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Invalid color value"
+msgstr "অবৈধ রঙের মান"
+
#: src/components/CreateProjectDialog.tsx
msgid "Invalid input — pick a different folder."
msgstr "অবৈধ ইনপুট — অন্য ফোল্ডার বাছুন।"
@@ -6335,6 +6456,10 @@ msgstr "সার্ভারের প্রতিক্রিয়ার গ
msgid "Invalid share URL."
msgstr "শেয়ার URL সঠিক নয়।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Invalid YAML"
+msgstr "অবৈধ YAML"
+
#: src/uninstall/UninstallSurveyScreen.tsx
msgid "It didn't fit into my workflow"
msgstr "এটি আমার কর্মপ্রবাহে খাপ খায়নি"
@@ -6568,6 +6693,10 @@ msgstr "লিংক URL"
msgid "Link-graph response did not match expected shape."
msgstr "লিংক-গ্রাফের সাড়া প্রত্যাশিত আকারের সঙ্গে মেলেনি।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Linked theme files aren’t supported"
+msgstr "লিঙ্ক করা থিম ফাইল সমর্থিত নয়"
+
#: src/components/DocPanel.tsx
msgid "Links"
msgstr "লিংক"
@@ -6943,6 +7072,14 @@ msgstr "অনুপস্থিত পাতা — তৈরি করতে
msgid "Missing page: {linkTitle}. Click to create."
msgstr "অনুপস্থিত পাতা: {linkTitle}। তৈরি করতে ক্লিক করুন।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Missing palette colors"
+msgstr "প্যালেটের রং অনুপস্থিত"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Missing theme name"
+msgstr "থিমের নাম অনুপস্থিত"
+
#: src/components/SyncStatusBadge.tsx
msgid "Mode"
msgstr "মোড"
@@ -7140,6 +7277,10 @@ msgstr "ভাবা হচ্ছে…"
msgid "Multi-page PDF viewer with toolbar controls (thumbnails, page nav, zoom)."
msgstr "টুলবার নিয়ন্ত্রণসহ বহু-পাতার PDF দর্শক (থাম্বনেইল, পাতা নেভিগেশন, জুম)।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Multiple files use this theme name"
+msgstr "একাধিক ফাইল এই থিমের নাম ব্যবহার করে"
+
#: src/components/acp/working-status.ts
msgid "Musing…"
msgstr "চিন্তা করা হচ্ছে…"
@@ -7182,6 +7323,10 @@ msgstr "নাম খালি হতে পারে না"
msgid "Name is required"
msgstr "নাম আবশ্যক"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Name your theme"
+msgstr "আপনার থিমের নাম দিন"
+
#: src/lib/keyboard-shortcuts.ts
msgid "Navigate CodeMirror source search results or dismiss the search panel."
msgstr "CodeMirror-এর সোর্স অনুসন্ধানের ফলাফলে চলাচল করুন বা অনুসন্ধান প্যানেল সরিয়ে দিন।"
@@ -7738,6 +7883,10 @@ msgstr "এই সমস্যাগুলোর কোনোটিরই স্
msgid "None of these problems have an automatic fix. Try Fix all with AI."
msgstr "এই সমস্যাগুলোর কোনোটিরই স্বয়ংক্রিয় সমাধান নেই। AI দিয়ে সব ঠিক করুন চেষ্টা করে দেখুন।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Not a base16 theme"
+msgstr "এটি base16 থিম নয়"
+
#: src/components/acp/ThreadView.tsx
msgid "Not answered"
msgstr "উত্তর দেওয়া হয়নি"
@@ -8638,8 +8787,8 @@ msgid "Paste"
msgstr "পেস্ট করুন"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Paste a base16 scheme"
-msgstr "একটি base16 স্কিম পেস্ট করুন"
+msgid "Paste a base16 theme"
+msgstr "একটি base16 থিম পেস্ট করুন"
#: src/components/AuthModal.tsx
msgid "Paste a personal access token for <0>{host}</0>."
@@ -8762,10 +8911,6 @@ msgstr "এই যন্ত্রেই সীমাবদ্ধ — আপন
msgid "Pick <0>openknowledge.skill</0> from your <1>Downloads</1> folder. It enables automatically."
msgstr "আপনার <1>Downloads</1> ফোল্ডার থেকে <0>openknowledge.skill</0> বাছুন। এটি নিজে থেকেই চালু হয়।"
-#: src/components/settings/ThemePluginSection.tsx
-msgid "Pick a built-in IDE color palette, or define your own."
-msgstr "একটি অন্তর্নির্মিত IDE রঙের প্যালেট বাছুন, নয়তো নিজেরটি ঠিক করুন।"
-
#: src/components/settings/SkillTargetsPicker.tsx
msgid "Pick a folder to merge INTO {display}. That folder becomes a symlink to this one, so its agent reads everything placed here. This folder stays real. Conflicting skills abort the merge."
msgstr "{display}-এর মধ্যে মেলানোর জন্য একটি ফোল্ডার বাছুন। ওই ফোল্ডারটি এটির সিমলিংক হয়ে যায়, তাই তার এজেন্ট এখানে রাখা সবকিছু পড়ে। এই ফোল্ডারটি সত্যিকারের থেকে যায়। দ্বন্দ্বপূর্ণ স্কিল মার্জ বাতিল করে দেয়।"
@@ -8778,6 +8923,10 @@ msgstr "একটি নাম বাছুন"
msgid "Pick a palette for light mode and one for dark mode. The theme setting in Preferences chooses between them — on “System”, so does your OS."
msgstr "হালকা মোডের জন্য একটি প্যালেট আর গাঢ় মোডের জন্য একটি বাছুন। Preferences-এর থিম সেটিং এদের মধ্যে বেছে নেয় — “System”-এ থাকলে আপনার OS-ও তাই করে।"
+#: src/components/settings/ThemePluginSection.tsx
+msgid "Pick a theme or create your own."
+msgstr "একটি থিম বেছে নিন বা নিজের থিম তৈরি করুন।"
+
#: src/editor/slash-command/items.tsx
msgid "Pick an emoji to insert at the cursor."
msgstr "কার্সরে ঢোকানোর জন্য একটি ইমোজি বাছুন।"
@@ -8884,8 +9033,8 @@ msgid "Press Space to pick up a tab. Use the arrow keys to move it within a tab
msgstr "একটি ট্যাব তুলতে Space চাপুন। ট্যাব স্ট্রিপের মধ্যে সরাতে তির চিহ্নের কী ব্যবহার করুন, তারপর নামাতে Space বা Enter চাপুন। বিভাজন, বন্ধ, পিন এবং অন্যান্য ট্যাব ক্রিয়া সহ কনটেক্সট মেনু খুলতে Shift+F10 বা Menu কী চাপুন।"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Press the sun or moon on “Custom” above to use this scheme."
-msgstr "এই স্কিমটি ব্যবহার করতে উপরে “Custom”-এ সূর্য বা চাঁদে চাপ দিন।"
+msgid "Press the sun or moon on “Custom” above to use this theme."
+msgstr "এই থিম ব্যবহার করতে উপরের “কাস্টম”-এ সূর্য বা চাঁদ চাপুন।"
#: src/components/PublishToGitHubDialog.tsx
msgid "Preview browsers can't auto-copy. Use Cmd/Ctrl+C on the URL above, or open OK in the desktop app."
@@ -9785,6 +9934,11 @@ msgstr "এই সংস্করণে ফিরিয়ে আনবেন?"
msgid "Restore with remote changes"
msgstr "রিমোটের পরিবর্তনসহ ফিরিয়ে আনুন"
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Restored {0}."
+msgstr "{0} পুনরুদ্ধার করা হয়েছে।"
+
#. placeholder {0}: descriptor.targetSha7
#: src/components/TimelinePanel.tsx
msgid "Restored an earlier version ({0})"
@@ -9990,6 +10144,10 @@ msgstr "এই প্রকল্পের স্কিল ফোল্ডার
msgid "Saved into your global skills folder (e.g. <0>~/.agents/skills</0>)."
msgstr "আপনার বৈশ্বিক স্কিল ফোল্ডারে সংরক্ষিত (যেমন <0>~/.agents/skills</0>)।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Saved themes couldn’t load. The last available theme list is still shown."
+msgstr "সংরক্ষিত থিমগুলি লোড করা যায়নি। সর্বশেষ উপলভ্য থিমের তালিকাটি এখনও দেখানো হচ্ছে।"
+
#: src/components/SkillProperties.tsx
msgid "Saved to"
msgstr "যেখানে সংরক্ষিত"
@@ -10007,6 +10165,10 @@ msgstr "ফাইলটি <0>~/Downloads/openknowledge.skill</0>-এ সংর
msgid "Saving"
msgstr "সংরক্ষণ করা হচ্ছে"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Saving changes…"
+msgstr "পরিবর্তনগুলি সংরক্ষণ করা হচ্ছে…"
+
#: src/components/settings/LintingSection.tsx
msgid "schema {deleteTarget}"
msgstr "স্কিমা {deleteTarget}"
@@ -10015,10 +10177,6 @@ msgstr "স্কিমা {deleteTarget}"
msgid "Schema fields"
msgstr "স্কিমা ফিল্ড"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Scheme copied as base16 YAML"
-msgstr "স্কিম base16 YAML হিসেবে কপি হয়েছে"
-
#: src/components/ImportSkillForm.tsx
#: src/components/PanelScopeHeader.tsx
msgid "Scope"
@@ -10208,6 +10366,11 @@ msgstr "সব {0}টি স্টার্টার প্যাক দেখ
msgid "See the full install guide"
msgstr "পূর্ণ ইনস্টল নির্দেশিকা দেখুন"
+#. placeholder {0}: BASE16_SLOT_ROLES[slot]
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Select {slot} — {0}"
+msgstr "{slot} নির্বাচন করুন — {0}"
+
#: src/components/FrontmatterRow.tsx
msgid "Select a value"
msgstr "একটি মান নির্বাচন করুন"
@@ -10919,6 +11082,10 @@ msgstr "Slidev চালু হতে সময় শেষ হয়ে গে
msgid "Small section heading."
msgstr "ছোট বিভাগ শিরোনাম।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Some saved themes aren’t shown because the theme folder exceeds the scan limit."
+msgstr "থিম ফোল্ডারটি স্ক্যানের সীমা ছাড়িয়ে যাওয়ায় কিছু সংরক্ষিত থিম দেখানো হচ্ছে না।"
+
#: src/components/FeedbackForm.tsx
msgid "Something broke"
msgstr "কিছু ভেঙে গেছে"
@@ -11839,6 +12006,30 @@ msgstr "টোকেনটির repo ও read:user স্কোপ দরকা
msgid "Theme"
msgstr "থিম"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme colors"
+msgstr "থিমের রং"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme copied as base16 YAML"
+msgstr "থিমটি base16 YAML হিসেবে কপি করা হয়েছে"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme imported."
+msgstr "থিম আমদানি করা হয়েছে।"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name"
+msgstr "থিমের নাম"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name has unsupported characters"
+msgstr "থিমের নামে অসমর্থিত অক্ষর আছে"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name is too long"
+msgstr "থিমের নাম খুব দীর্ঘ"
+
#: src/components/settings/ThemePreviewCanvas.tsx
msgid "Theme preview"
msgstr "থিমের প্রাকদর্শন"
@@ -12033,6 +12224,10 @@ msgstr "এটি {boldName}-এর একটি প্রাকদর্শন,
msgid "This is a preview of {boldName}. Install it into your agents."
msgstr "এটি {boldName}-এর একটি প্রাকদর্শন। এটি আপনার এজেন্টগুলোতে ইনস্টল করুন।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This isn’t a regular theme file"
+msgstr "এটি একটি সাধারণ থিম ফাইল নয়"
+
#: src/components/SlidesToolbarControls.tsx
msgid "This isn't a supported version of Slidev."
msgstr "এটি Slidev-এর সমর্থিত সংস্করণ নয়।"
@@ -12194,6 +12389,18 @@ msgstr "এই উৎসে কয়েকটি স্কিল আছে —
msgid "This template lives in a parent folder — deleting it affects every folder beneath it that doesn't define its own version."
msgstr "এই টেমপ্লেটটি একটি মূল ফোল্ডারে আছে — এটি মুছে ফেললে এর নিচের প্রতিটি ফোল্ডার প্রভাবিত হয় যেগুলো নিজেদের সংস্করণ ঠিক করে না।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme can’t be used until the file is fixed."
+msgstr "ফাইলটি ঠিক না করা পর্যন্ত এই থিম ব্যবহার করা যাবে না।"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme file couldn’t be read"
+msgstr "এই থিম ফাইলটি পড়া যায়নি"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme file is too large"
+msgstr "এই থিম ফাইলটি খুব বড়"
+
#: src/components/ShareReceiveDialog.tsx
msgid "This usually means one of:"
msgstr "এর সাধারণত অর্থ এগুলোর একটি:"
@@ -12367,6 +12574,7 @@ msgstr "একটি প্রম্পট চেষ্টা করে দে
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/ReportBugDialogBody.tsx
#: src/components/settings/AccountSection.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/ShareReceiveDialog.tsx
msgid "Try again"
msgstr "আবার চেষ্টা করুন"
@@ -12474,6 +12682,7 @@ msgstr "{docName}-এর শেষ সম্পাদনাটি পূর্
#: src/components/ActivityPanelBurstRow.tsx
#: src/components/AppMenubar.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/settings/SharingSection.tsx
#: src/lib/native-menu-catalog.ts
msgid "Undo"
@@ -12741,6 +12950,16 @@ msgstr "{0}-কে গাঢ় থিম হিসেবে ব্যবহা
msgid "Use {0} as the light theme"
msgstr "{0}-কে হালকা থিম হিসেবে ব্যবহার করুন"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Use {0} for the active dark mode"
+msgstr "সক্রিয় গাঢ় মোডের জন্য {0} ব্যবহার করুন"
+
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Use {0} for the active light mode"
+msgstr "সক্রিয় হালকা মোডের জন্য {0} ব্যবহার করুন"
+
#: src/components/SkillForkDialog.tsx
msgid "Use {editor} version"
msgstr "{editor} সংস্করণ ব্যবহার করুন"
@@ -12753,6 +12972,10 @@ msgstr "নিচের লিংকটি কপি করতে <0>{copyShortc
msgid "Use a folder you already have."
msgstr "আপনার কাছে আগে থেকেই আছে এমন একটি ফোল্ডার ব্যবহার করুন।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Use a lowercase .yaml or .yml extension"
+msgstr "ছোট হাতের .yaml বা .yml এক্সটেনশন ব্যবহার করুন"
+
#: src/components/SkillFileCreateDialog.tsx
#: src/components/SkillFileRenameDialog.tsx
msgid "Use a relative path inside the skill (no .., no spaces; SKILL.md is managed)."
@@ -12937,6 +13160,10 @@ msgstr "আমরা <0>openknowledge.skill</0> তৈরি করব, সে
msgid "We'll create a repository and start syncing — no terminal needed."
msgstr "আমরা একটি রিপোজিটরি তৈরি করে সিঙ্ক শুরু করব — কোনো টার্মিনাল লাগবে না।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "We’ll create a safe theme ID from this name."
+msgstr "এই নাম থেকে আমরা একটি নিরাপদ থিম আইডি তৈরি করব।"
+
#: src/components/ReportBugDialogBody.tsx
msgid "We've filed it with the team and attached your logs."
msgstr "আমরা এটি দলের কাছে জমা দিয়েছি এবং আপনার লগ সংযুক্ত করেছি।"
diff --git a/packages/app/src/locales/en/messages.json b/packages/app/src/locales/en/messages.json
index bb0379756..02fe8d020 100644
--- a/packages/app/src/locales/en/messages.json
+++ b/packages/app/src/locales/en/messages.json
@@ -38,11 +38,13 @@
"Sent privately to the OpenKnowledge team, along with your note and app version. Never posted publicly."
],
"-oHckY": ["OpenKnowledge read the setting ", ["key"]],
+ "-othoN": ["This theme file is too large"],
"-q4abP": [
"Results capped — this workspace has more files than search can index. A missing file may be a cap artifact, not a typo."
],
"-slrNR": ["Toggle a task list."],
"-uaQnI": ["No matching worktrees or branches."],
+ "-yOx8u": ["Saving changes…"],
"-yPBXI": ["Choose file"],
"-ySLQJ": ["Git & PRs"],
"-zA2E7": ["Couldn't create the worktree. Try a different name."],
@@ -104,6 +106,7 @@
"0kTAXe": ["Open source: ", ["mirrorSrc"]],
"0pZmTP": ["Can't share this path."],
"0qyKG6": ["Synced from disk"],
+ "0r6d6v": ["Changes saved automatically."],
"0rwwOn": ["By tag"],
"0s8-e8": [
"Select, enter, or leave block components and fallback source blocks from keyboard boundaries."
@@ -114,6 +117,7 @@
"0xnQ_X": ["Updates flow in"],
"0xnmlQ": ["Repository name"],
"0yL--g": ["Review conflicts"],
+ "0ySP5u": ["Changes save automatically to this theme."],
"0zAhu6": ["every doc"],
"10g8I_": ["Turn off Only markdown files"],
"11ukmX": ["Rename failed: ", ["0"]],
@@ -123,6 +127,7 @@
"161NCV": ["Stopping"],
"16D5Zj": ["Are you sure you want to delete ", ["itemName"], "? This action cannot be undone."],
"16eIWu": ["Force stop"],
+ "16tSS_": ["Paste a base16 theme"],
"170Js2": ["Hide panel"],
"1AumWo": ["Push failed — check the server logs for details."],
"1CalO6": ["Style"],
@@ -155,6 +160,7 @@
"1njn7W": ["Light"],
"1nke1r": ["Open ", ["0"], " on GitHub (opens in a new tab)"],
"1oSHI0": ["Couldn't install ", ["skillName"], ": ", ["0"]],
+ "1qpGKz": ["Couldn’t save changes. Try editing a color again."],
"1ruosn": ["OpenKnowledge"],
"1t_NnN": ["Reject"],
"1u-mAI": ["Couldn't start the sync. Check your connection, then retry."],
@@ -274,7 +280,6 @@
"3kYcuM": ["Are you sure you want to delete the selected items?"],
"3l32hp": ["Part of the ", ["plugin"], " plugin"],
"3l_cXP": ["Take a look if you'd like. This exact file is what we receive."],
- "3l_knd": ["Press the sun or moon on “Custom” above to use this scheme."],
"3m2GBo": ["Searching docs"],
"3mFsc3": ["Restore with remote changes"],
"3nnyi_": [["0", "plural", { "one": ["Delete"], "other": ["Delete ", "#", " items"] }]],
@@ -318,6 +323,7 @@
"4TzU0n": ["Initialize"],
"4buZWd": ["Inherited from ", ["path"]],
"4c_a6S": ["Nothing set yet."],
+ "4d0VYJ": ["We’ll create a safe theme ID from this name."],
"4eO-iB": ["Discard this comment"],
"4g19V6": ["Failed to update property"],
"4h3e0H": ["Couldn't update skills sharing — ", ["detail"], "."],
@@ -449,6 +455,7 @@
"Describe what it should do, or add one yourself. OpenKnowledge keeps your skills in one place, versions them, and installs them into agents like Claude, Codex, and Cursor."
],
"6MnZEC": ["Terminal failed to load"],
+ "6Nea1q": ["Use ", ["0"], " for the active dark mode"],
"6O626z": ["No headings match \"", ["trimmedAnchorQuery"], "\""],
"6Pxqwv": [
"No project templates yet. Create one to make it available everywhere in this project. Folder-scoped templates live on each folder's overview page."
@@ -458,6 +465,7 @@
"6VqW-1": ["Remove ", ["keyName"]],
"6WdDG7": ["Page"],
"6YBJ3m": ["Ask AI about selection"],
+ "6YE0P6": ["Editing ", ["0"]],
"6YtxFj": ["Name"],
"6ZhdPI": ["What the agent may read, write, and surface."],
"6_ZOw4": ["Copied full path"],
@@ -487,6 +495,7 @@
"6s7LXO": ["Heads up"],
"6u9LvN": [["days", "plural", { "one": ["#", " day ago"], "other": ["#", " days ago"] }]],
"6vEr3W": ["Link target"],
+ "6xeZX9": ["Edits apply live. Light or dark comes from the theme."],
"6zzhQL": ["Send your report by email"],
"72xhRD": ["Diagram view mode"],
"74-bX-": ["A pull quote stands out from the surrounding text."],
@@ -498,13 +507,13 @@
"Validate document frontmatter against JSON Schema files, scoped to doc sets by glob."
],
"7Bj3x9": ["Failed"],
- "7EmDc7": ["Import scheme"],
"7FA2iI": ["Couldn't read the comments waiting to send — nothing was sent."],
"7FamGZ": ["Go to line"],
"7Fkcej": ["+ Add ", ["addChildName"]],
"7H4UHD": ["Documents tagged <0>#", ["tagName"], "</0>"],
"7IsvrP": ["Checking for updates"],
"7JtSLi": ["Failed to delete path"],
+ "7O7REc": ["Couldn’t restore ", ["0"], ". Try again."],
"7OhaRy": ["Source search"],
"7Ongq0": ["Condense my AGENTS.md file to less than 40k characters"],
"7OwvEL": ["Show HTML preview"],
@@ -619,6 +628,8 @@
"8uGMP8": ["Hidden content goes here."],
"8vCZcs": ["Failed to open file."],
"8vETh9": ["Show"],
+ "8x6zk9": ["Hide ", ["0"], " editor"],
+ "9-lMCF": [["slot"], " color — ", ["0"]],
"90-wKT": ["OpenKnowledge read the history of ", ["subject"]],
"92rbk2": ["Mirror loading <0>", ["mirrorRef"], "</0>"],
"93LBnX": ["Hide Agents"],
@@ -675,7 +686,6 @@
"9fvog2": ["Preview unavailable: ", ["errorDetail"]],
"9i21pa": ["Commits happen automatically"],
"9ieZhu": ["Installed at ", ["path"], " — click to remove"],
- "9j1tqo": ["Couldn’t reach the clipboard — the scheme is in the box below."],
"9jnjV0": ["Embed an audio file with native player controls."],
"9lso1Y": ["Creates the <0>", ["folderPart"], "/</0> folder"],
"9m4D_h": ["GitHub, a git URL, or a local path."],
@@ -712,8 +722,10 @@
],
"AIn2Yv": [["displayName"], " CLI, ", ["hint"]],
"AItsE5": ["Open it there"],
+ "AJ7_B2": ["Create new theme"],
"AKxFtn": [["openedWorktreeCount", "plural", { "one": ["worktree"], "other": ["worktrees"] }]],
"ALhMYW": ["Terminal"],
+ "ANFxWn": ["Couldn’t delete this theme. Refresh and try again."],
"APNlbk": ["exit ", ["0"]],
"AQ-Lfg": ["Couldn't load templates"],
"AQGtjK": [
@@ -852,9 +864,11 @@
"This file is too large to open in the built-in text editor (1 MB limit). Use Open file below to open it in another app."
],
"C_cPoW": ["Your GitHub session expired — sign in again to verify push access."],
+ "CcaU4i": ["Edits apply live and save automatically to this theme."],
"ChAtFg": ["You don't have permission to push to this repo"],
"ChMshD": ["Quit ", ["appName"]],
"Ck9XRt": ["Couldn't save the key — please try again."],
+ "ClII5l": ["Press the sun or moon on “Custom” above to use this theme."],
"ClTEde": ["Stage the selected passage in the agents panel, ready to extend and send."],
"CmeH9S": ["Add property to ", ["keyName"]],
"CnOGgs": ["Sync mode"],
@@ -896,6 +910,7 @@
"DKYW1G": [
"This setting is per-machine and isn't shared with collaborators. It needs an API key (set below) unless your endpoint is a local server that doesn't require one."
],
+ "DLIljL": ["Some saved themes aren’t shown because the theme folder exceeds the scan limit."],
"DMLE5q": ["MCP auto-repair failed"],
"DMeaxi": ["Downloading ", ["0"], " ", ["1"], "…"],
"DNkveC": ["Column options"],
@@ -908,6 +923,7 @@
"</0>. You have uncommitted changes that prevent switching here — open it in a worktree to leave your changes untouched."
],
"DUWgfT": ["Re-authenticate with GitHub Enterprise Server"],
+ "DUb7Ax": ["Multiple files use this theme name"],
"DVh_Tb": ["Failed to clean up after trash"],
"DWJtEo": ["What happens next"],
"DXd9LM": ["New worktree"],
@@ -922,6 +938,7 @@
"DhT_PK": ["OpenKnowledge imported a skill"],
"DiFKSL": ["Counting markdown files"],
"DiZ3pq": ["Icon picker"],
+ "DmkTrb": ["Couldn’t create this theme. Try again."],
"Dnn2XG": ["Automatic"],
"DpjYd6": ["Jump to the anchored text"],
"DrYM2Z": ["Sync disabled"],
@@ -1095,6 +1112,7 @@
"Explain how your codebase works so teammates and AI agents can find their way around. Good for documenting the architecture, the main parts, and the questions new contributors always ask."
],
"FyW0WO": ["Authorize in browser"],
+ "FyyIjH": ["Theme name is too long"],
"G-JBA1": [
"Source mode requires a live connection — your edits are saved and will appear when you reconnect."
],
@@ -1134,6 +1152,7 @@
"GQDSBN": ["Layout options"],
"GSYWCm": ["Hide document panel"],
"GUYwCr": ["Dismiss notice"],
+ "GUZHkL": ["Missing palette colors"],
"GUqTzn": ["Competitor research"],
"GXf9hG": ["Cloning ", ["repoName"], "..."],
"GZzDqc": [
@@ -1203,6 +1222,7 @@
"HSI88F": ["Delete table"],
"HSh8u_": ["Folders"],
"HTW0Zw": ["One more step: run <0>claude</0> in this project and approve OpenKnowledge once."],
+ "HZ7fEu": ["Theme name"],
"HbcQYf": [
"Replace the symlink at ",
["display"],
@@ -1251,6 +1271,7 @@
"IFezUv": ["The audit could not be completed. Try again."],
"IInnZo": ["Conflict"],
"IKoTAC": ["Keep disabled"],
+ "IMLUBh": ["Invalid color value"],
"INp_z6": ["Comment or ask AI about this ", ["0"]],
"IO8REi": ["Couldn't open \"", ["name"], "\": ", ["0"]],
"IQPyrD": ["Missing page — click to create"],
@@ -1262,7 +1283,6 @@
"IX_uXB": ["my-feature"],
"IYciRC": ["Thanks for the report!"],
"IajAbS": ["Add a starter pack"],
- "IbTC7z": ["Paste a base16 scheme"],
"If0crP": ["Open with AI ", ["targetDisplayName"], ", ", ["hint"]],
"IgN3LY": ["On selected text in <0>", ["address"], "</0>"],
"IgTwLt": ["Open this document in the editor and collapse the graph."],
@@ -1280,6 +1300,7 @@
"Ix0K8o": ["Hide external URL nodes"],
"IxHMdF": ["Couldn't delete that comment."],
"IxyZXD": ["Screenshot"],
+ "J1XRO3": ["Theme colors"],
"J2Mv98": ["Name (e.g. ", ["login"], ")"],
"J2_JuX": ["nothing (", ["0"], " cannot match a doc)"],
"J2eKUI": ["File"],
@@ -1305,7 +1326,7 @@
"JOcPqH": ["Bring a remote repository onto this machine."],
"JWsZlx": ["Open a project to edit."],
"JZ8cO6": ["Light, dark, or follow the OS."],
- "J_bJiH": ["Pick a built-in IDE color palette, or define your own."],
+ "JaU1ld": ["Theme name has unsupported characters"],
"JddocZ": ["Toggle header column"],
"Jejur6": ["Couldn't load document"],
"JfPuv7": [["shareBranch"], " isn't a valid branch name."],
@@ -1384,6 +1405,7 @@
"KsAPaB": ["This branch is checked out in:"],
"KtACeE": ["Default: <0>", ["0"], "</0>"],
"KujtjC": ["Find"],
+ "Kx881F": ["Restored ", ["0"], "."],
"L-rMC9": ["Reset to default"],
"L1BQTH": [["0"], " isn't installed yet — opening its download page."],
"L1ZE3M": ["Document statistics"],
@@ -1567,6 +1589,7 @@
"N55YNr": [
"Choose whether this project's OpenKnowledge setup, including its AI-tool connections, is saved with the project so teammates get it too, or kept only on your computer."
],
+ "N6j2JH": ["Edit ", ["0"]],
"NBdIgR": ["Comment"],
"NCmYhK": [
"Skills teach agents repeatable tasks. Author and manage them from the Skills section in the editor; each skill's install menu controls where it lives. These are this project's skill folders."
@@ -1768,6 +1791,7 @@
"</0> already has a worktree — it'll open in its own window."
],
"QB-moX": ["Install it to your other editors (Claude Code, Cursor, Codex) to share it."],
+ "QDErHs": ["Select ", ["slot"], " — ", ["0"]],
"QDZbvN": [["diffDays"], "d ago"],
"QGWzup": ["Loading OpenKnowledge skills"],
"QHCx0c": ["Bug report history"],
@@ -1797,11 +1821,11 @@
"QlxHAH": ["Showing results for \"", ["semanticResultsLabel"], "\""],
"Qpfxa1": [["secs"], "s"],
"QqBQu1": ["Label <0>(visible link text)</0>"],
- "Quz_Qu": ["Edits apply live. Light or dark comes from the scheme."],
"Qvls7J": ["Eng specs"],
"Qw-7Ie": [
"A simple place to write, with one file per topic and a daily journal. Pick this if you just want to start writing and let the links between notes build up over time."
],
+ "QwG_zJ": ["Conflicting files: ", ["0"], "."],
"QySH4I": ["Detected OpenKnowledge projects"],
"QyioBP": ["Move up"],
"QzofTX": ["No comments in this project yet. Comment on a passage to start one."],
@@ -1816,6 +1840,7 @@
]
],
"R0jJzV": ["Paste URL, owner/repo, or search your repos"],
+ "R30SFt": ["Use a lowercase .yaml or .yml extension"],
"R3y75Z": ["Edit source"],
"R4OWFD": ["Sections"],
"R65q-K": [
@@ -1826,6 +1851,7 @@
"R9dK63": ["Sample image"],
"RDjuBN": ["Setup"],
"RDrXh4": ["Configure user, project, and integration settings."],
+ "RG3yW6": ["Enter a name for this theme."],
"RG4XHV": ["Copy ", ["0"], " prompt"],
"RGCCrg": ["Copy share link"],
"RGkNeJ": ["Initialize a starter pack"],
@@ -1989,6 +2015,7 @@
"UEdTEN": ["Orphaned"],
"UGeJuP": ["Allowed values (empty = any)"],
"UGtPix": ["GitHub connection expired. Connect again to continue."],
+ "UH0Zqw": ["This isn’t a regular theme file"],
"UHwc0P": [
"This is a preview of ",
["boldName"],
@@ -2045,7 +2072,6 @@
["src"],
"</1> is no longer available."
],
- "UeQEbk": ["Browse hundreds of schemes"],
"UfW9Kr": [
"Your search queries and the full text of matching pages are sent to your embeddings provider (OpenAI by default) to compute embeddings."
],
@@ -2131,6 +2157,7 @@
],
"W8vpBM": ["starter pack"],
"W9_Bub": ["Local changes overlap with incoming sync"],
+ "WBNpt9": ["Couldn’t read this theme (", ["0"], ")"],
"WFEbV1": ["Flag common markdown issues in the editor. Powered by <0>markdownlint<1/></0>."],
"WGMoTY": ["Bugs, crashes, or it felt unreliable"],
"WHPvOb": ["All files are hidden by view filters."],
@@ -2259,6 +2286,7 @@
"Y9c_nf": ["0/0"],
"YBt9YP": ["Beta"],
"YC6_wP": ["Edit ", ["keyName"]],
+ "YCmS3k": ["Deleted ", ["0"], "."],
"YDL7N6": [
"Lint plugins — which rule families run and their per-rule settings — are configured on their own tab under This project → Plugins."
],
@@ -2284,6 +2312,7 @@
"Y_kL7X": ["Customize how the editor looks and behaves."],
"Ya3PlJ": ["Permission required"],
"YaeyFh": ["Pulls may overwrite uncommitted edits in your local files."],
+ "Yb82LN": ["ID: ", ["0"]],
"Yea-K5": ["Restore to this point"],
"Yi0VMG": ["Upload ", ["keyName"]],
"YjMLg2": ["Off — external links show only their URL. No requests leave this computer."],
@@ -2358,6 +2387,7 @@
"ZYtq3m": [
"Connect the AI tools you use to this specific project. These files live in the project folder, so anyone who opens it gets the same setup."
],
+ "Z_nNa2": ["Name your theme"],
"ZatAO_": ["Failed to enable link previews — ", ["detail"]],
"Zf0w-R": [
"Take a piece of writing from a rough idea to a finished draft to something you're ready to share. Good for blog posts, essays, or anything you want to move through clear stages."
@@ -2393,11 +2423,13 @@
["currentLabel"],
"</1>."
],
+ "_DwR-n": ["Creating…"],
"_FLBbi": [["sizeText"], " · secrets redacted · crash dump not redacted"],
"_GRWOJ": ["Change the embeddings provider?"],
"_HgF9q": ["Sort by"],
"_IGfXZ": ["OpenKnowledge quit unexpectedly last time."],
"_IX_7x": ["Other"],
+ "_IfSZn": ["A saved theme already uses this name."],
"_JOGC0": ["Send feedback…"],
"_LczaQ": ["Denied — ", ["optionName"]],
"_NWEid": ["Search schema files by path"],
@@ -2513,7 +2545,6 @@
"b6Fgpe": ["Each pack scaffolds your project with ready-made folders and templates."],
"bBE5tC": ["Detected on this machine"],
"bBcFK_": ["Open emoji picker for ", ["keyName"]],
- "bD2SLZ": ["Scheme copied as base16 YAML"],
"bD8I7O": ["Complete"],
"bEp7UY": ["Not attached to desktop bridge"],
"bF22t6": ["Remove field ", ["field"]],
@@ -2573,6 +2604,7 @@
"cIptmH": ["In the Claude Desktop App"],
"cKjLuT": ["(project + user)"],
"cLP0Lf": ["Remote skill source"],
+ "cLn264": ["This theme file couldn’t be read"],
"cMMb6H": ["Installed ", ["imported"], ", but ", ["failed"], " failed: ", ["failedNames"]],
"cN1Gcp": ["A worktree folder for ", ["shareBranch"], " already exists."],
"cOJyVj": ["Disable Themes"],
@@ -2590,6 +2622,7 @@
["conflictCount", "plural", { "one": ["#", " conflict"], "other": ["#", " conflicts"] }]
],
"cUk6TF": ["Sync failed — check the server logs for details."],
+ "cUt8yN": ["Changes save automatically."],
"cV7LOw": ["Team Wiki"],
"cVKnqL": ["Couldn't read the comments waiting to send: ", ["0"]],
"cZGNlb": ["Add another pattern"],
@@ -2628,6 +2661,7 @@
"cstC0z": ["Pattern (regex)"],
"ct2kv5": ["No headings in ", ["pageTarget"]],
"cuA8QW": ["Organize specs"],
+ "cuHhjo": ["Create & edit"],
"d-GtJt": ["View in Source Markdown"],
"d1JjXo": [
"Your local copy of branch <0>",
@@ -2738,6 +2772,7 @@
"Git can't track this folder — it's empty or contains only ignored files. The link won't work until you add a tracked document."
],
"eiUA4k": [["count", "plural", { "one": ["#", " comment"], "other": ["#", " comments"] }]],
+ "ekSPiP": [["0"], " was already deleted."],
"el2KyL": ["Slidev found in this project. Decks will use the project's version."],
"emMrXQ": ["Server returned a malformed duplicate response."],
"emgiet": ["Authoritative content; mirrored verbatim everywhere it's referenced."],
@@ -2806,6 +2841,7 @@
"fwrPh4": ["Please enter a valid email."],
"fxJk_6": ["<0>Have more to add?</0> Write to <1/> and mention your reference."],
"fxbCNQ": ["Synced. The link is up to date."],
+ "g12y1g": ["Invalid YAML"],
"g1ZTh_": [
[
"count",
@@ -2902,7 +2938,6 @@
"gwEcOD": ["Your local copy is behind."],
"gwykHF": ["This doc hasn't synced to GitHub yet. The link will work after the next sync."],
"gyHDWC": ["Fix all with AI (", ["count"], ")"],
- "gyWc8_": ["Accents"],
"h-AdvS": ["The folders and templates are already here, so there's nothing to add."],
"h06R3C": ["No pages are missing outgoing graph links."],
"h16FyT": ["Lists"],
@@ -2924,6 +2959,7 @@
"hDEaQu": ["Connect OpenKnowledge to other tools you use."],
"hDKtoF": [["diffHrs"], "h ago"],
"hDoLrm": ["Remove ", ["projectName"], " from recent projects"],
+ "hFmYGU": ["Linked theme files aren’t supported"],
"hGmuTc": ["Docs tagged #", ["tagDocsName"]],
"hHMv6l": ["Delete block"],
"hHR0tt": ["New chat with ", ["0"]],
@@ -2937,6 +2973,7 @@
"hSBIG-": ["A title, description, tags — anything that describes this folder."],
"hSySVc": ["Install handoff failed: ", ["msg"]],
"hVAkI8": ["Run in terminal"],
+ "hVzt9x": ["Saved themes couldn’t load. The last available theme list is still shown."],
"hXUWyd": ["Value is required"],
"hXbSxc": ["Asset: ", ["title"]],
"hY8pka": ["Select next occurrence"],
@@ -2946,6 +2983,7 @@
"haHgQj": ["Copied relative path"],
"habOU_": ["Failed to update the auto-approve setting — ", ["detail"]],
"he3ygx": ["Copy"],
+ "hgF0al": ["Use ", ["0"], " for the active light mode"],
"hgtsat": ["Failed to delete ", ["file"]],
"hh4mVC": ["Ask AI to fix ", ["flatId"]],
"hhI__i": ["Are you sure you want to delete {name} and its contents?"],
@@ -3179,6 +3217,7 @@
]
],
"k_pade": ["Config sharing is now shared. Commit the OK files to share with your team."],
+ "k_tFzX": ["Missing theme name"],
"k_yIIc": ["Will be created at: <0>", ["targetPreview"], "</0>"],
"ka6Eke": ["Open file on disk"],
"kdzzOK": ["Off — search ranks by keyword only. No content leaves this computer."],
@@ -3190,6 +3229,7 @@
"khCa4M": ["Teaches coding agents in this project to read and write through OpenKnowledge."],
"kj9pAE": ["Creating page"],
"kknhfj": ["No changes"],
+ "kkux8f": ["Couldn’t delete ", ["0"], ". Try again."],
"klPS-L": ["Original file — before this agent's edits."],
"kmKqZg": ["Clusters"],
"knjOzA": ["Tag value"],
@@ -3203,6 +3243,7 @@
"kwLcuN": [
"Give the AI tools you use access to read and update your projects. Pick what to set up below, and change it anytime in Settings > AI tools & CLI."
],
+ "kwNS82": ["This theme can’t be used until the file is fixed."],
"ky9Tuc": ["Edit ", ["0"], " source"],
"kzpkcn": ["Couldn't save that edit."],
"l-4nnw": ["Search rules"],
@@ -3248,6 +3289,7 @@
"A path inside the skill — any folder works (e.g. references/notes.md). Folders in the path are created for you."
],
"lPzyrU": ["All hunks resolved"],
+ "lS83Sg": ["Couldn’t reach the clipboard."],
"lScd1O": ["Slidev decks open in the OpenKnowledge desktop app only."],
"lUtr1r": [["0"], " of ", ["1"], " selected"],
"lVWEIL": ["Indexed ", ["embedded"], " of ", ["total"], " pages."],
@@ -3395,6 +3437,7 @@
"nNYV3Y": ["and ", ["remaining"], " more"],
"nOEDQs": ["Failed to update sync mode — ", ["detail"]],
"nP-KFo": ["New ", ["0"], " chat"],
+ "nTM8ab": ["Give it a name before editing its colors."],
"nTwL53": ["Open a doc to share its URL."],
"nUNZL4": ["Ask ", ["0"]],
"nWv1ja": ["Manage hidden files in Settings → Ignore patterns."],
@@ -3439,6 +3482,7 @@
"Git identity isn't set — commits use a default author. Set yours so teammates see your name."
],
"nrXDdR": ["Field name"],
+ "nsM-_m": ["Browse hundreds of themes"],
"nsUDL8": [["0"], " of ", ["1"], " projects selected"],
"nskygk": ["Choose agent"],
"nwtY4N": ["Something went wrong"],
@@ -3479,6 +3523,7 @@
"oYepHb": [
"The terminal is turned off for this project. Turn it back on to run commands here."
],
+ "oZUYMv": ["Couldn’t restore ", ["0"], ". That name is already in use."],
"of3tF-": [
"You picked ~/Documents. OpenKnowledge will index every markdown file under it. If you only want to manage a sub-folder, choose a smaller scope."
],
@@ -3509,6 +3554,7 @@
["0"],
" — something outside OK changed it since. The state shown is what's on disk now; your next Symlink/Unlink wins."
],
+ "p7Utw8": ["Not a base16 theme"],
"p98xmP": ["Applies to"],
"p9sdCy": ["New ignore pattern"],
"pA16WG": ["This project has no GitHub remote."],
@@ -3592,6 +3638,7 @@
"qIJIrD": ["Testing"],
"qJSo0_": ["What is the difference between copies and symlinks?"],
"qNOgUu": ["Edits at the source land here — no copy-paste drift."],
+ "qQi_um": ["Theme imported."],
"qRZh7J": ["Let Tab leave the source editor instead of indenting."],
"qSKu2v": ["Source navigation and selection"],
"qSxaOz": ["Accept their deletion"],
@@ -3637,6 +3684,7 @@
"qo4zCg": ["Path cannot contain backslashes"],
"qpQwGC": ["Describe what you're working on and the agent sets it up for you."],
"qribBG": ["schema ", ["deleteTarget"]],
+ "qtnmEX": ["Enter a valid theme name."],
"qvWGzP": ["Collapse all"],
"qyLmWw": ["Source editor search panel"],
"r-OJYm": ["Enter a valid branch name (no spaces, no leading dot, no \"..\")."],
@@ -3662,6 +3710,7 @@
"rFmBG3": ["Color theme"],
"rFw02Q": ["Uploading ", ["keyName"]],
"rJVoVX": ["Source find results"],
+ "rJm8-2": ["Couldn’t reach the clipboard — the theme is in the box below."],
"rNifQd": ["Remove property"],
"rQAQus": ["Couldn't save template: ", ["error"]],
"rQRrkB": ["yesterday"],
@@ -3732,7 +3781,6 @@
"sJK6pq": ["Permission denied"],
"sJWhgo": ["Unknown component: ", ["unregisteredComponentName"]],
"sKEgGd": ["Send to chat"],
- "sKMhJz": ["Background to foreground"],
"sLcbHt": [
"Symlink another folder into one of these so both agents read the same skills; unlink to manage a folder's skills one by one again."
],
@@ -3908,6 +3956,7 @@
"ur2XSb": ["Visual editor"],
"uuoHOU": ["Command failed."],
"uyJsf6": ["About"],
+ "uyOQ4e": ["Theme copied as base16 YAML"],
"uynXup": [["tokens", "plural", { "one": ["token"], "other": ["tokens"] }]],
"v-h2hx": ["Delete ", ["targetGitPath"]],
"v2ZW0K": ["Enable terminal"],
@@ -4020,6 +4069,7 @@
],
"wZPUJx": ["\"", ["0"], "\""],
"w_Sphq": ["Attachments"],
+ "wbMbiY": ["Copied ", ["selectedSlot"]],
"wbpoGe": ["Couldn't install OpenKnowledge skill — ", ["message"]],
"wbv9xO": ["Create new project"],
"wc54KE": ["Trying it out…"],
@@ -4207,6 +4257,7 @@
"zL0LPh": ["Global outside text fields"],
"zLGXna": ["No starter packs available."],
"zLak8b": ["Activate new tab"],
+ "zMmwh4": ["Pick a theme or create your own."],
"zQBg2C": ["Move the current block up or down one position."],
"zXj1rA": ["Search by meaning"],
"zYp8Sr": [
diff --git a/packages/app/src/locales/en/messages.po b/packages/app/src/locales/en/messages.po
index 44f29733d..62eba69bf 100644
--- a/packages/app/src/locales/en/messages.po
+++ b/packages/app/src/locales/en/messages.po
@@ -332,6 +332,11 @@ msgstr "{0} total"
msgid "{0} version {1}"
msgstr "{0} version {1}"
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "{0} was already deleted."
+msgstr "{0} was already deleted."
+
#. placeholder {0}: activeData.label
#: src/components/EditorWorkspace.tsx
msgid "{0} was not moved."
@@ -777,6 +782,11 @@ msgstr "{sizeText} · secrets redacted · crash dump not redacted"
msgid "{skillCount, plural, one {skill} other {skills}}"
msgstr "{skillCount, plural, one {skill} other {skills}}"
+#. placeholder {0}: BASE16_SLOT_ROLES[slot]
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "{slot} color — {0}"
+msgstr "{slot} color — {0}"
+
#: src/components/settings/CustomThemeEditor.tsx
msgid "{slot} hex value"
msgstr "{slot} hex value"
@@ -1044,6 +1054,10 @@ msgstr "a required git tool"
msgid "A reusable starting point for new documents in this folder."
msgstr "A reusable starting point for new documents in this folder."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "A saved theme already uses this name."
+msgstr "A saved theme already uses this name."
+
#: src/components/TemplateForm.tsx
msgid "A short line shown under the title in the template list."
msgstr "A short line shown under the title in the template list."
@@ -1100,10 +1114,6 @@ msgstr "Above"
msgid "absent"
msgstr "absent"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Accents"
-msgstr "Accents"
-
#: src/components/DiffView.tsx
msgid "Accept"
msgstr "Accept"
@@ -1783,10 +1793,6 @@ msgstr "Back"
msgid "Back to document view"
msgstr "Back to document view"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Background to foreground"
-msgstr "Background to foreground"
-
#: src/components/LinksPanel.tsx
msgid "Backlinks"
msgstr "Backlinks"
@@ -1931,8 +1937,8 @@ msgid "Browse folder"
msgstr "Browse folder"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Browse hundreds of schemes"
-msgstr "Browse hundreds of schemes"
+msgid "Browse hundreds of themes"
+msgstr "Browse hundreds of themes"
#: src/components/ImportSkillDialog.tsx
msgid "Browse or upload a skill for this project."
@@ -2051,6 +2057,7 @@ msgstr "Can't share this path."
#: src/components/ReportBugDialogBody.tsx
#: src/components/SeedDialog.tsx
#: src/components/settings/LinkPreviewsSection.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/settings/SearchSection.tsx
#: src/components/ShareBranchSwitchDialog.tsx
#: src/components/ShareReceiveDialog.tsx
@@ -2106,6 +2113,18 @@ msgstr "changed outside"
msgid "Changed outside OK since it last wrote here — the state shown is what's on disk now"
msgstr "Changed outside OK since it last wrote here — the state shown is what's on disk now"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes save automatically to this theme."
+msgstr "Changes save automatically to this theme."
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes save automatically."
+msgstr "Changes save automatically."
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes saved automatically."
+msgstr "Changes saved automatically."
+
#: src/components/command-palette-commands.ts
msgid "Check for updates"
msgstr "Check for updates"
@@ -2703,6 +2722,11 @@ msgstr "Conflict"
msgid "Conflicted files"
msgstr "Conflicted files"
+#. placeholder {0}: warning.conflictingFilenames.join(', ')
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Conflicting files: {0}."
+msgstr "Conflicting files: {0}."
+
#: src/components/ConflictsSection.tsx
msgid "Conflicts"
msgstr "Conflicts"
@@ -2895,6 +2919,10 @@ msgstr "Converting..."
msgid "Copied"
msgstr "Copied"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Copied {selectedSlot}"
+msgstr "Copied {selectedSlot}"
+
#: src/components/EditorTabTargetMenuItems.tsx
#: src/components/FileSidebar.tsx
#: src/components/FileTree.tsx
@@ -2932,6 +2960,7 @@ msgstr "copy"
#: src/components/CopyButton.tsx
#: src/components/empty-state/CopyablePromptList.tsx
#: src/components/InstallInClaudeDesktopDialog.tsx
+#: src/components/settings/CustomThemeEditor.tsx
#: src/lib/native-menu-catalog.ts
msgid "Copy"
msgstr "Copy"
@@ -3216,6 +3245,15 @@ msgstr "Couldn't create the report"
msgid "Couldn't create the worktree. Try a different name."
msgstr "Couldn't create the worktree. Try a different name."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t create this theme. Try again."
+msgstr "Couldn’t create this theme. Try again."
+
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t delete {0}. Try again."
+msgstr "Couldn’t delete {0}. Try again."
+
#. placeholder {0}: result.error
#: src/components/SkillFileDeleteDialog.tsx
msgid "Couldn't delete file: {0}"
@@ -3233,6 +3271,10 @@ msgstr "Couldn't delete template: {error}"
msgid "Couldn't delete that comment."
msgstr "Couldn't delete that comment."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t delete this theme. Refresh and try again."
+msgstr "Couldn’t delete this theme. Refresh and try again."
+
#: src/components/settings/AccountSection.tsx
msgid "Couldn't disconnect — please try again."
msgstr "Couldn't disconnect — please try again."
@@ -3396,8 +3438,12 @@ msgid "Couldn't reach the agent registry."
msgstr "Couldn't reach the agent registry."
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Couldn’t reach the clipboard — the scheme is in the box below."
-msgstr "Couldn’t reach the clipboard — the scheme is in the box below."
+msgid "Couldn’t reach the clipboard — the theme is in the box below."
+msgstr "Couldn’t reach the clipboard — the theme is in the box below."
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Couldn’t reach the clipboard."
+msgstr "Couldn’t reach the clipboard."
#: src/components/CommandPalette.tsx
msgid "Couldn't reach the embeddings provider — retry"
@@ -3424,6 +3470,11 @@ msgstr "Couldn't read the comments waiting to send — nothing was sent."
msgid "Couldn't read the comments waiting to send: {0}"
msgstr "Couldn't read the comments waiting to send: {0}"
+#. placeholder {0}: warning.code
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t read this theme ({0})"
+msgstr "Couldn’t read this theme ({0})"
+
#: src/components/EditorActivityPool.tsx
msgid "Couldn't reconnect after server restart"
msgstr "Couldn't reconnect after server restart"
@@ -3472,6 +3523,16 @@ msgstr "Couldn't restart the server automatically. Try running `ok stop all` in
msgid "Couldn't restart the server. Try `ok start` in this folder."
msgstr "Couldn't restart the server. Try `ok start` in this folder."
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t restore {0}. That name is already in use."
+msgstr "Couldn’t restore {0}. That name is already in use."
+
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t restore {0}. Try again."
+msgstr "Couldn’t restore {0}. Try again."
+
#. placeholder {0}: resumeError.message
#: src/components/acp/ThreadView.tsx
msgid "Couldn't resume this chat: {0}"
@@ -3481,6 +3542,10 @@ msgstr "Couldn't resume this chat: {0}"
msgid "Couldn't run the test. Check that OpenKnowledge is still running."
msgstr "Couldn't run the test. Check that OpenKnowledge is still running."
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Couldn’t save changes. Try editing a color again."
+msgstr "Couldn’t save changes. Try editing a color again."
+
#: src/components/TemplateForm.tsx
msgid "Couldn't save template: {error}"
msgstr "Couldn't save template: {error}"
@@ -3599,6 +3664,10 @@ msgstr "Crash dump"
msgid "Create"
msgstr "Create"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Create & edit"
+msgstr "Create & edit"
+
#: src/components/TemplateRow.tsx
msgid "Create a document from {label}"
msgstr "Create a document from {label}"
@@ -3670,6 +3739,10 @@ msgstr "Create new project"
msgid "Create new tag #{tagValue}"
msgstr "Create new tag #{tagValue}"
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Create new theme"
+msgstr "Create new theme"
+
#: src/components/GraphPanel.tsx
#: src/components/ProblemsPanel.tsx
#: src/editor/extensions/InternalLinkPropPanel.tsx
@@ -3768,6 +3841,10 @@ msgstr "Creating page: {linkTitle}."
msgid "Creating..."
msgstr "Creating..."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Creating…"
+msgstr "Creating…"
+
#: src/components/RecentProjectsMenu.tsx
msgid "Current"
msgstr "Current"
@@ -3840,8 +3917,10 @@ msgstr "Default: <0>{0}</0>"
msgid "Delete"
msgstr "Delete"
+#. placeholder {0}: theme.label
#. placeholder {0}: thread.title
#: src/components/acp/ThreadHistoryMenu.tsx
+#: src/components/settings/ColorThemePicker.tsx
msgid "Delete {0}"
msgstr "Delete {0}"
@@ -3921,6 +4000,11 @@ msgstr "Delete this chat?"
msgid "Delete this comment"
msgstr "Delete this comment"
+#. placeholder {0}: deletedTheme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Deleted {0}."
+msgstr "Deleted {0}."
+
#: src/components/settings/LintingSection.tsx
msgid "Deleted {file}"
msgstr "Deleted {file}"
@@ -4239,6 +4323,7 @@ msgstr "done"
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/PublishToGitHubDialog.tsx
#: src/components/ReportBugDialogBody.tsx
+#: src/components/settings/CustomThemeEditor.tsx
#: src/editor/extensions/JsxComponentView.tsx
#: src/editor/extensions/JsxInlineView.tsx
#: src/editor/extensions/MathInlineView.tsx
@@ -4373,6 +4458,11 @@ msgstr "Each selected tool gets an OpenKnowledge MCP entry."
msgid "Edit"
msgstr "Edit"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Edit {0}"
+msgstr "Edit {0}"
+
#. placeholder {0}: descriptor.displayName ?? descriptor.name
#: src/editor/extensions/JsxComponentView.tsx
msgid "Edit {0} source"
@@ -4446,6 +4536,11 @@ msgstr "edited template"
msgid "editing [[{realCurrentDoc}]]"
msgstr "editing [[{realCurrentDoc}]]"
+#. placeholder {0}: scheme.name
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Editing {0}"
+msgstr "Editing {0}"
+
#: src/components/SkillEditBanner.tsx
msgid "Editing {boldName} in place. Changes save straight to your editor's copy."
msgstr "Editing {boldName} in place. Changes save straight to your editor's copy."
@@ -4475,8 +4570,12 @@ msgid "Editor status bar"
msgstr "Editor status bar"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Edits apply live. Light or dark comes from the scheme."
-msgstr "Edits apply live. Light or dark comes from the scheme."
+msgid "Edits apply live and save automatically to this theme."
+msgstr "Edits apply live and save automatically to this theme."
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Edits apply live. Light or dark comes from the theme."
+msgstr "Edits apply live. Light or dark comes from the theme."
#: src/editor/slash-command/component-items.tsx
msgid "Edits at the source land here — no copy-paste drift."
@@ -4647,6 +4746,10 @@ msgstr "Enter a 6-digit hex like #1A2B3C"
msgid "Enter a folder name (e.g. brain)."
msgstr "Enter a folder name (e.g. brain)."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Enter a name for this theme."
+msgstr "Enter a name for this theme."
+
#: src/components/CreateProjectDialog.tsx
msgid "Enter a project name"
msgstr "Enter a project name"
@@ -4663,6 +4766,10 @@ msgstr "Enter a title for this template."
msgid "Enter a valid branch name (no spaces, no leading dot, no \"..\")."
msgstr "Enter a valid branch name (no spaces, no leading dot, no \"..\")."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Enter a valid theme name."
+msgstr "Enter a valid theme name."
+
#: src/components/settings/SearchSection.tsx
msgid "Enter a valid URL (for example https://api.openai.com/v1)."
msgstr "Enter a valid URL (for example https://api.openai.com/v1)."
@@ -5555,6 +5662,10 @@ msgstr "GitHub sign-in is missing or expired. Reconnect to resume syncing."
msgid "GitHub, a git URL, or a local path."
msgstr "GitHub, a git URL, or a local path."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Give it a name before editing its colors."
+msgstr "Give it a name before editing its colors."
+
#: src/components/settings/AiToolsSection.tsx
msgid "Give the AI tools you use access to read and update your projects. Checking a box sets it up right away; unchecking removes it."
msgstr "Give the AI tools you use access to read and update your projects. Checking a box sets it up right away; unchecking removes it."
@@ -5734,6 +5845,11 @@ msgstr "Hidden folder “{basename}”"
msgid "Hide"
msgstr "Hide"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Hide {0} editor"
+msgstr "Hide {0} editor"
+
#: src/lib/native-menu-catalog.ts
msgid "Hide {appName}"
msgstr "Hide {appName}"
@@ -5939,6 +6055,11 @@ msgstr "I'm switching to another tool"
msgid "Icon picker"
msgstr "Icon picker"
+#. placeholder {0}: createIdentity.stem
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "ID: {0}"
+msgstr "ID: {0}"
+
#: src/components/AutoSyncEnableWarning.tsx
msgid "If an update arrives for something you are editing, you choose which version to keep, like a merge conflict."
msgstr "If an update arrives for something you are editing, you choose which version to keep, like a merge conflict."
@@ -5974,10 +6095,6 @@ msgstr "Import as template"
msgid "Import failed: {0}"
msgstr "Import failed: {0}"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Import scheme"
-msgstr "Import scheme"
-
#. placeholder {0}: result.name
#: src/lib/skill-import-toast.ts
msgid "Imported \"{0}\"."
@@ -6319,6 +6436,10 @@ msgstr "Instruction for the AI"
msgid "Integrations"
msgstr "Integrations"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Invalid color value"
+msgstr "Invalid color value"
+
#: src/components/CreateProjectDialog.tsx
msgid "Invalid input — pick a different folder."
msgstr "Invalid input — pick a different folder."
@@ -6339,6 +6460,10 @@ msgstr "Invalid server response shape"
msgid "Invalid share URL."
msgstr "Invalid share URL."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Invalid YAML"
+msgstr "Invalid YAML"
+
#: src/uninstall/UninstallSurveyScreen.tsx
msgid "It didn't fit into my workflow"
msgstr "It didn't fit into my workflow"
@@ -6572,6 +6697,10 @@ msgstr "Link URL"
msgid "Link-graph response did not match expected shape."
msgstr "Link-graph response did not match expected shape."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Linked theme files aren’t supported"
+msgstr "Linked theme files aren’t supported"
+
#: src/components/DocPanel.tsx
msgid "Links"
msgstr "Links"
@@ -6947,6 +7076,14 @@ msgstr "Missing page — click to create"
msgid "Missing page: {linkTitle}. Click to create."
msgstr "Missing page: {linkTitle}. Click to create."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Missing palette colors"
+msgstr "Missing palette colors"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Missing theme name"
+msgstr "Missing theme name"
+
#: src/components/SyncStatusBadge.tsx
msgid "Mode"
msgstr "Mode"
@@ -7144,6 +7281,10 @@ msgstr "Mulling…"
msgid "Multi-page PDF viewer with toolbar controls (thumbnails, page nav, zoom)."
msgstr "Multi-page PDF viewer with toolbar controls (thumbnails, page nav, zoom)."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Multiple files use this theme name"
+msgstr "Multiple files use this theme name"
+
#: src/components/acp/working-status.ts
msgid "Musing…"
msgstr "Musing…"
@@ -7186,6 +7327,10 @@ msgstr "Name cannot be empty"
msgid "Name is required"
msgstr "Name is required"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Name your theme"
+msgstr "Name your theme"
+
#: src/lib/keyboard-shortcuts.ts
msgid "Navigate CodeMirror source search results or dismiss the search panel."
msgstr "Navigate CodeMirror source search results or dismiss the search panel."
@@ -7742,6 +7887,10 @@ msgstr "None of these problems have an automatic fix."
msgid "None of these problems have an automatic fix. Try Fix all with AI."
msgstr "None of these problems have an automatic fix. Try Fix all with AI."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Not a base16 theme"
+msgstr "Not a base16 theme"
+
#: src/components/acp/ThreadView.tsx
msgid "Not answered"
msgstr "Not answered"
@@ -8642,8 +8791,8 @@ msgid "Paste"
msgstr "Paste"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Paste a base16 scheme"
-msgstr "Paste a base16 scheme"
+msgid "Paste a base16 theme"
+msgstr "Paste a base16 theme"
#: src/components/AuthModal.tsx
msgid "Paste a personal access token for <0>{host}</0>."
@@ -8766,10 +8915,6 @@ msgstr "Personal to this device — stored in your user config, not shared."
msgid "Pick <0>openknowledge.skill</0> from your <1>Downloads</1> folder. It enables automatically."
msgstr "Pick <0>openknowledge.skill</0> from your <1>Downloads</1> folder. It enables automatically."
-#: src/components/settings/ThemePluginSection.tsx
-msgid "Pick a built-in IDE color palette, or define your own."
-msgstr "Pick a built-in IDE color palette, or define your own."
-
#: src/components/settings/SkillTargetsPicker.tsx
msgid "Pick a folder to merge INTO {display}. That folder becomes a symlink to this one, so its agent reads everything placed here. This folder stays real. Conflicting skills abort the merge."
msgstr "Pick a folder to merge INTO {display}. That folder becomes a symlink to this one, so its agent reads everything placed here. This folder stays real. Conflicting skills abort the merge."
@@ -8782,6 +8927,10 @@ msgstr "Pick a name"
msgid "Pick a palette for light mode and one for dark mode. The theme setting in Preferences chooses between them — on “System”, so does your OS."
msgstr "Pick a palette for light mode and one for dark mode. The theme setting in Preferences chooses between them — on “System”, so does your OS."
+#: src/components/settings/ThemePluginSection.tsx
+msgid "Pick a theme or create your own."
+msgstr "Pick a theme or create your own."
+
#: src/editor/slash-command/items.tsx
msgid "Pick an emoji to insert at the cursor."
msgstr "Pick an emoji to insert at the cursor."
@@ -8888,8 +9037,8 @@ msgid "Press Space to pick up a tab. Use the arrow keys to move it within a tab
msgstr "Press Space to pick up a tab. Use the arrow keys to move it within a tab strip, then press Space or Enter to drop it. Press Shift+F10 or the Menu key to open the tab context menu for split, close, pin, and other tab actions."
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Press the sun or moon on “Custom” above to use this scheme."
-msgstr "Press the sun or moon on “Custom” above to use this scheme."
+msgid "Press the sun or moon on “Custom” above to use this theme."
+msgstr "Press the sun or moon on “Custom” above to use this theme."
#: src/components/PublishToGitHubDialog.tsx
msgid "Preview browsers can't auto-copy. Use Cmd/Ctrl+C on the URL above, or open OK in the desktop app."
@@ -9789,6 +9938,11 @@ msgstr "Restore to this version?"
msgid "Restore with remote changes"
msgstr "Restore with remote changes"
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Restored {0}."
+msgstr "Restored {0}."
+
#. placeholder {0}: descriptor.targetSha7
#: src/components/TimelinePanel.tsx
msgid "Restored an earlier version ({0})"
@@ -9994,6 +10148,10 @@ msgstr "Saved into this project's skills folder (e.g. <0>.agents/skills</0>), ve
msgid "Saved into your global skills folder (e.g. <0>~/.agents/skills</0>)."
msgstr "Saved into your global skills folder (e.g. <0>~/.agents/skills</0>)."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Saved themes couldn’t load. The last available theme list is still shown."
+msgstr "Saved themes couldn’t load. The last available theme list is still shown."
+
#: src/components/SkillProperties.tsx
msgid "Saved to"
msgstr "Saved to"
@@ -10011,6 +10169,10 @@ msgstr "Saves the file to <0>~/Downloads/openknowledge.skill</0> and opens the C
msgid "Saving"
msgstr "Saving"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Saving changes…"
+msgstr "Saving changes…"
+
#: src/components/settings/LintingSection.tsx
msgid "schema {deleteTarget}"
msgstr "schema {deleteTarget}"
@@ -10019,10 +10181,6 @@ msgstr "schema {deleteTarget}"
msgid "Schema fields"
msgstr "Schema fields"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Scheme copied as base16 YAML"
-msgstr "Scheme copied as base16 YAML"
-
#: src/components/ImportSkillForm.tsx
#: src/components/PanelScopeHeader.tsx
msgid "Scope"
@@ -10212,6 +10370,11 @@ msgstr "See all {0} starter packs"
msgid "See the full install guide"
msgstr "See the full install guide"
+#. placeholder {0}: BASE16_SLOT_ROLES[slot]
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Select {slot} — {0}"
+msgstr "Select {slot} — {0}"
+
#: src/components/FrontmatterRow.tsx
msgid "Select a value"
msgstr "Select a value"
@@ -10923,6 +11086,10 @@ msgstr "Slidev timed out while starting. Try again."
msgid "Small section heading."
msgstr "Small section heading."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Some saved themes aren’t shown because the theme folder exceeds the scan limit."
+msgstr "Some saved themes aren’t shown because the theme folder exceeds the scan limit."
+
#: src/components/FeedbackForm.tsx
msgid "Something broke"
msgstr "Something broke"
@@ -11843,6 +12010,30 @@ msgstr "The token needs the repo and read:user scopes."
msgid "Theme"
msgstr "Theme"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme colors"
+msgstr "Theme colors"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme copied as base16 YAML"
+msgstr "Theme copied as base16 YAML"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme imported."
+msgstr "Theme imported."
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name"
+msgstr "Theme name"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name has unsupported characters"
+msgstr "Theme name has unsupported characters"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name is too long"
+msgstr "Theme name is too long"
+
#: src/components/settings/ThemePreviewCanvas.tsx
msgid "Theme preview"
msgstr "Theme preview"
@@ -12037,6 +12228,10 @@ msgstr "This is a preview of {boldName}, detected in {boldHarness} at the {boldL
msgid "This is a preview of {boldName}. Install it into your agents."
msgstr "This is a preview of {boldName}. Install it into your agents."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This isn’t a regular theme file"
+msgstr "This isn’t a regular theme file"
+
#: src/components/SlidesToolbarControls.tsx
msgid "This isn't a supported version of Slidev."
msgstr "This isn't a supported version of Slidev."
@@ -12198,6 +12393,18 @@ msgstr "This source bundles several skills — choose the one to import."
msgid "This template lives in a parent folder — deleting it affects every folder beneath it that doesn't define its own version."
msgstr "This template lives in a parent folder — deleting it affects every folder beneath it that doesn't define its own version."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme can’t be used until the file is fixed."
+msgstr "This theme can’t be used until the file is fixed."
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme file couldn’t be read"
+msgstr "This theme file couldn’t be read"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme file is too large"
+msgstr "This theme file is too large"
+
#: src/components/ShareReceiveDialog.tsx
msgid "This usually means one of:"
msgstr "This usually means one of:"
@@ -12371,6 +12578,7 @@ msgstr "Try a prompt"
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/ReportBugDialogBody.tsx
#: src/components/settings/AccountSection.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/ShareReceiveDialog.tsx
msgid "Try again"
msgstr "Try again"
@@ -12478,6 +12686,7 @@ msgstr "Undid the last edit on {docName}"
#: src/components/ActivityPanelBurstRow.tsx
#: src/components/AppMenubar.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/settings/SharingSection.tsx
#: src/lib/native-menu-catalog.ts
msgid "Undo"
@@ -12745,6 +12954,16 @@ msgstr "Use {0} as the dark theme"
msgid "Use {0} as the light theme"
msgstr "Use {0} as the light theme"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Use {0} for the active dark mode"
+msgstr "Use {0} for the active dark mode"
+
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Use {0} for the active light mode"
+msgstr "Use {0} for the active light mode"
+
#: src/components/SkillForkDialog.tsx
msgid "Use {editor} version"
msgstr "Use {editor} version"
@@ -12757,6 +12976,10 @@ msgstr "Use <0>{copyShortcut}</0> to copy the link below, or open OK in the desk
msgid "Use a folder you already have."
msgstr "Use a folder you already have."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Use a lowercase .yaml or .yml extension"
+msgstr "Use a lowercase .yaml or .yml extension"
+
#: src/components/SkillFileCreateDialog.tsx
#: src/components/SkillFileRenameDialog.tsx
msgid "Use a relative path inside the skill (no .., no spaces; SKILL.md is managed)."
@@ -12941,6 +13164,10 @@ msgstr "We'll build <0>openknowledge.skill</0>, save it to <1>~/Downloads</1>, a
msgid "We'll create a repository and start syncing — no terminal needed."
msgstr "We'll create a repository and start syncing — no terminal needed."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "We’ll create a safe theme ID from this name."
+msgstr "We’ll create a safe theme ID from this name."
+
#: src/components/ReportBugDialogBody.tsx
msgid "We've filed it with the team and attached your logs."
msgstr "We've filed it with the team and attached your logs."
diff --git a/packages/app/src/locales/es/messages.json b/packages/app/src/locales/es/messages.json
index 92f76915f..ed0b569b6 100644
--- a/packages/app/src/locales/es/messages.json
+++ b/packages/app/src/locales/es/messages.json
@@ -50,11 +50,13 @@
"Se envía en privado al equipo de OpenKnowledge, junto con tu nota y la versión de la aplicación. Nunca se publica."
],
"-oHckY": ["OpenKnowledge leyó la configuración ", ["key"]],
+ "-othoN": ["Este archivo de tema es demasiado grande"],
"-q4abP": [
"Resultados limitados: este espacio de trabajo tiene más archivos de los que la búsqueda puede indexar. Un archivo que falte puede deberse al límite, no a una errata."
],
"-slrNR": ["Activa o desactiva una lista de tareas."],
"-uaQnI": ["Ningún worktree ni rama coincide."],
+ "-yOx8u": ["Guardando cambios…"],
"-yPBXI": ["Elegir archivo"],
"-ySLQJ": ["Git y PR"],
"-zA2E7": ["No se pudo crear el worktree. Prueba con otro nombre."],
@@ -120,6 +122,7 @@
"0kTAXe": ["Abrir el origen: ", ["mirrorSrc"]],
"0pZmTP": ["No se puede compartir esta ruta."],
"0qyKG6": ["Sincronizado desde el disco"],
+ "0r6d6v": ["Los cambios se guardaron automáticamente."],
"0rwwOn": ["Por etiqueta"],
"0s8-e8": [
"Selecciona, entra o sale de componentes de bloque y bloques de código alternativos desde los límites del teclado."
@@ -130,6 +133,7 @@
"0xnQ_X": ["Las actualizaciones llegan solas"],
"0xnmlQ": ["Nombre del repositorio"],
"0yL--g": ["Revisar los conflictos"],
+ "0ySP5u": ["Los cambios se guardan automáticamente en este tema."],
"0zAhu6": ["todos los documentos"],
"10g8I_": ["Desactivar Solo archivos markdown"],
"11ukmX": ["Falló al renombrar: ", ["0"]],
@@ -143,6 +147,7 @@
"? Esta acción no se puede deshacer."
],
"16eIWu": ["Detener a la fuerza"],
+ "16tSS_": ["Pega un tema base16"],
"170Js2": ["Ocultar el panel"],
"1AumWo": ["Falló el push: consulta los registros del servidor para ver los detalles."],
"1CalO6": ["Estilo"],
@@ -175,6 +180,7 @@
"1njn7W": ["Claro"],
"1nke1r": ["Abrir ", ["0"], " en GitHub (se abre en una pestaña nueva)"],
"1oSHI0": ["No se pudo instalar ", ["skillName"], ": ", ["0"]],
+ "1qpGKz": ["No se pudieron guardar los cambios. Intenta editar un color de nuevo."],
"1ruosn": ["OpenKnowledge"],
"1t_NnN": ["Rechazar"],
"1u-mAI": ["No se pudo iniciar la sincronización. Revisa tu conexión y vuelve a intentarlo."],
@@ -311,7 +317,6 @@
"3kYcuM": ["¿Seguro que quieres eliminar los elementos seleccionados?"],
"3l32hp": ["Forma parte del complemento ", ["plugin"]],
"3l_cXP": ["Échale un vistazo si quieres. Este archivo exacto es lo que recibimos."],
- "3l_knd": ["Pulsa el sol o la luna en “Personalizado”, arriba, para usar este esquema."],
"3m2GBo": ["Buscando documentos"],
"3mFsc3": ["Restaurar con los cambios remotos"],
"3nnyi_": [
@@ -371,6 +376,7 @@
"4TzU0n": ["Inicializar"],
"4buZWd": ["Heredado de ", ["path"]],
"4c_a6S": ["Todavía no hay nada definido."],
+ "4d0VYJ": ["Crearemos un ID de tema seguro a partir de este nombre."],
"4eO-iB": ["Descartar este comentario"],
"4g19V6": ["No se pudo actualizar la propiedad"],
"4h3e0H": ["No se pudo actualizar la compartición de habilidades: ", ["detail"], "."],
@@ -525,6 +531,7 @@
"Describe lo que debería hacer, o añade una tú. OpenKnowledge guarda tus habilidades en un solo sitio, las versiona y las instala en agentes como Claude, Codex y Cursor."
],
"6MnZEC": ["No se pudo cargar la terminal"],
+ "6Nea1q": ["Usar ", ["0"], " para el modo oscuro activo"],
"6O626z": ["Ningún encabezado coincide con \"", ["trimmedAnchorQuery"], "\""],
"6Pxqwv": [
"Todavía no hay plantillas de proyecto. Crea una para tenerla disponible en todo el proyecto. Las plantillas de carpeta viven en la página general de cada carpeta."
@@ -534,6 +541,7 @@
"6VqW-1": ["Quitar ", ["keyName"]],
"6WdDG7": ["Página"],
"6YBJ3m": ["Preguntar a la IA sobre la selección"],
+ "6YE0P6": ["Editando ", ["0"]],
"6YtxFj": ["Nombre"],
"6ZhdPI": ["Lo que el agente puede leer, escribir y mostrar."],
"6_ZOw4": ["Ruta completa copiada"],
@@ -579,6 +587,7 @@
]
],
"6vEr3W": ["Destino del enlace"],
+ "6xeZX9": ["Los cambios se aplican al instante. El tema determina si es claro u oscuro."],
"6zzhQL": ["Envía tu informe por correo"],
"72xhRD": ["Modo de vista del diagrama"],
"74-bX-": ["Una cita destacada resalta sobre el texto que la rodea."],
@@ -592,13 +601,13 @@
"Valida el frontmatter de los documentos contra archivos JSON Schema, acotado a conjuntos de documentos por glob."
],
"7Bj3x9": ["Falló"],
- "7EmDc7": ["Importar esquema"],
"7FA2iI": ["No se pudieron leer los comentarios pendientes de envío; no se envió nada."],
"7FamGZ": ["Ir a la línea"],
"7Fkcej": ["+ Añadir ", ["addChildName"]],
"7H4UHD": ["Documentos etiquetados con <0>#", ["tagName"], "</0>"],
"7IsvrP": ["Buscando actualizaciones"],
"7JtSLi": ["No se pudo eliminar la ruta"],
+ "7O7REc": ["No se pudo restaurar ", ["0"], ". Inténtalo de nuevo."],
"7OhaRy": ["Búsqueda en el código"],
"7Ongq0": ["Reduce mi archivo AGENTS.md a menos de 40k caracteres"],
"7OwvEL": ["Mostrar la vista previa del HTML"],
@@ -721,6 +730,8 @@
"8uGMP8": ["El contenido oculto va aquí."],
"8vCZcs": ["No se pudo abrir el archivo."],
"8vETh9": ["Mostrar"],
+ "8x6zk9": ["Ocultar editor de ", ["0"]],
+ "9-lMCF": ["Color de ", ["slot"], " — ", ["0"]],
"90-wKT": ["OpenKnowledge leyó el historial de ", ["subject"]],
"92rbk2": ["El espejo está cargando <0>", ["mirrorRef"], "</0>"],
"93LBnX": ["Ocultar Agentes"],
@@ -782,7 +793,6 @@
"9fvog2": ["Vista previa no disponible: ", ["errorDetail"]],
"9i21pa": ["Los commits se hacen automáticamente"],
"9ieZhu": ["Instalado en ", ["path"], ": haz clic para quitarlo"],
- "9j1tqo": ["No se pudo acceder al portapapeles; el esquema está en el cuadro de abajo."],
"9jnjV0": ["Incrusta un archivo de audio con los controles nativos del reproductor."],
"9lso1Y": ["Crea la carpeta <0>", ["folderPart"], "/</0>"],
"9m4D_h": ["GitHub, una URL de git o una ruta local."],
@@ -825,6 +835,7 @@
],
"AIn2Yv": ["CLI de ", ["displayName"], ", ", ["hint"]],
"AItsE5": ["Abrirlo ahí"],
+ "AJ7_B2": ["Crear tema nuevo"],
"AKxFtn": [
[
"openedWorktreeCount",
@@ -833,6 +844,7 @@
]
],
"ALhMYW": ["Terminal"],
+ "ANFxWn": ["No se pudo eliminar este tema. Actualiza e inténtalo de nuevo."],
"APNlbk": ["salida ", ["0"]],
"AQ-Lfg": ["No se pudieron cargar las plantillas"],
"AQGtjK": [
@@ -993,9 +1005,11 @@
"C_cPoW": [
"Tu sesión de GitHub ha caducado: inicia sesión de nuevo para verificar el acceso de push."
],
+ "CcaU4i": ["Los cambios se aplican al instante y se guardan automáticamente en este tema."],
"ChAtFg": ["No tienes permiso para hacer push a este repositorio"],
"ChMshD": ["Salir de ", ["appName"]],
"Ck9XRt": ["No se pudo guardar la clave; inténtalo de nuevo."],
+ "ClII5l": ["Pulsa el sol o la luna de “Custom” arriba para usar este tema."],
"ClTEde": [
"Prepara el fragmento seleccionado en el panel de agentes, listo para ampliar y enviar."
],
@@ -1043,6 +1057,9 @@
"DKYW1G": [
"Este ajuste es de cada equipo y no se comparte con tus colaboradores. Necesita una clave de API (defínela abajo) salvo que tu endpoint sea un servidor local que no la requiera."
],
+ "DLIljL": [
+ "Algunos temas guardados no se muestran porque la carpeta de temas supera el límite de análisis."
+ ],
"DMLE5q": ["Falló la reparación automática de MCP"],
"DMeaxi": ["Descargando ", ["0"], " ", ["1"], "…"],
"DNkveC": ["Opciones de columna"],
@@ -1055,6 +1072,7 @@
"</0>. Tienes cambios sin confirmar que impiden cambiar aquí: ábrelo en un worktree para dejar tus cambios intactos."
],
"DUWgfT": ["Volver a autenticarse con GitHub Enterprise Server"],
+ "DUb7Ax": ["Varios archivos usan este nombre de tema"],
"DVh_Tb": ["No se pudo limpiar después de mover a la papelera"],
"DWJtEo": ["Qué pasa después"],
"DXd9LM": ["Worktree nuevo"],
@@ -1073,6 +1091,7 @@
"DhT_PK": ["OpenKnowledge importó una habilidad"],
"DiFKSL": ["Contando archivos markdown"],
"DiZ3pq": ["Selector de iconos"],
+ "DmkTrb": ["No se pudo crear este tema. Inténtalo de nuevo."],
"Dnn2XG": ["Automático"],
"DpjYd6": ["Ir al texto anclado"],
"DrYM2Z": ["Sincronización desactivada"],
@@ -1258,6 +1277,7 @@
"Explica cómo funciona tu código para que compañeros y agentes de IA se orienten. Va bien para documentar la arquitectura, las partes principales y las preguntas que siempre hacen los nuevos."
],
"FyW0WO": ["Autorizar en el navegador"],
+ "FyyIjH": ["El nombre del tema es demasiado largo"],
"G-JBA1": [
"El modo código requiere conexión en vivo: tus ediciones se guardan y aparecerán cuando vuelvas a conectarte."
],
@@ -1307,6 +1327,7 @@
"GQDSBN": ["Opciones de diseño"],
"GSYWCm": ["Ocultar el panel del documento"],
"GUYwCr": ["Descartar el aviso"],
+ "GUZHkL": ["Faltan colores de la paleta"],
"GUqTzn": ["Investigación de la competencia"],
"GXf9hG": ["Clonando ", ["repoName"], "..."],
"GZzDqc": [
@@ -1398,6 +1419,7 @@
"HTW0Zw": [
"Falta un paso: ejecuta <0>claude</0> en este proyecto y aprueba OpenKnowledge una vez."
],
+ "HZ7fEu": ["Nombre del tema"],
"HbcQYf": [
"¿Reemplazar el enlace simbólico de ",
["display"],
@@ -1462,6 +1484,7 @@
"IFezUv": ["No se pudo completar la auditoría. Inténtalo de nuevo."],
"IInnZo": ["Conflicto"],
"IKoTAC": ["Dejarlo desactivado"],
+ "IMLUBh": ["Valor de color no válido"],
"INp_z6": ["Comenta o pregunta a la IA sobre este ", ["0"]],
"IO8REi": ["No se pudo abrir \"", ["name"], "\": ", ["0"]],
"IQPyrD": ["Página inexistente: haz clic para crearla"],
@@ -1473,7 +1496,6 @@
"IX_uXB": ["mi-funcion"],
"IYciRC": ["¡Gracias por el informe!"],
"IajAbS": ["Añadir un paquete inicial"],
- "IbTC7z": ["Pega un esquema base16"],
"If0crP": ["Abrir con la IA ", ["targetDisplayName"], ", ", ["hint"]],
"IgN3LY": ["Sobre el texto seleccionado en <0>", ["address"], "</0>"],
"IgTwLt": ["Abre este documento en el editor y contrae el grafo."],
@@ -1495,6 +1517,7 @@
"Ix0K8o": ["Ocultar los nodos de URL externas"],
"IxHMdF": ["No se pudo eliminar ese comentario."],
"IxyZXD": ["Captura de pantalla"],
+ "J1XRO3": ["Colores del tema"],
"J2Mv98": ["Nombre (p. ej. ", ["login"], ")"],
"J2_JuX": ["nada (", ["0"], " no puede coincidir con un documento)"],
"J2eKUI": ["Archivo"],
@@ -1524,7 +1547,7 @@
"JOcPqH": ["Trae un repositorio remoto a este equipo."],
"JWsZlx": ["Abre un proyecto para editarlo."],
"JZ8cO6": ["Claro, oscuro o seguir al sistema."],
- "J_bJiH": ["Elige una paleta de colores de IDE integrada o define la tuya."],
+ "JaU1ld": ["El nombre del tema contiene caracteres no admitidos"],
"JddocZ": ["Alternar columna de encabezado"],
"Jejur6": ["No se pudo cargar el documento"],
"JfPuv7": [["shareBranch"], " no es un nombre de rama válido."],
@@ -1609,6 +1632,7 @@
"KsAPaB": ["Esta rama está extraída en:"],
"KtACeE": ["Por defecto: <0>", ["0"], "</0>"],
"KujtjC": ["Buscar"],
+ "Kx881F": ["Se restauró ", ["0"], "."],
"L-rMC9": ["Restablecer al valor por defecto"],
"L1BQTH": [["0"], " todavía no está instalado: abriendo su página de descarga."],
"L1ZE3M": ["Estadísticas del documento"],
@@ -1817,6 +1841,7 @@
"N55YNr": [
"Elige si la configuración de OpenKnowledge de este proyecto, incluidas sus conexiones con herramientas de IA, se guarda con el proyecto para que tus compañeros también la reciban, o se queda solo en tu equipo."
],
+ "N6j2JH": ["Editar ", ["0"]],
"NBdIgR": ["Comentar"],
"NCmYhK": [
"Las habilidades enseñan a los agentes tareas repetibles. Créalas y gestiónalas desde la sección Habilidades del editor; el menú de instalación de cada habilidad controla dónde vive. Estas son las carpetas de habilidades de este proyecto."
@@ -2028,6 +2053,7 @@
"</0> ya tiene un worktree: se abrirá en su propia ventana."
],
"QB-moX": ["Instálala en tus otros editores (Claude Code, Cursor, Codex) para compartirla."],
+ "QDErHs": ["Seleccionar ", ["slot"], " — ", ["0"]],
"QDZbvN": ["hace ", ["diffDays"], " d"],
"QGWzup": ["Cargando las habilidades de OpenKnowledge"],
"QHCx0c": ["Historial de informes de error"],
@@ -2065,11 +2091,11 @@
"QlxHAH": ["Mostrando resultados de \"", ["semanticResultsLabel"], "\""],
"Qpfxa1": [["secs"], "s"],
"QqBQu1": ["Etiqueta <0>(texto visible del enlace)</0>"],
- "Quz_Qu": ["Los cambios se aplican en vivo. El modo claro u oscuro viene del esquema."],
"Qvls7J": ["Especificaciones de ingeniería"],
"Qw-7Ie": [
"Un sitio sencillo para escribir, con un archivo por tema y un diario. Elige esto si solo quieres empezar a escribir y dejar que los enlaces entre notas surjan con el tiempo."
],
+ "QwG_zJ": ["Archivos en conflicto: ", ["0"], "."],
"QySH4I": ["Proyectos de OpenKnowledge detectados"],
"QyioBP": ["Subir"],
"QzofTX": ["Todavía no hay comentarios en este proyecto. Comenta un fragmento para empezar."],
@@ -2085,6 +2111,7 @@
]
],
"R0jJzV": ["Pega una URL, propietario/repo, o busca en tus repositorios"],
+ "R30SFt": ["Usa una extensión .yaml o .yml en minúsculas"],
"R3y75Z": ["Editar el código fuente"],
"R4OWFD": ["Secciones"],
"R65q-K": [
@@ -2095,6 +2122,7 @@
"R9dK63": ["Imagen de ejemplo"],
"RDjuBN": ["Configuración"],
"RDrXh4": ["Configura los ajustes de usuario, de proyecto y de integraciones."],
+ "RG3yW6": ["Introduce un nombre para este tema."],
"RG4XHV": ["Copiar el prompt de ", ["0"]],
"RGCCrg": ["Copiar enlace para compartir"],
"RGkNeJ": ["Inicializar un paquete inicial"],
@@ -2275,6 +2303,7 @@
"UEdTEN": ["Huérfana"],
"UGeJuP": ["Valores permitidos (vacío = cualquiera)"],
"UGtPix": ["La conexión con GitHub caducó. Vuelve a conectarte para continuar."],
+ "UH0Zqw": ["Este no es un archivo de tema normal"],
"UHwc0P": [
"Esto es una vista previa de ",
["boldName"],
@@ -2333,7 +2362,6 @@
["src"],
"</1> ya no está disponible."
],
- "UeQEbk": ["Explora cientos de esquemas"],
"UfW9Kr": [
"Tus consultas de búsqueda y el texto completo de las páginas que coinciden se envían a tu proveedor de embeddings (OpenAI por defecto) para calcular los embeddings."
],
@@ -2449,6 +2477,7 @@
],
"W8vpBM": ["paquete inicial"],
"W9_Bub": ["Los cambios locales se solapan con la sincronización entrante"],
+ "WBNpt9": ["No se pudo leer este tema (", ["0"], ")"],
"WFEbV1": [
"Señala problemas habituales de markdown en el editor. Funciona con <0>markdownlint<1/></0>."
],
@@ -2589,6 +2618,7 @@
"Y9c_nf": ["0/0"],
"YBt9YP": ["Beta"],
"YC6_wP": ["Editar ", ["keyName"]],
+ "YCmS3k": ["Se eliminó ", ["0"], "."],
"YDL7N6": [
"Los complementos de análisis (qué familias de reglas se ejecutan y sus ajustes por regla) se configuran en su propia pestaña, en Este proyecto → Complementos."
],
@@ -2621,6 +2651,7 @@
"Y_kL7X": ["Personaliza el aspecto y el comportamiento del editor."],
"Ya3PlJ": ["Se requiere permiso"],
"YaeyFh": ["El pull puede sobrescribir ediciones sin confirmar en tus archivos locales."],
+ "Yb82LN": ["ID: ", ["0"]],
"Yea-K5": ["Restaurar hasta este punto"],
"Yi0VMG": ["Subir ", ["keyName"]],
"YjMLg2": [
@@ -2707,6 +2738,7 @@
"ZYtq3m": [
"Conecta a este proyecto concreto las herramientas de IA que usas. Estos archivos viven en la carpeta del proyecto, así que quien lo abra tendrá la misma configuración."
],
+ "Z_nNa2": ["Ponle nombre a tu tema"],
"ZatAO_": ["No se pudo activar la vista previa de enlaces — ", ["detail"]],
"Zf0w-R": [
"Lleva un texto de una idea en bruto a un borrador terminado y luego a algo listo para compartir. Va bien para entradas de blog, ensayos o cualquier cosa que quieras mover por etapas claras."
@@ -2746,11 +2778,13 @@
["currentLabel"],
"</1>."
],
+ "_DwR-n": ["Creando…"],
"_FLBbi": [["sizeText"], " · secretos ocultos · volcado de fallo sin ocultar"],
"_GRWOJ": ["¿Cambiar el proveedor de embeddings?"],
"_HgF9q": ["Ordenar por"],
"_IGfXZ": ["La última vez OpenKnowledge se cerró de forma inesperada."],
"_IX_7x": ["Otro"],
+ "_IfSZn": ["Ya existe un tema guardado con este nombre."],
"_JOGC0": ["Enviar comentarios…"],
"_LczaQ": ["Denegado — ", ["optionName"]],
"_NWEid": ["Busca archivos de esquema por ruta"],
@@ -2889,7 +2923,6 @@
"b6Fgpe": ["Cada paquete prepara tu proyecto con carpetas y plantillas ya hechas."],
"bBE5tC": ["Detectado en este equipo"],
"bBcFK_": ["Abrir el selector de emojis de ", ["keyName"]],
- "bD2SLZ": ["Esquema copiado como YAML base16"],
"bD8I7O": ["Completo"],
"bEp7UY": ["Sin conexión con el puente de escritorio"],
"bF22t6": ["Quitar el campo ", ["field"]],
@@ -2961,6 +2994,7 @@
"cIptmH": ["En la aplicación Claude Desktop"],
"cKjLuT": ["(proyecto + usuario)"],
"cLP0Lf": ["Origen remoto de habilidades"],
+ "cLn264": ["No se pudo leer este archivo de tema"],
"cMMb6H": [
"Se instalaron ",
["imported"],
@@ -2991,6 +3025,7 @@
"cUk6TF": [
"Falló la sincronización: consulta los registros del servidor para ver los detalles."
],
+ "cUt8yN": ["Los cambios se guardan automáticamente."],
"cV7LOw": ["Wiki del equipo"],
"cVKnqL": ["No se pudieron leer los comentarios pendientes de envío: ", ["0"]],
"cZGNlb": ["Añadir otro patrón"],
@@ -3028,6 +3063,7 @@
"cstC0z": ["Patrón (regex)"],
"ct2kv5": ["No hay encabezados en ", ["pageTarget"]],
"cuA8QW": ["Organizar las especificaciones"],
+ "cuHhjo": ["Crear y editar"],
"d-GtJt": ["Ver en el Markdown de origen"],
"d1JjXo": [
"Tu copia local de la rama <0>",
@@ -3167,6 +3203,7 @@
}
]
],
+ "ekSPiP": [["0"], " ya se eliminó."],
"el2KyL": [
"Slidev encontrado en este proyecto. Las presentaciones usarán la versión del proyecto."
],
@@ -3251,6 +3288,7 @@
"fwrPh4": ["Escribe un correo válido."],
"fxJk_6": ["<0>¿Tienes algo más que añadir?</0> Escribe a <1/> y menciona tu referencia."],
"fxbCNQ": ["Sincronizado. El enlace está al día."],
+ "g12y1g": ["YAML no válido"],
"g1ZTh_": [
[
"count",
@@ -3360,7 +3398,6 @@
"Este documento todavía no se ha sincronizado con GitHub. El enlace funcionará tras la próxima sincronización."
],
"gyHDWC": ["Arreglarlo todo con IA (", ["count"], ")"],
- "gyWc8_": ["Acentos"],
"h-AdvS": ["Las carpetas y las plantillas ya están aquí, así que no hay nada que añadir."],
"h06R3C": ["No hay páginas sin enlaces salientes en el grafo."],
"h16FyT": ["Listas"],
@@ -3382,6 +3419,7 @@
"hDEaQu": ["Conecta OpenKnowledge con las demás herramientas que usas."],
"hDKtoF": ["hace ", ["diffHrs"], " h"],
"hDoLrm": ["Quitar ", ["projectName"], " de los proyectos recientes"],
+ "hFmYGU": ["No se admiten archivos de tema vinculados"],
"hGmuTc": ["Documentos etiquetados con #", ["tagDocsName"]],
"hHMv6l": ["Eliminar el bloque"],
"hHR0tt": ["Nuevo chat con ", ["0"]],
@@ -3395,6 +3433,9 @@
"hSBIG-": ["Un título, una descripción, etiquetas: cualquier cosa que describa esta carpeta."],
"hSySVc": ["Falló el traspaso de la instalación: ", ["msg"]],
"hVAkI8": ["Ejecutar en la terminal"],
+ "hVzt9x": [
+ "No se pudieron cargar los temas guardados. Se sigue mostrando la última lista de temas disponible."
+ ],
"hXUWyd": ["El valor es obligatorio"],
"hXbSxc": ["Recurso: ", ["title"]],
"hY8pka": ["Seleccionar la aparición siguiente"],
@@ -3404,6 +3445,7 @@
"haHgQj": ["Ruta relativa copiada"],
"habOU_": ["No se pudo actualizar el ajuste de aprobación automática — ", ["detail"]],
"he3ygx": ["Copiar"],
+ "hgF0al": ["Usar ", ["0"], " para el modo claro activo"],
"hgtsat": ["No se pudo eliminar ", ["file"]],
"hh4mVC": ["Pedir a la IA que arregle ", ["flatId"]],
"hhI__i": ["¿Seguro que quieres eliminar «", ["name"], "» y su contenido?"],
@@ -3660,6 +3702,7 @@
"k_pade": [
"La configuración ahora se comparte. Haz commit de los archivos OK para compartirla con tu equipo."
],
+ "k_tFzX": ["Falta el nombre del tema"],
"k_yIIc": ["Se creará en: <0>", ["targetPreview"], "</0>"],
"ka6Eke": ["Abrir el archivo en el disco"],
"kdzzOK": [
@@ -3675,6 +3718,7 @@
],
"kj9pAE": ["Creando la página"],
"kknhfj": ["Sin cambios"],
+ "kkux8f": ["No se pudo eliminar ", ["0"], ". Inténtalo de nuevo."],
"klPS-L": ["Archivo original, antes de las ediciones de este agente."],
"kmKqZg": ["Grupos"],
"knjOzA": ["Valor de la etiqueta"],
@@ -3690,6 +3734,7 @@
"kwLcuN": [
"Da a las herramientas de IA que usas acceso para leer y actualizar tus proyectos. Elige abajo qué configurar; puedes cambiarlo cuando quieras en Ajustes > Herramientas de IA y CLI."
],
+ "kwNS82": ["Este tema no se puede usar hasta que se corrija el archivo."],
"ky9Tuc": ["Editar el código de ", ["0"]],
"kzpkcn": ["No se pudo guardar esa edición."],
"l-4nnw": ["Buscar reglas"],
@@ -3735,6 +3780,7 @@
"Una ruta dentro de la habilidad; cualquier carpeta sirve (p. ej. references/notes.md). Las carpetas de la ruta se crean automáticamente."
],
"lPzyrU": ["Todos los fragmentos resueltos"],
+ "lS83Sg": ["No se pudo acceder al portapapeles."],
"lScd1O": [
"Las presentaciones de Slidev solo se abren en la aplicación de escritorio de OpenKnowledge."
],
@@ -3905,6 +3951,7 @@
"nNYV3Y": ["y ", ["remaining"], " más"],
"nOEDQs": ["No se pudo actualizar el modo de sincronización — ", ["detail"]],
"nP-KFo": ["Nuevo chat de ", ["0"]],
+ "nTM8ab": ["Ponle un nombre antes de editar sus colores."],
"nTwL53": ["Abre un documento para compartir su URL."],
"nUNZL4": ["Preguntar a ", ["0"]],
"nWv1ja": ["Gestiona los archivos ocultos en Ajustes → Patrones de exclusión."],
@@ -3952,6 +3999,7 @@
"No has definido tu identidad de git: los commits usan un autor por defecto. Define la tuya para que tus compañeros vean tu nombre."
],
"nrXDdR": ["Nombre del campo"],
+ "nsM-_m": ["Explorar cientos de temas"],
"nsUDL8": [["0"], " de ", ["1"], " proyectos seleccionados"],
"nskygk": ["Elegir agente"],
"nwtY4N": ["Algo salió mal"],
@@ -3992,6 +4040,7 @@
"oYepHb": [
"La terminal está desactivada en este proyecto. Vuelve a activarla para ejecutar comandos aquí."
],
+ "oZUYMv": ["No se pudo restaurar ", ["0"], ". Ese nombre ya está en uso."],
"of3tF-": [
"Elegiste ~/Documents. OpenKnowledge indexará todos los archivos markdown que haya debajo. Si solo quieres gestionar una subcarpeta, elige un alcance más pequeño."
],
@@ -4024,6 +4073,7 @@
["0"],
"; algo ajeno a OK lo ha cambiado desde entonces. El estado que se muestra es el que hay ahora en el disco; tu próximo Enlazar/Desenlazar manda."
],
+ "p7Utw8": ["No es un tema base16"],
"p98xmP": ["Se aplica a"],
"p9sdCy": ["Patrón de exclusión nuevo"],
"pA16WG": ["Este proyecto no tiene ningún remoto de GitHub."],
@@ -4123,6 +4173,7 @@
"qNOgUu": [
"Las ediciones hechas en el origen llegan aquí: sin desviaciones por copiar y pegar."
],
+ "qQi_um": ["Tema importado."],
"qRZh7J": ["Permitir que el tabulador salga del editor de código en lugar de sangrar."],
"qSKu2v": ["Navegación y selección en el código"],
"qSxaOz": ["Aceptar su eliminación"],
@@ -4177,6 +4228,7 @@
"qo4zCg": ["La ruta no puede contener barras invertidas"],
"qpQwGC": ["Describe en qué estás trabajando y el agente te lo prepara."],
"qribBG": ["esquema ", ["deleteTarget"]],
+ "qtnmEX": ["Introduce un nombre de tema válido."],
"qvWGzP": ["Contraer todo"],
"qyLmWw": ["Panel de búsqueda del editor de código"],
"r-OJYm": ["Escribe un nombre de rama válido (sin espacios, sin punto inicial, sin \"..\")."],
@@ -4202,6 +4254,7 @@
"rFmBG3": ["Tema de color"],
"rFw02Q": ["Subiendo ", ["keyName"]],
"rJVoVX": ["Resultados de búsqueda en el código"],
+ "rJm8-2": ["No se pudo acceder al portapapeles — el tema está en el cuadro de abajo."],
"rNifQd": ["Quitar la propiedad"],
"rQAQus": ["No se pudo guardar la plantilla: ", ["error"]],
"rQRrkB": ["ayer"],
@@ -4278,7 +4331,6 @@
"sJK6pq": ["Permiso denegado"],
"sJWhgo": ["Componente desconocido: ", ["unregisteredComponentName"]],
"sKEgGd": ["Enviar al chat"],
- "sKMhJz": ["De fondo a primer plano"],
"sLcbHt": [
"Enlaza otra carpeta dentro de una de estas para que ambos agentes lean las mismas habilidades; desenlaza para volver a gestionar las habilidades de una carpeta una a una."
],
@@ -4473,6 +4525,7 @@
"ur2XSb": ["Editor visual"],
"uuoHOU": ["El comando falló."],
"uyJsf6": ["Acerca de"],
+ "uyOQ4e": ["Tema copiado como YAML base16"],
"uynXup": [["tokens", "plural", { "one": ["token"], "many": ["tokens"], "other": ["tokens"] }]],
"v-h2hx": ["Eliminar ", ["targetGitPath"]],
"v2ZW0K": ["Activar la terminal"],
@@ -4610,6 +4663,7 @@
],
"wZPUJx": ["«", ["0"], "»"],
"w_Sphq": ["Adjuntos"],
+ "wbMbiY": ["Se copió ", ["selectedSlot"]],
"wbpoGe": ["No se pudo instalar la habilidad de OpenKnowledge: ", ["message"]],
"wbv9xO": ["Crear proyecto"],
"wc54KE": ["Probándolo…"],
@@ -4832,6 +4886,7 @@
"zL0LPh": ["Global fuera de los campos de texto"],
"zLGXna": ["No hay paquetes iniciales disponibles."],
"zLak8b": ["Activar pestaña nueva"],
+ "zMmwh4": ["Elige un tema o crea el tuyo."],
"zQBg2C": ["Sube o baja una posición el bloque actual."],
"zXj1rA": ["Buscar por significado"],
"zYp8Sr": [
diff --git a/packages/app/src/locales/es/messages.po b/packages/app/src/locales/es/messages.po
index f7db8141f..9ea4e8c07 100644
--- a/packages/app/src/locales/es/messages.po
+++ b/packages/app/src/locales/es/messages.po
@@ -332,6 +332,11 @@ msgstr "{0} en total"
msgid "{0} version {1}"
msgstr "{0} versión {1}"
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "{0} was already deleted."
+msgstr "{0} ya se eliminó."
+
#. placeholder {0}: activeData.label
#: src/components/EditorWorkspace.tsx
msgid "{0} was not moved."
@@ -777,6 +782,11 @@ msgstr "{sizeText} · secretos ocultos · volcado de fallo sin ocultar"
msgid "{skillCount, plural, one {skill} other {skills}}"
msgstr "{skillCount, plural, one {habilidad} many {habilidades} other {habilidades}}"
+#. placeholder {0}: BASE16_SLOT_ROLES[slot]
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "{slot} color — {0}"
+msgstr "Color de {slot} — {0}"
+
#: src/components/settings/CustomThemeEditor.tsx
msgid "{slot} hex value"
msgstr "Valor hexadecimal de {slot}"
@@ -1044,6 +1054,10 @@ msgstr "una herramienta de git necesaria"
msgid "A reusable starting point for new documents in this folder."
msgstr "Un punto de partida reutilizable para los documentos nuevos de esta carpeta."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "A saved theme already uses this name."
+msgstr "Ya existe un tema guardado con este nombre."
+
#: src/components/TemplateForm.tsx
msgid "A short line shown under the title in the template list."
msgstr "Una línea breve que aparece bajo el título en la lista de plantillas."
@@ -1100,10 +1114,6 @@ msgstr "Arriba"
msgid "absent"
msgstr "ausente"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Accents"
-msgstr "Acentos"
-
#: src/components/DiffView.tsx
msgid "Accept"
msgstr "Aceptar"
@@ -1783,10 +1793,6 @@ msgstr "Atrás"
msgid "Back to document view"
msgstr "Volver a la vista de documento"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Background to foreground"
-msgstr "De fondo a primer plano"
-
#: src/components/LinksPanel.tsx
msgid "Backlinks"
msgstr "Retroenlaces"
@@ -1931,8 +1937,8 @@ msgid "Browse folder"
msgstr "Elegir carpeta"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Browse hundreds of schemes"
-msgstr "Explora cientos de esquemas"
+msgid "Browse hundreds of themes"
+msgstr "Explorar cientos de temas"
#: src/components/ImportSkillDialog.tsx
msgid "Browse or upload a skill for this project."
@@ -2051,6 +2057,7 @@ msgstr "No se puede compartir esta ruta."
#: src/components/ReportBugDialogBody.tsx
#: src/components/SeedDialog.tsx
#: src/components/settings/LinkPreviewsSection.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/settings/SearchSection.tsx
#: src/components/ShareBranchSwitchDialog.tsx
#: src/components/ShareReceiveDialog.tsx
@@ -2106,6 +2113,18 @@ msgstr "modificado fuera"
msgid "Changed outside OK since it last wrote here — the state shown is what's on disk now"
msgstr "Se modificó fuera de OK desde la última vez que escribió aquí; el estado que se muestra es el que hay ahora en el disco"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes save automatically to this theme."
+msgstr "Los cambios se guardan automáticamente en este tema."
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes save automatically."
+msgstr "Los cambios se guardan automáticamente."
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes saved automatically."
+msgstr "Los cambios se guardaron automáticamente."
+
#: src/components/command-palette-commands.ts
msgid "Check for updates"
msgstr "Buscar actualizaciones"
@@ -2703,6 +2722,11 @@ msgstr "Conflicto"
msgid "Conflicted files"
msgstr "Archivos en conflicto"
+#. placeholder {0}: warning.conflictingFilenames.join(', ')
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Conflicting files: {0}."
+msgstr "Archivos en conflicto: {0}."
+
#: src/components/ConflictsSection.tsx
msgid "Conflicts"
msgstr "Conflictos"
@@ -2895,6 +2919,10 @@ msgstr "Convirtiendo..."
msgid "Copied"
msgstr "Copiado"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Copied {selectedSlot}"
+msgstr "Se copió {selectedSlot}"
+
#: src/components/EditorTabTargetMenuItems.tsx
#: src/components/FileSidebar.tsx
#: src/components/FileTree.tsx
@@ -2932,6 +2960,7 @@ msgstr "copiar"
#: src/components/CopyButton.tsx
#: src/components/empty-state/CopyablePromptList.tsx
#: src/components/InstallInClaudeDesktopDialog.tsx
+#: src/components/settings/CustomThemeEditor.tsx
#: src/lib/native-menu-catalog.ts
msgid "Copy"
msgstr "Copiar"
@@ -3216,6 +3245,15 @@ msgstr "No se pudo crear el informe"
msgid "Couldn't create the worktree. Try a different name."
msgstr "No se pudo crear el worktree. Prueba con otro nombre."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t create this theme. Try again."
+msgstr "No se pudo crear este tema. Inténtalo de nuevo."
+
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t delete {0}. Try again."
+msgstr "No se pudo eliminar {0}. Inténtalo de nuevo."
+
#. placeholder {0}: result.error
#: src/components/SkillFileDeleteDialog.tsx
msgid "Couldn't delete file: {0}"
@@ -3233,6 +3271,10 @@ msgstr "No se pudo eliminar la plantilla: {error}"
msgid "Couldn't delete that comment."
msgstr "No se pudo eliminar ese comentario."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t delete this theme. Refresh and try again."
+msgstr "No se pudo eliminar este tema. Actualiza e inténtalo de nuevo."
+
#: src/components/settings/AccountSection.tsx
msgid "Couldn't disconnect — please try again."
msgstr "No se pudo desconectar; inténtalo de nuevo."
@@ -3396,8 +3438,12 @@ msgid "Couldn't reach the agent registry."
msgstr "No se pudo contactar con el registro de agentes."
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Couldn’t reach the clipboard — the scheme is in the box below."
-msgstr "No se pudo acceder al portapapeles; el esquema está en el cuadro de abajo."
+msgid "Couldn’t reach the clipboard — the theme is in the box below."
+msgstr "No se pudo acceder al portapapeles — el tema está en el cuadro de abajo."
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Couldn’t reach the clipboard."
+msgstr "No se pudo acceder al portapapeles."
#: src/components/CommandPalette.tsx
msgid "Couldn't reach the embeddings provider — retry"
@@ -3424,6 +3470,11 @@ msgstr "No se pudieron leer los comentarios pendientes de envío; no se envió n
msgid "Couldn't read the comments waiting to send: {0}"
msgstr "No se pudieron leer los comentarios pendientes de envío: {0}"
+#. placeholder {0}: warning.code
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t read this theme ({0})"
+msgstr "No se pudo leer este tema ({0})"
+
#: src/components/EditorActivityPool.tsx
msgid "Couldn't reconnect after server restart"
msgstr "No se pudo reconectar tras el reinicio del servidor"
@@ -3472,6 +3523,16 @@ msgstr "No se pudo reiniciar el servidor automáticamente. Prueba a ejecutar `ok
msgid "Couldn't restart the server. Try `ok start` in this folder."
msgstr "No se pudo reiniciar el servidor. Prueba `ok start` en esta carpeta."
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t restore {0}. That name is already in use."
+msgstr "No se pudo restaurar {0}. Ese nombre ya está en uso."
+
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t restore {0}. Try again."
+msgstr "No se pudo restaurar {0}. Inténtalo de nuevo."
+
#. placeholder {0}: resumeError.message
#: src/components/acp/ThreadView.tsx
msgid "Couldn't resume this chat: {0}"
@@ -3481,6 +3542,10 @@ msgstr "No se pudo reanudar este chat: {0}"
msgid "Couldn't run the test. Check that OpenKnowledge is still running."
msgstr "No se pudo ejecutar la prueba. Comprueba que OpenKnowledge siga en marcha."
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Couldn’t save changes. Try editing a color again."
+msgstr "No se pudieron guardar los cambios. Intenta editar un color de nuevo."
+
#: src/components/TemplateForm.tsx
msgid "Couldn't save template: {error}"
msgstr "No se pudo guardar la plantilla: {error}"
@@ -3599,6 +3664,10 @@ msgstr "Volcado de fallo"
msgid "Create"
msgstr "Crear"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Create & edit"
+msgstr "Crear y editar"
+
#: src/components/TemplateRow.tsx
msgid "Create a document from {label}"
msgstr "Crear un documento a partir de {label}"
@@ -3670,6 +3739,10 @@ msgstr "Crear proyecto"
msgid "Create new tag #{tagValue}"
msgstr "Crear la etiqueta nueva #{tagValue}"
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Create new theme"
+msgstr "Crear tema nuevo"
+
#: src/components/GraphPanel.tsx
#: src/components/ProblemsPanel.tsx
#: src/editor/extensions/InternalLinkPropPanel.tsx
@@ -3768,6 +3841,10 @@ msgstr "Creando la página: {linkTitle}."
msgid "Creating..."
msgstr "Creando..."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Creating…"
+msgstr "Creando…"
+
#: src/components/RecentProjectsMenu.tsx
msgid "Current"
msgstr "Actual"
@@ -3840,8 +3917,10 @@ msgstr "Por defecto: <0>{0}</0>"
msgid "Delete"
msgstr "Eliminar"
+#. placeholder {0}: theme.label
#. placeholder {0}: thread.title
#: src/components/acp/ThreadHistoryMenu.tsx
+#: src/components/settings/ColorThemePicker.tsx
msgid "Delete {0}"
msgstr "Eliminar {0}"
@@ -3921,6 +4000,11 @@ msgstr "¿Eliminar este chat?"
msgid "Delete this comment"
msgstr "Eliminar este comentario"
+#. placeholder {0}: deletedTheme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Deleted {0}."
+msgstr "Se eliminó {0}."
+
#: src/components/settings/LintingSection.tsx
msgid "Deleted {file}"
msgstr "Se eliminó {file}"
@@ -4239,6 +4323,7 @@ msgstr "listo"
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/PublishToGitHubDialog.tsx
#: src/components/ReportBugDialogBody.tsx
+#: src/components/settings/CustomThemeEditor.tsx
#: src/editor/extensions/JsxComponentView.tsx
#: src/editor/extensions/JsxInlineView.tsx
#: src/editor/extensions/MathInlineView.tsx
@@ -4373,6 +4458,11 @@ msgstr "Cada herramienta seleccionada recibe una entrada MCP de OpenKnowledge."
msgid "Edit"
msgstr "Editar"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Edit {0}"
+msgstr "Editar {0}"
+
#. placeholder {0}: descriptor.displayName ?? descriptor.name
#: src/editor/extensions/JsxComponentView.tsx
msgid "Edit {0} source"
@@ -4446,6 +4536,11 @@ msgstr "plantilla editada"
msgid "editing [[{realCurrentDoc}]]"
msgstr "editando [[{realCurrentDoc}]]"
+#. placeholder {0}: scheme.name
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Editing {0}"
+msgstr "Editando {0}"
+
#: src/components/SkillEditBanner.tsx
msgid "Editing {boldName} in place. Changes save straight to your editor's copy."
msgstr "Editando {boldName} en su sitio. Los cambios se guardan directamente en la copia de tu editor."
@@ -4475,8 +4570,12 @@ msgid "Editor status bar"
msgstr "Barra de estado del editor"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Edits apply live. Light or dark comes from the scheme."
-msgstr "Los cambios se aplican en vivo. El modo claro u oscuro viene del esquema."
+msgid "Edits apply live and save automatically to this theme."
+msgstr "Los cambios se aplican al instante y se guardan automáticamente en este tema."
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Edits apply live. Light or dark comes from the theme."
+msgstr "Los cambios se aplican al instante. El tema determina si es claro u oscuro."
#: src/editor/slash-command/component-items.tsx
msgid "Edits at the source land here — no copy-paste drift."
@@ -4647,6 +4746,10 @@ msgstr "Escribe un valor hexadecimal de 6 dígitos, como #1A2B3C"
msgid "Enter a folder name (e.g. brain)."
msgstr "Escribe un nombre de carpeta (p. ej. cerebro)."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Enter a name for this theme."
+msgstr "Introduce un nombre para este tema."
+
#: src/components/CreateProjectDialog.tsx
msgid "Enter a project name"
msgstr "Escribe un nombre de proyecto"
@@ -4663,6 +4766,10 @@ msgstr "Escribe un título para esta plantilla."
msgid "Enter a valid branch name (no spaces, no leading dot, no \"..\")."
msgstr "Escribe un nombre de rama válido (sin espacios, sin punto inicial, sin \"..\")."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Enter a valid theme name."
+msgstr "Introduce un nombre de tema válido."
+
#: src/components/settings/SearchSection.tsx
msgid "Enter a valid URL (for example https://api.openai.com/v1)."
msgstr "Escribe una URL válida (por ejemplo https://api.openai.com/v1)."
@@ -5555,6 +5662,10 @@ msgstr "Falta la sesión de GitHub o ha caducado. Vuelve a conectarte para reanu
msgid "GitHub, a git URL, or a local path."
msgstr "GitHub, una URL de git o una ruta local."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Give it a name before editing its colors."
+msgstr "Ponle un nombre antes de editar sus colores."
+
#: src/components/settings/AiToolsSection.tsx
msgid "Give the AI tools you use access to read and update your projects. Checking a box sets it up right away; unchecking removes it."
msgstr "Da a las herramientas de IA que usas acceso para leer y actualizar tus proyectos. Al marcar una casilla se configura al momento; al desmarcarla se quita."
@@ -5734,6 +5845,11 @@ msgstr "Carpeta “{basename}” oculta"
msgid "Hide"
msgstr "Ocultar"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Hide {0} editor"
+msgstr "Ocultar editor de {0}"
+
#: src/lib/native-menu-catalog.ts
msgid "Hide {appName}"
msgstr "Ocultar {appName}"
@@ -5939,6 +6055,11 @@ msgstr "Me paso a otra herramienta"
msgid "Icon picker"
msgstr "Selector de iconos"
+#. placeholder {0}: createIdentity.stem
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "ID: {0}"
+msgstr "ID: {0}"
+
#: src/components/AutoSyncEnableWarning.tsx
msgid "If an update arrives for something you are editing, you choose which version to keep, like a merge conflict."
msgstr "Si llega una actualización de algo que estás editando, tú eliges qué versión conservar, como en un conflicto de fusión."
@@ -5974,10 +6095,6 @@ msgstr "Importar como plantilla"
msgid "Import failed: {0}"
msgstr "Falló la importación: {0}"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Import scheme"
-msgstr "Importar esquema"
-
#. placeholder {0}: result.name
#: src/lib/skill-import-toast.ts
msgid "Imported \"{0}\"."
@@ -6319,6 +6436,10 @@ msgstr "Instrucción para la IA"
msgid "Integrations"
msgstr "Integraciones"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Invalid color value"
+msgstr "Valor de color no válido"
+
#: src/components/CreateProjectDialog.tsx
msgid "Invalid input — pick a different folder."
msgstr "Entrada no válida: elige otra carpeta."
@@ -6339,6 +6460,10 @@ msgstr "La estructura de la respuesta del servidor no es válida"
msgid "Invalid share URL."
msgstr "URL para compartir no válida."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Invalid YAML"
+msgstr "YAML no válido"
+
#: src/uninstall/UninstallSurveyScreen.tsx
msgid "It didn't fit into my workflow"
msgstr "No encajaba en mi forma de trabajar"
@@ -6572,6 +6697,10 @@ msgstr "URL del enlace"
msgid "Link-graph response did not match expected shape."
msgstr "La respuesta del grafo de enlaces no tenía la forma esperada."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Linked theme files aren’t supported"
+msgstr "No se admiten archivos de tema vinculados"
+
#: src/components/DocPanel.tsx
msgid "Links"
msgstr "Enlaces"
@@ -6947,6 +7076,14 @@ msgstr "Página inexistente: haz clic para crearla"
msgid "Missing page: {linkTitle}. Click to create."
msgstr "Página inexistente: {linkTitle}. Haz clic para crearla."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Missing palette colors"
+msgstr "Faltan colores de la paleta"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Missing theme name"
+msgstr "Falta el nombre del tema"
+
#: src/components/SyncStatusBadge.tsx
msgid "Mode"
msgstr "Modo"
@@ -7144,6 +7281,10 @@ msgstr "Rumiando…"
msgid "Multi-page PDF viewer with toolbar controls (thumbnails, page nav, zoom)."
msgstr "Visor de PDF de varias páginas con controles en la barra de herramientas (miniaturas, navegación de páginas, zoom)."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Multiple files use this theme name"
+msgstr "Varios archivos usan este nombre de tema"
+
#: src/components/acp/working-status.ts
msgid "Musing…"
msgstr "Cavilando…"
@@ -7186,6 +7327,10 @@ msgstr "El nombre no puede estar vacío"
msgid "Name is required"
msgstr "El nombre es obligatorio"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Name your theme"
+msgstr "Ponle nombre a tu tema"
+
#: src/lib/keyboard-shortcuts.ts
msgid "Navigate CodeMirror source search results or dismiss the search panel."
msgstr "Recorre los resultados de búsqueda de CodeMirror o cierra el panel de búsqueda."
@@ -7742,6 +7887,10 @@ msgstr "Ninguno de estos problemas tiene arreglo automático."
msgid "None of these problems have an automatic fix. Try Fix all with AI."
msgstr "Ninguno de estos problemas tiene arreglo automático. Prueba Arreglarlo todo con IA."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Not a base16 theme"
+msgstr "No es un tema base16"
+
#: src/components/acp/ThreadView.tsx
msgid "Not answered"
msgstr "Sin responder"
@@ -8642,8 +8791,8 @@ msgid "Paste"
msgstr "Pegar"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Paste a base16 scheme"
-msgstr "Pega un esquema base16"
+msgid "Paste a base16 theme"
+msgstr "Pega un tema base16"
#: src/components/AuthModal.tsx
msgid "Paste a personal access token for <0>{host}</0>."
@@ -8766,10 +8915,6 @@ msgstr "Personal de este dispositivo: se guarda en tu configuración de usuario
msgid "Pick <0>openknowledge.skill</0> from your <1>Downloads</1> folder. It enables automatically."
msgstr "Elige <0>openknowledge.skill</0> en tu carpeta <1>Descargas</1>. Se activa automáticamente."
-#: src/components/settings/ThemePluginSection.tsx
-msgid "Pick a built-in IDE color palette, or define your own."
-msgstr "Elige una paleta de colores de IDE integrada o define la tuya."
-
#: src/components/settings/SkillTargetsPicker.tsx
msgid "Pick a folder to merge INTO {display}. That folder becomes a symlink to this one, so its agent reads everything placed here. This folder stays real. Conflicting skills abort the merge."
msgstr "Elige una carpeta para fusionarla DENTRO de {display}. Esa carpeta se convierte en un enlace simbólico a esta, así que su agente lee todo lo que pongas aquí. Esta carpeta sigue siendo real. Si hay habilidades en conflicto, la fusión se cancela."
@@ -8782,6 +8927,10 @@ msgstr "Elige un nombre"
msgid "Pick a palette for light mode and one for dark mode. The theme setting in Preferences chooses between them — on “System”, so does your OS."
msgstr "Elige una paleta para el modo claro y otra para el oscuro. El ajuste de tema en Preferencias elige entre ambas; en “Sistema”, lo hace tu SO."
+#: src/components/settings/ThemePluginSection.tsx
+msgid "Pick a theme or create your own."
+msgstr "Elige un tema o crea el tuyo."
+
#: src/editor/slash-command/items.tsx
msgid "Pick an emoji to insert at the cursor."
msgstr "Elige un emoji para insertarlo en el cursor."
@@ -8888,8 +9037,8 @@ msgid "Press Space to pick up a tab. Use the arrow keys to move it within a tab
msgstr "Pulsa Espacio para tomar una pestaña. Usa las teclas de flecha para moverla dentro de la tira de pestañas y luego pulsa Espacio o Intro para soltarla. Pulsa Mayús+F10 o la tecla Menú para abrir el menú contextual de la pestaña, con las acciones de dividir, cerrar, fijar y otras."
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Press the sun or moon on “Custom” above to use this scheme."
-msgstr "Pulsa el sol o la luna en “Personalizado”, arriba, para usar este esquema."
+msgid "Press the sun or moon on “Custom” above to use this theme."
+msgstr "Pulsa el sol o la luna de “Custom” arriba para usar este tema."
#: src/components/PublishToGitHubDialog.tsx
msgid "Preview browsers can't auto-copy. Use Cmd/Ctrl+C on the URL above, or open OK in the desktop app."
@@ -9789,6 +9938,11 @@ msgstr "¿Restaurar hasta esta versión?"
msgid "Restore with remote changes"
msgstr "Restaurar con los cambios remotos"
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Restored {0}."
+msgstr "Se restauró {0}."
+
#. placeholder {0}: descriptor.targetSha7
#: src/components/TimelinePanel.tsx
msgid "Restored an earlier version ({0})"
@@ -9994,6 +10148,10 @@ msgstr "Guardado en la carpeta de habilidades de este proyecto (p. ej. <0>.agent
msgid "Saved into your global skills folder (e.g. <0>~/.agents/skills</0>)."
msgstr "Guardado en tu carpeta global de habilidades (p. ej. <0>~/.agents/skills</0>)."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Saved themes couldn’t load. The last available theme list is still shown."
+msgstr "No se pudieron cargar los temas guardados. Se sigue mostrando la última lista de temas disponible."
+
#: src/components/SkillProperties.tsx
msgid "Saved to"
msgstr "Guardado en"
@@ -10011,6 +10169,10 @@ msgstr "Guarda el archivo en <0>~/Downloads/openknowledge.skill</0> y abre la ap
msgid "Saving"
msgstr "Guardando"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Saving changes…"
+msgstr "Guardando cambios…"
+
#: src/components/settings/LintingSection.tsx
msgid "schema {deleteTarget}"
msgstr "esquema {deleteTarget}"
@@ -10019,10 +10181,6 @@ msgstr "esquema {deleteTarget}"
msgid "Schema fields"
msgstr "Campos del esquema"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Scheme copied as base16 YAML"
-msgstr "Esquema copiado como YAML base16"
-
#: src/components/ImportSkillForm.tsx
#: src/components/PanelScopeHeader.tsx
msgid "Scope"
@@ -10212,6 +10370,11 @@ msgstr "Ver los {0} paquetes iniciales"
msgid "See the full install guide"
msgstr "Ver la guía de instalación completa"
+#. placeholder {0}: BASE16_SLOT_ROLES[slot]
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Select {slot} — {0}"
+msgstr "Seleccionar {slot} — {0}"
+
#: src/components/FrontmatterRow.tsx
msgid "Select a value"
msgstr "Selecciona un valor"
@@ -10923,6 +11086,10 @@ msgstr "Slidev tardó demasiado en iniciarse. Inténtalo de nuevo."
msgid "Small section heading."
msgstr "Encabezado de sección pequeño."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Some saved themes aren’t shown because the theme folder exceeds the scan limit."
+msgstr "Algunos temas guardados no se muestran porque la carpeta de temas supera el límite de análisis."
+
#: src/components/FeedbackForm.tsx
msgid "Something broke"
msgstr "Algo se rompió"
@@ -11843,6 +12010,30 @@ msgstr "El token necesita los ámbitos repo y read:user."
msgid "Theme"
msgstr "Tema"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme colors"
+msgstr "Colores del tema"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme copied as base16 YAML"
+msgstr "Tema copiado como YAML base16"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme imported."
+msgstr "Tema importado."
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name"
+msgstr "Nombre del tema"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name has unsupported characters"
+msgstr "El nombre del tema contiene caracteres no admitidos"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name is too long"
+msgstr "El nombre del tema es demasiado largo"
+
#: src/components/settings/ThemePreviewCanvas.tsx
msgid "Theme preview"
msgstr "Vista previa del tema"
@@ -12037,6 +12228,10 @@ msgstr "Esto es una vista previa de {boldName}, detectada en {boldHarness} en el
msgid "This is a preview of {boldName}. Install it into your agents."
msgstr "Esto es una vista previa de {boldName}. Instálala en tus agentes."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This isn’t a regular theme file"
+msgstr "Este no es un archivo de tema normal"
+
#: src/components/SlidesToolbarControls.tsx
msgid "This isn't a supported version of Slidev."
msgstr "Esta no es una versión compatible de Slidev."
@@ -12198,6 +12393,18 @@ msgstr "Este origen incluye varias habilidades: elige cuál importar."
msgid "This template lives in a parent folder — deleting it affects every folder beneath it that doesn't define its own version."
msgstr "Esta plantilla vive en una carpeta superior: eliminarla afecta a todas las carpetas por debajo que no definan su propia versión."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme can’t be used until the file is fixed."
+msgstr "Este tema no se puede usar hasta que se corrija el archivo."
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme file couldn’t be read"
+msgstr "No se pudo leer este archivo de tema"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme file is too large"
+msgstr "Este archivo de tema es demasiado grande"
+
#: src/components/ShareReceiveDialog.tsx
msgid "This usually means one of:"
msgstr "Esto suele significar una de estas cosas:"
@@ -12371,6 +12578,7 @@ msgstr "Prueba un prompt"
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/ReportBugDialogBody.tsx
#: src/components/settings/AccountSection.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/ShareReceiveDialog.tsx
msgid "Try again"
msgstr "Inténtalo de nuevo"
@@ -12478,6 +12686,7 @@ msgstr "Se deshizo la última edición en {docName}"
#: src/components/ActivityPanelBurstRow.tsx
#: src/components/AppMenubar.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/settings/SharingSection.tsx
#: src/lib/native-menu-catalog.ts
msgid "Undo"
@@ -12745,6 +12954,16 @@ msgstr "Usar {0} como tema oscuro"
msgid "Use {0} as the light theme"
msgstr "Usar {0} como tema claro"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Use {0} for the active dark mode"
+msgstr "Usar {0} para el modo oscuro activo"
+
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Use {0} for the active light mode"
+msgstr "Usar {0} para el modo claro activo"
+
#: src/components/SkillForkDialog.tsx
msgid "Use {editor} version"
msgstr "Usar la versión de {editor}"
@@ -12757,6 +12976,10 @@ msgstr "Usa <0>{copyShortcut}</0> para copiar el enlace de abajo, o abre OK en l
msgid "Use a folder you already have."
msgstr "Usa una carpeta que ya tengas."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Use a lowercase .yaml or .yml extension"
+msgstr "Usa una extensión .yaml o .yml en minúsculas"
+
#: src/components/SkillFileCreateDialog.tsx
#: src/components/SkillFileRenameDialog.tsx
msgid "Use a relative path inside the skill (no .., no spaces; SKILL.md is managed)."
@@ -12941,6 +13164,10 @@ msgstr "Compilaremos <0>openknowledge.skill</0>, lo guardaremos en <1>~/Download
msgid "We'll create a repository and start syncing — no terminal needed."
msgstr "Crearemos un repositorio y empezaremos a sincronizar; no hace falta terminal."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "We’ll create a safe theme ID from this name."
+msgstr "Crearemos un ID de tema seguro a partir de este nombre."
+
#: src/components/ReportBugDialogBody.tsx
msgid "We've filed it with the team and attached your logs."
msgstr "Lo hemos pasado al equipo y hemos adjuntado tus registros."
diff --git a/packages/app/src/locales/fr/messages.json b/packages/app/src/locales/fr/messages.json
index bcdf556c7..9668d0f05 100644
--- a/packages/app/src/locales/fr/messages.json
+++ b/packages/app/src/locales/fr/messages.json
@@ -50,11 +50,13 @@
"Envoyé en privé à l'équipe OpenKnowledge, avec votre note et la version de l'application. Jamais publié publiquement."
],
"-oHckY": ["OpenKnowledge a lu le paramètre ", ["key"]],
+ "-othoN": ["Ce fichier de thème est trop volumineux"],
"-q4abP": [
"Résultats plafonnés — cet espace de travail contient plus de fichiers que la recherche ne peut en indexer. Un fichier absent peut venir de ce plafond, pas d'une faute de frappe."
],
"-slrNR": ["Bascule une liste de tâches."],
"-uaQnI": ["Aucun worktree ni branche correspondant."],
+ "-yOx8u": ["Enregistrement des modifications…"],
"-yPBXI": ["Choisir un fichier"],
"-ySLQJ": ["Git et PR"],
"-zA2E7": ["Impossible de créer le worktree. Essayez un autre nom."],
@@ -122,6 +124,7 @@
"0kTAXe": ["Source : ", ["mirrorSrc"]],
"0pZmTP": ["Impossible de partager ce chemin."],
"0qyKG6": ["Synchronisé depuis le disque"],
+ "0r6d6v": ["Modifications enregistrées automatiquement."],
"0rwwOn": ["Par étiquette"],
"0s8-e8": [
"Sélectionnez, entrez dans ou quittez les composants de bloc et les blocs source de repli depuis les limites clavier."
@@ -132,6 +135,7 @@
"0xnQ_X": ["Les mises à jour arrivent"],
"0xnmlQ": ["Nom du dépôt"],
"0yL--g": ["Examiner les conflits"],
+ "0ySP5u": ["Les modifications sont automatiquement enregistrées dans ce thème."],
"0zAhu6": ["tous les documents"],
"10g8I_": ["Désactiver Fichiers markdown uniquement"],
"11ukmX": ["Échec du renommage : ", ["0"]],
@@ -145,6 +149,7 @@
" ? Cette action est irréversible."
],
"16eIWu": ["Forcer l'arrêt"],
+ "16tSS_": ["Collez un thème base16"],
"170Js2": ["Masquer le panneau"],
"1AumWo": ["Échec du push — consultez les journaux du serveur pour les détails."],
"1CalO6": ["Style"],
@@ -183,6 +188,9 @@
"1njn7W": ["Clair"],
"1nke1r": ["Ouvrir ", ["0"], " sur GitHub (s'ouvre dans un nouvel onglet)"],
"1oSHI0": ["Impossible d'installer ", ["skillName"], " : ", ["0"]],
+ "1qpGKz": [
+ "Impossible d’enregistrer les modifications. Essayez à nouveau de modifier une couleur."
+ ],
"1ruosn": ["OpenKnowledge"],
"1t_NnN": ["Rejeter"],
"1u-mAI": [
@@ -323,9 +331,6 @@
"3l_cXP": [
"Jetez-y un œil si vous le souhaitez. C'est exactement ce fichier que nous recevons."
],
- "3l_knd": [
- "Appuyez sur le soleil ou la lune de « Personnalisé » ci-dessus pour utiliser cette palette."
- ],
"3m2GBo": ["Recherche dans les documents"],
"3mFsc3": ["Restaurer avec les modifications distantes"],
"3nnyi_": [
@@ -385,6 +390,7 @@
"4TzU0n": ["Initialiser"],
"4buZWd": ["Hérité de ", ["path"]],
"4c_a6S": ["Rien de défini pour l'instant."],
+ "4d0VYJ": ["Nous créerons un ID de thème sûr à partir de ce nom."],
"4eO-iB": ["Abandonner ce commentaire"],
"4g19V6": ["Échec de la mise à jour de la propriété"],
"4h3e0H": ["Impossible de mettre à jour le partage des compétences — ", ["detail"], "."],
@@ -544,6 +550,7 @@
"Décrivez ce qu'elle doit faire, ou ajoutez-en une vous-même. OpenKnowledge regroupe vos compétences au même endroit, les versionne, et les installe dans des agents comme Claude, Codex et Cursor."
],
"6MnZEC": ["Échec du chargement du terminal"],
+ "6Nea1q": ["Utiliser ", ["0"], " pour le mode sombre actif"],
"6O626z": ["Aucun titre ne correspond à « ", ["trimmedAnchorQuery"], " »"],
"6Pxqwv": [
"Pas encore de modèles de projet. Créez-en un pour le rendre disponible partout dans ce projet. Les modèles propres à un dossier se trouvent sur la page de synthèse de chaque dossier."
@@ -553,6 +560,7 @@
"6VqW-1": ["Retirer ", ["keyName"]],
"6WdDG7": ["Page"],
"6YBJ3m": ["Demander à l'IA à propos de la sélection"],
+ "6YE0P6": ["Modification de ", ["0"]],
"6YtxFj": ["Nom"],
"6ZhdPI": ["Ce que l'agent peut lire, écrire et faire remonter."],
"6_ZOw4": ["Chemin complet copié"],
@@ -598,6 +606,9 @@
]
],
"6vEr3W": ["Cible du lien"],
+ "6xeZX9": [
+ "Les modifications s’appliquent immédiatement. Le thème détermine le mode clair ou sombre."
+ ],
"6zzhQL": ["Envoyez votre rapport par e-mail"],
"72xhRD": ["Mode d'affichage du diagramme"],
"74-bX-": ["Une citation mise en exergue se détache du texte qui l'entoure."],
@@ -611,13 +622,13 @@
"Valide le frontmatter des documents à l'aide de fichiers JSON Schema, appliqués à des ensembles de documents par glob."
],
"7Bj3x9": ["Échec"],
- "7EmDc7": ["Importer une palette"],
"7FA2iI": ["Impossible de lire les commentaires en attente d'envoi — rien n'a été envoyé."],
"7FamGZ": ["Aller à la ligne"],
"7Fkcej": ["+ Ajouter ", ["addChildName"]],
"7H4UHD": ["Documents étiquetés <0>#", ["tagName"], "</0>"],
"7IsvrP": ["Recherche de mises à jour"],
"7JtSLi": ["Échec de la suppression du chemin"],
+ "7O7REc": ["Impossible de restaurer ", ["0"], ". Réessayez."],
"7OhaRy": ["Recherche dans la source"],
"7Ongq0": ["Condense mon fichier AGENTS.md à moins de 40 000 caractères"],
"7OwvEL": ["Afficher l'aperçu HTML"],
@@ -744,6 +755,8 @@
"8uGMP8": ["Le contenu masqué se place ici."],
"8vCZcs": ["Échec de l'ouverture du fichier."],
"8vETh9": ["Afficher"],
+ "8x6zk9": ["Masquer l’éditeur de ", ["0"]],
+ "9-lMCF": ["Couleur ", ["slot"], " — ", ["0"]],
"90-wKT": ["OpenKnowledge a lu l'historique de ", ["subject"]],
"92rbk2": ["Chargement du miroir <0>", ["mirrorRef"], "</0>"],
"93LBnX": ["Masquer les agents"],
@@ -805,9 +818,6 @@
"9fvog2": ["Aperçu indisponible : ", ["errorDetail"]],
"9i21pa": ["Les commits se font automatiquement"],
"9ieZhu": ["Installé dans ", ["path"], " — cliquez pour retirer"],
- "9j1tqo": [
- "Impossible d'accéder au presse-papiers — la palette se trouve dans le champ ci-dessous."
- ],
"9jnjV0": ["Intègre un fichier audio avec les contrôles natifs du lecteur."],
"9lso1Y": ["Crée le dossier <0>", ["folderPart"], "/</0>"],
"9m4D_h": ["GitHub, une URL git, ou un chemin local."],
@@ -850,6 +860,7 @@
],
"AIn2Yv": ["CLI ", ["displayName"], ", ", ["hint"]],
"AItsE5": ["L'ouvrir là-bas"],
+ "AJ7_B2": ["Créer un thème"],
"AKxFtn": [
[
"openedWorktreeCount",
@@ -858,6 +869,7 @@
]
],
"ALhMYW": ["Terminal"],
+ "ANFxWn": ["Impossible de supprimer ce thème. Actualisez la page et réessayez."],
"APNlbk": ["quitter ", ["0"]],
"AQ-Lfg": ["Impossible de charger les modèles"],
"AQGtjK": [
@@ -1016,9 +1028,13 @@
"C_cPoW": [
"Votre session GitHub a expiré — reconnectez-vous pour vérifier l'accès en écriture."
],
+ "CcaU4i": [
+ "Les modifications s’appliquent immédiatement et sont automatiquement enregistrées dans ce thème."
+ ],
"ChAtFg": ["Vous n'avez pas la permission de pousser vers ce dépôt"],
"ChMshD": ["Quitter ", ["appName"]],
"Ck9XRt": ["Impossible d'enregistrer la clé — veuillez réessayer."],
+ "ClII5l": ["Appuyez sur le soleil ou la lune de « Custom » ci-dessus pour utiliser ce thème."],
"ClTEde": [
"Prépare le passage sélectionné dans le panneau des agents, prêt à être complété et envoyé."
],
@@ -1070,6 +1086,9 @@
"DKYW1G": [
"Ce réglage est propre à chaque machine et n'est pas partagé avec les collaborateurs. Il nécessite une clé API (définie ci-dessous), sauf si votre point de terminaison est un serveur local qui n'en demande pas."
],
+ "DLIljL": [
+ "Certains thèmes enregistrés ne sont pas affichés car le dossier des thèmes dépasse la limite d’analyse."
+ ],
"DMLE5q": ["La réparation automatique de MCP a échoué"],
"DMeaxi": ["Téléchargement de ", ["0"], " ", ["1"], "…"],
"DNkveC": ["Options de colonne"],
@@ -1082,6 +1101,7 @@
"</0>. Vous avez des modifications non validées qui empêchent de changer de branche ici — ouvrez-le dans un worktree pour laisser vos modifications intactes."
],
"DUWgfT": ["Se réauthentifier auprès de GitHub Enterprise Server"],
+ "DUb7Ax": ["Plusieurs fichiers utilisent ce nom de thème"],
"DVh_Tb": ["Échec du nettoyage après la mise à la corbeille"],
"DWJtEo": ["Ce qui se passe ensuite"],
"DXd9LM": ["Nouveau worktree"],
@@ -1100,6 +1120,7 @@
"DhT_PK": ["OpenKnowledge a importé une compétence"],
"DiFKSL": ["Comptage des fichiers markdown"],
"DiZ3pq": ["Sélecteur d'icônes"],
+ "DmkTrb": ["Impossible de créer ce thème. Réessayez."],
"Dnn2XG": ["Automatique"],
"DpjYd6": ["Aller au texte ancré"],
"DrYM2Z": ["Synchronisation désactivée"],
@@ -1286,6 +1307,7 @@
"Explique le fonctionnement de ton code pour que tes coéquipiers et les agents IA s'y retrouvent. Utile pour documenter l'architecture, les grandes parties, et les questions que posent toujours les nouveaux contributeurs."
],
"FyW0WO": ["Autoriser dans le navigateur"],
+ "FyyIjH": ["Le nom du thème est trop long"],
"G-JBA1": [
"Le mode source nécessite une connexion active — vos modifications sont enregistrées et apparaîtront à la reconnexion."
],
@@ -1337,6 +1359,7 @@
"GQDSBN": ["Options de mise en page"],
"GSYWCm": ["Masquer le panneau du document"],
"GUYwCr": ["Ignorer cet avis"],
+ "GUZHkL": ["Des couleurs de la palette sont manquantes"],
"GUqTzn": ["Étude concurrentielle"],
"GXf9hG": ["Clonage de ", ["repoName"], "…"],
"GZzDqc": [
@@ -1424,6 +1447,7 @@
"HTW0Zw": [
"Encore une étape : exécutez <0>claude</0> dans ce projet et approuvez OpenKnowledge une fois."
],
+ "HZ7fEu": ["Nom du thème"],
"HbcQYf": [
"Remplacer le lien symbolique situé dans ",
["display"],
@@ -1484,6 +1508,7 @@
"IFezUv": ["L'audit n'a pas pu être terminé. Réessayez."],
"IInnZo": ["Conflit"],
"IKoTAC": ["Laisser désactivé"],
+ "IMLUBh": ["Valeur de couleur non valide"],
"INp_z6": ["Commenter ce ", ["0"], " ou interroger l’IA à son sujet"],
"IO8REi": ["Impossible d'ouvrir « ", ["name"], " » : ", ["0"]],
"IQPyrD": ["Page manquante — cliquez pour la créer"],
@@ -1495,7 +1520,6 @@
"IX_uXB": ["my-feature"],
"IYciRC": ["Merci pour ce rapport !"],
"IajAbS": ["Ajouter un pack de démarrage"],
- "IbTC7z": ["Collez une palette base16"],
"If0crP": ["Ouvrir avec l'IA ", ["targetDisplayName"], ", ", ["hint"]],
"IgN3LY": ["Sur le texte sélectionné dans <0>", ["address"], "</0>"],
"IgTwLt": ["Ouvre ce document dans l'éditeur et réduit le graphe."],
@@ -1517,6 +1541,7 @@
"Ix0K8o": ["Masquer les nœuds d'URL externes"],
"IxHMdF": ["Impossible de supprimer ce commentaire."],
"IxyZXD": ["Capture d'écran"],
+ "J1XRO3": ["Couleurs du thème"],
"J2Mv98": ["Nom (par ex. ", ["login"], ")"],
"J2_JuX": ["rien (", ["0"], " ne peut correspondre à aucun document)"],
"J2eKUI": ["Fichier"],
@@ -1546,7 +1571,7 @@
"JOcPqH": ["Récupérer un dépôt distant sur cette machine."],
"JWsZlx": ["Ouvrez un projet pour le modifier."],
"JZ8cO6": ["Clair, sombre, ou suivre le système."],
- "J_bJiH": ["Choisissez une palette de couleurs d'IDE intégrée, ou définissez la vôtre."],
+ "JaU1ld": ["Le nom du thème contient des caractères non pris en charge"],
"JddocZ": ["Activer/désactiver la colonne d'en-tête"],
"Jejur6": ["Impossible de charger le document"],
"JfPuv7": [["shareBranch"], " n'est pas un nom de branche valide."],
@@ -1635,6 +1660,7 @@
"KsAPaB": ["Cette branche est extraite dans :"],
"KtACeE": ["Par défaut : <0>", ["0"], "</0>"],
"KujtjC": ["Rechercher"],
+ "Kx881F": [["0"], " a été restauré."],
"L-rMC9": ["Réinitialiser à la valeur par défaut"],
"L1BQTH": [["0"], " n'est pas encore installé — ouverture de sa page de téléchargement."],
"L1ZE3M": ["Statistiques du document"],
@@ -1841,6 +1867,7 @@
"N55YNr": [
"Choisissez si la configuration OpenKnowledge de ce projet, y compris ses connexions aux outils IA, est enregistrée avec le projet pour que vos coéquipiers l'obtiennent aussi, ou conservée uniquement sur votre ordinateur."
],
+ "N6j2JH": ["Modifier ", ["0"]],
"NBdIgR": ["Commenter"],
"NCmYhK": [
"Les compétences apprennent aux agents des tâches répétables. Rédigez-les et gérez-les depuis la section Compétences de l'éditeur ; le menu d'installation de chaque compétence détermine où elle réside. Voici les dossiers de compétences de ce projet."
@@ -2056,6 +2083,7 @@
"QB-moX": [
"Installez-la dans vos autres éditeurs (Claude Code, Cursor, Codex) pour la partager."
],
+ "QDErHs": ["Sélectionner ", ["slot"], " — ", ["0"]],
"QDZbvN": ["il y a ", ["diffDays"], " j"],
"QGWzup": ["Chargement des compétences OpenKnowledge"],
"QHCx0c": ["Historique des rapports de bug"],
@@ -2089,13 +2117,11 @@
"QlxHAH": ["Résultats pour « ", ["semanticResultsLabel"], " »"],
"Qpfxa1": [["secs"], "s"],
"QqBQu1": ["Libellé <0>(texte visible du lien)</0>"],
- "Quz_Qu": [
- "Les modifications s'appliquent en direct. Le mode clair ou sombre vient de la palette."
- ],
"Qvls7J": ["Spécifications techniques"],
"Qw-7Ie": [
"Un espace d'écriture simple, avec un fichier par sujet et un journal quotidien. Choisissez ceci si vous voulez juste commencer à écrire et laisser les liens entre les notes se construire au fil du temps."
],
+ "QwG_zJ": ["Fichiers en conflit : ", ["0"], "."],
"QySH4I": ["Projets OpenKnowledge détectés"],
"QyioBP": ["Monter"],
"QzofTX": [
@@ -2113,6 +2139,7 @@
]
],
"R0jJzV": ["Collez une URL, owner/repo, ou cherchez dans vos dépôts"],
+ "R30SFt": ["Utilisez une extension .yaml ou .yml en minuscules"],
"R3y75Z": ["Modifier la source"],
"R4OWFD": ["Sections"],
"R65q-K": [
@@ -2125,6 +2152,7 @@
"R9dK63": ["Image d'exemple"],
"RDjuBN": ["Configuration"],
"RDrXh4": ["Configurez les paramètres utilisateur, projet et intégrations."],
+ "RG3yW6": ["Saisissez un nom pour ce thème."],
"RG4XHV": ["Copier l'invite ", ["0"]],
"RGCCrg": ["Copier le lien de partage"],
"RGkNeJ": ["Initialiser un pack de démarrage"],
@@ -2309,6 +2337,7 @@
"UEdTEN": ["Orpheline"],
"UGeJuP": ["Valeurs autorisées (vide = toutes)"],
"UGtPix": ["La connexion à GitHub a expiré. Reconnectez-vous pour continuer."],
+ "UH0Zqw": ["Ce fichier n’est pas un fichier de thème standard"],
"UHwc0P": [
"Ceci est un aperçu de ",
["boldName"],
@@ -2367,7 +2396,6 @@
["src"],
"</1> n'est plus disponible."
],
- "UeQEbk": ["Parcourir des centaines de palettes"],
"UfW9Kr": [
"Vos requêtes de recherche et le texte intégral des pages correspondantes sont envoyés à votre fournisseur d'embeddings (OpenAI par défaut) pour calculer les embeddings."
],
@@ -2489,6 +2517,7 @@
],
"W8vpBM": ["pack de démarrage"],
"W9_Bub": ["Les modifications locales chevauchent la synchronisation entrante"],
+ "WBNpt9": ["Impossible de lire ce thème (", ["0"], ")"],
"WFEbV1": [
"Signale les problèmes markdown courants dans l'éditeur. Propulsé par <0>markdownlint<1/></0>."
],
@@ -2625,6 +2654,7 @@
"Y9c_nf": ["0/0"],
"YBt9YP": ["Bêta"],
"YC6_wP": ["Modifier ", ["keyName"]],
+ "YCmS3k": [["0"], " a été supprimé."],
"YDL7N6": [
"Les plugins de vérification — quelles familles de règles s'exécutent et leurs réglages par règle — se configurent dans leur propre onglet sous Ce projet → Plugins."
],
@@ -2663,6 +2693,7 @@
"YaeyFh": [
"Les tirages peuvent écraser des modifications non validées dans vos fichiers locaux."
],
+ "Yb82LN": ["ID : ", ["0"]],
"Yea-K5": ["Restaurer à ce point"],
"Yi0VMG": ["Envoyer ", ["keyName"]],
"YjMLg2": [
@@ -2747,6 +2778,7 @@
"ZYtq3m": [
"Connectez les outils IA que vous utilisez à ce projet précis. Ces fichiers résident dans le dossier du projet, donc toute personne qui l'ouvre obtient la même configuration."
],
+ "Z_nNa2": ["Nommez votre thème"],
"ZatAO_": ["Échec de l'activation des aperçus de liens — ", ["detail"]],
"Zf0w-R": [
"Faites passer un texte de l'idée brute au brouillon achevé, puis à quelque chose que vous êtes prêt à partager. Utile pour les articles de blog, les essais, ou tout ce que vous voulez faire avancer par étapes claires."
@@ -2786,11 +2818,13 @@
["currentLabel"],
"</1>."
],
+ "_DwR-n": ["Création…"],
"_FLBbi": [["sizeText"], " · secrets masqués · vidage de plantage non masqué"],
"_GRWOJ": ["Changer de fournisseur d'embeddings ?"],
"_HgF9q": ["Trier par"],
"_IGfXZ": ["OpenKnowledge s'est arrêté de façon inattendue la dernière fois."],
"_IX_7x": ["Autre"],
+ "_IfSZn": ["Un thème enregistré utilise déjà ce nom."],
"_JOGC0": ["Envoyer un retour…"],
"_LczaQ": ["Refusé — ", ["optionName"]],
"_NWEid": ["Rechercher des fichiers de schéma par chemin"],
@@ -2927,7 +2961,6 @@
"b6Fgpe": ["Chaque pack équipe votre projet de dossiers et de modèles prêts à l'emploi."],
"bBE5tC": ["Détecté sur cette machine"],
"bBcFK_": ["Ouvrir le sélecteur d'émojis de ", ["keyName"]],
- "bD2SLZ": ["Palette copiée au format YAML base16"],
"bD8I7O": ["Terminé"],
"bEp7UY": ["Non connecté au pont de bureau"],
"bF22t6": ["Retirer le champ ", ["field"]],
@@ -3003,6 +3036,7 @@
"cIptmH": ["Dans l'application Claude Desktop"],
"cKjLuT": ["(projet + utilisateur)"],
"cLP0Lf": ["Source de compétence distante"],
+ "cLn264": ["Impossible de lire ce fichier de thème"],
"cMMb6H": [["imported"], " installées, mais ", ["failed"], " ont échoué : ", ["failedNames"]],
"cN1Gcp": ["Un dossier de worktree pour ", ["shareBranch"], " existe déjà."],
"cOJyVj": ["Désactiver les thèmes"],
@@ -3024,6 +3058,7 @@
]
],
"cUk6TF": ["Échec de la synchronisation — consultez les journaux du serveur pour les détails."],
+ "cUt8yN": ["Les modifications sont enregistrées automatiquement."],
"cV7LOw": ["Wiki d'équipe"],
"cVKnqL": ["Impossible de lire les commentaires en attente d'envoi : ", ["0"]],
"cZGNlb": ["Ajouter un autre motif"],
@@ -3071,6 +3106,7 @@
"cstC0z": ["Motif (expression régulière)"],
"ct2kv5": ["Aucun titre dans ", ["pageTarget"]],
"cuA8QW": ["Organiser les spécifications"],
+ "cuHhjo": ["Créer et modifier"],
"d-GtJt": ["Afficher dans la source Markdown"],
"d1JjXo": [
"Votre copie locale de la branche <0>",
@@ -3206,6 +3242,7 @@
}
]
],
+ "ekSPiP": [["0"], " a déjà été supprimé."],
"el2KyL": ["Slidev trouvé dans ce projet. Les diaporamas utiliseront la version du projet."],
"emMrXQ": ["Le serveur a renvoyé une réponse de duplication mal formée."],
"emgiet": ["Contenu faisant autorité ; reproduit tel quel partout où il est référencé."],
@@ -3290,6 +3327,7 @@
"<0>Vous avez autre chose à ajouter ?</0> Écrivez à <1/> en mentionnant votre référence."
],
"fxbCNQ": ["Synchronisé. Le lien est à jour."],
+ "g12y1g": ["YAML non valide"],
"g1ZTh_": [
[
"count",
@@ -3395,7 +3433,6 @@
"Ce document n'est pas encore synchronisé avec GitHub. Le lien fonctionnera après la prochaine synchronisation."
],
"gyHDWC": ["Tout corriger avec l'IA (", ["count"], ")"],
- "gyWc8_": ["Accents"],
"h-AdvS": ["Les dossiers et les modèles sont déjà là, il n'y a donc rien à ajouter."],
"h06R3C": ["Aucune page ne manque de liens sortants dans le graphe."],
"h16FyT": ["Listes"],
@@ -3417,6 +3454,7 @@
"hDEaQu": ["Connectez OpenKnowledge aux autres outils que vous utilisez."],
"hDKtoF": ["il y a ", ["diffHrs"], " h"],
"hDoLrm": ["Retirer ", ["projectName"], " des projets récents"],
+ "hFmYGU": ["Les fichiers de thème liés ne sont pas pris en charge"],
"hGmuTc": ["Documents étiquetés #", ["tagDocsName"]],
"hHMv6l": ["Supprimer le bloc"],
"hHR0tt": ["Nouveau chat avec ", ["0"]],
@@ -3430,6 +3468,9 @@
"hSBIG-": ["Un titre, une description, des étiquettes — tout ce qui décrit ce dossier."],
"hSySVc": ["Échec du transfert d'installation : ", ["msg"]],
"hVAkI8": ["Exécuter dans le terminal"],
+ "hVzt9x": [
+ "Impossible de charger les thèmes enregistrés. La dernière liste de thèmes disponible reste affichée."
+ ],
"hXUWyd": ["Une valeur est obligatoire"],
"hXbSxc": ["Ressource : ", ["title"]],
"hY8pka": ["Sélectionner l'occurrence suivante"],
@@ -3439,6 +3480,7 @@
"haHgQj": ["Chemin relatif copié"],
"habOU_": ["Échec de la mise à jour du réglage d'approbation automatique — ", ["detail"]],
"he3ygx": ["Copier"],
+ "hgF0al": ["Utiliser ", ["0"], " pour le mode clair actif"],
"hgtsat": ["Échec de la suppression de ", ["file"]],
"hh4mVC": ["Demander à l'IA de corriger ", ["flatId"]],
"hhI__i": ["Voulez-vous vraiment supprimer « ", ["name"], " » et son contenu ?"],
@@ -3699,6 +3741,7 @@
"k_pade": [
"La configuration est maintenant partagée. Validez les fichiers OK pour les partager avec votre équipe."
],
+ "k_tFzX": ["Le nom du thème est manquant"],
"k_yIIc": ["Sera créé dans : <0>", ["targetPreview"], "</0>"],
"ka6Eke": ["Ouvrir le fichier sur le disque"],
"kdzzOK": [
@@ -3712,6 +3755,7 @@
"khCa4M": ["Apprend aux agents de code de ce projet à lire et écrire via OpenKnowledge."],
"kj9pAE": ["Création de la page"],
"kknhfj": ["Aucune modification"],
+ "kkux8f": ["Impossible de supprimer ", ["0"], ". Réessayez."],
"klPS-L": ["Fichier d'origine — avant les modifications de cet agent."],
"kmKqZg": ["Groupes"],
"knjOzA": ["Valeur de l'étiquette"],
@@ -3727,6 +3771,7 @@
"kwLcuN": [
"Donnez aux outils IA que vous utilisez l'accès en lecture et en écriture à vos projets. Choisissez ci-dessous ce qu'il faut configurer, et modifiez-le à tout moment dans Paramètres > Outils IA et CLI."
],
+ "kwNS82": ["Ce thème ne peut pas être utilisé tant que le fichier n’est pas corrigé."],
"ky9Tuc": ["Modifier la source de ", ["0"]],
"kzpkcn": ["Impossible d'enregistrer cette modification."],
"l-4nnw": ["Rechercher des règles"],
@@ -3774,6 +3819,7 @@
"Un chemin à l'intérieur de la compétence — n'importe quel dossier convient (par ex. references/notes.md). Les dossiers du chemin sont créés pour vous."
],
"lPzyrU": ["Tous les blocs sont résolus"],
+ "lS83Sg": ["Impossible d’accéder au presse-papiers."],
"lScd1O": [
"Les diaporamas Slidev s'ouvrent uniquement dans l'application de bureau OpenKnowledge."
],
@@ -3944,6 +3990,7 @@
"nNYV3Y": ["et ", ["remaining"], " de plus"],
"nOEDQs": ["Échec de la mise à jour du mode de synchronisation — ", ["detail"]],
"nP-KFo": ["Nouvelle discussion ", ["0"]],
+ "nTM8ab": ["Donnez-lui un nom avant de modifier ses couleurs."],
"nTwL53": ["Ouvrez un document pour partager son URL."],
"nUNZL4": ["Demander à ", ["0"]],
"nWv1ja": ["Gérez les fichiers masqués dans Paramètres → Motifs d'exclusion."],
@@ -3991,6 +4038,7 @@
"L'identité git n'est pas définie — les commits utilisent un auteur par défaut. Définissez la vôtre pour que vos coéquipiers voient votre nom."
],
"nrXDdR": ["Nom du champ"],
+ "nsM-_m": ["Parcourir des centaines de thèmes"],
"nsUDL8": [["0"], " projet(s) sélectionné(s) sur ", ["1"]],
"nskygk": ["Choisir un agent"],
"nwtY4N": ["Une erreur s'est produite"],
@@ -4031,6 +4079,7 @@
"oYepHb": [
"Le terminal est désactivé pour ce projet. Réactivez-le pour exécuter des commandes ici."
],
+ "oZUYMv": ["Impossible de restaurer ", ["0"], ". Ce nom est déjà utilisé."],
"of3tF-": [
"Vous avez choisi ~/Documents. OpenKnowledge indexera chaque fichier markdown qui s'y trouve. Si vous ne voulez gérer qu'un sous-dossier, choisissez une portée plus restreinte."
],
@@ -4063,6 +4112,7 @@
["0"],
" — quelque chose en dehors d'OK l'a modifié depuis. L'état affiché est celui du disque maintenant ; votre prochain Lien symbolique/Dissocier l'emportera."
],
+ "p7Utw8": ["Ce n’est pas un thème base16"],
"p98xmP": ["S'applique à"],
"p9sdCy": ["Nouveau motif d'exclusion"],
"pA16WG": ["Ce projet n'a aucun dépôt distant GitHub."],
@@ -4176,6 +4226,7 @@
"qNOgUu": [
"Les modifications faites à la source arrivent ici — aucune dérive due au copier-coller."
],
+ "qQi_um": ["Thème importé."],
"qRZh7J": ["Laisser la touche Tab quitter l'éditeur de source au lieu d'ajouter un retrait."],
"qSKu2v": ["Navigation et sélection dans la source"],
"qSxaOz": ["Accepter leur suppression"],
@@ -4232,6 +4283,7 @@
"qo4zCg": ["Le chemin ne peut pas contenir d'antislash"],
"qpQwGC": ["Décrivez ce sur quoi vous travaillez et l'agent le met en place pour vous."],
"qribBG": ["schéma ", ["deleteTarget"]],
+ "qtnmEX": ["Saisissez un nom de thème valide."],
"qvWGzP": ["Tout réduire"],
"qyLmWw": ["Panneau de recherche de l'éditeur de source"],
"r-OJYm": [
@@ -4259,6 +4311,9 @@
"rFmBG3": ["Thème de couleurs"],
"rFw02Q": ["Envoi de ", ["keyName"]],
"rJVoVX": ["Résultats de recherche dans la source"],
+ "rJm8-2": [
+ "Impossible d’accéder au presse-papiers — le thème se trouve dans la zone ci-dessous."
+ ],
"rNifQd": ["Retirer la propriété"],
"rQAQus": ["Impossible d'enregistrer le modèle : ", ["error"]],
"rQRrkB": ["hier"],
@@ -4333,7 +4388,6 @@
"sJK6pq": ["Permission refusée"],
"sJWhgo": ["Composant inconnu : ", ["unregisteredComponentName"]],
"sKEgGd": ["Envoyer dans la discussion"],
- "sKMhJz": ["De l'arrière-plan vers le premier plan"],
"sLcbHt": [
"Liez un autre dossier à l'un de ceux-ci pour que les deux agents lisent les mêmes compétences ; dissociez pour gérer à nouveau les compétences d'un dossier une par une."
],
@@ -4529,6 +4583,7 @@
"ur2XSb": ["Éditeur visuel"],
"uuoHOU": ["La commande a échoué."],
"uyJsf6": ["À propos"],
+ "uyOQ4e": ["Thème copié au format YAML base16"],
"uynXup": [["tokens", "plural", { "one": ["token"], "many": ["tokens"], "other": ["tokens"] }]],
"v-h2hx": ["Supprimer ", ["targetGitPath"]],
"v2ZW0K": ["Activer le terminal"],
@@ -4666,6 +4721,7 @@
"wXw19Y": ["« ", ["projectName"], " » retiré des projets récents. Son dossier n'existe plus."],
"wZPUJx": ["« ", ["0"], " »"],
"w_Sphq": ["Pièces jointes"],
+ "wbMbiY": ["Copie de ", ["selectedSlot"], " effectuée"],
"wbpoGe": ["Impossible d'installer la compétence OpenKnowledge : ", ["message"]],
"wbv9xO": ["Créer un projet"],
"wc54KE": ["Essai en cours…"],
@@ -4888,6 +4944,7 @@
"zL0LPh": ["Global, hors champs de texte"],
"zLGXna": ["Aucun pack de démarrage disponible."],
"zLak8b": ["Activer le nouvel onglet"],
+ "zMmwh4": ["Choisissez un thème ou créez le vôtre."],
"zQBg2C": ["Déplace le bloc courant d'une position vers le haut ou vers le bas."],
"zXj1rA": ["Rechercher par le sens"],
"zYp8Sr": [
diff --git a/packages/app/src/locales/fr/messages.po b/packages/app/src/locales/fr/messages.po
index f7cbebb5f..0c4aabeff 100644
--- a/packages/app/src/locales/fr/messages.po
+++ b/packages/app/src/locales/fr/messages.po
@@ -332,6 +332,11 @@ msgstr "{0} au total"
msgid "{0} version {1}"
msgstr "{0} version {1}"
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "{0} was already deleted."
+msgstr "{0} a déjà été supprimé."
+
#. placeholder {0}: activeData.label
#: src/components/EditorWorkspace.tsx
msgid "{0} was not moved."
@@ -777,6 +782,11 @@ msgstr "{sizeText} · secrets masqués · vidage de plantage non masqué"
msgid "{skillCount, plural, one {skill} other {skills}}"
msgstr "{skillCount, plural, one {compétence} many {compétences} other {compétences}}"
+#. placeholder {0}: BASE16_SLOT_ROLES[slot]
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "{slot} color — {0}"
+msgstr "Couleur {slot} — {0}"
+
#: src/components/settings/CustomThemeEditor.tsx
msgid "{slot} hex value"
msgstr "Valeur hexadécimale de {slot}"
@@ -1044,6 +1054,10 @@ msgstr "un outil git requis"
msgid "A reusable starting point for new documents in this folder."
msgstr "Un point de départ réutilisable pour les nouveaux documents de ce dossier."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "A saved theme already uses this name."
+msgstr "Un thème enregistré utilise déjà ce nom."
+
#: src/components/TemplateForm.tsx
msgid "A short line shown under the title in the template list."
msgstr "Une courte ligne affichée sous le titre dans la liste des modèles."
@@ -1100,10 +1114,6 @@ msgstr "Au-dessus"
msgid "absent"
msgstr "absent"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Accents"
-msgstr "Accents"
-
#: src/components/DiffView.tsx
msgid "Accept"
msgstr "Accepter"
@@ -1783,10 +1793,6 @@ msgstr "Retour"
msgid "Back to document view"
msgstr "Retour à la vue document"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Background to foreground"
-msgstr "De l'arrière-plan vers le premier plan"
-
#: src/components/LinksPanel.tsx
msgid "Backlinks"
msgstr "Rétroliens"
@@ -1931,8 +1937,8 @@ msgid "Browse folder"
msgstr "Parcourir le dossier"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Browse hundreds of schemes"
-msgstr "Parcourir des centaines de palettes"
+msgid "Browse hundreds of themes"
+msgstr "Parcourir des centaines de thèmes"
#: src/components/ImportSkillDialog.tsx
msgid "Browse or upload a skill for this project."
@@ -2051,6 +2057,7 @@ msgstr "Impossible de partager ce chemin."
#: src/components/ReportBugDialogBody.tsx
#: src/components/SeedDialog.tsx
#: src/components/settings/LinkPreviewsSection.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/settings/SearchSection.tsx
#: src/components/ShareBranchSwitchDialog.tsx
#: src/components/ShareReceiveDialog.tsx
@@ -2106,6 +2113,18 @@ msgstr "modifié à l'extérieur"
msgid "Changed outside OK since it last wrote here — the state shown is what's on disk now"
msgstr "Modifié en dehors d'OK depuis sa dernière écriture ici — l'état affiché est celui qui se trouve sur le disque maintenant"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes save automatically to this theme."
+msgstr "Les modifications sont automatiquement enregistrées dans ce thème."
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes save automatically."
+msgstr "Les modifications sont enregistrées automatiquement."
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes saved automatically."
+msgstr "Modifications enregistrées automatiquement."
+
#: src/components/command-palette-commands.ts
msgid "Check for updates"
msgstr "Rechercher les mises à jour"
@@ -2703,6 +2722,11 @@ msgstr "Conflit"
msgid "Conflicted files"
msgstr "Fichiers en conflit"
+#. placeholder {0}: warning.conflictingFilenames.join(', ')
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Conflicting files: {0}."
+msgstr "Fichiers en conflit : {0}."
+
#: src/components/ConflictsSection.tsx
msgid "Conflicts"
msgstr "Conflits"
@@ -2895,6 +2919,10 @@ msgstr "Conversion…"
msgid "Copied"
msgstr "Copié"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Copied {selectedSlot}"
+msgstr "Copie de {selectedSlot} effectuée"
+
#: src/components/EditorTabTargetMenuItems.tsx
#: src/components/FileSidebar.tsx
#: src/components/FileTree.tsx
@@ -2932,6 +2960,7 @@ msgstr "copie"
#: src/components/CopyButton.tsx
#: src/components/empty-state/CopyablePromptList.tsx
#: src/components/InstallInClaudeDesktopDialog.tsx
+#: src/components/settings/CustomThemeEditor.tsx
#: src/lib/native-menu-catalog.ts
msgid "Copy"
msgstr "Copier"
@@ -3216,6 +3245,15 @@ msgstr "Impossible de créer le rapport"
msgid "Couldn't create the worktree. Try a different name."
msgstr "Impossible de créer le worktree. Essayez un autre nom."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t create this theme. Try again."
+msgstr "Impossible de créer ce thème. Réessayez."
+
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t delete {0}. Try again."
+msgstr "Impossible de supprimer {0}. Réessayez."
+
#. placeholder {0}: result.error
#: src/components/SkillFileDeleteDialog.tsx
msgid "Couldn't delete file: {0}"
@@ -3233,6 +3271,10 @@ msgstr "Impossible de supprimer le modèle : {error}"
msgid "Couldn't delete that comment."
msgstr "Impossible de supprimer ce commentaire."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t delete this theme. Refresh and try again."
+msgstr "Impossible de supprimer ce thème. Actualisez la page et réessayez."
+
#: src/components/settings/AccountSection.tsx
msgid "Couldn't disconnect — please try again."
msgstr "Impossible de se déconnecter — veuillez réessayer."
@@ -3396,8 +3438,12 @@ msgid "Couldn't reach the agent registry."
msgstr "Impossible de joindre le registre des agents."
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Couldn’t reach the clipboard — the scheme is in the box below."
-msgstr "Impossible d'accéder au presse-papiers — la palette se trouve dans le champ ci-dessous."
+msgid "Couldn’t reach the clipboard — the theme is in the box below."
+msgstr "Impossible d’accéder au presse-papiers — le thème se trouve dans la zone ci-dessous."
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Couldn’t reach the clipboard."
+msgstr "Impossible d’accéder au presse-papiers."
#: src/components/CommandPalette.tsx
msgid "Couldn't reach the embeddings provider — retry"
@@ -3424,6 +3470,11 @@ msgstr "Impossible de lire les commentaires en attente d'envoi — rien n'a ét
msgid "Couldn't read the comments waiting to send: {0}"
msgstr "Impossible de lire les commentaires en attente d'envoi : {0}"
+#. placeholder {0}: warning.code
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t read this theme ({0})"
+msgstr "Impossible de lire ce thème ({0})"
+
#: src/components/EditorActivityPool.tsx
msgid "Couldn't reconnect after server restart"
msgstr "Impossible de se reconnecter après le redémarrage du serveur"
@@ -3472,6 +3523,16 @@ msgstr "Impossible de redémarrer automatiquement le serveur. Essayez d'exécute
msgid "Couldn't restart the server. Try `ok start` in this folder."
msgstr "Impossible de redémarrer le serveur. Essayez `ok start` dans ce dossier."
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t restore {0}. That name is already in use."
+msgstr "Impossible de restaurer {0}. Ce nom est déjà utilisé."
+
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t restore {0}. Try again."
+msgstr "Impossible de restaurer {0}. Réessayez."
+
#. placeholder {0}: resumeError.message
#: src/components/acp/ThreadView.tsx
msgid "Couldn't resume this chat: {0}"
@@ -3481,6 +3542,10 @@ msgstr "Impossible de reprendre ce chat : {0}"
msgid "Couldn't run the test. Check that OpenKnowledge is still running."
msgstr "Impossible d'exécuter le test. Vérifiez qu'OpenKnowledge fonctionne toujours."
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Couldn’t save changes. Try editing a color again."
+msgstr "Impossible d’enregistrer les modifications. Essayez à nouveau de modifier une couleur."
+
#: src/components/TemplateForm.tsx
msgid "Couldn't save template: {error}"
msgstr "Impossible d'enregistrer le modèle : {error}"
@@ -3599,6 +3664,10 @@ msgstr "Vidage de plantage"
msgid "Create"
msgstr "Créer"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Create & edit"
+msgstr "Créer et modifier"
+
#: src/components/TemplateRow.tsx
msgid "Create a document from {label}"
msgstr "Créer un document à partir de {label}"
@@ -3670,6 +3739,10 @@ msgstr "Créer un projet"
msgid "Create new tag #{tagValue}"
msgstr "Créer l'étiquette #{tagValue}"
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Create new theme"
+msgstr "Créer un thème"
+
#: src/components/GraphPanel.tsx
#: src/components/ProblemsPanel.tsx
#: src/editor/extensions/InternalLinkPropPanel.tsx
@@ -3768,6 +3841,10 @@ msgstr "Création de la page : {linkTitle}."
msgid "Creating..."
msgstr "Création…"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Creating…"
+msgstr "Création…"
+
#: src/components/RecentProjectsMenu.tsx
msgid "Current"
msgstr "Actuel"
@@ -3840,8 +3917,10 @@ msgstr "Par défaut : <0>{0}</0>"
msgid "Delete"
msgstr "Supprimer"
+#. placeholder {0}: theme.label
#. placeholder {0}: thread.title
#: src/components/acp/ThreadHistoryMenu.tsx
+#: src/components/settings/ColorThemePicker.tsx
msgid "Delete {0}"
msgstr "Supprimer {0}"
@@ -3921,6 +4000,11 @@ msgstr "Supprimer ce chat ?"
msgid "Delete this comment"
msgstr "Supprimer ce commentaire"
+#. placeholder {0}: deletedTheme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Deleted {0}."
+msgstr "{0} a été supprimé."
+
#: src/components/settings/LintingSection.tsx
msgid "Deleted {file}"
msgstr "{file} supprimé"
@@ -4239,6 +4323,7 @@ msgstr "terminé"
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/PublishToGitHubDialog.tsx
#: src/components/ReportBugDialogBody.tsx
+#: src/components/settings/CustomThemeEditor.tsx
#: src/editor/extensions/JsxComponentView.tsx
#: src/editor/extensions/JsxInlineView.tsx
#: src/editor/extensions/MathInlineView.tsx
@@ -4373,6 +4458,11 @@ msgstr "Chaque outil sélectionné reçoit une entrée MCP OpenKnowledge."
msgid "Edit"
msgstr "Modifier"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Edit {0}"
+msgstr "Modifier {0}"
+
#. placeholder {0}: descriptor.displayName ?? descriptor.name
#: src/editor/extensions/JsxComponentView.tsx
msgid "Edit {0} source"
@@ -4446,6 +4536,11 @@ msgstr "modèle modifié"
msgid "editing [[{realCurrentDoc}]]"
msgstr "modifie [[{realCurrentDoc}]]"
+#. placeholder {0}: scheme.name
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Editing {0}"
+msgstr "Modification de {0}"
+
#: src/components/SkillEditBanner.tsx
msgid "Editing {boldName} in place. Changes save straight to your editor's copy."
msgstr "Modification de {boldName} sur place. Les changements sont enregistrés directement dans la copie de votre éditeur."
@@ -4475,8 +4570,12 @@ msgid "Editor status bar"
msgstr "Barre d'état de l'éditeur"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Edits apply live. Light or dark comes from the scheme."
-msgstr "Les modifications s'appliquent en direct. Le mode clair ou sombre vient de la palette."
+msgid "Edits apply live and save automatically to this theme."
+msgstr "Les modifications s’appliquent immédiatement et sont automatiquement enregistrées dans ce thème."
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Edits apply live. Light or dark comes from the theme."
+msgstr "Les modifications s’appliquent immédiatement. Le thème détermine le mode clair ou sombre."
#: src/editor/slash-command/component-items.tsx
msgid "Edits at the source land here — no copy-paste drift."
@@ -4647,6 +4746,10 @@ msgstr "Saisissez une valeur hexadécimale à 6 chiffres, par ex. #1A2B3C"
msgid "Enter a folder name (e.g. brain)."
msgstr "Saisissez un nom de dossier (par ex. brain)."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Enter a name for this theme."
+msgstr "Saisissez un nom pour ce thème."
+
#: src/components/CreateProjectDialog.tsx
msgid "Enter a project name"
msgstr "Saisissez un nom de projet"
@@ -4663,6 +4766,10 @@ msgstr "Saisissez un titre pour ce modèle."
msgid "Enter a valid branch name (no spaces, no leading dot, no \"..\")."
msgstr "Saisissez un nom de branche valide (pas d'espaces, pas de point initial, pas de « .. »)."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Enter a valid theme name."
+msgstr "Saisissez un nom de thème valide."
+
#: src/components/settings/SearchSection.tsx
msgid "Enter a valid URL (for example https://api.openai.com/v1)."
msgstr "Saisissez une URL valide (par exemple https://api.openai.com/v1)."
@@ -5555,6 +5662,10 @@ msgstr "La connexion GitHub est absente ou expirée. Reconnectez-vous pour repre
msgid "GitHub, a git URL, or a local path."
msgstr "GitHub, une URL git, ou un chemin local."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Give it a name before editing its colors."
+msgstr "Donnez-lui un nom avant de modifier ses couleurs."
+
#: src/components/settings/AiToolsSection.tsx
msgid "Give the AI tools you use access to read and update your projects. Checking a box sets it up right away; unchecking removes it."
msgstr "Donnez aux outils IA que vous utilisez l'accès en lecture et en écriture à vos projets. Cocher une case configure l'outil immédiatement ; décocher le retire."
@@ -5734,6 +5845,11 @@ msgstr "Dossier « {basename} » masqué"
msgid "Hide"
msgstr "Masquer"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Hide {0} editor"
+msgstr "Masquer l’éditeur de {0}"
+
#: src/lib/native-menu-catalog.ts
msgid "Hide {appName}"
msgstr "Masquer {appName}"
@@ -5939,6 +6055,11 @@ msgstr "Je passe à un autre outil"
msgid "Icon picker"
msgstr "Sélecteur d'icônes"
+#. placeholder {0}: createIdentity.stem
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "ID: {0}"
+msgstr "ID : {0}"
+
#: src/components/AutoSyncEnableWarning.tsx
msgid "If an update arrives for something you are editing, you choose which version to keep, like a merge conflict."
msgstr "Si une mise à jour arrive pour ce que vous êtes en train de modifier, vous choisissez quelle version conserver, comme pour un conflit de fusion."
@@ -5974,10 +6095,6 @@ msgstr "Importer comme modèle"
msgid "Import failed: {0}"
msgstr "Échec de l'importation : {0}"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Import scheme"
-msgstr "Importer une palette"
-
#. placeholder {0}: result.name
#: src/lib/skill-import-toast.ts
msgid "Imported \"{0}\"."
@@ -6319,6 +6436,10 @@ msgstr "Instruction pour l'IA"
msgid "Integrations"
msgstr "Intégrations"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Invalid color value"
+msgstr "Valeur de couleur non valide"
+
#: src/components/CreateProjectDialog.tsx
msgid "Invalid input — pick a different folder."
msgstr "Saisie invalide — choisissez un autre dossier."
@@ -6339,6 +6460,10 @@ msgstr "Structure de réponse du serveur invalide"
msgid "Invalid share URL."
msgstr "URL de partage non valide."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Invalid YAML"
+msgstr "YAML non valide"
+
#: src/uninstall/UninstallSurveyScreen.tsx
msgid "It didn't fit into my workflow"
msgstr "Cela ne correspondait pas à mon flux de travail"
@@ -6572,6 +6697,10 @@ msgstr "URL du lien"
msgid "Link-graph response did not match expected shape."
msgstr "La réponse du graphe de liens ne correspond pas à la forme attendue."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Linked theme files aren’t supported"
+msgstr "Les fichiers de thème liés ne sont pas pris en charge"
+
#: src/components/DocPanel.tsx
msgid "Links"
msgstr "Liens"
@@ -6947,6 +7076,14 @@ msgstr "Page manquante — cliquez pour la créer"
msgid "Missing page: {linkTitle}. Click to create."
msgstr "Page manquante : {linkTitle}. Cliquez pour la créer."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Missing palette colors"
+msgstr "Des couleurs de la palette sont manquantes"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Missing theme name"
+msgstr "Le nom du thème est manquant"
+
#: src/components/SyncStatusBadge.tsx
msgid "Mode"
msgstr "Mode"
@@ -7144,6 +7281,10 @@ msgstr "Cogitation…"
msgid "Multi-page PDF viewer with toolbar controls (thumbnails, page nav, zoom)."
msgstr "Visionneuse PDF multipage avec barre d'outils (miniatures, navigation, zoom)."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Multiple files use this theme name"
+msgstr "Plusieurs fichiers utilisent ce nom de thème"
+
#: src/components/acp/working-status.ts
msgid "Musing…"
msgstr "Songerie…"
@@ -7186,6 +7327,10 @@ msgstr "Le nom ne peut pas être vide"
msgid "Name is required"
msgstr "Le nom est obligatoire"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Name your theme"
+msgstr "Nommez votre thème"
+
#: src/lib/keyboard-shortcuts.ts
msgid "Navigate CodeMirror source search results or dismiss the search panel."
msgstr "Parcourez les résultats de recherche dans la source CodeMirror ou fermez le panneau de recherche."
@@ -7742,6 +7887,10 @@ msgstr "Aucun de ces problèmes n'a de correction automatique."
msgid "None of these problems have an automatic fix. Try Fix all with AI."
msgstr "Aucun de ces problèmes n'a de correction automatique. Essayez Tout corriger avec l'IA."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Not a base16 theme"
+msgstr "Ce n’est pas un thème base16"
+
#: src/components/acp/ThreadView.tsx
msgid "Not answered"
msgstr "Sans réponse"
@@ -8642,8 +8791,8 @@ msgid "Paste"
msgstr "Coller"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Paste a base16 scheme"
-msgstr "Collez une palette base16"
+msgid "Paste a base16 theme"
+msgstr "Collez un thème base16"
#: src/components/AuthModal.tsx
msgid "Paste a personal access token for <0>{host}</0>."
@@ -8766,10 +8915,6 @@ msgstr "Propre à cet appareil — stocké dans votre configuration utilisateur,
msgid "Pick <0>openknowledge.skill</0> from your <1>Downloads</1> folder. It enables automatically."
msgstr "Choisissez <0>openknowledge.skill</0> dans votre dossier <1>Téléchargements</1>. Elle s'active automatiquement."
-#: src/components/settings/ThemePluginSection.tsx
-msgid "Pick a built-in IDE color palette, or define your own."
-msgstr "Choisissez une palette de couleurs d'IDE intégrée, ou définissez la vôtre."
-
#: src/components/settings/SkillTargetsPicker.tsx
msgid "Pick a folder to merge INTO {display}. That folder becomes a symlink to this one, so its agent reads everything placed here. This folder stays real. Conflicting skills abort the merge."
msgstr "Choisissez un dossier à fusionner DANS {display}. Ce dossier devient un lien symbolique vers celui-ci, donc son agent lit tout ce qui est placé ici. Ce dossier reste réel. Des compétences en conflit annulent la fusion."
@@ -8782,6 +8927,10 @@ msgstr "Choisissez un nom"
msgid "Pick a palette for light mode and one for dark mode. The theme setting in Preferences chooses between them — on “System”, so does your OS."
msgstr "Choisissez une palette pour le mode clair et une pour le mode sombre. Le réglage de thème dans les Préférences choisit entre les deux — sur « Système », c'est votre système d'exploitation qui décide."
+#: src/components/settings/ThemePluginSection.tsx
+msgid "Pick a theme or create your own."
+msgstr "Choisissez un thème ou créez le vôtre."
+
#: src/editor/slash-command/items.tsx
msgid "Pick an emoji to insert at the cursor."
msgstr "Choisissez un émoji à insérer au curseur."
@@ -8888,8 +9037,8 @@ msgid "Press Space to pick up a tab. Use the arrow keys to move it within a tab
msgstr "Appuyez sur Espace pour saisir un onglet. Utilisez les touches fléchées pour le déplacer dans la barre d’onglets, puis appuyez sur Espace ou Entrée pour le déposer. Appuyez sur Maj+F10 ou sur la touche Menu pour ouvrir le menu contextuel de l’onglet (fractionner, fermer, épingler et autres actions)."
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Press the sun or moon on “Custom” above to use this scheme."
-msgstr "Appuyez sur le soleil ou la lune de « Personnalisé » ci-dessus pour utiliser cette palette."
+msgid "Press the sun or moon on “Custom” above to use this theme."
+msgstr "Appuyez sur le soleil ou la lune de « Custom » ci-dessus pour utiliser ce thème."
#: src/components/PublishToGitHubDialog.tsx
msgid "Preview browsers can't auto-copy. Use Cmd/Ctrl+C on the URL above, or open OK in the desktop app."
@@ -9789,6 +9938,11 @@ msgstr "Restaurer cette version ?"
msgid "Restore with remote changes"
msgstr "Restaurer avec les modifications distantes"
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Restored {0}."
+msgstr "{0} a été restauré."
+
#. placeholder {0}: descriptor.targetSha7
#: src/components/TimelinePanel.tsx
msgid "Restored an earlier version ({0})"
@@ -9994,6 +10148,10 @@ msgstr "Enregistré dans le dossier de compétences de ce projet (par ex. <0>.ag
msgid "Saved into your global skills folder (e.g. <0>~/.agents/skills</0>)."
msgstr "Enregistré dans votre dossier de compétences global (par ex. <0>~/.agents/skills</0>)."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Saved themes couldn’t load. The last available theme list is still shown."
+msgstr "Impossible de charger les thèmes enregistrés. La dernière liste de thèmes disponible reste affichée."
+
#: src/components/SkillProperties.tsx
msgid "Saved to"
msgstr "Enregistré dans"
@@ -10011,6 +10169,10 @@ msgstr "Enregistre le fichier dans <0>~/Downloads/openknowledge.skill</0> et ouv
msgid "Saving"
msgstr "Enregistrement"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Saving changes…"
+msgstr "Enregistrement des modifications…"
+
#: src/components/settings/LintingSection.tsx
msgid "schema {deleteTarget}"
msgstr "schéma {deleteTarget}"
@@ -10019,10 +10181,6 @@ msgstr "schéma {deleteTarget}"
msgid "Schema fields"
msgstr "Champs du schéma"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Scheme copied as base16 YAML"
-msgstr "Palette copiée au format YAML base16"
-
#: src/components/ImportSkillForm.tsx
#: src/components/PanelScopeHeader.tsx
msgid "Scope"
@@ -10212,6 +10370,11 @@ msgstr "Voir les {0} packs de démarrage"
msgid "See the full install guide"
msgstr "Voir le guide d'installation complet"
+#. placeholder {0}: BASE16_SLOT_ROLES[slot]
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Select {slot} — {0}"
+msgstr "Sélectionner {slot} — {0}"
+
#: src/components/FrontmatterRow.tsx
msgid "Select a value"
msgstr "Sélectionnez une valeur"
@@ -10923,6 +11086,10 @@ msgstr "Slidev a mis trop de temps à démarrer. Réessayez."
msgid "Small section heading."
msgstr "Petit titre de section."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Some saved themes aren’t shown because the theme folder exceeds the scan limit."
+msgstr "Certains thèmes enregistrés ne sont pas affichés car le dossier des thèmes dépasse la limite d’analyse."
+
#: src/components/FeedbackForm.tsx
msgid "Something broke"
msgstr "Quelque chose s'est cassé"
@@ -11843,6 +12010,30 @@ msgstr "Le jeton doit avoir les portées repo et read:user."
msgid "Theme"
msgstr "Thème"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme colors"
+msgstr "Couleurs du thème"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme copied as base16 YAML"
+msgstr "Thème copié au format YAML base16"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme imported."
+msgstr "Thème importé."
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name"
+msgstr "Nom du thème"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name has unsupported characters"
+msgstr "Le nom du thème contient des caractères non pris en charge"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name is too long"
+msgstr "Le nom du thème est trop long"
+
#: src/components/settings/ThemePreviewCanvas.tsx
msgid "Theme preview"
msgstr "Aperçu du thème"
@@ -12037,6 +12228,10 @@ msgstr "Ceci est un aperçu de {boldName}, détectée dans {boldHarness} au nive
msgid "This is a preview of {boldName}. Install it into your agents."
msgstr "Ceci est un aperçu de {boldName}. Installez-la dans vos agents."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This isn’t a regular theme file"
+msgstr "Ce fichier n’est pas un fichier de thème standard"
+
#: src/components/SlidesToolbarControls.tsx
msgid "This isn't a supported version of Slidev."
msgstr "Cette version de Slidev n'est pas prise en charge."
@@ -12198,6 +12393,18 @@ msgstr "Cette source regroupe plusieurs compétences — choisissez celle à imp
msgid "This template lives in a parent folder — deleting it affects every folder beneath it that doesn't define its own version."
msgstr "Ce modèle réside dans un dossier parent — le supprimer affecte tous les dossiers situés en dessous qui ne définissent pas leur propre version."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme can’t be used until the file is fixed."
+msgstr "Ce thème ne peut pas être utilisé tant que le fichier n’est pas corrigé."
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme file couldn’t be read"
+msgstr "Impossible de lire ce fichier de thème"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme file is too large"
+msgstr "Ce fichier de thème est trop volumineux"
+
#: src/components/ShareReceiveDialog.tsx
msgid "This usually means one of:"
msgstr "Cela signifie généralement l'une de ces choses :"
@@ -12371,6 +12578,7 @@ msgstr "Essayer une invite"
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/ReportBugDialogBody.tsx
#: src/components/settings/AccountSection.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/ShareReceiveDialog.tsx
msgid "Try again"
msgstr "Réessayer"
@@ -12478,6 +12686,7 @@ msgstr "Dernière modification annulée sur {docName}"
#: src/components/ActivityPanelBurstRow.tsx
#: src/components/AppMenubar.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/settings/SharingSection.tsx
#: src/lib/native-menu-catalog.ts
msgid "Undo"
@@ -12745,6 +12954,16 @@ msgstr "Utiliser {0} comme thème sombre"
msgid "Use {0} as the light theme"
msgstr "Utiliser {0} comme thème clair"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Use {0} for the active dark mode"
+msgstr "Utiliser {0} pour le mode sombre actif"
+
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Use {0} for the active light mode"
+msgstr "Utiliser {0} pour le mode clair actif"
+
#: src/components/SkillForkDialog.tsx
msgid "Use {editor} version"
msgstr "Utiliser la version {editor}"
@@ -12757,6 +12976,10 @@ msgstr "Utilisez <0>{copyShortcut}</0> pour copier le lien ci-dessous, ou ouvrez
msgid "Use a folder you already have."
msgstr "Utilisez un dossier que vous avez déjà."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Use a lowercase .yaml or .yml extension"
+msgstr "Utilisez une extension .yaml ou .yml en minuscules"
+
#: src/components/SkillFileCreateDialog.tsx
#: src/components/SkillFileRenameDialog.tsx
msgid "Use a relative path inside the skill (no .., no spaces; SKILL.md is managed)."
@@ -12941,6 +13164,10 @@ msgstr "Nous allons construire <0>openknowledge.skill</0>, l'enregistrer dans <1
msgid "We'll create a repository and start syncing — no terminal needed."
msgstr "Nous allons créer un dépôt et démarrer la synchronisation — aucun terminal nécessaire."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "We’ll create a safe theme ID from this name."
+msgstr "Nous créerons un ID de thème sûr à partir de ce nom."
+
#: src/components/ReportBugDialogBody.tsx
msgid "We've filed it with the team and attached your logs."
msgstr "Nous l'avons transmis à l'équipe avec vos journaux."
diff --git a/packages/app/src/locales/hi/messages.json b/packages/app/src/locales/hi/messages.json
index 783e9fd55..15e8f4531 100644
--- a/packages/app/src/locales/hi/messages.json
+++ b/packages/app/src/locales/hi/messages.json
@@ -38,11 +38,13 @@
"आपके नोट और ऐप संस्करण के साथ निजी तौर पर OpenKnowledge टीम को भेजा गया। कभी सार्वजनिक रूप से पोस्ट नहीं किया जाता।"
],
"-oHckY": ["OpenKnowledge ने सेटिंग ", ["key"], " पढ़ी"],
+ "-othoN": ["यह थीम फ़ाइल बहुत बड़ी है"],
"-q4abP": [
"परिणाम सीमित — इस कार्यक्षेत्र में खोज के अनुक्रमण से ज़्यादा फ़ाइलें हैं। कोई अनुपस्थित फ़ाइल इस सीमा का नतीजा हो सकती है, वर्तनी की ग़लती नहीं।"
],
"-slrNR": ["कार्य सूची चालू या बंद करें।"],
"-uaQnI": ["कोई मेल खाता वर्कट्री या ब्रांच नहीं।"],
+ "-yOx8u": ["बदलाव सहेजे जा रहे हैं…"],
"-yPBXI": ["फ़ाइल चुनें"],
"-ySLQJ": ["Git और PR"],
"-zA2E7": ["वर्कट्री नहीं बनाया जा सका। कोई दूसरा नाम आज़माएँ।"],
@@ -104,6 +106,7 @@
"0kTAXe": ["स्रोत खोलें: ", ["mirrorSrc"]],
"0pZmTP": ["यह पथ साझा नहीं किया जा सकता।"],
"0qyKG6": ["डिस्क से सिंक किया गया"],
+ "0r6d6v": ["बदलाव अपने आप सहेज दिए गए।"],
"0rwwOn": ["टैग के अनुसार"],
"0s8-e8": ["कीबोर्ड सीमाओं से ब्लॉक कंपोनेंट और फ़ॉलबैक स्रोत ब्लॉक चुनें, उनमें जाएँ, या उनसे बाहर आएँ।"],
"0t0bbC": ["सिंक वरीयता नहीं सहेजी जा सकी: ", ["detail"]],
@@ -112,6 +115,7 @@
"0xnQ_X": ["अपडेट आते रहते हैं"],
"0xnmlQ": ["रिपॉज़िटरी का नाम"],
"0yL--g": ["टकराव देखें"],
+ "0ySP5u": ["बदलाव इस थीम में अपने आप सहेजे जाते हैं।"],
"0zAhu6": ["हर दस्तावेज़"],
"10g8I_": ["केवल markdown फ़ाइलें बंद करें"],
"11ukmX": ["नाम बदलना विफल: ", ["0"]],
@@ -121,6 +125,7 @@
"161NCV": ["रोका जा रहा है"],
"16D5Zj": ["क्या आप वाकई ", ["itemName"], " हटाना चाहते हैं? यह क्रिया वापस नहीं ली जा सकती।"],
"16eIWu": ["बलपूर्वक रोकें"],
+ "16tSS_": ["base16 थीम पेस्ट करें"],
"170Js2": ["पैनल छिपाएँ"],
"1AumWo": ["भेजना विफल — विवरण के लिए सर्वर लॉग देखें।"],
"1CalO6": ["शैली"],
@@ -153,6 +158,7 @@
"1njn7W": ["हल्का"],
"1nke1r": [["0"], " को GitHub पर खोलें (नए टैब में खुलता है)"],
"1oSHI0": [["skillName"], " इंस्टॉल नहीं की जा सकी: ", ["0"]],
+ "1qpGKz": ["बदलाव सहेजे नहीं जा सके। किसी रंग को फिर से संपादित करें।"],
"1ruosn": ["OpenKnowledge"],
"1t_NnN": ["अस्वीकारें"],
"1u-mAI": ["सिंक शुरू नहीं किया जा सका। अपना कनेक्शन जाँचें, फिर कोशिश करें।"],
@@ -267,7 +273,6 @@
"3kYcuM": ["क्या आप वाकई चयनित आइटम हटाना चाहते हैं?"],
"3l32hp": [["plugin"], " प्लगइन का हिस्सा"],
"3l_cXP": ["चाहें तो देख लें। हमें ठीक यही फ़ाइल मिलती है।"],
- "3l_knd": ["इस स्कीम का उपयोग करने के लिए ऊपर “Custom” पर सूरज या चाँद दबाएँ।"],
"3m2GBo": ["दस्तावेज़ खोजे जा रहे हैं"],
"3mFsc3": ["रिमोट बदलावों के साथ बहाल करें"],
"3nnyi_": [["0", "plural", { "one": ["मिटाएँ"], "other": ["#", " आइटम मिटाएँ"] }]],
@@ -305,6 +310,7 @@
"4TzU0n": ["आरंभ करें"],
"4buZWd": [["path"], " से विरासत में मिला"],
"4c_a6S": ["अभी कुछ भी सेट नहीं।"],
+ "4d0VYJ": ["हम इस नाम से एक सुरक्षित थीम ID बनाएँगे।"],
"4eO-iB": ["यह टिप्पणी छोड़ें"],
"4g19V6": ["प्रॉपर्टी अपडेट करने में विफल"],
"4h3e0H": ["स्किल साझाकरण अपडेट नहीं किया जा सका — ", ["detail"], "."],
@@ -430,6 +436,7 @@
"बताएँ कि इसे क्या करना चाहिए, या ख़ुद एक जोड़ें। OpenKnowledge आपकी स्किल एक ही जगह रखता है, उनके संस्करण सँभालता है, और उन्हें Claude, Codex और Cursor जैसे एजेंट में इंस्टॉल करता है।"
],
"6MnZEC": ["टर्मिनल लोड नहीं हो सका"],
+ "6Nea1q": ["सक्रिय गहरे मोड के लिए ", ["0"], " का उपयोग करें"],
"6O626z": ["\"", ["trimmedAnchorQuery"], "\" से कोई शीर्षक मेल नहीं खाता"],
"6Pxqwv": [
"अभी कोई प्रोजेक्ट टेम्पलेट नहीं। इसे इस प्रोजेक्ट में हर जगह उपलब्ध कराने के लिए एक बनाएँ। फ़ोल्डर-सीमित टेम्पलेट हर फ़ोल्डर के सिंहावलोकन पेज पर रहते हैं।"
@@ -439,6 +446,7 @@
"6VqW-1": [["keyName"], " हटाएँ"],
"6WdDG7": ["पेज"],
"6YBJ3m": ["चयन के बारे में AI से पूछें"],
+ "6YE0P6": [["0"], " संपादित किया जा रहा है"],
"6YtxFj": ["नाम"],
"6ZhdPI": ["एजेंट क्या पढ़, लिख और सामने ला सकता है।"],
"6_ZOw4": ["पूरा पथ कॉपी किया गया"],
@@ -468,6 +476,7 @@
"6s7LXO": ["ध्यान दें"],
"6u9LvN": [["days", "plural", { "one": ["#", " दिन पहले"], "other": ["#", " दिन पहले"] }]],
"6vEr3W": ["लिंक लक्ष्य"],
+ "6xeZX9": ["संपादन तुरंत लागू होते हैं। हल्का या गहरा थीम से तय होता है।"],
"6zzhQL": ["अपनी रिपोर्ट ईमेल से भेजें"],
"72xhRD": ["आरेख दृश्य मोड"],
"74-bX-": ["एक पुल कोट आसपास के पाठ से अलग दिखता है।"],
@@ -479,13 +488,13 @@
"दस्तावेज़ के frontmatter को JSON Schema फ़ाइलों के विरुद्ध सत्यापित करें, ग्लोब से दस्तावेज़ समूहों तक सीमित।"
],
"7Bj3x9": ["विफल"],
- "7EmDc7": ["स्कीम आयात करें"],
"7FA2iI": ["भेजे जाने की प्रतीक्षा में मौजूद टिप्पणियाँ नहीं पढ़ी जा सकीं — कुछ भी नहीं भेजा गया।"],
"7FamGZ": ["पंक्ति पर जाएँ"],
"7Fkcej": ["+ ", ["addChildName"], " जोड़ें"],
"7H4UHD": ["<0>#", ["tagName"], "</0> टैग वाले दस्तावेज़"],
"7IsvrP": ["अपडेट देखे जा रहे हैं"],
"7JtSLi": ["पथ हटाने में विफल"],
+ "7O7REc": [["0"], " बहाल नहीं किया जा सका। फिर से कोशिश करें।"],
"7OhaRy": ["स्रोत खोज"],
"7Ongq0": ["मेरी AGENTS.md फ़ाइल को 40k अक्षरों से कम में समेटें"],
"7OwvEL": ["HTML पूर्वावलोकन दिखाएँ"],
@@ -586,6 +595,8 @@
"8uGMP8": ["छिपी हुई सामग्री यहाँ आती है।"],
"8vCZcs": ["फ़ाइल खोलने में विफल।"],
"8vETh9": ["दिखाएँ"],
+ "8x6zk9": [["0"], " संपादक छिपाएँ"],
+ "9-lMCF": [["slot"], " रंग — ", ["0"]],
"90-wKT": ["OpenKnowledge ने ", ["subject"], " का इतिहास पढ़ा"],
"92rbk2": ["मिरर <0>", ["mirrorRef"], "</0> लोड हो रहा है"],
"93LBnX": ["Agents छिपाएँ"],
@@ -638,7 +649,6 @@
"9fvog2": ["पूर्वावलोकन अनुपलब्ध: ", ["errorDetail"]],
"9i21pa": ["कमिट अपने आप होते हैं"],
"9ieZhu": [["path"], " पर इंस्टॉल है — हटाने के लिए क्लिक करें"],
- "9j1tqo": ["क्लिपबोर्ड तक नहीं पहुँचा जा सका — स्कीम नीचे बॉक्स में है।"],
"9jnjV0": ["मूल प्लेयर नियंत्रणों के साथ एक ऑडियो फ़ाइल एम्बेड करें।"],
"9lso1Y": ["<0>", ["folderPart"], "/</0> फ़ोल्डर बनाता है"],
"9m4D_h": ["GitHub, एक git URL, या एक स्थानीय पथ।"],
@@ -675,8 +685,10 @@
],
"AIn2Yv": [["displayName"], " CLI, ", ["hint"]],
"AItsE5": ["इसे वहाँ खोलें"],
+ "AJ7_B2": ["नई थीम बनाएँ"],
"AKxFtn": [["openedWorktreeCount", "plural", { "one": ["वर्कट्री"], "other": ["वर्कट्री"] }]],
"ALhMYW": ["टर्मिनल"],
+ "ANFxWn": ["यह थीम नहीं हटाई जा सकी। रीफ़्रेश करके फिर से कोशिश करें।"],
"APNlbk": ["निकास ", ["0"]],
"AQ-Lfg": ["टेम्पलेट लोड नहीं हो सके"],
"AQGtjK": [
@@ -809,9 +821,11 @@
"यह फ़ाइल अंतर्निहित पाठ संपादक में खोलने के लिए बहुत बड़ी है (1 MB की सीमा)। इसे किसी दूसरे ऐप में खोलने के लिए नीचे Open file का उपयोग करें।"
],
"C_cPoW": ["आपका GitHub सत्र समाप्त हो गया — पुश की पहुँच जाँचने के लिए फिर से साइन इन करें।"],
+ "CcaU4i": ["संपादन तुरंत लागू होते हैं और इस थीम में अपने आप सहेजे जाते हैं।"],
"ChAtFg": ["आपके पास इस रिपॉज़िटरी में पुश करने की अनुमति नहीं है"],
"ChMshD": [["appName"], " से बाहर निकलें"],
"Ck9XRt": ["कुंजी नहीं सहेजी जा सकी — कृपया फिर कोशिश करें।"],
+ "ClII5l": ["इस थीम का उपयोग करने के लिए ऊपर “कस्टम” पर सूरज या चाँद दबाएँ।"],
"ClTEde": ["चयनित अंश को एजेंट पैनल में तैयार रखें, जोड़कर भेजने के लिए तैयार।"],
"CmeH9S": [["keyName"], " में प्रॉपर्टी जोड़ें"],
"CnOGgs": ["सिंक मोड"],
@@ -853,6 +867,7 @@
"DKYW1G": [
"यह सेटिंग हर मशीन के लिए अलग है और सहयोगियों के साथ साझा नहीं होती। इसके लिए एक API कुंजी चाहिए (नीचे सेट करें), बशर्ते आपका एंडपॉइंट कोई ऐसा स्थानीय सर्वर न हो जिसे इसकी ज़रूरत न हो।"
],
+ "DLIljL": ["कुछ सहेजी गई थीम नहीं दिखाई जा रही हैं क्योंकि थीम फ़ोल्डर स्कैन सीमा से बड़ा है।"],
"DMLE5q": ["MCP स्वतः-मरम्मत विफल रही"],
"DMeaxi": [["0"], " ", ["1"], " डाउनलोड हो रहा है…"],
"DNkveC": ["कॉलम विकल्प"],
@@ -865,6 +880,7 @@
"</0> पर मौजूद है। आपके पास बिना कमिट किए बदलाव हैं जो यहाँ बदलने से रोकते हैं — अपने बदलाव अछूते रखने के लिए इसे किसी वर्कट्री में खोलें।"
],
"DUWgfT": ["GitHub Enterprise Server के साथ फिर से प्रमाणित करें"],
+ "DUb7Ax": ["कई फ़ाइलें इस थीम नाम का उपयोग करती हैं"],
"DVh_Tb": ["ट्रैश के बाद सफ़ाई करने में विफल"],
"DWJtEo": ["आगे क्या होता है"],
"DXd9LM": ["नया वर्कट्री"],
@@ -879,6 +895,7 @@
"DhT_PK": ["OpenKnowledge ने एक स्किल आयात की"],
"DiFKSL": ["markdown फ़ाइलें गिनी जा रही हैं"],
"DiZ3pq": ["आइकन चयनकर्ता"],
+ "DmkTrb": ["यह थीम नहीं बनाई जा सकी। फिर से कोशिश करें।"],
"Dnn2XG": ["स्वचालित"],
"DpjYd6": ["एंकर किए गए पाठ पर जाएँ"],
"DrYM2Z": ["सिंक अक्षम"],
@@ -1050,6 +1067,7 @@
"बताएँ कि आपका कोडबेस कैसे काम करता है ताकि सहकर्मी और AI एजेंट अपना रास्ता खोज सकें। संरचना, मुख्य हिस्सों और उन प्रश्नों को दर्ज करने के लिए अच्छा जो नए योगदानकर्ता हमेशा पूछते हैं।"
],
"FyW0WO": ["ब्राउज़र में प्राधिकृत करें"],
+ "FyyIjH": ["थीम नाम बहुत लंबा है"],
"G-JBA1": ["स्रोत मोड के लिए एक जीवंत कनेक्शन चाहिए — आपके संपादन सहेजे गए हैं और फिर से जुड़ने पर दिखेंगे।"],
"G-h6qN": [["0", "plural", { "one": ["#", " विकल्प सेट"], "other": ["#", " विकल्प सेट"] }]],
"G0I7bo": ["उलझा हुआ हूँ…"],
@@ -1080,6 +1098,7 @@
"GQDSBN": ["लेआउट विकल्प"],
"GSYWCm": ["दस्तावेज़ पैनल छिपाएँ"],
"GUYwCr": ["सूचना ख़ारिज करें"],
+ "GUZHkL": ["पैलेट के रंग मौजूद नहीं हैं"],
"GUqTzn": ["प्रतिस्पर्धी शोध"],
"GXf9hG": [["repoName"], " क्लोन किया जा रहा है…"],
"GZzDqc": [
@@ -1149,6 +1168,7 @@
"HSI88F": ["तालिका हटाएँ"],
"HSh8u_": ["फ़ोल्डर"],
"HTW0Zw": ["एक और क़दम: इस प्रोजेक्ट में <0>claude</0> चलाएँ और OpenKnowledge को एक बार स्वीकृत करें।"],
+ "HZ7fEu": ["थीम का नाम"],
"HbcQYf": [["display"], " पर मौजूद सिमलिंक को स्किल की एक स्वतंत्र प्रति से बदलें? और कुछ नहीं हिलता।"],
"HdkSiO": ["नई फ़ाइल"],
"HfI1dR": ["यह मेरे पास पहले से स्थानीय रूप से है →"],
@@ -1193,6 +1213,7 @@
"IFezUv": ["ऑडिट पूरा नहीं हो सका। फिर कोशिश करें।"],
"IInnZo": ["टकराव"],
"IKoTAC": ["अक्षम ही रखें"],
+ "IMLUBh": ["अमान्य रंग मान"],
"INp_z6": ["इस ", ["0"], " पर टिप्पणी करें या AI से पूछें"],
"IO8REi": ["\"", ["name"], "\" नहीं खोली जा सकी: ", ["0"]],
"IQPyrD": ["अनुपस्थित पेज — बनाने के लिए क्लिक करें"],
@@ -1204,7 +1225,6 @@
"IX_uXB": ["my-feature"],
"IYciRC": ["रिपोर्ट के लिए धन्यवाद!"],
"IajAbS": ["एक स्टार्टर पैक जोड़ें"],
- "IbTC7z": ["कोई base16 स्कीम चिपकाएँ"],
"If0crP": ["AI ", ["targetDisplayName"], " से खोलें, ", ["hint"]],
"IgN3LY": ["<0>", ["address"], "</0> में चयनित पाठ पर"],
"IgTwLt": ["इस दस्तावेज़ को संपादक में खोलें और ग्राफ़ समेटें।"],
@@ -1222,6 +1242,7 @@
"Ix0K8o": ["बाहरी URL नोड छिपाएँ"],
"IxHMdF": ["वह टिप्पणी नहीं हटाई जा सकी।"],
"IxyZXD": ["स्क्रीनशॉट"],
+ "J1XRO3": ["थीम के रंग"],
"J2Mv98": ["नाम (जैसे ", ["login"], ")"],
"J2_JuX": ["कुछ नहीं (", ["0"], " किसी दस्तावेज़ से मेल नहीं खा सकता)"],
"J2eKUI": ["फ़ाइल"],
@@ -1247,7 +1268,7 @@
"JOcPqH": ["एक रिमोट रिपॉज़िटरी को इस मशीन पर लाएँ।"],
"JWsZlx": ["संपादित करने के लिए कोई प्रोजेक्ट खोलें।"],
"JZ8cO6": ["हल्का, गहरा, या OS का अनुसरण।"],
- "J_bJiH": ["कोई अंतर्निहित IDE रंग पट्टिका चुनें, या अपनी ख़ुद की तय करें।"],
+ "JaU1ld": ["थीम नाम में असमर्थित वर्ण हैं"],
"JddocZ": ["हेडर कॉलम टॉगल करें"],
"Jejur6": ["दस्तावेज़ लोड नहीं हो सका"],
"JfPuv7": [["shareBranch"], " एक मान्य ब्रांच नाम नहीं है।"],
@@ -1328,6 +1349,7 @@
"KsAPaB": ["यह ब्रांच यहाँ चेक आउट है:"],
"KtACeE": ["डिफ़ॉल्ट: <0>", ["0"], "</0>"],
"KujtjC": ["खोजें"],
+ "Kx881F": [["0"], " बहाल कर दिया गया।"],
"L-rMC9": ["डिफ़ॉल्ट पर रीसेट करें"],
"L1BQTH": [["0"], " अभी इंस्टॉल नहीं है — इसका डाउनलोड पेज खोला जा रहा है।"],
"L1ZE3M": ["दस्तावेज़ आँकड़े"],
@@ -1503,6 +1525,7 @@
"N55YNr": [
"चुनें कि इस प्रोजेक्ट का OpenKnowledge सेटअप, उसके AI-टूल कनेक्शन सहित, प्रोजेक्ट के साथ सहेजा जाए ताकि सहकर्मियों को भी मिले, या केवल आपके कंप्यूटर पर रखा जाए।"
],
+ "N6j2JH": [["0"], " संपादित करें"],
"NBdIgR": ["टिप्पणी करें"],
"NCmYhK": [
"स्किल एजेंट को दोहराए जा सकने वाले काम सिखाती हैं। उन्हें संपादक के Skills अनुभाग से लिखें और सँभालें; हर स्किल का इंस्टॉल मेन्यू तय करता है कि वह कहाँ रहेगी। ये इस प्रोजेक्ट के स्किल फ़ोल्डर हैं।"
@@ -1699,6 +1722,7 @@
],
"QAi7Q9": ["ब्रांच <0>", ["trimmed"], "</0> का पहले से एक वर्कट्री है — यह अपनी अलग विंडो में खुलेगा।"],
"QB-moX": ["इसे साझा करने के लिए अपने बाकी संपादकों (Claude Code, Cursor, Codex) में इंस्टॉल करें।"],
+ "QDErHs": [["slot"], " चुनें — ", ["0"]],
"QDZbvN": [["diffDays"], " दिन पहले"],
"QGWzup": ["OpenKnowledge स्किल लोड हो रही हैं"],
"QHCx0c": ["बग रिपोर्ट इतिहास"],
@@ -1729,11 +1753,11 @@
"QlxHAH": ["\"", ["semanticResultsLabel"], "\" के परिणाम दिखाए जा रहे हैं"],
"Qpfxa1": [["secs"], "से"],
"QqBQu1": ["लेबल <0>(दिखाई देने वाला लिंक पाठ)</0>"],
- "Quz_Qu": ["संपादन तुरंत लागू होते हैं। हल्का या गहरा रंग स्कीम से आता है।"],
"Qvls7J": ["इंजीनियरिंग स्पेक"],
"Qw-7Ie": [
"लिखने के लिए एक सरल जगह, हर विषय के लिए एक फ़ाइल और एक दैनिक जर्नल के साथ। इसे चुनें यदि आप बस लिखना शुरू करना चाहते हैं और समय के साथ नोटों के बीच के संबंध बनने देना चाहते हैं।"
],
+ "QwG_zJ": ["विरोधी फ़ाइलें: ", ["0"], "।"],
"QySH4I": ["पाए गए OpenKnowledge प्रोजेक्ट"],
"QyioBP": ["ऊपर ले जाएँ"],
"QzofTX": ["इस प्रोजेक्ट में अभी कोई टिप्पणी नहीं है। शुरू करने के लिए किसी अंश पर टिप्पणी करें."],
@@ -1748,6 +1772,7 @@
]
],
"R0jJzV": ["URL, owner/repo चिपकाएँ, या अपनी रिपॉज़िटरी खोजें"],
+ "R30SFt": ["छोटे अक्षरों वाला .yaml या .yml एक्सटेंशन इस्तेमाल करें"],
"R3y75Z": ["स्रोत संपादित करें"],
"R4OWFD": ["अनुभाग"],
"R65q-K": [
@@ -1758,6 +1783,7 @@
"R9dK63": ["नमूना छवि"],
"RDjuBN": ["सेटअप"],
"RDrXh4": ["उपयोगकर्ता, प्रोजेक्ट और एकीकरण सेटिंग कॉन्फ़िगर करें।"],
+ "RG3yW6": ["इस थीम का नाम दर्ज करें।"],
"RG4XHV": [["0"], " प्रॉम्प्ट कॉपी करें"],
"RGCCrg": ["साझा लिंक कॉपी करें"],
"RGkNeJ": ["एक स्टार्टर पैक आरंभ करें"],
@@ -1916,6 +1942,7 @@
"UEdTEN": ["अनाथ"],
"UGeJuP": ["अनुमत मान (खाली = कोई भी)"],
"UGtPix": ["GitHub कनेक्शन समाप्त हो गया। जारी रखने के लिए फिर से कनेक्ट करें।"],
+ "UH0Zqw": ["यह सामान्य थीम फ़ाइल नहीं है"],
"UHwc0P": [
"यह ",
["boldName"],
@@ -1966,7 +1993,6 @@
],
"Uci-Ph": ["क्रमित सूची"],
"Ud0Pj9": ["<0>मिरर स्रोत हटा दिया गया।</0> दस्तावेज़ <1>", ["src"], "</1> अब उपलब्ध नहीं है।"],
- "UeQEbk": ["सैकड़ों स्कीम ब्राउज़ करें"],
"UfW9Kr": [
"आपकी खोज क्वेरी और मेल खाते पेजों का पूरा पाठ एम्बेडिंग बनाने के लिए आपके एम्बेडिंग प्रदाता (डिफ़ॉल्ट रूप से OpenAI) को भेजा जाता है।"
],
@@ -2052,6 +2078,7 @@
],
"W8vpBM": ["स्टार्टर पैक"],
"W9_Bub": ["स्थानीय बदलाव आने वाले सिंक से टकराते हैं"],
+ "WBNpt9": ["यह थीम पढ़ी नहीं जा सकी (", ["0"], ")"],
"WFEbV1": ["संपादक में सामान्य markdown समस्याएँ चिह्नित करें। <0>markdownlint<1/></0> द्वारा संचालित।"],
"WGMoTY": ["बग, क्रैश, या यह भरोसेमंद नहीं लगा"],
"WHPvOb": ["सभी फ़ाइलें दृश्य फ़िल्टर द्वारा छिपी हैं।"],
@@ -2180,6 +2207,7 @@
"Y9c_nf": ["0/0"],
"YBt9YP": ["बीटा"],
"YC6_wP": [["keyName"], " संपादित करें"],
+ "YCmS3k": [["0"], " हटा दिया गया।"],
"YDL7N6": [
"Lint प्लगइन — कौन से नियम परिवार चलते हैं और उनकी प्रति-नियम सेटिंग — इस प्रोजेक्ट → Plugins के अंतर्गत उनके अपने टैब पर कॉन्फ़िगर होते हैं।"
],
@@ -2205,6 +2233,7 @@
"Y_kL7X": ["संपादक कैसा दिखे और कैसे काम करे यह अपने अनुसार तय करें।"],
"Ya3PlJ": ["अनुमति आवश्यक है"],
"YaeyFh": ["खींचने पर आपकी स्थानीय फ़ाइलों के बिना कमिट किए संपादन मिट सकते हैं।"],
+ "Yb82LN": ["ID: ", ["0"]],
"Yea-K5": ["इस बिंदु पर बहाल करें"],
"Yi0VMG": [["keyName"], " अपलोड करें"],
"YjMLg2": ["बंद — बाहरी लिंक केवल अपना URL दिखाते हैं। कोई अनुरोध इस कंप्यूटर से बाहर नहीं जाता।"],
@@ -2276,6 +2305,7 @@
"ZYtq3m": [
"आप जिन AI टूल का उपयोग करते हैं उन्हें इस विशेष प्रोजेक्ट से जोड़ें। ये फ़ाइलें प्रोजेक्ट फ़ोल्डर में रहती हैं, इसलिए जो भी इसे खोलता है उसे वही सेटअप मिलता है।"
],
+ "Z_nNa2": ["अपनी थीम को नाम दें"],
"ZatAO_": ["लिंक पूर्वावलोकन सक्षम करने में विफल — ", ["detail"]],
"Zf0w-R": [
"किसी लेखन को एक कच्चे विचार से तैयार मसौदे तक और फिर साझा करने लायक चीज़ तक ले जाएँ। ब्लॉग पोस्ट, निबंध, या ऐसी किसी भी चीज़ के लिए अच्छा जिसे आप स्पष्ट चरणों से गुज़ारना चाहते हैं।"
@@ -2311,11 +2341,13 @@
["currentLabel"],
"</1> पर हैं।"
],
+ "_DwR-n": ["बनाया जा रहा है…"],
"_FLBbi": [["sizeText"], " · गोपनीय जानकारी हटाई गई · क्रैश डंप से नहीं हटाई गई"],
"_GRWOJ": ["एम्बेडिंग प्रदाता बदलें?"],
"_HgF9q": ["इसके अनुसार क्रम"],
"_IGfXZ": ["पिछली बार OpenKnowledge अप्रत्याशित रूप से बंद हो गया था।"],
"_IX_7x": ["अन्य"],
+ "_IfSZn": ["एक सहेजी गई थीम पहले से इस नाम का उपयोग कर रही है।"],
"_JOGC0": ["प्रतिक्रिया भेजें…"],
"_LczaQ": ["अस्वीकृत — ", ["optionName"]],
"_NWEid": ["स्कीमा फ़ाइलें पथ से खोजें"],
@@ -2436,7 +2468,6 @@
"b6Fgpe": ["हर पैक आपके प्रोजेक्ट को तैयार फ़ोल्डर और टेम्पलेट के साथ ढाँचा देता है।"],
"bBE5tC": ["इस मशीन पर पाया गया"],
"bBcFK_": [["keyName"], " के लिए इमोजी चयनकर्ता खोलें"],
- "bD2SLZ": ["स्कीम base16 YAML के रूप में कॉपी की गई"],
"bD8I7O": ["पूर्ण"],
"bEp7UY": ["डेस्कटॉप ब्रिज से नहीं जुड़ा है"],
"bF22t6": ["फ़ील्ड ", ["field"], " हटाएँ"],
@@ -2494,6 +2525,7 @@
"cIptmH": ["Claude Desktop App में"],
"cKjLuT": ["(प्रोजेक्ट + उपयोगकर्ता)"],
"cLP0Lf": ["रिमोट स्किल स्रोत"],
+ "cLn264": ["यह थीम फ़ाइल पढ़ी नहीं जा सकी"],
"cMMb6H": [["imported"], " इंस्टॉल की गईं, पर ", ["failed"], " विफल रहीं: ", ["failedNames"]],
"cN1Gcp": [["shareBranch"], " के लिए एक वर्कट्री फ़ोल्डर पहले से मौजूद है।"],
"cOJyVj": ["थीम अक्षम करें"],
@@ -2507,6 +2539,7 @@
"cU-seF": ["कर्सर वाले ब्लॉक के markdown स्रोत पर जाएँ, बीच में और उभारा हुआ।"],
"cUK8lW": [["conflictCount", "plural", { "one": ["#", " टकराव"], "other": ["#", " टकराव"] }]],
"cUk6TF": ["सिंक विफल — विवरण के लिए सर्वर लॉग देखें।"],
+ "cUt8yN": ["बदलाव अपने आप सहेजे जाते हैं।"],
"cV7LOw": ["टीम विकी"],
"cVKnqL": ["भेजे जाने की प्रतीक्षा में मौजूद टिप्पणियाँ नहीं पढ़ी जा सकीं: ", ["0"]],
"cZGNlb": ["एक और पैटर्न जोड़ें"],
@@ -2541,6 +2574,7 @@
"cstC0z": ["पैटर्न (regex)"],
"ct2kv5": [["pageTarget"], " में कोई शीर्षक नहीं"],
"cuA8QW": ["स्पेक व्यवस्थित करें"],
+ "cuHhjo": ["बनाएँ और संपादित करें"],
"d-GtJt": ["स्रोत Markdown में देखें"],
"d1JjXo": [
"ब्रांच <0>",
@@ -2641,6 +2675,7 @@
"Git इस फ़ोल्डर पर नज़र नहीं रख सकता — यह खाली है या इसमें केवल अनदेखी की गई फ़ाइलें हैं। जब तक आप कोई ट्रैक की गई दस्तावेज़ नहीं जोड़ते तब तक लिंक काम नहीं करेगा।"
],
"eiUA4k": [["count", "plural", { "one": ["#", " टिप्पणी"], "other": ["#", " टिप्पणियाँ"] }]],
+ "ekSPiP": [["0"], " पहले ही हटा दिया गया था।"],
"el2KyL": ["इस प्रोजेक्ट में Slidev मिला। डेक प्रोजेक्ट के संस्करण का उपयोग करेंगे।"],
"emMrXQ": ["सर्वर ने गलत प्रारूप वाली डुप्लिकेट प्रतिक्रिया लौटाई।"],
"emgiet": ["आधिकारिक सामग्री; जहाँ भी संदर्भित हो वहाँ हूबहू प्रतिबिंबित।"],
@@ -2709,6 +2744,7 @@
"fwrPh4": ["कृपया एक मान्य ईमेल डालें।"],
"fxJk_6": ["<0>और कुछ जोड़ना है?</0> <1/> पर लिखें और अपने संदर्भ का उल्लेख करें।"],
"fxbCNQ": ["सिंक हो गया। लिंक अद्यतित है।"],
+ "g12y1g": ["अमान्य YAML"],
"g1ZTh_": [
[
"count",
@@ -2789,7 +2825,6 @@
"gwEcOD": ["आपकी स्थानीय प्रति पीछे है।"],
"gwykHF": ["यह दस्तावेज़ अभी GitHub पर सिंक नहीं हुआ है। अगले सिंक के बाद लिंक काम करेगा।"],
"gyHDWC": ["AI से सब ठीक करें (", ["count"], ")"],
- "gyWc8_": ["उच्चारण चिह्न"],
"h-AdvS": ["फ़ोल्डर और टेम्पलेट पहले से यहीं हैं, इसलिए जोड़ने को कुछ नहीं है।"],
"h06R3C": ["किसी पेज पर जाने वाले ग्राफ़ लिंक अनुपस्थित नहीं हैं।"],
"h16FyT": ["सूचियाँ"],
@@ -2807,6 +2842,7 @@
"hDEaQu": ["OpenKnowledge को अपने उपयोग के अन्य टूल से जोड़ें।"],
"hDKtoF": [["diffHrs"], " घंटे पहले"],
"hDoLrm": [["projectName"], " को हाल के प्रोजेक्ट से हटाएँ"],
+ "hFmYGU": ["लिंक की गई थीम फ़ाइलें समर्थित नहीं हैं"],
"hGmuTc": ["#", ["tagDocsName"], " टैग वाले दस्तावेज़"],
"hHMv6l": ["ब्लॉक हटाएँ"],
"hHR0tt": [["0"], " के साथ नई चैट"],
@@ -2820,6 +2856,7 @@
"hSBIG-": ["एक शीर्षक, विवरण, टैग — कुछ भी जो इस फ़ोल्डर का वर्णन करता हो।"],
"hSySVc": ["इंस्टॉल हैंडऑफ़ विफल: ", ["msg"]],
"hVAkI8": ["टर्मिनल में चलाएँ"],
+ "hVzt9x": ["सहेजी गई थीम लोड नहीं हो सकीं। पिछली उपलब्ध थीम सूची अब भी दिखाई जा रही है।"],
"hXUWyd": ["मान आवश्यक है"],
"hXbSxc": ["एसेट: ", ["title"]],
"hY8pka": ["अगली घटना चुनें"],
@@ -2829,6 +2866,7 @@
"haHgQj": ["सापेक्ष पथ कॉपी किया गया"],
"habOU_": ["स्वत: स्वीकृति सेटिंग अपडेट करने में विफल — ", ["detail"]],
"he3ygx": ["कॉपी करें"],
+ "hgF0al": ["सक्रिय हल्के मोड के लिए ", ["0"], " का उपयोग करें"],
"hgtsat": [["file"], " हटाने में विफल"],
"hh4mVC": ["AI से ", ["flatId"], " ठीक करने को कहें"],
"hhI__i": ["क्या आप वाकई {name} और उसकी सामग्री हटाना चाहते हैं?"],
@@ -3061,6 +3099,7 @@
]
],
"k_pade": ["कॉन्फ़िग साझाकरण अब साझा है। अपनी टीम के साथ साझा करने के लिए OK फ़ाइलें कमिट करें।"],
+ "k_tFzX": ["थीम का नाम मौजूद नहीं है"],
"k_yIIc": ["यहाँ बनाया जाएगा: <0>", ["targetPreview"], "</0>"],
"ka6Eke": ["फ़ाइल डिस्क पर खोलें"],
"kdzzOK": ["बंद — खोज केवल कीवर्ड से क्रम तय करती है। कोई सामग्री इस कंप्यूटर से बाहर नहीं जाती।"],
@@ -3072,6 +3111,7 @@
"khCa4M": ["इस प्रोजेक्ट के कोडिंग एजेंट को OpenKnowledge के ज़रिए पढ़ना और लिखना सिखाता है।"],
"kj9pAE": ["पेज बनाया जा रहा है"],
"kknhfj": ["कोई बदलाव नहीं"],
+ "kkux8f": [["0"], " नहीं हटाया जा सका। फिर से कोशिश करें।"],
"klPS-L": ["मूल फ़ाइल — इस एजेंट के संपादन से पहले।"],
"kmKqZg": ["समूह"],
"knjOzA": ["टैग मान"],
@@ -3085,6 +3125,7 @@
"kwLcuN": [
"आप जिन AI टूल का उपयोग करते हैं उन्हें अपने प्रोजेक्ट पढ़ने और अपडेट करने की पहुँच दें। नीचे चुनें कि क्या सेट अप करना है, और इसे कभी भी Settings > AI tools & CLI में बदलें।"
],
+ "kwNS82": ["फ़ाइल ठीक होने तक इस थीम का उपयोग नहीं किया जा सकता।"],
"ky9Tuc": [["0"], " स्रोत संपादित करें"],
"kzpkcn": ["वह संपादन नहीं सहेजा जा सका।"],
"l-4nnw": ["नियम खोजें"],
@@ -3130,6 +3171,7 @@
"स्किल के भीतर का एक पथ — कोई भी फ़ोल्डर चलेगा (जैसे references/notes.md)। पथ के फ़ोल्डर आपके लिए बना दिए जाते हैं।"
],
"lPzyrU": ["सभी हंक सुलझा दिए गए"],
+ "lS83Sg": ["क्लिपबोर्ड तक नहीं पहुँचा जा सका।"],
"lScd1O": ["Slidev डेक केवल OpenKnowledge डेस्कटॉप ऐप में खुलते हैं।"],
"lUtr1r": [["1"], " में से ", ["0"], " चुने गए"],
"lVWEIL": [["total"], " में से ", ["embedded"], " पेज अनुक्रमित।"],
@@ -3267,6 +3309,7 @@
"nNYV3Y": ["और ", ["remaining"], " अन्य"],
"nOEDQs": ["सिंक मोड अपडेट करने में विफल — ", ["detail"]],
"nP-KFo": ["नई ", ["0"], " चैट"],
+ "nTM8ab": ["इसके रंग संपादित करने से पहले इसे नाम दें।"],
"nTwL53": ["किसी दस्तावेज़ का URL साझा करने के लिए उसे खोलें।"],
"nUNZL4": [["0"], " से पूछें"],
"nWv1ja": ["छिपी हुई फ़ाइलें Settings → Ignore patterns में सँभालें।"],
@@ -3311,6 +3354,7 @@
"Git पहचान सेट नहीं है — कमिट एक डिफ़ॉल्ट लेखक का उपयोग करते हैं। अपनी पहचान सेट करें ताकि सहकर्मी आपका नाम देख सकें।"
],
"nrXDdR": ["फ़ील्ड नाम"],
+ "nsM-_m": ["सैकड़ों थीम ब्राउज़ करें"],
"nsUDL8": [["1"], " में से ", ["0"], " प्रोजेक्ट चुने गए"],
"nskygk": ["एजेंट चुनें"],
"nwtY4N": ["कुछ ग़लत हो गया"],
@@ -3349,6 +3393,7 @@
"प्रोजेक्ट प्लगइन आपके प्रोजेक्ट का लेखन मानक हैं — उन्हें यहाँ चालू या बंद करें। यह चुनाव config.yml में कमिट होता है और git के ज़रिए हर सहयोगी के साथ साझा होता है। हर सक्षम प्लगइन को सेटिंग साइडबार में Plugins के अंतर्गत अपना पेज मिलता है।"
],
"oYepHb": ["इस प्रोजेक्ट के लिए टर्मिनल बंद है। यहाँ कमांड चलाने के लिए इसे वापस चालू करें।"],
+ "oZUYMv": [["0"], " बहाल नहीं किया जा सका। वह नाम पहले से उपयोग में है।"],
"of3tF-": [
"आपने ~/Documents चुना। OpenKnowledge उसके नीचे की हर markdown फ़ाइल अनुक्रमित करेगा। यदि आप केवल किसी उप-फ़ोल्डर को सँभालना चाहते हैं, तो कोई छोटा दायरा चुनें।"
],
@@ -3379,6 +3424,7 @@
["0"],
" पर सेट किया था — उसके बाद OK के बाहर किसी चीज़ ने इसे बदल दिया। दिखाई गई स्थिति वही है जो अभी डिस्क पर है; आपका अगला Symlink/Unlink प्रभावी होगा।"
],
+ "p7Utw8": ["यह base16 थीम नहीं है"],
"p98xmP": ["किस पर लागू"],
"p9sdCy": ["नया अनदेखा करने का पैटर्न"],
"pA16WG": ["इस प्रोजेक्ट का कोई GitHub रिमोट नहीं है।"],
@@ -3461,6 +3507,7 @@
"qIJIrD": ["जाँचा जा रहा है"],
"qJSo0_": ["प्रतियों और सिमलिंक में क्या अंतर है?"],
"qNOgUu": ["स्रोत पर किए गए संपादन यहाँ आते हैं — कॉपी-पेस्ट का कोई बिखराव नहीं।"],
+ "qQi_um": ["थीम आयात की गई।"],
"qRZh7J": ["Tab को अंदर करने के बजाय स्रोत संपादक से बाहर जाने दें।"],
"qSKu2v": ["स्रोत नेविगेशन और चयन"],
"qSxaOz": ["उनका विलोपन स्वीकारें"],
@@ -3498,6 +3545,7 @@
"qo4zCg": ["पथ में बैकस्लैश नहीं हो सकते"],
"qpQwGC": ["बताएँ कि आप किस पर काम कर रहे हैं और एजेंट आपके लिए इसे सेट अप कर देगा।"],
"qribBG": ["स्कीमा ", ["deleteTarget"]],
+ "qtnmEX": ["थीम का मान्य नाम दर्ज करें।"],
"qvWGzP": ["सभी समेटें"],
"qyLmWw": ["स्रोत संपादक का खोज पैनल"],
"r-OJYm": ["एक मान्य ब्रांच नाम डालें (कोई रिक्त स्थान नहीं, शुरू में बिंदु नहीं, \"..\" नहीं)।"],
@@ -3517,6 +3565,7 @@
"rFmBG3": ["रंग थीम"],
"rFw02Q": [["keyName"], " अपलोड किया जा रहा है"],
"rJVoVX": ["स्रोत खोज के परिणाम"],
+ "rJm8-2": ["क्लिपबोर्ड तक नहीं पहुँचा जा सका — थीम नीचे दिए गए बॉक्स में है।"],
"rNifQd": ["प्रॉपर्टी हटाएँ"],
"rQAQus": ["टेम्पलेट नहीं सहेजा जा सका: ", ["error"]],
"rQRrkB": ["कल"],
@@ -3583,7 +3632,6 @@
"sJK6pq": ["अनुमति नहीं"],
"sJWhgo": ["अज्ञात कंपोनेंट: ", ["unregisteredComponentName"]],
"sKEgGd": ["चैट में भेजें"],
- "sKMhJz": ["पृष्ठभूमि से अग्रभूमि"],
"sLcbHt": [
"किसी दूसरे फ़ोल्डर को इनमें से एक में सिमलिंक करें ताकि दोनों एजेंट एक ही स्किल पढ़ें; किसी फ़ोल्डर की स्किल फिर से एक-एक करके सँभालने के लिए अनलिंक करें।"
],
@@ -3753,6 +3801,7 @@
"ur2XSb": ["दृश्य संपादक"],
"uuoHOU": ["कमांड विफल।"],
"uyJsf6": ["परिचय"],
+ "uyOQ4e": ["थीम को base16 YAML के रूप में कॉपी किया गया"],
"uynXup": [["tokens", "plural", { "one": ["टोकन"], "other": ["टोकन"] }]],
"v-h2hx": [["targetGitPath"], " हटाएँ"],
"v2ZW0K": ["टर्मिनल सक्षम करें"],
@@ -3861,6 +3910,7 @@
],
"wZPUJx": ["“", ["0"], "”"],
"w_Sphq": ["संलग्नक"],
+ "wbMbiY": [["selectedSlot"], " कॉपी किया गया"],
"wbpoGe": ["OpenKnowledge स्किल इंस्टॉल नहीं हो सकी: ", ["message"]],
"wbv9xO": ["नया प्रोजेक्ट बनाएँ"],
"wc54KE": ["आज़माया जा रहा है…"],
@@ -4041,6 +4091,7 @@
"zL0LPh": ["पाठ फ़ील्ड के बाहर वैश्विक"],
"zLGXna": ["कोई स्टार्टर पैक उपलब्ध नहीं।"],
"zLak8b": ["नया टैब सक्रिय करें"],
+ "zMmwh4": ["कोई थीम चुनें या अपनी थीम बनाएँ।"],
"zQBg2C": ["मौजूदा ब्लॉक को एक स्थान ऊपर या नीचे ले जाएँ।"],
"zXj1rA": ["अर्थ के अनुसार खोजें"],
"zYp8Sr": [
diff --git a/packages/app/src/locales/hi/messages.po b/packages/app/src/locales/hi/messages.po
index 0f525320a..b184aae94 100644
--- a/packages/app/src/locales/hi/messages.po
+++ b/packages/app/src/locales/hi/messages.po
@@ -332,6 +332,11 @@ msgstr "कुल {0}"
msgid "{0} version {1}"
msgstr "{0} संस्करण {1}"
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "{0} was already deleted."
+msgstr "{0} पहले ही हटा दिया गया था।"
+
#. placeholder {0}: activeData.label
#: src/components/EditorWorkspace.tsx
msgid "{0} was not moved."
@@ -777,6 +782,11 @@ msgstr "{sizeText} · गोपनीय जानकारी हटाई ग
msgid "{skillCount, plural, one {skill} other {skills}}"
msgstr "{skillCount, plural, one {स्किल} other {स्किल}}"
+#. placeholder {0}: BASE16_SLOT_ROLES[slot]
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "{slot} color — {0}"
+msgstr "{slot} रंग — {0}"
+
#: src/components/settings/CustomThemeEditor.tsx
msgid "{slot} hex value"
msgstr "{slot} हेक्स मान"
@@ -1040,6 +1050,10 @@ msgstr "एक आवश्यक git टूल"
msgid "A reusable starting point for new documents in this folder."
msgstr "इस फ़ोल्डर में नए दस्तावेज़ों के लिए एक पुन: उपयोग योग्य शुरुआती बिंदु।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "A saved theme already uses this name."
+msgstr "एक सहेजी गई थीम पहले से इस नाम का उपयोग कर रही है।"
+
#: src/components/TemplateForm.tsx
msgid "A short line shown under the title in the template list."
msgstr "टेम्पलेट सूची में शीर्षक के नीचे दिखाई जाने वाली एक छोटी पंक्ति।"
@@ -1096,10 +1110,6 @@ msgstr "ऊपर"
msgid "absent"
msgstr "अनुपस्थित"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Accents"
-msgstr "उच्चारण चिह्न"
-
#: src/components/DiffView.tsx
msgid "Accept"
msgstr "स्वीकारें"
@@ -1779,10 +1789,6 @@ msgstr "वापस"
msgid "Back to document view"
msgstr "दस्तावेज़ दृश्य पर वापस"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Background to foreground"
-msgstr "पृष्ठभूमि से अग्रभूमि"
-
#: src/components/LinksPanel.tsx
msgid "Backlinks"
msgstr "बैकलिंक"
@@ -1927,8 +1933,8 @@ msgid "Browse folder"
msgstr "फ़ोल्डर ब्राउज़ करें"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Browse hundreds of schemes"
-msgstr "सैकड़ों स्कीम ब्राउज़ करें"
+msgid "Browse hundreds of themes"
+msgstr "सैकड़ों थीम ब्राउज़ करें"
#: src/components/ImportSkillDialog.tsx
msgid "Browse or upload a skill for this project."
@@ -2047,6 +2053,7 @@ msgstr "यह पथ साझा नहीं किया जा सकता
#: src/components/ReportBugDialogBody.tsx
#: src/components/SeedDialog.tsx
#: src/components/settings/LinkPreviewsSection.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/settings/SearchSection.tsx
#: src/components/ShareBranchSwitchDialog.tsx
#: src/components/ShareReceiveDialog.tsx
@@ -2102,6 +2109,18 @@ msgstr "बाहर बदला गया"
msgid "Changed outside OK since it last wrote here — the state shown is what's on disk now"
msgstr "OK के पिछली बार यहाँ लिखने के बाद से बाहर बदला गया — दिखाई गई स्थिति वही है जो अभी डिस्क पर है"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes save automatically to this theme."
+msgstr "बदलाव इस थीम में अपने आप सहेजे जाते हैं।"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes save automatically."
+msgstr "बदलाव अपने आप सहेजे जाते हैं।"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes saved automatically."
+msgstr "बदलाव अपने आप सहेज दिए गए।"
+
#: src/components/command-palette-commands.ts
msgid "Check for updates"
msgstr "अपडेट देखें"
@@ -2699,6 +2718,11 @@ msgstr "टकराव"
msgid "Conflicted files"
msgstr "विरोध वाली फ़ाइलें"
+#. placeholder {0}: warning.conflictingFilenames.join(', ')
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Conflicting files: {0}."
+msgstr "विरोधी फ़ाइलें: {0}।"
+
#: src/components/ConflictsSection.tsx
msgid "Conflicts"
msgstr "विरोध"
@@ -2891,6 +2915,10 @@ msgstr "बदला जा रहा है…"
msgid "Copied"
msgstr "कॉपी किया गया"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Copied {selectedSlot}"
+msgstr "{selectedSlot} कॉपी किया गया"
+
#: src/components/EditorTabTargetMenuItems.tsx
#: src/components/FileSidebar.tsx
#: src/components/FileTree.tsx
@@ -2928,6 +2956,7 @@ msgstr "प्रति"
#: src/components/CopyButton.tsx
#: src/components/empty-state/CopyablePromptList.tsx
#: src/components/InstallInClaudeDesktopDialog.tsx
+#: src/components/settings/CustomThemeEditor.tsx
#: src/lib/native-menu-catalog.ts
msgid "Copy"
msgstr "कॉपी करें"
@@ -3212,6 +3241,15 @@ msgstr "रिपोर्ट नहीं बनाई जा सकी"
msgid "Couldn't create the worktree. Try a different name."
msgstr "वर्कट्री नहीं बनाया जा सका। कोई दूसरा नाम आज़माएँ।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t create this theme. Try again."
+msgstr "यह थीम नहीं बनाई जा सकी। फिर से कोशिश करें।"
+
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t delete {0}. Try again."
+msgstr "{0} नहीं हटाया जा सका। फिर से कोशिश करें।"
+
#. placeholder {0}: result.error
#: src/components/SkillFileDeleteDialog.tsx
msgid "Couldn't delete file: {0}"
@@ -3229,6 +3267,10 @@ msgstr "टेम्पलेट नहीं हटाया जा सका:
msgid "Couldn't delete that comment."
msgstr "वह टिप्पणी नहीं हटाई जा सकी।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t delete this theme. Refresh and try again."
+msgstr "यह थीम नहीं हटाई जा सकी। रीफ़्रेश करके फिर से कोशिश करें।"
+
#: src/components/settings/AccountSection.tsx
msgid "Couldn't disconnect — please try again."
msgstr "कनेक्शन नहीं तोड़ा जा सका — कृपया फिर कोशिश करें।"
@@ -3392,8 +3434,12 @@ msgid "Couldn't reach the agent registry."
msgstr "एजेंट रजिस्ट्री तक नहीं पहुँचा जा सका।"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Couldn’t reach the clipboard — the scheme is in the box below."
-msgstr "क्लिपबोर्ड तक नहीं पहुँचा जा सका — स्कीम नीचे बॉक्स में है।"
+msgid "Couldn’t reach the clipboard — the theme is in the box below."
+msgstr "क्लिपबोर्ड तक नहीं पहुँचा जा सका — थीम नीचे दिए गए बॉक्स में है।"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Couldn’t reach the clipboard."
+msgstr "क्लिपबोर्ड तक नहीं पहुँचा जा सका।"
#: src/components/CommandPalette.tsx
msgid "Couldn't reach the embeddings provider — retry"
@@ -3420,6 +3466,11 @@ msgstr "भेजे जाने की प्रतीक्षा में
msgid "Couldn't read the comments waiting to send: {0}"
msgstr "भेजे जाने की प्रतीक्षा में मौजूद टिप्पणियाँ नहीं पढ़ी जा सकीं: {0}"
+#. placeholder {0}: warning.code
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t read this theme ({0})"
+msgstr "यह थीम पढ़ी नहीं जा सकी ({0})"
+
#: src/components/EditorActivityPool.tsx
msgid "Couldn't reconnect after server restart"
msgstr "सर्वर पुनः आरंभ होने के बाद फिर से नहीं जुड़ा जा सका"
@@ -3468,6 +3519,16 @@ msgstr "सर्वर अपने आप पुनः आरंभ नही
msgid "Couldn't restart the server. Try `ok start` in this folder."
msgstr "सर्वर पुनः आरंभ नहीं किया जा सका। इस फ़ोल्डर में `ok start` आज़माएँ।"
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t restore {0}. That name is already in use."
+msgstr "{0} बहाल नहीं किया जा सका। वह नाम पहले से उपयोग में है।"
+
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t restore {0}. Try again."
+msgstr "{0} बहाल नहीं किया जा सका। फिर से कोशिश करें।"
+
#. placeholder {0}: resumeError.message
#: src/components/acp/ThreadView.tsx
msgid "Couldn't resume this chat: {0}"
@@ -3477,6 +3538,10 @@ msgstr "यह चैट फिर से शुरू नहीं हो स
msgid "Couldn't run the test. Check that OpenKnowledge is still running."
msgstr "परीक्षण नहीं चलाया जा सका। जाँचें कि OpenKnowledge अब भी चल रहा है।"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Couldn’t save changes. Try editing a color again."
+msgstr "बदलाव सहेजे नहीं जा सके। किसी रंग को फिर से संपादित करें।"
+
#: src/components/TemplateForm.tsx
msgid "Couldn't save template: {error}"
msgstr "टेम्पलेट नहीं सहेजा जा सका: {error}"
@@ -3595,6 +3660,10 @@ msgstr "क्रैश डंप"
msgid "Create"
msgstr "बनाएँ"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Create & edit"
+msgstr "बनाएँ और संपादित करें"
+
#: src/components/TemplateRow.tsx
msgid "Create a document from {label}"
msgstr "{label} से एक दस्तावेज़ बनाएँ"
@@ -3666,6 +3735,10 @@ msgstr "नया प्रोजेक्ट बनाएँ"
msgid "Create new tag #{tagValue}"
msgstr "नया टैग #{tagValue} बनाएँ"
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Create new theme"
+msgstr "नई थीम बनाएँ"
+
#: src/components/GraphPanel.tsx
#: src/components/ProblemsPanel.tsx
#: src/editor/extensions/InternalLinkPropPanel.tsx
@@ -3764,6 +3837,10 @@ msgstr "पेज बनाया जा रहा है: {linkTitle}."
msgid "Creating..."
msgstr "बनाया जा रहा है…"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Creating…"
+msgstr "बनाया जा रहा है…"
+
#: src/components/RecentProjectsMenu.tsx
msgid "Current"
msgstr "मौजूदा"
@@ -3836,8 +3913,10 @@ msgstr "डिफ़ॉल्ट: <0>{0}</0>"
msgid "Delete"
msgstr "हटाएँ"
+#. placeholder {0}: theme.label
#. placeholder {0}: thread.title
#: src/components/acp/ThreadHistoryMenu.tsx
+#: src/components/settings/ColorThemePicker.tsx
msgid "Delete {0}"
msgstr "{0} हटाएँ"
@@ -3917,6 +3996,11 @@ msgstr "यह चैट हटाएं?"
msgid "Delete this comment"
msgstr "यह टिप्पणी हटाएँ"
+#. placeholder {0}: deletedTheme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Deleted {0}."
+msgstr "{0} हटा दिया गया।"
+
#: src/components/settings/LintingSection.tsx
msgid "Deleted {file}"
msgstr "{file} हटाई गई"
@@ -4235,6 +4319,7 @@ msgstr "पूर्ण"
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/PublishToGitHubDialog.tsx
#: src/components/ReportBugDialogBody.tsx
+#: src/components/settings/CustomThemeEditor.tsx
#: src/editor/extensions/JsxComponentView.tsx
#: src/editor/extensions/JsxInlineView.tsx
#: src/editor/extensions/MathInlineView.tsx
@@ -4369,6 +4454,11 @@ msgstr "हर चयनित टूल को एक OpenKnowledge MCP प्
msgid "Edit"
msgstr "संपादित करें"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Edit {0}"
+msgstr "{0} संपादित करें"
+
#. placeholder {0}: descriptor.displayName ?? descriptor.name
#: src/editor/extensions/JsxComponentView.tsx
msgid "Edit {0} source"
@@ -4442,6 +4532,11 @@ msgstr "टेम्पलेट संपादित किया गया"
msgid "editing [[{realCurrentDoc}]]"
msgstr "[[{realCurrentDoc}]] संपादित किया जा रहा है"
+#. placeholder {0}: scheme.name
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Editing {0}"
+msgstr "{0} संपादित किया जा रहा है"
+
#: src/components/SkillEditBanner.tsx
msgid "Editing {boldName} in place. Changes save straight to your editor's copy."
msgstr "{boldName} को उसी जगह संपादित किया जा रहा है। बदलाव सीधे आपके संपादक की प्रति में सहेजे जाते हैं।"
@@ -4471,8 +4566,12 @@ msgid "Editor status bar"
msgstr "संपादक स्थिति पट्टी"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Edits apply live. Light or dark comes from the scheme."
-msgstr "संपादन तुरंत लागू होते हैं। हल्का या गहरा रंग स्कीम से आता है।"
+msgid "Edits apply live and save automatically to this theme."
+msgstr "संपादन तुरंत लागू होते हैं और इस थीम में अपने आप सहेजे जाते हैं।"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Edits apply live. Light or dark comes from the theme."
+msgstr "संपादन तुरंत लागू होते हैं। हल्का या गहरा थीम से तय होता है।"
#: src/editor/slash-command/component-items.tsx
msgid "Edits at the source land here — no copy-paste drift."
@@ -4643,6 +4742,10 @@ msgstr "#1A2B3C जैसा 6-अंकों का हेक्स मान
msgid "Enter a folder name (e.g. brain)."
msgstr "एक फ़ोल्डर नाम डालें (जैसे brain)।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Enter a name for this theme."
+msgstr "इस थीम का नाम दर्ज करें।"
+
#: src/components/CreateProjectDialog.tsx
msgid "Enter a project name"
msgstr "एक प्रोजेक्ट नाम डालें"
@@ -4659,6 +4762,10 @@ msgstr "इस टेम्पलेट के लिए एक शीर्ष
msgid "Enter a valid branch name (no spaces, no leading dot, no \"..\")."
msgstr "एक मान्य ब्रांच नाम डालें (कोई रिक्त स्थान नहीं, शुरू में बिंदु नहीं, \"..\" नहीं)।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Enter a valid theme name."
+msgstr "थीम का मान्य नाम दर्ज करें।"
+
#: src/components/settings/SearchSection.tsx
msgid "Enter a valid URL (for example https://api.openai.com/v1)."
msgstr "एक मान्य URL डालें (उदाहरण के लिए https://api.openai.com/v1)।"
@@ -5551,6 +5658,10 @@ msgstr "GitHub साइन-इन अनुपस्थित है या उ
msgid "GitHub, a git URL, or a local path."
msgstr "GitHub, एक git URL, या एक स्थानीय पथ।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Give it a name before editing its colors."
+msgstr "इसके रंग संपादित करने से पहले इसे नाम दें।"
+
#: src/components/settings/AiToolsSection.tsx
msgid "Give the AI tools you use access to read and update your projects. Checking a box sets it up right away; unchecking removes it."
msgstr "आप जिन AI टूल का उपयोग करते हैं उन्हें अपने प्रोजेक्ट पढ़ने और अपडेट करने की पहुँच दें। बॉक्स चुनते ही यह तुरंत सेट हो जाता है; हटाने पर हट जाता है।"
@@ -5730,6 +5841,11 @@ msgstr "छिपा हुआ फ़ोल्डर “{basename}”"
msgid "Hide"
msgstr "छिपाएँ"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Hide {0} editor"
+msgstr "{0} संपादक छिपाएँ"
+
#: src/lib/native-menu-catalog.ts
msgid "Hide {appName}"
msgstr "{appName} छिपाएँ"
@@ -5935,6 +6051,11 @@ msgstr "मैं किसी दूसरे टूल पर जा रहा
msgid "Icon picker"
msgstr "आइकन चयनकर्ता"
+#. placeholder {0}: createIdentity.stem
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "ID: {0}"
+msgstr "ID: {0}"
+
#: src/components/AutoSyncEnableWarning.tsx
msgid "If an update arrives for something you are editing, you choose which version to keep, like a merge conflict."
msgstr "यदि आपके संपादित किए जा रहे किसी हिस्से के लिए कोई अपडेट आता है, तो आप चुनते हैं कि कौन सा संस्करण रखना है, ठीक मर्ज टकराव की तरह।"
@@ -5970,10 +6091,6 @@ msgstr "टेम्पलेट के रूप में आयात कर
msgid "Import failed: {0}"
msgstr "आयात विफल: {0}"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Import scheme"
-msgstr "स्कीम आयात करें"
-
#. placeholder {0}: result.name
#: src/lib/skill-import-toast.ts
msgid "Imported \"{0}\"."
@@ -6315,6 +6432,10 @@ msgstr "AI के लिए निर्देश"
msgid "Integrations"
msgstr "एकीकरण"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Invalid color value"
+msgstr "अमान्य रंग मान"
+
#: src/components/CreateProjectDialog.tsx
msgid "Invalid input — pick a different folder."
msgstr "अमान्य इनपुट — कोई दूसरा फ़ोल्डर चुनें।"
@@ -6335,6 +6456,10 @@ msgstr "सर्वर प्रतिक्रिया की संरचन
msgid "Invalid share URL."
msgstr "साझा करने का URL अमान्य है।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Invalid YAML"
+msgstr "अमान्य YAML"
+
#: src/uninstall/UninstallSurveyScreen.tsx
msgid "It didn't fit into my workflow"
msgstr "यह मेरे कार्यप्रवाह में फ़िट नहीं बैठा"
@@ -6568,6 +6693,10 @@ msgstr "लिंक URL"
msgid "Link-graph response did not match expected shape."
msgstr "लिंक-ग्राफ़ की प्रतिक्रिया अपेक्षित आकार से मेल नहीं खाई।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Linked theme files aren’t supported"
+msgstr "लिंक की गई थीम फ़ाइलें समर्थित नहीं हैं"
+
#: src/components/DocPanel.tsx
msgid "Links"
msgstr "लिंक"
@@ -6943,6 +7072,14 @@ msgstr "अनुपस्थित पेज — बनाने के लि
msgid "Missing page: {linkTitle}. Click to create."
msgstr "अनुपस्थित पेज: {linkTitle}. बनाने के लिए क्लिक करें।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Missing palette colors"
+msgstr "पैलेट के रंग मौजूद नहीं हैं"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Missing theme name"
+msgstr "थीम का नाम मौजूद नहीं है"
+
#: src/components/SyncStatusBadge.tsx
msgid "Mode"
msgstr "मोड"
@@ -7140,6 +7277,10 @@ msgstr "सोचा जा रहा है…"
msgid "Multi-page PDF viewer with toolbar controls (thumbnails, page nav, zoom)."
msgstr "टूलबार नियंत्रणों वाला बहु-पृष्ठ PDF दर्शक (थंबनेल, पेज नेविगेशन, ज़ूम)।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Multiple files use this theme name"
+msgstr "कई फ़ाइलें इस थीम नाम का उपयोग करती हैं"
+
#: src/components/acp/working-status.ts
msgid "Musing…"
msgstr "मनन किया जा रहा है…"
@@ -7182,6 +7323,10 @@ msgstr "नाम खाली नहीं हो सकता"
msgid "Name is required"
msgstr "नाम आवश्यक है"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Name your theme"
+msgstr "अपनी थीम को नाम दें"
+
#: src/lib/keyboard-shortcuts.ts
msgid "Navigate CodeMirror source search results or dismiss the search panel."
msgstr "CodeMirror के स्रोत खोज परिणामों के बीच जाएँ या खोज पैनल ख़ारिज करें।"
@@ -7738,6 +7883,10 @@ msgstr "इनमें से किसी भी समस्या का क
msgid "None of these problems have an automatic fix. Try Fix all with AI."
msgstr "इनमें से किसी भी समस्या का कोई स्वचालित समाधान नहीं है। AI से सब ठीक करें आज़माएँ।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Not a base16 theme"
+msgstr "यह base16 थीम नहीं है"
+
#: src/components/acp/ThreadView.tsx
msgid "Not answered"
msgstr "उत्तर नहीं दिया गया"
@@ -8638,8 +8787,8 @@ msgid "Paste"
msgstr "चिपकाएँ"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Paste a base16 scheme"
-msgstr "कोई base16 स्कीम चिपकाएँ"
+msgid "Paste a base16 theme"
+msgstr "base16 थीम पेस्ट करें"
#: src/components/AuthModal.tsx
msgid "Paste a personal access token for <0>{host}</0>."
@@ -8762,10 +8911,6 @@ msgstr "इस डिवाइस तक सीमित — आपके उप
msgid "Pick <0>openknowledge.skill</0> from your <1>Downloads</1> folder. It enables automatically."
msgstr "अपने <1>Downloads</1> फ़ोल्डर से <0>openknowledge.skill</0> चुनें। यह अपने आप सक्षम हो जाती है।"
-#: src/components/settings/ThemePluginSection.tsx
-msgid "Pick a built-in IDE color palette, or define your own."
-msgstr "कोई अंतर्निहित IDE रंग पट्टिका चुनें, या अपनी ख़ुद की तय करें।"
-
#: src/components/settings/SkillTargetsPicker.tsx
msgid "Pick a folder to merge INTO {display}. That folder becomes a symlink to this one, so its agent reads everything placed here. This folder stays real. Conflicting skills abort the merge."
msgstr "वह फ़ोल्डर चुनें जिसे {display} में मिलाना है। वह फ़ोल्डर इसका सिमलिंक बन जाता है, इसलिए उसका एजेंट यहाँ रखी हर चीज़ पढ़ता है। यह फ़ोल्डर असली बना रहता है। टकराने वाली स्किल मर्ज रोक देती हैं।"
@@ -8778,6 +8923,10 @@ msgstr "कोई नाम चुनें"
msgid "Pick a palette for light mode and one for dark mode. The theme setting in Preferences chooses between them — on “System”, so does your OS."
msgstr "हल्के मोड के लिए एक पट्टिका चुनें और गहरे मोड के लिए एक। Preferences की थीम सेटिंग इनमें से चुनती है — “System” पर आपका OS भी।"
+#: src/components/settings/ThemePluginSection.tsx
+msgid "Pick a theme or create your own."
+msgstr "कोई थीम चुनें या अपनी थीम बनाएँ।"
+
#: src/editor/slash-command/items.tsx
msgid "Pick an emoji to insert at the cursor."
msgstr "कर्सर पर डालने के लिए कोई इमोजी चुनें।"
@@ -8884,8 +9033,8 @@ msgid "Press Space to pick up a tab. Use the arrow keys to move it within a tab
msgstr "टैब उठाने के लिए Space दबाएँ। इसे टैब पट्टी में ले जाने के लिए तीर कुंजियों का उपयोग करें, फिर छोड़ने के लिए Space या Enter दबाएँ। विभाजित करने, बंद करने, पिन करने और अन्य टैब क्रियाओं वाला संदर्भ मेनू खोलने के लिए Shift+F10 या Menu कुंजी दबाएँ।"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Press the sun or moon on “Custom” above to use this scheme."
-msgstr "इस स्कीम का उपयोग करने के लिए ऊपर “Custom” पर सूरज या चाँद दबाएँ।"
+msgid "Press the sun or moon on “Custom” above to use this theme."
+msgstr "इस थीम का उपयोग करने के लिए ऊपर “कस्टम” पर सूरज या चाँद दबाएँ।"
#: src/components/PublishToGitHubDialog.tsx
msgid "Preview browsers can't auto-copy. Use Cmd/Ctrl+C on the URL above, or open OK in the desktop app."
@@ -9785,6 +9934,11 @@ msgstr "इस संस्करण पर बहाल करें?"
msgid "Restore with remote changes"
msgstr "रिमोट बदलावों के साथ बहाल करें"
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Restored {0}."
+msgstr "{0} बहाल कर दिया गया।"
+
#. placeholder {0}: descriptor.targetSha7
#: src/components/TimelinePanel.tsx
msgid "Restored an earlier version ({0})"
@@ -9990,6 +10144,10 @@ msgstr "इस प्रोजेक्ट के स्किल फ़ोल
msgid "Saved into your global skills folder (e.g. <0>~/.agents/skills</0>)."
msgstr "आपके वैश्विक स्किल फ़ोल्डर में सहेजा गया (जैसे <0>~/.agents/skills</0>)।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Saved themes couldn’t load. The last available theme list is still shown."
+msgstr "सहेजी गई थीम लोड नहीं हो सकीं। पिछली उपलब्ध थीम सूची अब भी दिखाई जा रही है।"
+
#: src/components/SkillProperties.tsx
msgid "Saved to"
msgstr "यहाँ सहेजा गया"
@@ -10007,6 +10165,10 @@ msgstr "फ़ाइल को <0>~/Downloads/openknowledge.skill</0> में
msgid "Saving"
msgstr "सहेजा जा रहा है"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Saving changes…"
+msgstr "बदलाव सहेजे जा रहे हैं…"
+
#: src/components/settings/LintingSection.tsx
msgid "schema {deleteTarget}"
msgstr "स्कीमा {deleteTarget}"
@@ -10015,10 +10177,6 @@ msgstr "स्कीमा {deleteTarget}"
msgid "Schema fields"
msgstr "स्कीमा फ़ील्ड"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Scheme copied as base16 YAML"
-msgstr "स्कीम base16 YAML के रूप में कॉपी की गई"
-
#: src/components/ImportSkillForm.tsx
#: src/components/PanelScopeHeader.tsx
msgid "Scope"
@@ -10208,6 +10366,11 @@ msgstr "सभी {0} स्टार्टर पैक देखें"
msgid "See the full install guide"
msgstr "पूरी इंस्टॉल मार्गदर्शिका देखें"
+#. placeholder {0}: BASE16_SLOT_ROLES[slot]
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Select {slot} — {0}"
+msgstr "{slot} चुनें — {0}"
+
#: src/components/FrontmatterRow.tsx
msgid "Select a value"
msgstr "कोई मान चुनें"
@@ -10919,6 +11082,10 @@ msgstr "Slidev शुरू होने में बहुत समय लग
msgid "Small section heading."
msgstr "छोटा अनुभाग शीर्षक।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Some saved themes aren’t shown because the theme folder exceeds the scan limit."
+msgstr "कुछ सहेजी गई थीम नहीं दिखाई जा रही हैं क्योंकि थीम फ़ोल्डर स्कैन सीमा से बड़ा है।"
+
#: src/components/FeedbackForm.tsx
msgid "Something broke"
msgstr "कुछ टूट गया"
@@ -11839,6 +12006,30 @@ msgstr "टोकन को repo और read:user स्कोप चाहि
msgid "Theme"
msgstr "थीम"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme colors"
+msgstr "थीम के रंग"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme copied as base16 YAML"
+msgstr "थीम को base16 YAML के रूप में कॉपी किया गया"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme imported."
+msgstr "थीम आयात की गई।"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name"
+msgstr "थीम का नाम"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name has unsupported characters"
+msgstr "थीम नाम में असमर्थित वर्ण हैं"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name is too long"
+msgstr "थीम नाम बहुत लंबा है"
+
#: src/components/settings/ThemePreviewCanvas.tsx
msgid "Theme preview"
msgstr "थीम पूर्वावलोकन"
@@ -12033,6 +12224,10 @@ msgstr "यह {boldName} का पूर्वावलोकन है, ज
msgid "This is a preview of {boldName}. Install it into your agents."
msgstr "यह {boldName} का पूर्वावलोकन है। इसे अपने एजेंट में इंस्टॉल करें।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This isn’t a regular theme file"
+msgstr "यह सामान्य थीम फ़ाइल नहीं है"
+
#: src/components/SlidesToolbarControls.tsx
msgid "This isn't a supported version of Slidev."
msgstr "यह Slidev का समर्थित संस्करण नहीं है।"
@@ -12194,6 +12389,18 @@ msgstr "इस स्रोत में कई स्किल हैं —
msgid "This template lives in a parent folder — deleting it affects every folder beneath it that doesn't define its own version."
msgstr "यह टेम्पलेट किसी मूल फ़ोल्डर में रहता है — इसे हटाने पर उसके नीचे का हर वह फ़ोल्डर प्रभावित होता है जो अपना संस्करण तय नहीं करता।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme can’t be used until the file is fixed."
+msgstr "फ़ाइल ठीक होने तक इस थीम का उपयोग नहीं किया जा सकता।"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme file couldn’t be read"
+msgstr "यह थीम फ़ाइल पढ़ी नहीं जा सकी"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme file is too large"
+msgstr "यह थीम फ़ाइल बहुत बड़ी है"
+
#: src/components/ShareReceiveDialog.tsx
msgid "This usually means one of:"
msgstr "इसका आमतौर पर मतलब इनमें से एक होता है:"
@@ -12367,6 +12574,7 @@ msgstr "कोई प्रॉम्प्ट आज़माएँ"
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/ReportBugDialogBody.tsx
#: src/components/settings/AccountSection.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/ShareReceiveDialog.tsx
msgid "Try again"
msgstr "फिर कोशिश करें"
@@ -12474,6 +12682,7 @@ msgstr "{docName} पर आख़िरी संपादन पूर्व
#: src/components/ActivityPanelBurstRow.tsx
#: src/components/AppMenubar.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/settings/SharingSection.tsx
#: src/lib/native-menu-catalog.ts
msgid "Undo"
@@ -12741,6 +12950,16 @@ msgstr "{0} को गहरी थीम के रूप में उपय
msgid "Use {0} as the light theme"
msgstr "{0} को हल्की थीम के रूप में उपयोग करें"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Use {0} for the active dark mode"
+msgstr "सक्रिय गहरे मोड के लिए {0} का उपयोग करें"
+
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Use {0} for the active light mode"
+msgstr "सक्रिय हल्के मोड के लिए {0} का उपयोग करें"
+
#: src/components/SkillForkDialog.tsx
msgid "Use {editor} version"
msgstr "{editor} संस्करण उपयोग करें"
@@ -12753,6 +12972,10 @@ msgstr "नीचे दिया लिंक कॉपी करने के
msgid "Use a folder you already have."
msgstr "कोई ऐसा फ़ोल्डर उपयोग करें जो आपके पास पहले से है।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Use a lowercase .yaml or .yml extension"
+msgstr "छोटे अक्षरों वाला .yaml या .yml एक्सटेंशन इस्तेमाल करें"
+
#: src/components/SkillFileCreateDialog.tsx
#: src/components/SkillFileRenameDialog.tsx
msgid "Use a relative path inside the skill (no .., no spaces; SKILL.md is managed)."
@@ -12937,6 +13160,10 @@ msgstr "हम <0>openknowledge.skill</0> बनाएँगे, उसे <1>~/
msgid "We'll create a repository and start syncing — no terminal needed."
msgstr "हम एक रिपॉज़िटरी बनाकर सिंक शुरू कर देंगे — किसी टर्मिनल की ज़रूरत नहीं।"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "We’ll create a safe theme ID from this name."
+msgstr "हम इस नाम से एक सुरक्षित थीम ID बनाएँगे।"
+
#: src/components/ReportBugDialogBody.tsx
msgid "We've filed it with the team and attached your logs."
msgstr "हमने इसे टीम के पास दर्ज कर दिया है और आपके लॉग संलग्न कर दिए हैं।"
diff --git a/packages/app/src/locales/id/messages.json b/packages/app/src/locales/id/messages.json
index 9ad1b9a10..9ab177988 100644
--- a/packages/app/src/locales/id/messages.json
+++ b/packages/app/src/locales/id/messages.json
@@ -34,11 +34,13 @@
"Dikirim secara pribadi ke tim OpenKnowledge, beserta catatan Anda dan versi aplikasinya. Tidak pernah dipublikasikan."
],
"-oHckY": ["OpenKnowledge membaca pengaturan ", ["key"]],
+ "-othoN": ["Berkas tema ini terlalu besar"],
"-q4abP": [
"Hasil dibatasi — ruang kerja ini punya lebih banyak berkas daripada yang bisa diindeks pencarian. Berkas yang hilang bisa jadi efek batasan itu, bukan salah ketik."
],
"-slrNR": ["Menyalakan atau mematikan daftar tugas."],
"-uaQnI": ["Tidak ada worktree atau cabang yang cocok."],
+ "-yOx8u": ["Menyimpan perubahan…"],
"-yPBXI": ["Pilih berkas"],
"-ySLQJ": ["Git & PR"],
"-zA2E7": ["Worktree-nya tidak bisa dibuat. Coba nama lain."],
@@ -102,6 +104,7 @@
"0kTAXe": ["Buka sumber: ", ["mirrorSrc"]],
"0pZmTP": ["Tidak dapat membagikan jalur ini."],
"0qyKG6": ["Tersinkron dari disk"],
+ "0r6d6v": ["Perubahan disimpan otomatis."],
"0rwwOn": ["Berdasarkan tag"],
"0s8-e8": [
"Memilih, masuk, atau keluar dari komponen blok dan blok sumber cadangan dari batas papan ketik."
@@ -112,6 +115,7 @@
"0xnQ_X": ["Pembaruan mengalir masuk"],
"0xnmlQ": ["Nama repositori"],
"0yL--g": ["Tinjau konflik"],
+ "0ySP5u": ["Perubahan disimpan otomatis ke tema ini."],
"0zAhu6": ["semua dokumen"],
"10g8I_": ["Matikan Hanya berkas markdown"],
"11ukmX": ["Gagal mengganti nama: ", ["0"]],
@@ -121,6 +125,7 @@
"161NCV": ["Menghentikan"],
"16D5Zj": ["Yakin ingin menghapus ", ["itemName"], "? Tindakan ini tidak bisa dibatalkan."],
"16eIWu": ["Hentikan paksa"],
+ "16tSS_": ["Tempel tema base16"],
"170Js2": ["Sembunyikan panel"],
"1AumWo": ["Push gagal — periksa log server untuk detailnya."],
"1CalO6": ["Gaya"],
@@ -153,6 +158,7 @@
"1njn7W": ["Terang"],
"1nke1r": ["Buka ", ["0"], " di GitHub (terbuka di tab baru)"],
"1oSHI0": [["skillName"], " tidak bisa dipasang: ", ["0"]],
+ "1qpGKz": ["Perubahan tidak dapat disimpan. Coba sunting warna lagi."],
"1ruosn": ["OpenKnowledge"],
"1t_NnN": ["Tolak"],
"1u-mAI": ["Sinkronisasinya tidak bisa dimulai. Periksa koneksi Anda, lalu coba lagi."],
@@ -271,7 +277,6 @@
"3kYcuM": ["Yakin ingin menghapus item yang dipilih?"],
"3l32hp": ["Bagian dari plugin ", ["plugin"]],
"3l_cXP": ["Silakan lihat kalau mau. Berkas persis inilah yang kami terima."],
- "3l_knd": ["Tekan matahari atau bulan pada “Khusus” di atas untuk memakai skema ini."],
"3m2GBo": ["Mencari dokumen"],
"3mFsc3": ["Pulihkan dengan perubahan remote"],
"3nnyi_": [["0", "plural", { "other": ["Hapus ", "#", " item"] }]],
@@ -311,6 +316,7 @@
"4TzU0n": ["Inisialisasi"],
"4buZWd": ["Diwarisi dari ", ["path"]],
"4c_a6S": ["Belum ada yang disetel."],
+ "4d0VYJ": ["Kami akan membuat ID tema yang aman dari nama ini."],
"4eO-iB": ["Buang komentar ini"],
"4g19V6": ["Gagal memperbarui properti"],
"4h3e0H": ["Berbagi keterampilan tidak bisa diperbarui — ", ["detail"], "."],
@@ -443,6 +449,7 @@
"Jelaskan apa yang harus dilakukannya, atau tambahkan sendiri. OpenKnowledge menyimpan keterampilan Anda di satu tempat, memberinya versi, dan memasangnya ke agen seperti Claude, Codex, dan Cursor."
],
"6MnZEC": ["Gagal memuat terminal"],
+ "6Nea1q": ["Pakai ", ["0"], " untuk mode gelap yang aktif"],
"6O626z": ["Tidak ada judul yang cocok dengan \"", ["trimmedAnchorQuery"], "\""],
"6Pxqwv": [
"Belum ada templat proyek. Buat satu agar tersedia di mana pun dalam proyek ini. Templat khusus folder ada di halaman ikhtisar tiap folder."
@@ -452,6 +459,7 @@
"6VqW-1": ["Hapus ", ["keyName"]],
"6WdDG7": ["Halaman"],
"6YBJ3m": ["Tanya AI tentang pilihan"],
+ "6YE0P6": ["Menyunting ", ["0"]],
"6YtxFj": ["Nama"],
"6ZhdPI": ["Apa yang boleh dibaca, ditulis, dan ditampilkan agen."],
"6_ZOw4": ["Jalur lengkap disalin"],
@@ -481,6 +489,7 @@
"6s7LXO": ["Perhatian"],
"6u9LvN": [["days", "plural", { "other": ["#", " hari lalu"] }]],
"6vEr3W": ["Tujuan tautan"],
+ "6xeZX9": ["Suntingan langsung diterapkan. Tema menentukan mode terang atau gelap."],
"6zzhQL": ["Kirim laporan Anda lewat surel"],
"72xhRD": ["Mode tampilan diagram"],
"74-bX-": ["Kutipan sorot menonjol dari teks di sekitarnya."],
@@ -494,13 +503,13 @@
"Memvalidasi frontmatter dokumen terhadap berkas JSON Schema, dibatasi ke kumpulan dokumen lewat glob."
],
"7Bj3x9": ["Gagal"],
- "7EmDc7": ["Impor skema"],
"7FA2iI": ["Komentar yang menunggu dikirim tidak bisa dibaca — tidak ada yang dikirim."],
"7FamGZ": ["Ke baris"],
"7Fkcej": ["+ Tambah ", ["addChildName"]],
"7H4UHD": ["Dokumen bertag <0>#", ["tagName"], "</0>"],
"7IsvrP": ["Memeriksa pembaruan"],
"7JtSLi": ["Gagal menghapus jalur"],
+ "7O7REc": [["0"], " tidak dapat dipulihkan. Coba lagi."],
"7OhaRy": ["Pencarian di sumber"],
"7Ongq0": ["Ringkas berkas AGENTS.md saya menjadi kurang dari 40 ribu karakter"],
"7OwvEL": ["Tampilkan pratinjau HTML"],
@@ -613,6 +622,8 @@
"8uGMP8": ["Konten tersembunyi ada di sini."],
"8vCZcs": ["Gagal membuka berkas."],
"8vETh9": ["Tampilkan"],
+ "8x6zk9": ["Sembunyikan penyunting ", ["0"]],
+ "9-lMCF": ["Warna ", ["slot"], " — ", ["0"]],
"90-wKT": ["OpenKnowledge membaca riwayat ", ["subject"]],
"92rbk2": ["Cermin memuat <0>", ["mirrorRef"], "</0>"],
"93LBnX": ["Sembunyikan Agen"],
@@ -664,7 +675,6 @@
"9fvog2": ["Pratinjau tidak tersedia: ", ["errorDetail"]],
"9i21pa": ["Commit terjadi otomatis"],
"9ieZhu": ["Terpasang di ", ["path"], " — klik untuk menghapus"],
- "9j1tqo": ["Papan klip tidak bisa dijangkau — skemanya ada di kotak di bawah."],
"9jnjV0": ["Menyematkan berkas audio dengan kendali pemutar bawaan."],
"9lso1Y": ["Membuat folder <0>", ["folderPart"], "/</0>"],
"9m4D_h": ["GitHub, sebuah URL git, atau jalur lokal."],
@@ -701,8 +711,10 @@
],
"AIn2Yv": ["CLI ", ["displayName"], ", ", ["hint"]],
"AItsE5": ["Buka di sana"],
+ "AJ7_B2": ["Buat tema baru"],
"AKxFtn": [["openedWorktreeCount", "plural", { "other": ["worktree"] }]],
"ALhMYW": ["Terminal"],
+ "ANFxWn": ["Tema ini tidak dapat dihapus. Muat ulang lalu coba lagi."],
"APNlbk": ["keluar ", ["0"]],
"AQ-Lfg": ["Templat tidak bisa dimuat"],
"AQGtjK": [
@@ -827,9 +839,11 @@
"Berkas ini terlalu besar untuk dibuka di penyunting teks bawaan (batas 1 MB). Gunakan Buka berkas di bawah untuk membukanya di aplikasi lain."
],
"C_cPoW": ["Sesi GitHub Anda kedaluwarsa — masuk lagi untuk memverifikasi akses push."],
+ "CcaU4i": ["Suntingan langsung diterapkan dan disimpan otomatis ke tema ini."],
"ChAtFg": ["Anda tidak punya izin push ke repo ini"],
"ChMshD": ["Keluar dari ", ["appName"]],
"Ck9XRt": ["Kuncinya tidak bisa disimpan — silakan coba lagi."],
+ "ClII5l": ["Tekan ikon matahari atau bulan pada “Custom” di atas untuk memakai tema ini."],
"ClTEde": ["Siapkan bagian yang dipilih di panel agen, siap dilengkapi dan dikirim."],
"CmeH9S": ["Tambahkan properti ke ", ["keyName"]],
"CnOGgs": ["Mode sinkronisasi"],
@@ -871,6 +885,9 @@
"DKYW1G": [
"Pengaturan ini berlaku per komputer dan tidak dibagikan dengan kolaborator. Ia memerlukan kunci API (setel di bawah) kecuali endpoint Anda adalah server lokal yang tidak memerlukannya."
],
+ "DLIljL": [
+ "Beberapa tema tersimpan tidak ditampilkan karena folder tema melewati batas pemindaian."
+ ],
"DMLE5q": ["Perbaikan otomatis MCP gagal"],
"DMeaxi": ["Mengunduh ", ["0"], " ", ["1"], "…"],
"DNkveC": ["Opsi kolom"],
@@ -882,6 +899,7 @@
"</0>. Anda punya perubahan yang belum di-commit sehingga tidak bisa berpindah di sini — buka di sebuah worktree agar perubahan Anda tetap utuh."
],
"DUWgfT": ["Autentikasi ulang dengan GitHub Enterprise Server"],
+ "DUb7Ax": ["Beberapa berkas menggunakan nama tema ini"],
"DVh_Tb": ["Gagal membersihkan setelah pemindahan ke tempat sampah"],
"DWJtEo": ["Apa yang terjadi selanjutnya"],
"DXd9LM": ["Worktree baru"],
@@ -898,6 +916,7 @@
"DhT_PK": ["OpenKnowledge mengimpor sebuah keterampilan"],
"DiFKSL": ["Menghitung berkas markdown"],
"DiZ3pq": ["Pemilih ikon"],
+ "DmkTrb": ["Tema ini tidak dapat dibuat. Coba lagi."],
"Dnn2XG": ["Otomatis"],
"DpjYd6": ["Lompat ke teks berjangkar"],
"DrYM2Z": ["Sinkronisasi dinonaktifkan"],
@@ -1079,6 +1098,7 @@
"Jelaskan cara kerja basis kode Anda agar rekan tim dan agen AI bisa menemukan arah. Cocok untuk mendokumentasikan arsitektur, bagian-bagian utamanya, dan pertanyaan yang selalu diajukan kontributor baru."
],
"FyW0WO": ["Beri izin di peramban"],
+ "FyyIjH": ["Nama tema terlalu panjang"],
"G-JBA1": [
"Mode sumber memerlukan koneksi langsung — suntingan Anda tersimpan dan akan muncul saat Anda tersambung kembali."
],
@@ -1118,6 +1138,7 @@
"GQDSBN": ["Opsi tata letak"],
"GSYWCm": ["Sembunyikan panel dokumen"],
"GUYwCr": ["Tutup pemberitahuan"],
+ "GUZHkL": ["Warna palet tidak lengkap"],
"GUqTzn": ["Riset pesaing"],
"GXf9hG": ["Mengkloning ", ["repoName"], "..."],
"GZzDqc": [
@@ -1193,6 +1214,7 @@
"HTW0Zw": [
"Satu langkah lagi: jalankan <0>claude</0> di proyek ini dan setujui OpenKnowledge sekali."
],
+ "HZ7fEu": ["Nama tema"],
"HbcQYf": [
"Ganti symlink di ",
["display"],
@@ -1246,6 +1268,7 @@
"IFezUv": ["Audit tidak dapat diselesaikan. Coba lagi."],
"IInnZo": ["Konflik"],
"IKoTAC": ["Biarkan nonaktif"],
+ "IMLUBh": ["Nilai warna tidak valid"],
"INp_z6": ["Beri komentar atau tanya AI tentang ", ["0"], " ini"],
"IO8REi": ["\"", ["name"], "\" tidak bisa dibuka: ", ["0"]],
"IQPyrD": ["Halaman belum ada — klik untuk membuat"],
@@ -1257,7 +1280,6 @@
"IX_uXB": ["fitur-saya"],
"IYciRC": ["Terima kasih atas laporannya!"],
"IajAbS": ["Tambahkan paket awal"],
- "IbTC7z": ["Tempelkan sebuah skema base16"],
"If0crP": ["Buka dengan AI ", ["targetDisplayName"], ", ", ["hint"]],
"IgN3LY": ["Pada teks terpilih di <0>", ["address"], "</0>"],
"IgTwLt": ["Membuka dokumen ini di penyunting dan menciutkan graf."],
@@ -1275,6 +1297,7 @@
"Ix0K8o": ["Sembunyikan simpul URL eksternal"],
"IxHMdF": ["Komentar itu tidak bisa dihapus."],
"IxyZXD": ["Tangkapan layar"],
+ "J1XRO3": ["Warna tema"],
"J2Mv98": ["Nama (mis. ", ["login"], ")"],
"J2_JuX": ["tidak apa pun (", ["0"], " tidak bisa cocok dengan sebuah dokumen)"],
"J2eKUI": ["Berkas"],
@@ -1302,7 +1325,7 @@
"JOcPqH": ["Bawa repositori remote ke komputer ini."],
"JWsZlx": ["Buka sebuah proyek untuk menyunting."],
"JZ8cO6": ["Terang, gelap, atau ikuti sistem."],
- "J_bJiH": ["Pilih palet warna IDE bawaan, atau tentukan sendiri."],
+ "JaU1ld": ["Nama tema berisi karakter yang tidak didukung"],
"JddocZ": ["Alihkan kolom header"],
"Jejur6": ["Dokumen tidak bisa dimuat"],
"JfPuv7": [["shareBranch"], " bukan nama cabang yang valid."],
@@ -1385,6 +1408,7 @@
"KsAPaB": ["Cabang ini sedang dipakai di:"],
"KtACeE": ["Bawaan: <0>", ["0"], "</0>"],
"KujtjC": ["Cari"],
+ "Kx881F": [["0"], " dipulihkan."],
"L-rMC9": ["Setel ulang ke bawaan"],
"L1BQTH": [["0"], " belum terpasang — membuka halaman unduhannya."],
"L1ZE3M": ["Statistik dokumen"],
@@ -1561,6 +1585,7 @@
"N55YNr": [
"Pilih apakah penyiapan OpenKnowledge proyek ini, termasuk koneksi alat AI-nya, disimpan bersama proyek agar rekan tim juga mendapatkannya, atau disimpan hanya di komputer Anda."
],
+ "N6j2JH": ["Sunting ", ["0"]],
"NBdIgR": ["Komentari"],
"NCmYhK": [
"Keterampilan mengajari agen tugas yang berulang. Tulis dan kelola dari bagian Keterampilan di penyunting; menu pemasangan tiap keterampilan menentukan di mana ia berada. Ini adalah folder keterampilan proyek ini."
@@ -1770,6 +1795,7 @@
"QB-moX": [
"Pasang di penyunting Anda yang lain (Claude Code, Cursor, Codex) untuk membagikannya."
],
+ "QDErHs": ["Pilih ", ["slot"], " — ", ["0"]],
"QDZbvN": [["diffDays"], " hr lalu"],
"QGWzup": ["Memuat keterampilan OpenKnowledge"],
"QHCx0c": ["Riwayat laporan bug"],
@@ -1799,11 +1825,11 @@
"QlxHAH": ["Menampilkan hasil untuk \"", ["semanticResultsLabel"], "\""],
"Qpfxa1": [["secs"], "dtk"],
"QqBQu1": ["Label <0>(teks tautan yang terlihat)</0>"],
- "Quz_Qu": ["Suntingan berlaku langsung. Terang atau gelap ditentukan skemanya."],
"Qvls7J": ["Spesifikasi teknik"],
"Qw-7Ie": [
"Tempat sederhana untuk menulis, dengan satu berkas per topik dan jurnal harian. Pilih ini jika Anda hanya ingin mulai menulis dan membiarkan tautan antarcatatan tumbuh seiring waktu."
],
+ "QwG_zJ": ["Berkas yang berkonflik: ", ["0"], "."],
"QySH4I": ["Proyek OpenKnowledge yang terdeteksi"],
"QyioBP": ["Naikkan"],
"QzofTX": ["Belum ada komentar di proyek ini. Komentari sebuah bagian untuk memulai."],
@@ -1811,6 +1837,7 @@
["0", "plural", { "other": ["#", " permintaan diblokir oleh kebijakan keamanan pratinjau"] }]
],
"R0jJzV": ["Tempelkan URL, pemilik/repo, atau cari di repo Anda"],
+ "R30SFt": ["Pakai ekstensi .yaml atau .yml dalam huruf kecil"],
"R3y75Z": ["Sunting sumber"],
"R4OWFD": ["Bagian"],
"R65q-K": [
@@ -1821,6 +1848,7 @@
"R9dK63": ["Contoh gambar"],
"RDjuBN": ["Penyiapan"],
"RDrXh4": ["Atur pengaturan pengguna, proyek, dan integrasi."],
+ "RG3yW6": ["Masukkan nama untuk tema ini."],
"RG4XHV": ["Salin prompt ", ["0"]],
"RGCCrg": ["Salin tautan berbagi"],
"RGkNeJ": ["Inisialisasi sebuah paket awal"],
@@ -1983,6 +2011,7 @@
"UEdTEN": ["Yatim"],
"UGeJuP": ["Nilai yang diizinkan (kosong = apa saja)"],
"UGtPix": ["Koneksi GitHub kedaluwarsa. Hubungkan lagi untuk melanjutkan."],
+ "UH0Zqw": ["Ini bukan berkas tema biasa"],
"UHwc0P": [
"Ini pratinjau ",
["boldName"],
@@ -2036,7 +2065,6 @@
],
"Uci-Ph": ["Daftar Berurut"],
"Ud0Pj9": ["<0>Sumber cermin dihapus.</0> Dokumen <1>", ["src"], "</1> sudah tidak tersedia."],
- "UeQEbk": ["Jelajahi ratusan skema"],
"UfW9Kr": [
"Kueri pencarian Anda dan teks lengkap halaman yang cocok dikirim ke penyedia embedding Anda (OpenAI secara bawaan) untuk menghitung embedding."
],
@@ -2133,6 +2161,7 @@
],
"W8vpBM": ["paket awal"],
"W9_Bub": ["Perubahan lokal bertumpang tindih dengan sinkronisasi yang masuk"],
+ "WBNpt9": ["Tema ini tidak dapat dibaca (", ["0"], ")"],
"WFEbV1": [
"Menandai masalah markdown yang umum di penyunting. Ditenagai <0>markdownlint<1/></0>."
],
@@ -2265,6 +2294,7 @@
"Y9c_nf": ["0/0"],
"YBt9YP": ["Beta"],
"YC6_wP": ["Sunting ", ["keyName"]],
+ "YCmS3k": [["0"], " dihapus."],
"YDL7N6": [
"Plugin lint — keluarga aturan mana yang berjalan dan pengaturan tiap aturannya — diatur di tab tersendiri di bawah Proyek ini → Plugin."
],
@@ -2290,6 +2320,7 @@
"Y_kL7X": ["Sesuaikan tampilan dan perilaku penyunting."],
"Ya3PlJ": ["Perlu izin"],
"YaeyFh": ["Pull bisa menimpa suntingan yang belum di-commit di berkas lokal Anda."],
+ "Yb82LN": ["ID: ", ["0"]],
"Yea-K5": ["Pulihkan hingga titik ini"],
"Yi0VMG": ["Unggah ", ["keyName"]],
"YjMLg2": [
@@ -2365,6 +2396,7 @@
"ZYtq3m": [
"Hubungkan alat AI yang Anda pakai ke proyek ini secara khusus. Berkas-berkas ini ada di folder proyek, jadi siapa pun yang membukanya mendapat penyiapan yang sama."
],
+ "Z_nNa2": ["Beri nama tema Anda"],
"ZatAO_": ["Gagal mengaktifkan pratinjau tautan — ", ["detail"]],
"Zf0w-R": [
"Bawa sebuah tulisan dari ide kasar menjadi draf jadi lalu menjadi sesuatu yang siap Anda bagikan. Cocok untuk pos blog, esai, atau apa pun yang ingin Anda jalankan lewat tahapan yang jelas."
@@ -2399,11 +2431,13 @@
["currentLabel"],
"</1>."
],
+ "_DwR-n": ["Membuat…"],
"_FLBbi": [["sizeText"], " · rahasia disunting · crash dump tidak disunting"],
"_GRWOJ": ["Ganti penyedia embedding?"],
"_HgF9q": ["Urutkan menurut"],
"_IGfXZ": ["OpenKnowledge berhenti tak terduga terakhir kali."],
"_IX_7x": ["Lainnya"],
+ "_IfSZn": ["Tema tersimpan lain sudah menggunakan nama ini."],
"_JOGC0": ["Kirim masukan…"],
"_LczaQ": ["Ditolak — ", ["optionName"]],
"_NWEid": ["Cari berkas skema berdasarkan jalur"],
@@ -2530,7 +2564,6 @@
"b6Fgpe": ["Setiap paket menyusun proyek Anda dengan folder dan templat siap pakai."],
"bBE5tC": ["Terdeteksi di komputer ini"],
"bBcFK_": ["Buka pemilih emoji untuk ", ["keyName"]],
- "bD2SLZ": ["Skema disalin sebagai YAML base16"],
"bD8I7O": ["Lengkap"],
"bEp7UY": ["Tidak terhubung ke bridge desktop"],
"bF22t6": ["Hapus bidang ", ["field"]],
@@ -2596,6 +2629,7 @@
"cIptmH": ["Di aplikasi Claude Desktop"],
"cKjLuT": ["(proyek + pengguna)"],
"cLP0Lf": ["Sumber keterampilan remote"],
+ "cLn264": ["Berkas tema ini tidak dapat dibaca"],
"cMMb6H": [["imported"], " dipasang, tetapi ", ["failed"], " gagal: ", ["failedNames"]],
"cN1Gcp": ["Folder worktree untuk ", ["shareBranch"], " sudah ada."],
"cOJyVj": ["Nonaktifkan Tema"],
@@ -2609,6 +2643,7 @@
"cU-seF": ["Lompat ke sumber markdown untuk blok di posisi kursor, terpusat dan tersorot."],
"cUK8lW": [["conflictCount", "plural", { "other": ["#", " konflik"] }]],
"cUk6TF": ["Sinkronisasi gagal — periksa log server untuk detailnya."],
+ "cUt8yN": ["Perubahan disimpan otomatis."],
"cV7LOw": ["Wiki Tim"],
"cVKnqL": ["Komentar yang menunggu dikirim tidak bisa dibaca: ", ["0"]],
"cZGNlb": ["Tambahkan pola lain"],
@@ -2646,6 +2681,7 @@
"cstC0z": ["Pola (regex)"],
"ct2kv5": ["Tidak ada judul di ", ["pageTarget"]],
"cuA8QW": ["Tata spesifikasi"],
+ "cuHhjo": ["Buat dan sunting"],
"d-GtJt": ["Lihat di sumber Markdown"],
"d1JjXo": [
"Salinan lokal cabang <0>",
@@ -2753,6 +2789,7 @@
"Git tidak bisa melacak folder ini — folder ini kosong atau hanya berisi berkas yang diabaikan. Tautannya tidak akan berfungsi sampai Anda menambahkan dokumen yang dilacak."
],
"eiUA4k": [["count", "plural", { "other": ["#", " komentar"] }]],
+ "ekSPiP": [["0"], " sudah dihapus."],
"el2KyL": ["Slidev ditemukan di proyek ini. Dek akan memakai versi proyek."],
"emMrXQ": ["Server mengembalikan respons duplikasi yang salah bentuk."],
"emgiet": ["Konten otoritatif; dicerminkan apa adanya di mana pun ia dirujuk."],
@@ -2825,6 +2862,7 @@
"fwrPh4": ["Silakan masukkan surel yang valid."],
"fxJk_6": ["<0>Ada yang ingin ditambahkan?</0> Tulis ke <1/> dan sebutkan referensi Anda."],
"fxbCNQ": ["Tersinkron. Tautannya sudah mutakhir."],
+ "g12y1g": ["YAML tidak valid"],
"g1ZTh_": [
[
"count",
@@ -2914,7 +2952,6 @@
"Dokumen ini belum tersinkron ke GitHub. Tautannya akan berfungsi setelah sinkronisasi berikutnya."
],
"gyHDWC": ["Perbaiki semua dengan AI (", ["count"], ")"],
- "gyWc8_": ["Aksen"],
"h-AdvS": ["Folder dan templatnya sudah ada di sini, jadi tidak ada yang perlu ditambahkan."],
"h06R3C": ["Tidak ada halaman yang kehilangan tautan graf keluar."],
"h16FyT": ["Daftar"],
@@ -2936,6 +2973,7 @@
"hDEaQu": ["Hubungkan OpenKnowledge dengan alat lain yang Anda pakai."],
"hDKtoF": [["diffHrs"], " j lalu"],
"hDoLrm": ["Hapus ", ["projectName"], " dari proyek terbaru"],
+ "hFmYGU": ["Berkas tema tertaut tidak didukung"],
"hGmuTc": ["Dokumen bertag #", ["tagDocsName"]],
"hHMv6l": ["Hapus blok"],
"hHR0tt": ["Obrolan baru dengan ", ["0"]],
@@ -2949,6 +2987,9 @@
"hSBIG-": ["Judul, deskripsi, tag — apa saja yang menggambarkan folder ini."],
"hSySVc": ["Serah terima pemasangan gagal: ", ["msg"]],
"hVAkI8": ["Jalankan di terminal"],
+ "hVzt9x": [
+ "Tema tersimpan tidak dapat dimuat. Daftar tema terakhir yang tersedia tetap ditampilkan."
+ ],
"hXUWyd": ["Nilai wajib diisi"],
"hXbSxc": ["Aset: ", ["title"]],
"hY8pka": ["Pilih kemunculan berikutnya"],
@@ -2958,6 +2999,7 @@
"haHgQj": ["Jalur relatif disalin"],
"habOU_": ["Gagal memperbarui pengaturan persetujuan otomatis — ", ["detail"]],
"he3ygx": ["Salin"],
+ "hgF0al": ["Pakai ", ["0"], " untuk mode terang yang aktif"],
"hgtsat": ["Gagal menghapus ", ["file"]],
"hh4mVC": ["Minta AI memperbaiki ", ["flatId"]],
"hhI__i": ["Yakin ingin menghapus \"", ["name"], "\" beserta isinya?"],
@@ -3199,6 +3241,7 @@
"k_pade": [
"Konfigurasi kini dibagikan. Lakukan commit pada berkas OK untuk membagikannya dengan tim Anda."
],
+ "k_tFzX": ["Nama tema tidak ada"],
"k_yIIc": ["Akan dibuat di: <0>", ["targetPreview"], "</0>"],
"ka6Eke": ["Buka berkas di disk"],
"kdzzOK": [
@@ -3214,6 +3257,7 @@
],
"kj9pAE": ["Membuat halaman"],
"kknhfj": ["Tidak ada perubahan"],
+ "kkux8f": [["0"], " tidak dapat dihapus. Coba lagi."],
"klPS-L": ["Berkas asli — sebelum suntingan agen ini."],
"kmKqZg": ["Klaster"],
"knjOzA": ["Nilai tag"],
@@ -3229,6 +3273,7 @@
"kwLcuN": [
"Beri alat AI yang Anda pakai akses untuk membaca dan memperbarui proyek Anda. Pilih apa yang disiapkan di bawah, dan ubah kapan saja di Pengaturan > Alat AI & CLI."
],
+ "kwNS82": ["Tema ini tidak dapat digunakan sampai berkasnya diperbaiki."],
"ky9Tuc": ["Sunting sumber ", ["0"]],
"kzpkcn": ["Suntingan itu tidak bisa disimpan."],
"l-4nnw": ["Cari aturan"],
@@ -3275,6 +3320,7 @@
"Sebuah jalur di dalam keterampilan — folder apa pun bisa (mis. references/notes.md). Folder pada jalur itu dibuatkan untuk Anda."
],
"lPzyrU": ["Semua bagian sudah diselesaikan"],
+ "lS83Sg": ["Papan klip tidak dapat diakses."],
"lScd1O": ["Dek Slidev hanya terbuka di aplikasi desktop OpenKnowledge."],
"lUtr1r": [["0"], " dari ", ["1"], " dipilih"],
"lVWEIL": [["embedded"], " dari ", ["total"], " halaman terindeks."],
@@ -3423,6 +3469,7 @@
"nNYV3Y": ["dan ", ["remaining"], " lagi"],
"nOEDQs": ["Gagal memperbarui mode sinkronisasi — ", ["detail"]],
"nP-KFo": ["Obrolan ", ["0"], " baru"],
+ "nTM8ab": ["Beri nama sebelum menyunting warnanya."],
"nTwL53": ["Buka sebuah dokumen untuk membagikan URL-nya."],
"nUNZL4": ["Tanya ", ["0"]],
"nWv1ja": ["Kelola berkas tersembunyi di Pengaturan → Pola abaikan."],
@@ -3462,6 +3509,7 @@
"Identitas git belum disetel — commit memakai penulis bawaan. Setel milik Anda agar rekan tim melihat nama Anda."
],
"nrXDdR": ["Nama bidang"],
+ "nsM-_m": ["Jelajahi ratusan tema"],
"nsUDL8": [["0"], " dari ", ["1"], " proyek dipilih"],
"nskygk": ["Pilih agen"],
"nwtY4N": ["Ada yang tidak beres"],
@@ -3502,6 +3550,7 @@
"oYepHb": [
"Terminal dimatikan untuk proyek ini. Nyalakan lagi untuk menjalankan perintah di sini."
],
+ "oZUYMv": [["0"], " tidak dapat dipulihkan. Nama itu sudah digunakan."],
"of3tF-": [
"Anda memilih ~/Documents. OpenKnowledge akan mengindeks setiap berkas markdown di bawahnya. Jika Anda hanya ingin mengelola sebuah subfolder, pilih cakupan yang lebih kecil."
],
@@ -3532,6 +3581,7 @@
["0"],
" — sesuatu di luar OK mengubahnya sejak itu. Keadaan yang ditampilkan adalah apa yang ada di disk sekarang; Symlink/Lepas tautan Anda berikutnya yang menang."
],
+ "p7Utw8": ["Bukan tema base16"],
"p98xmP": ["Berlaku untuk"],
"p9sdCy": ["Pola abaikan baru"],
"pA16WG": ["Proyek ini tidak memiliki remote GitHub."],
@@ -3615,6 +3665,7 @@
"qIJIrD": ["Menguji"],
"qJSo0_": ["Apa bedanya salinan dan symlink?"],
"qNOgUu": ["Suntingan di sumbernya sampai ke sini — tanpa penyimpangan salin-tempel."],
+ "qQi_um": ["Tema diimpor."],
"qRZh7J": ["Biarkan Tab keluar dari penyunting sumber alih-alih menambah indentasi."],
"qSKu2v": ["Navigasi dan pemilihan di sumber"],
"qSxaOz": ["Terima penghapusan mereka"],
@@ -3651,6 +3702,7 @@
"qo4zCg": ["Jalur tidak boleh memuat garis miring terbalik"],
"qpQwGC": ["Jelaskan apa yang sedang Anda kerjakan dan agennya akan menyiapkannya untuk Anda."],
"qribBG": ["skema ", ["deleteTarget"]],
+ "qtnmEX": ["Masukkan nama tema yang valid."],
"qvWGzP": ["Ciutkan semua"],
"qyLmWw": ["Panel pencarian penyunting sumber"],
"r-OJYm": ["Masukkan nama cabang yang valid (tanpa spasi, tanpa titik di awal, tanpa \"..\")."],
@@ -3676,6 +3728,7 @@
"rFmBG3": ["Tema warna"],
"rFw02Q": ["Mengunggah ", ["keyName"]],
"rJVoVX": ["Hasil pencarian sumber"],
+ "rJm8-2": ["Papan klip tidak dapat diakses — tema ada di kotak di bawah."],
"rNifQd": ["Hapus properti"],
"rQAQus": ["Templat tidak bisa disimpan: ", ["error"]],
"rQRrkB": ["kemarin"],
@@ -3748,7 +3801,6 @@
"sJK6pq": ["Izin ditolak"],
"sJWhgo": ["Komponen tidak dikenal: ", ["unregisteredComponentName"]],
"sKEgGd": ["Kirim ke obrolan"],
- "sKMhJz": ["Latar ke depan"],
"sLcbHt": [
"Tautkan folder lain ke salah satu folder ini agar kedua agen membaca keterampilan yang sama; lepaskan tautannya untuk kembali mengelola keterampilan sebuah folder satu per satu."
],
@@ -3915,6 +3967,7 @@
"ur2XSb": ["Penyunting visual"],
"uuoHOU": ["Perintah gagal."],
"uyJsf6": ["Tentang"],
+ "uyOQ4e": ["Tema disalin sebagai YAML base16"],
"uynXup": [["tokens", "plural", { "other": ["token"] }]],
"v-h2hx": ["Hapus ", ["targetGitPath"]],
"v2ZW0K": ["Aktifkan terminal"],
@@ -4026,6 +4079,7 @@
"wXw19Y": ["\"", ["projectName"], "\" dihapus dari proyek terbaru. Foldernya sudah tidak ada."],
"wZPUJx": ["“", ["0"], "”"],
"w_Sphq": ["Lampiran"],
+ "wbMbiY": [["selectedSlot"], " disalin"],
"wbpoGe": ["Tidak dapat memasang keterampilan OpenKnowledge: ", ["message"]],
"wbv9xO": ["Buat proyek baru"],
"wc54KE": ["Mencobanya…"],
@@ -4216,6 +4270,7 @@
"zL0LPh": ["Global di luar bidang teks"],
"zLGXna": ["Tidak ada paket awal yang tersedia."],
"zLak8b": ["Aktifkan tab baru"],
+ "zMmwh4": ["Pilih tema atau buat tema Anda sendiri."],
"zQBg2C": ["Menaikkan atau menurunkan blok saat ini satu posisi."],
"zXj1rA": ["Cari berdasarkan makna"],
"zYp8Sr": [
diff --git a/packages/app/src/locales/id/messages.po b/packages/app/src/locales/id/messages.po
index a6ab4d2ce..ac8a8451e 100644
--- a/packages/app/src/locales/id/messages.po
+++ b/packages/app/src/locales/id/messages.po
@@ -332,6 +332,11 @@ msgstr "{0} total"
msgid "{0} version {1}"
msgstr "{0} versi {1}"
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "{0} was already deleted."
+msgstr "{0} sudah dihapus."
+
#. placeholder {0}: activeData.label
#: src/components/EditorWorkspace.tsx
msgid "{0} was not moved."
@@ -777,6 +782,11 @@ msgstr "{sizeText} · rahasia disunting · crash dump tidak disunting"
msgid "{skillCount, plural, one {skill} other {skills}}"
msgstr "{skillCount, plural, other {keterampilan}}"
+#. placeholder {0}: BASE16_SLOT_ROLES[slot]
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "{slot} color — {0}"
+msgstr "Warna {slot} — {0}"
+
#: src/components/settings/CustomThemeEditor.tsx
msgid "{slot} hex value"
msgstr "Nilai heksa {slot}"
@@ -1040,6 +1050,10 @@ msgstr "sebuah alat git yang diperlukan"
msgid "A reusable starting point for new documents in this folder."
msgstr "Titik awal yang bisa dipakai ulang untuk dokumen baru di folder ini."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "A saved theme already uses this name."
+msgstr "Tema tersimpan lain sudah menggunakan nama ini."
+
#: src/components/TemplateForm.tsx
msgid "A short line shown under the title in the template list."
msgstr "Satu baris singkat yang ditampilkan di bawah judul pada daftar templat."
@@ -1096,10 +1110,6 @@ msgstr "Di atas"
msgid "absent"
msgstr "tidak ada"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Accents"
-msgstr "Aksen"
-
#: src/components/DiffView.tsx
msgid "Accept"
msgstr "Terima"
@@ -1779,10 +1789,6 @@ msgstr "Kembali"
msgid "Back to document view"
msgstr "Kembali ke tampilan dokumen"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Background to foreground"
-msgstr "Latar ke depan"
-
#: src/components/LinksPanel.tsx
msgid "Backlinks"
msgstr "Tautan balik"
@@ -1927,8 +1933,8 @@ msgid "Browse folder"
msgstr "Pilih folder"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Browse hundreds of schemes"
-msgstr "Jelajahi ratusan skema"
+msgid "Browse hundreds of themes"
+msgstr "Jelajahi ratusan tema"
#: src/components/ImportSkillDialog.tsx
msgid "Browse or upload a skill for this project."
@@ -2047,6 +2053,7 @@ msgstr "Tidak dapat membagikan jalur ini."
#: src/components/ReportBugDialogBody.tsx
#: src/components/SeedDialog.tsx
#: src/components/settings/LinkPreviewsSection.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/settings/SearchSection.tsx
#: src/components/ShareBranchSwitchDialog.tsx
#: src/components/ShareReceiveDialog.tsx
@@ -2102,6 +2109,18 @@ msgstr "diubah di luar"
msgid "Changed outside OK since it last wrote here — the state shown is what's on disk now"
msgstr "Diubah di luar OK sejak terakhir kali OK menulis di sini — keadaan yang ditampilkan adalah apa yang ada di disk sekarang"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes save automatically to this theme."
+msgstr "Perubahan disimpan otomatis ke tema ini."
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes save automatically."
+msgstr "Perubahan disimpan otomatis."
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes saved automatically."
+msgstr "Perubahan disimpan otomatis."
+
#: src/components/command-palette-commands.ts
msgid "Check for updates"
msgstr "Periksa pembaruan"
@@ -2699,6 +2718,11 @@ msgstr "Konflik"
msgid "Conflicted files"
msgstr "Berkas yang berkonflik"
+#. placeholder {0}: warning.conflictingFilenames.join(', ')
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Conflicting files: {0}."
+msgstr "Berkas yang berkonflik: {0}."
+
#: src/components/ConflictsSection.tsx
msgid "Conflicts"
msgstr "Konflik"
@@ -2891,6 +2915,10 @@ msgstr "Mengubah..."
msgid "Copied"
msgstr "Disalin"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Copied {selectedSlot}"
+msgstr "{selectedSlot} disalin"
+
#: src/components/EditorTabTargetMenuItems.tsx
#: src/components/FileSidebar.tsx
#: src/components/FileTree.tsx
@@ -2928,6 +2956,7 @@ msgstr "salin"
#: src/components/CopyButton.tsx
#: src/components/empty-state/CopyablePromptList.tsx
#: src/components/InstallInClaudeDesktopDialog.tsx
+#: src/components/settings/CustomThemeEditor.tsx
#: src/lib/native-menu-catalog.ts
msgid "Copy"
msgstr "Salin"
@@ -3212,6 +3241,15 @@ msgstr "Laporannya tidak bisa dibuat"
msgid "Couldn't create the worktree. Try a different name."
msgstr "Worktree-nya tidak bisa dibuat. Coba nama lain."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t create this theme. Try again."
+msgstr "Tema ini tidak dapat dibuat. Coba lagi."
+
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t delete {0}. Try again."
+msgstr "{0} tidak dapat dihapus. Coba lagi."
+
#. placeholder {0}: result.error
#: src/components/SkillFileDeleteDialog.tsx
msgid "Couldn't delete file: {0}"
@@ -3229,6 +3267,10 @@ msgstr "Templat tidak bisa dihapus: {error}"
msgid "Couldn't delete that comment."
msgstr "Komentar itu tidak bisa dihapus."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t delete this theme. Refresh and try again."
+msgstr "Tema ini tidak dapat dihapus. Muat ulang lalu coba lagi."
+
#: src/components/settings/AccountSection.tsx
msgid "Couldn't disconnect — please try again."
msgstr "Tidak bisa memutus koneksi — silakan coba lagi."
@@ -3392,8 +3434,12 @@ msgid "Couldn't reach the agent registry."
msgstr "Registri agen tidak bisa dihubungi."
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Couldn’t reach the clipboard — the scheme is in the box below."
-msgstr "Papan klip tidak bisa dijangkau — skemanya ada di kotak di bawah."
+msgid "Couldn’t reach the clipboard — the theme is in the box below."
+msgstr "Papan klip tidak dapat diakses — tema ada di kotak di bawah."
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Couldn’t reach the clipboard."
+msgstr "Papan klip tidak dapat diakses."
#: src/components/CommandPalette.tsx
msgid "Couldn't reach the embeddings provider — retry"
@@ -3420,6 +3466,11 @@ msgstr "Komentar yang menunggu dikirim tidak bisa dibaca — tidak ada yang diki
msgid "Couldn't read the comments waiting to send: {0}"
msgstr "Komentar yang menunggu dikirim tidak bisa dibaca: {0}"
+#. placeholder {0}: warning.code
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t read this theme ({0})"
+msgstr "Tema ini tidak dapat dibaca ({0})"
+
#: src/components/EditorActivityPool.tsx
msgid "Couldn't reconnect after server restart"
msgstr "Tidak bisa tersambung kembali setelah server dimulai ulang"
@@ -3468,6 +3519,16 @@ msgstr "Server tidak bisa dimulai ulang secara otomatis. Coba jalankan `ok stop
msgid "Couldn't restart the server. Try `ok start` in this folder."
msgstr "Server tidak bisa dimulai ulang. Coba `ok start` di folder ini."
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t restore {0}. That name is already in use."
+msgstr "{0} tidak dapat dipulihkan. Nama itu sudah digunakan."
+
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t restore {0}. Try again."
+msgstr "{0} tidak dapat dipulihkan. Coba lagi."
+
#. placeholder {0}: resumeError.message
#: src/components/acp/ThreadView.tsx
msgid "Couldn't resume this chat: {0}"
@@ -3477,6 +3538,10 @@ msgstr "Tidak dapat melanjutkan obrolan ini: {0}"
msgid "Couldn't run the test. Check that OpenKnowledge is still running."
msgstr "Pengujiannya tidak bisa dijalankan. Pastikan OpenKnowledge masih berjalan."
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Couldn’t save changes. Try editing a color again."
+msgstr "Perubahan tidak dapat disimpan. Coba sunting warna lagi."
+
#: src/components/TemplateForm.tsx
msgid "Couldn't save template: {error}"
msgstr "Templat tidak bisa disimpan: {error}"
@@ -3595,6 +3660,10 @@ msgstr "Crash dump"
msgid "Create"
msgstr "Buat"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Create & edit"
+msgstr "Buat dan sunting"
+
#: src/components/TemplateRow.tsx
msgid "Create a document from {label}"
msgstr "Buat dokumen dari {label}"
@@ -3666,6 +3735,10 @@ msgstr "Buat proyek baru"
msgid "Create new tag #{tagValue}"
msgstr "Buat tag baru #{tagValue}"
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Create new theme"
+msgstr "Buat tema baru"
+
#: src/components/GraphPanel.tsx
#: src/components/ProblemsPanel.tsx
#: src/editor/extensions/InternalLinkPropPanel.tsx
@@ -3764,6 +3837,10 @@ msgstr "Membuat halaman: {linkTitle}."
msgid "Creating..."
msgstr "Membuat..."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Creating…"
+msgstr "Membuat…"
+
#: src/components/RecentProjectsMenu.tsx
msgid "Current"
msgstr "Saat ini"
@@ -3836,8 +3913,10 @@ msgstr "Bawaan: <0>{0}</0>"
msgid "Delete"
msgstr "Hapus"
+#. placeholder {0}: theme.label
#. placeholder {0}: thread.title
#: src/components/acp/ThreadHistoryMenu.tsx
+#: src/components/settings/ColorThemePicker.tsx
msgid "Delete {0}"
msgstr "Hapus {0}"
@@ -3917,6 +3996,11 @@ msgstr "Hapus obrolan ini?"
msgid "Delete this comment"
msgstr "Hapus komentar ini"
+#. placeholder {0}: deletedTheme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Deleted {0}."
+msgstr "{0} dihapus."
+
#: src/components/settings/LintingSection.tsx
msgid "Deleted {file}"
msgstr "{file} dihapus"
@@ -4235,6 +4319,7 @@ msgstr "selesai"
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/PublishToGitHubDialog.tsx
#: src/components/ReportBugDialogBody.tsx
+#: src/components/settings/CustomThemeEditor.tsx
#: src/editor/extensions/JsxComponentView.tsx
#: src/editor/extensions/JsxInlineView.tsx
#: src/editor/extensions/MathInlineView.tsx
@@ -4369,6 +4454,11 @@ msgstr "Setiap alat yang dipilih mendapat entri MCP OpenKnowledge."
msgid "Edit"
msgstr "Sunting"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Edit {0}"
+msgstr "Sunting {0}"
+
#. placeholder {0}: descriptor.displayName ?? descriptor.name
#: src/editor/extensions/JsxComponentView.tsx
msgid "Edit {0} source"
@@ -4442,6 +4532,11 @@ msgstr "templat disunting"
msgid "editing [[{realCurrentDoc}]]"
msgstr "menyunting [[{realCurrentDoc}]]"
+#. placeholder {0}: scheme.name
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Editing {0}"
+msgstr "Menyunting {0}"
+
#: src/components/SkillEditBanner.tsx
msgid "Editing {boldName} in place. Changes save straight to your editor's copy."
msgstr "Menyunting {boldName} di tempatnya. Perubahan langsung tersimpan ke salinan penyunting Anda."
@@ -4471,8 +4566,12 @@ msgid "Editor status bar"
msgstr "Bilah status penyunting"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Edits apply live. Light or dark comes from the scheme."
-msgstr "Suntingan berlaku langsung. Terang atau gelap ditentukan skemanya."
+msgid "Edits apply live and save automatically to this theme."
+msgstr "Suntingan langsung diterapkan dan disimpan otomatis ke tema ini."
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Edits apply live. Light or dark comes from the theme."
+msgstr "Suntingan langsung diterapkan. Tema menentukan mode terang atau gelap."
#: src/editor/slash-command/component-items.tsx
msgid "Edits at the source land here — no copy-paste drift."
@@ -4643,6 +4742,10 @@ msgstr "Masukkan nilai heksa 6 digit seperti #1A2B3C"
msgid "Enter a folder name (e.g. brain)."
msgstr "Masukkan nama folder (mis. otak)."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Enter a name for this theme."
+msgstr "Masukkan nama untuk tema ini."
+
#: src/components/CreateProjectDialog.tsx
msgid "Enter a project name"
msgstr "Masukkan nama proyek"
@@ -4659,6 +4762,10 @@ msgstr "Masukkan judul untuk templat ini."
msgid "Enter a valid branch name (no spaces, no leading dot, no \"..\")."
msgstr "Masukkan nama cabang yang valid (tanpa spasi, tanpa titik di awal, tanpa \"..\")."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Enter a valid theme name."
+msgstr "Masukkan nama tema yang valid."
+
#: src/components/settings/SearchSection.tsx
msgid "Enter a valid URL (for example https://api.openai.com/v1)."
msgstr "Masukkan URL yang valid (misalnya https://api.openai.com/v1)."
@@ -5551,6 +5658,10 @@ msgstr "Status masuk GitHub tidak ada atau kedaluwarsa. Sambungkan ulang untuk m
msgid "GitHub, a git URL, or a local path."
msgstr "GitHub, sebuah URL git, atau jalur lokal."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Give it a name before editing its colors."
+msgstr "Beri nama sebelum menyunting warnanya."
+
#: src/components/settings/AiToolsSection.tsx
msgid "Give the AI tools you use access to read and update your projects. Checking a box sets it up right away; unchecking removes it."
msgstr "Beri alat AI yang Anda pakai akses untuk membaca dan memperbarui proyek Anda. Mencentang kotak langsung menyiapkannya; melepas centang menghapusnya."
@@ -5730,6 +5841,11 @@ msgstr "Folder “{basename}” disembunyikan"
msgid "Hide"
msgstr "Sembunyikan"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Hide {0} editor"
+msgstr "Sembunyikan penyunting {0}"
+
#: src/lib/native-menu-catalog.ts
msgid "Hide {appName}"
msgstr "Sembunyikan {appName}"
@@ -5935,6 +6051,11 @@ msgstr "Saya beralih ke alat lain"
msgid "Icon picker"
msgstr "Pemilih ikon"
+#. placeholder {0}: createIdentity.stem
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "ID: {0}"
+msgstr "ID: {0}"
+
#: src/components/AutoSyncEnableWarning.tsx
msgid "If an update arrives for something you are editing, you choose which version to keep, like a merge conflict."
msgstr "Jika sebuah pembaruan datang untuk hal yang sedang Anda sunting, Anda memilih versi mana yang disimpan, seperti konflik penggabungan."
@@ -5970,10 +6091,6 @@ msgstr "Impor sebagai templat"
msgid "Import failed: {0}"
msgstr "Impor gagal: {0}"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Import scheme"
-msgstr "Impor skema"
-
#. placeholder {0}: result.name
#: src/lib/skill-import-toast.ts
msgid "Imported \"{0}\"."
@@ -6315,6 +6432,10 @@ msgstr "Instruksi untuk AI"
msgid "Integrations"
msgstr "Integrasi"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Invalid color value"
+msgstr "Nilai warna tidak valid"
+
#: src/components/CreateProjectDialog.tsx
msgid "Invalid input — pick a different folder."
msgstr "Masukan tidak valid — pilih folder lain."
@@ -6335,6 +6456,10 @@ msgstr "Bentuk respons server tidak valid"
msgid "Invalid share URL."
msgstr "URL berbagi tidak valid."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Invalid YAML"
+msgstr "YAML tidak valid"
+
#: src/uninstall/UninstallSurveyScreen.tsx
msgid "It didn't fit into my workflow"
msgstr "Tidak cocok dengan alur kerja saya"
@@ -6568,6 +6693,10 @@ msgstr "URL tautan"
msgid "Link-graph response did not match expected shape."
msgstr "Respons graf tautan tidak sesuai bentuk yang diharapkan."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Linked theme files aren’t supported"
+msgstr "Berkas tema tertaut tidak didukung"
+
#: src/components/DocPanel.tsx
msgid "Links"
msgstr "Tautan"
@@ -6943,6 +7072,14 @@ msgstr "Halaman belum ada — klik untuk membuat"
msgid "Missing page: {linkTitle}. Click to create."
msgstr "Halaman belum ada: {linkTitle}. Klik untuk membuat."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Missing palette colors"
+msgstr "Warna palet tidak lengkap"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Missing theme name"
+msgstr "Nama tema tidak ada"
+
#: src/components/SyncStatusBadge.tsx
msgid "Mode"
msgstr "Mode"
@@ -7140,6 +7277,10 @@ msgstr "Mempertimbangkan…"
msgid "Multi-page PDF viewer with toolbar controls (thumbnails, page nav, zoom)."
msgstr "Penampil PDF multi-halaman dengan kendali bilah alat (gambar mini, navigasi halaman, zoom)."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Multiple files use this theme name"
+msgstr "Beberapa berkas menggunakan nama tema ini"
+
#: src/components/acp/working-status.ts
msgid "Musing…"
msgstr "Melamun…"
@@ -7182,6 +7323,10 @@ msgstr "Nama tidak boleh kosong"
msgid "Name is required"
msgstr "Nama wajib diisi"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Name your theme"
+msgstr "Beri nama tema Anda"
+
#: src/lib/keyboard-shortcuts.ts
msgid "Navigate CodeMirror source search results or dismiss the search panel."
msgstr "Menelusuri hasil pencarian sumber CodeMirror atau menutup panel pencariannya."
@@ -7738,6 +7883,10 @@ msgstr "Tidak satu pun masalah ini punya perbaikan otomatis."
msgid "None of these problems have an automatic fix. Try Fix all with AI."
msgstr "Tidak satu pun masalah ini punya perbaikan otomatis. Coba Perbaiki semua dengan AI."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Not a base16 theme"
+msgstr "Bukan tema base16"
+
#: src/components/acp/ThreadView.tsx
msgid "Not answered"
msgstr "Belum dijawab"
@@ -8638,8 +8787,8 @@ msgid "Paste"
msgstr "Tempel"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Paste a base16 scheme"
-msgstr "Tempelkan sebuah skema base16"
+msgid "Paste a base16 theme"
+msgstr "Tempel tema base16"
#: src/components/AuthModal.tsx
msgid "Paste a personal access token for <0>{host}</0>."
@@ -8762,10 +8911,6 @@ msgstr "Pribadi untuk perangkat ini — disimpan di konfigurasi pengguna Anda, t
msgid "Pick <0>openknowledge.skill</0> from your <1>Downloads</1> folder. It enables automatically."
msgstr "Pilih <0>openknowledge.skill</0> dari folder <1>Downloads</1> Anda. Ia aktif otomatis."
-#: src/components/settings/ThemePluginSection.tsx
-msgid "Pick a built-in IDE color palette, or define your own."
-msgstr "Pilih palet warna IDE bawaan, atau tentukan sendiri."
-
#: src/components/settings/SkillTargetsPicker.tsx
msgid "Pick a folder to merge INTO {display}. That folder becomes a symlink to this one, so its agent reads everything placed here. This folder stays real. Conflicting skills abort the merge."
msgstr "Pilih sebuah folder untuk digabungkan KE DALAM {display}. Folder itu menjadi symlink ke folder ini, jadi agennya membaca semua yang ditaruh di sini. Folder ini tetap nyata. Keterampilan yang berkonflik membatalkan penggabungan."
@@ -8778,6 +8923,10 @@ msgstr "Pilih sebuah nama"
msgid "Pick a palette for light mode and one for dark mode. The theme setting in Preferences chooses between them — on “System”, so does your OS."
msgstr "Pilih satu palet untuk mode terang dan satu untuk mode gelap. Pengaturan tema di Preferensi memilih di antara keduanya — pada “Sistem”, sistem operasi Anda yang memilih."
+#: src/components/settings/ThemePluginSection.tsx
+msgid "Pick a theme or create your own."
+msgstr "Pilih tema atau buat tema Anda sendiri."
+
#: src/editor/slash-command/items.tsx
msgid "Pick an emoji to insert at the cursor."
msgstr "Pilih sebuah emoji untuk disisipkan di posisi kursor."
@@ -8884,8 +9033,8 @@ msgid "Press Space to pick up a tab. Use the arrow keys to move it within a tab
msgstr "Tekan Spasi untuk mengambil tab. Gunakan tombol panah untuk memindahkannya di dalam bilah tab, lalu tekan Spasi atau Enter untuk melepaskannya. Tekan Shift+F10 atau tombol Menu untuk membuka menu konteks tab, yang berisi tindakan pisah, tutup, sematkan, dan lainnya."
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Press the sun or moon on “Custom” above to use this scheme."
-msgstr "Tekan matahari atau bulan pada “Khusus” di atas untuk memakai skema ini."
+msgid "Press the sun or moon on “Custom” above to use this theme."
+msgstr "Tekan ikon matahari atau bulan pada “Custom” di atas untuk memakai tema ini."
#: src/components/PublishToGitHubDialog.tsx
msgid "Preview browsers can't auto-copy. Use Cmd/Ctrl+C on the URL above, or open OK in the desktop app."
@@ -9785,6 +9934,11 @@ msgstr "Pulihkan hingga versi ini?"
msgid "Restore with remote changes"
msgstr "Pulihkan dengan perubahan remote"
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Restored {0}."
+msgstr "{0} dipulihkan."
+
#. placeholder {0}: descriptor.targetSha7
#: src/components/TimelinePanel.tsx
msgid "Restored an earlier version ({0})"
@@ -9990,6 +10144,10 @@ msgstr "Disimpan ke folder keterampilan proyek ini (mis. <0>.agents/skills</0>),
msgid "Saved into your global skills folder (e.g. <0>~/.agents/skills</0>)."
msgstr "Disimpan ke folder keterampilan global Anda (mis. <0>~/.agents/skills</0>)."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Saved themes couldn’t load. The last available theme list is still shown."
+msgstr "Tema tersimpan tidak dapat dimuat. Daftar tema terakhir yang tersedia tetap ditampilkan."
+
#: src/components/SkillProperties.tsx
msgid "Saved to"
msgstr "Disimpan ke"
@@ -10007,6 +10165,10 @@ msgstr "Menyimpan berkasnya ke <0>~/Downloads/openknowledge.skill</0> dan membuk
msgid "Saving"
msgstr "Menyimpan"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Saving changes…"
+msgstr "Menyimpan perubahan…"
+
#: src/components/settings/LintingSection.tsx
msgid "schema {deleteTarget}"
msgstr "skema {deleteTarget}"
@@ -10015,10 +10177,6 @@ msgstr "skema {deleteTarget}"
msgid "Schema fields"
msgstr "Bidang skema"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Scheme copied as base16 YAML"
-msgstr "Skema disalin sebagai YAML base16"
-
#: src/components/ImportSkillForm.tsx
#: src/components/PanelScopeHeader.tsx
msgid "Scope"
@@ -10208,6 +10366,11 @@ msgstr "Lihat semua {0} paket awal"
msgid "See the full install guide"
msgstr "Lihat panduan pemasangan lengkap"
+#. placeholder {0}: BASE16_SLOT_ROLES[slot]
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Select {slot} — {0}"
+msgstr "Pilih {slot} — {0}"
+
#: src/components/FrontmatterRow.tsx
msgid "Select a value"
msgstr "Pilih sebuah nilai"
@@ -10919,6 +11082,10 @@ msgstr "Slidev terlalu lama saat memulai. Coba lagi."
msgid "Small section heading."
msgstr "Judul bagian kecil."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Some saved themes aren’t shown because the theme folder exceeds the scan limit."
+msgstr "Beberapa tema tersimpan tidak ditampilkan karena folder tema melewati batas pemindaian."
+
#: src/components/FeedbackForm.tsx
msgid "Something broke"
msgstr "Ada yang rusak"
@@ -11839,6 +12006,30 @@ msgstr "Token itu memerlukan cakupan repo dan read:user."
msgid "Theme"
msgstr "Tema"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme colors"
+msgstr "Warna tema"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme copied as base16 YAML"
+msgstr "Tema disalin sebagai YAML base16"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme imported."
+msgstr "Tema diimpor."
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name"
+msgstr "Nama tema"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name has unsupported characters"
+msgstr "Nama tema berisi karakter yang tidak didukung"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name is too long"
+msgstr "Nama tema terlalu panjang"
+
#: src/components/settings/ThemePreviewCanvas.tsx
msgid "Theme preview"
msgstr "Pratinjau tema"
@@ -12033,6 +12224,10 @@ msgstr "Ini pratinjau {boldName}, terdeteksi di {boldHarness} pada tingkat {bold
msgid "This is a preview of {boldName}. Install it into your agents."
msgstr "Ini pratinjau {boldName}. Pasang ke agen Anda."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This isn’t a regular theme file"
+msgstr "Ini bukan berkas tema biasa"
+
#: src/components/SlidesToolbarControls.tsx
msgid "This isn't a supported version of Slidev."
msgstr "Ini bukan versi Slidev yang didukung."
@@ -12194,6 +12389,18 @@ msgstr "Sumber ini memuat beberapa keterampilan — pilih yang akan diimpor."
msgid "This template lives in a parent folder — deleting it affects every folder beneath it that doesn't define its own version."
msgstr "Templat ini berada di folder induk — menghapusnya memengaruhi setiap folder di bawahnya yang tidak menentukan versinya sendiri."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme can’t be used until the file is fixed."
+msgstr "Tema ini tidak dapat digunakan sampai berkasnya diperbaiki."
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme file couldn’t be read"
+msgstr "Berkas tema ini tidak dapat dibaca"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme file is too large"
+msgstr "Berkas tema ini terlalu besar"
+
#: src/components/ShareReceiveDialog.tsx
msgid "This usually means one of:"
msgstr "Biasanya ini berarti salah satu dari:"
@@ -12367,6 +12574,7 @@ msgstr "Coba sebuah prompt"
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/ReportBugDialogBody.tsx
#: src/components/settings/AccountSection.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/ShareReceiveDialog.tsx
msgid "Try again"
msgstr "Coba lagi"
@@ -12474,6 +12682,7 @@ msgstr "Suntingan terakhir pada {docName} dibatalkan"
#: src/components/ActivityPanelBurstRow.tsx
#: src/components/AppMenubar.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/settings/SharingSection.tsx
#: src/lib/native-menu-catalog.ts
msgid "Undo"
@@ -12741,6 +12950,16 @@ msgstr "Pakai {0} sebagai tema gelap"
msgid "Use {0} as the light theme"
msgstr "Pakai {0} sebagai tema terang"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Use {0} for the active dark mode"
+msgstr "Pakai {0} untuk mode gelap yang aktif"
+
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Use {0} for the active light mode"
+msgstr "Pakai {0} untuk mode terang yang aktif"
+
#: src/components/SkillForkDialog.tsx
msgid "Use {editor} version"
msgstr "Pakai versi {editor}"
@@ -12753,6 +12972,10 @@ msgstr "Gunakan <0>{copyShortcut}</0> untuk menyalin tautan di bawah, atau buka
msgid "Use a folder you already have."
msgstr "Pakai folder yang sudah Anda punya."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Use a lowercase .yaml or .yml extension"
+msgstr "Pakai ekstensi .yaml atau .yml dalam huruf kecil"
+
#: src/components/SkillFileCreateDialog.tsx
#: src/components/SkillFileRenameDialog.tsx
msgid "Use a relative path inside the skill (no .., no spaces; SKILL.md is managed)."
@@ -12937,6 +13160,10 @@ msgstr "Kami akan membangun <0>openknowledge.skill</0>, menyimpannya di <1>~/Dow
msgid "We'll create a repository and start syncing — no terminal needed."
msgstr "Kami akan membuat sebuah repositori dan mulai menyinkronkan — tanpa perlu terminal."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "We’ll create a safe theme ID from this name."
+msgstr "Kami akan membuat ID tema yang aman dari nama ini."
+
#: src/components/ReportBugDialogBody.tsx
msgid "We've filed it with the team and attached your logs."
msgstr "Kami sudah meneruskannya ke tim dan melampirkan log Anda."
diff --git a/packages/app/src/locales/pseudo/messages.json b/packages/app/src/locales/pseudo/messages.json
index 296f35c06..40168c5f8 100644
--- a/packages/app/src/locales/pseudo/messages.json
+++ b/packages/app/src/locales/pseudo/messages.json
@@ -38,11 +38,13 @@
"Śēńţ ƥŕĩvàţēĺŷ ţō ţĥē ŌƥēńĶńōŵĺēďĝē ţēàḿ, àĺōńĝ ŵĩţĥ ŷōũŕ ńōţē àńď àƥƥ vēŕśĩōń. Ńēvēŕ ƥōśţēď ƥũƀĺĩćĺŷ."
],
"-oHckY": ["ŌƥēńĶńōŵĺēďĝē ŕēàď ţĥē śēţţĩńĝ ", ["key"]],
+ "-othoN": ["Ţĥĩś ţĥēḿē ƒĩĺē ĩś ţōō ĺàŕĝē"],
"-q4abP": [
"Ŕēśũĺţś ćàƥƥēď — ţĥĩś ŵōŕķśƥàćē ĥàś ḿōŕē ƒĩĺēś ţĥàń śēàŕćĥ ćàń ĩńďēx. À ḿĩśśĩńĝ ƒĩĺē ḿàŷ ƀē à ćàƥ àŕţĩƒàćţ, ńōţ à ţŷƥō."
],
"-slrNR": ["Ţōĝĝĺē à ţàśķ ĺĩśţ."],
"-uaQnI": ["Ńō ḿàţćĥĩńĝ ŵōŕķţŕēēś ōŕ ƀŕàńćĥēś."],
+ "-yOx8u": ["Śàvĩńĝ ćĥàńĝēś…"],
"-yPBXI": ["Ćĥōōśē ƒĩĺē"],
"-ySLQJ": ["Ĝĩţ & ƤŔś"],
"-zA2E7": ["Ćōũĺďń'ţ ćŕēàţē ţĥē ŵōŕķţŕēē. Ţŕŷ à ďĩƒƒēŕēńţ ńàḿē."],
@@ -104,6 +106,7 @@
"0kTAXe": ["Ōƥēń śōũŕćē: ", ["mirrorSrc"]],
"0pZmTP": ["Ćàń'ţ śĥàŕē ţĥĩś ƥàţĥ."],
"0qyKG6": ["Śŷńćēď ƒŕōḿ ďĩśķ"],
+ "0r6d6v": ["Ćĥàńĝēś śàvēď àũţōḿàţĩćàĺĺŷ."],
"0rwwOn": ["ßŷ ţàĝ"],
"0s8-e8": [
"Śēĺēćţ, ēńţēŕ, ōŕ ĺēàvē ƀĺōćķ ćōḿƥōńēńţś àńď ƒàĺĺƀàćķ śōũŕćē ƀĺōćķś ƒŕōḿ ķēŷƀōàŕď ƀōũńďàŕĩēś."
@@ -114,6 +117,7 @@
"0xnQ_X": ["Ũƥďàţēś ƒĺōŵ ĩń"],
"0xnmlQ": ["Ŕēƥōśĩţōŕŷ ńàḿē"],
"0yL--g": ["Ŕēvĩēŵ ćōńƒĺĩćţś"],
+ "0ySP5u": ["Ćĥàńĝēś śàvē àũţōḿàţĩćàĺĺŷ ţō ţĥĩś ţĥēḿē."],
"0zAhu6": ["ēvēŕŷ ďōć"],
"10g8I_": ["Ţũŕń ōƒƒ Ōńĺŷ ḿàŕķďōŵń ƒĩĺēś"],
"11ukmX": ["Ŕēńàḿē ƒàĩĺēď: ", ["0"]],
@@ -123,6 +127,7 @@
"161NCV": ["Śţōƥƥĩńĝ"],
"16D5Zj": ["Àŕē ŷōũ śũŕē ŷōũ ŵàńţ ţō ďēĺēţē ", ["itemName"], "? Ţĥĩś àćţĩōń ćàńńōţ ƀē ũńďōńē."],
"16eIWu": ["Ƒōŕćē śţōƥ"],
+ "16tSS_": ["Ƥàśţē à ƀàśē16 ţĥēḿē"],
"170Js2": ["Ĥĩďē ƥàńēĺ"],
"1AumWo": ["Ƥũśĥ ƒàĩĺēď — ćĥēćķ ţĥē śēŕvēŕ ĺōĝś ƒōŕ ďēţàĩĺś."],
"1CalO6": ["Śţŷĺē"],
@@ -155,6 +160,7 @@
"1njn7W": ["Ĺĩĝĥţ"],
"1nke1r": ["Ōƥēń ", ["0"], " ōń ĜĩţĤũƀ (ōƥēńś ĩń à ńēŵ ţàƀ)"],
"1oSHI0": ["Ćōũĺďń'ţ ĩńśţàĺĺ ", ["skillName"], ": ", ["0"]],
+ "1qpGKz": ["Ćōũĺďń’ţ śàvē ćĥàńĝēś. Ţŕŷ ēďĩţĩńĝ à ćōĺōŕ àĝàĩń."],
"1ruosn": ["ŌƥēńĶńōŵĺēďĝē"],
"1t_NnN": ["ŔēĴēćţ"],
"1u-mAI": ["Ćōũĺďń'ţ śţàŕţ ţĥē śŷńć. Ćĥēćķ ŷōũŕ ćōńńēćţĩōń, ţĥēń ŕēţŕŷ."],
@@ -274,7 +280,6 @@
"3kYcuM": ["Àŕē ŷōũ śũŕē ŷōũ ŵàńţ ţō ďēĺēţē ţĥē śēĺēćţēď ĩţēḿś?"],
"3l32hp": ["Ƥàŕţ ōƒ ţĥē ", ["plugin"], " ƥĺũĝĩń"],
"3l_cXP": ["Ţàķē à ĺōōķ ĩƒ ŷōũ'ď ĺĩķē. Ţĥĩś ēxàćţ ƒĩĺē ĩś ŵĥàţ ŵē ŕēćēĩvē."],
- "3l_knd": ["Ƥŕēśś ţĥē śũń ōŕ ḿōōń ōń “Ćũśţōḿ” àƀōvē ţō ũśē ţĥĩś śćĥēḿē."],
"3m2GBo": ["Śēàŕćĥĩńĝ ďōćś"],
"3mFsc3": ["Ŕēśţōŕē ŵĩţĥ ŕēḿōţē ćĥàńĝēś"],
"3nnyi_": [["0", "plural", { "one": ["Ďēĺēţē"], "other": ["Ďēĺēţē ", "#", " ĩţēḿś"] }]],
@@ -318,6 +323,7 @@
"4TzU0n": ["Ĩńĩţĩàĺĩźē"],
"4buZWd": ["Ĩńĥēŕĩţēď ƒŕōḿ ", ["path"]],
"4c_a6S": ["Ńōţĥĩńĝ śēţ ŷēţ."],
+ "4d0VYJ": ["Ŵē’ĺĺ ćŕēàţē à śàƒē ţĥēḿē ĨĎ ƒŕōḿ ţĥĩś ńàḿē."],
"4eO-iB": ["Ďĩśćàŕď ţĥĩś ćōḿḿēńţ"],
"4g19V6": ["Ƒàĩĺēď ţō ũƥďàţē ƥŕōƥēŕţŷ"],
"4h3e0H": ["Ćōũĺďń'ţ ũƥďàţē śķĩĺĺś śĥàŕĩńĝ — ", ["detail"], "."],
@@ -449,6 +455,7 @@
"Ďēśćŕĩƀē ŵĥàţ ĩţ śĥōũĺď ďō, ōŕ àďď ōńē ŷōũŕśēĺƒ. ŌƥēńĶńōŵĺēďĝē ķēēƥś ŷōũŕ śķĩĺĺś ĩń ōńē ƥĺàćē, vēŕśĩōńś ţĥēḿ, àńď ĩńśţàĺĺś ţĥēḿ ĩńţō àĝēńţś ĺĩķē Ćĺàũďē, Ćōďēx, àńď Ćũŕśōŕ."
],
"6MnZEC": ["Ţēŕḿĩńàĺ ƒàĩĺēď ţō ĺōàď"],
+ "6Nea1q": ["Ũśē ", ["0"], " ƒōŕ ţĥē àćţĩvē ďàŕķ ḿōďē"],
"6O626z": ["Ńō ĥēàďĩńĝś ḿàţćĥ \"", ["trimmedAnchorQuery"], "\""],
"6Pxqwv": [
"Ńō ƥŕōĴēćţ ţēḿƥĺàţēś ŷēţ. Ćŕēàţē ōńē ţō ḿàķē ĩţ àvàĩĺàƀĺē ēvēŕŷŵĥēŕē ĩń ţĥĩś ƥŕōĴēćţ. Ƒōĺďēŕ-śćōƥēď ţēḿƥĺàţēś ĺĩvē ōń ēàćĥ ƒōĺďēŕ'ś ōvēŕvĩēŵ ƥàĝē."
@@ -458,6 +465,7 @@
"6VqW-1": ["Ŕēḿōvē ", ["keyName"]],
"6WdDG7": ["Ƥàĝē"],
"6YBJ3m": ["Àśķ ÀĨ àƀōũţ śēĺēćţĩōń"],
+ "6YE0P6": ["Ēďĩţĩńĝ ", ["0"]],
"6YtxFj": ["Ńàḿē"],
"6ZhdPI": ["Ŵĥàţ ţĥē àĝēńţ ḿàŷ ŕēàď, ŵŕĩţē, àńď śũŕƒàćē."],
"6_ZOw4": ["Ćōƥĩēď ƒũĺĺ ƥàţĥ"],
@@ -487,6 +495,7 @@
"6s7LXO": ["Ĥēàďś ũƥ"],
"6u9LvN": [["days", "plural", { "one": ["#", " ďàŷ àĝō"], "other": ["#", " ďàŷś àĝō"] }]],
"6vEr3W": ["Ĺĩńķ ţàŕĝēţ"],
+ "6xeZX9": ["Ēďĩţś àƥƥĺŷ ĺĩvē. Ĺĩĝĥţ ōŕ ďàŕķ ćōḿēś ƒŕōḿ ţĥē ţĥēḿē."],
"6zzhQL": ["Śēńď ŷōũŕ ŕēƥōŕţ ƀŷ ēḿàĩĺ"],
"72xhRD": ["Ďĩàĝŕàḿ vĩēŵ ḿōďē"],
"74-bX-": ["À ƥũĺĺ ǫũōţē śţàńďś ōũţ ƒŕōḿ ţĥē śũŕŕōũńďĩńĝ ţēxţ."],
@@ -498,13 +507,13 @@
"Vàĺĩďàţē ďōćũḿēńţ ƒŕōńţḿàţţēŕ àĝàĩńśţ ĵŚŌŃ Śćĥēḿà ƒĩĺēś, śćōƥēď ţō ďōć śēţś ƀŷ ĝĺōƀ."
],
"7Bj3x9": ["Ƒàĩĺēď"],
- "7EmDc7": ["Ĩḿƥōŕţ śćĥēḿē"],
"7FA2iI": ["Ćōũĺďń'ţ ŕēàď ţĥē ćōḿḿēńţś ŵàĩţĩńĝ ţō śēńď — ńōţĥĩńĝ ŵàś śēńţ."],
"7FamGZ": ["Ĝō ţō ĺĩńē"],
"7Fkcej": ["+ Àďď ", ["addChildName"]],
"7H4UHD": ["Ďōćũḿēńţś ţàĝĝēď <0>#", ["tagName"], "</0>"],
"7IsvrP": ["Ćĥēćķĩńĝ ƒōŕ ũƥďàţēś"],
"7JtSLi": ["Ƒàĩĺēď ţō ďēĺēţē ƥàţĥ"],
+ "7O7REc": ["Ćōũĺďń’ţ ŕēśţōŕē ", ["0"], ". Ţŕŷ àĝàĩń."],
"7OhaRy": ["Śōũŕćē śēàŕćĥ"],
"7Ongq0": ["Ćōńďēńśē ḿŷ ÀĜĒŃŢŚ.ḿď ƒĩĺē ţō ĺēśś ţĥàń 40ķ ćĥàŕàćţēŕś"],
"7OwvEL": ["Śĥōŵ ĤŢḾĹ ƥŕēvĩēŵ"],
@@ -619,6 +628,8 @@
"8uGMP8": ["Ĥĩďďēń ćōńţēńţ ĝōēś ĥēŕē."],
"8vCZcs": ["Ƒàĩĺēď ţō ōƥēń ƒĩĺē."],
"8vETh9": ["Śĥōŵ"],
+ "8x6zk9": ["Ĥĩďē ", ["0"], " ēďĩţōŕ"],
+ "9-lMCF": [["slot"], " ćōĺōŕ — ", ["0"]],
"90-wKT": ["ŌƥēńĶńōŵĺēďĝē ŕēàď ţĥē ĥĩśţōŕŷ ōƒ ", ["subject"]],
"92rbk2": ["Ḿĩŕŕōŕ ĺōàďĩńĝ <0>", ["mirrorRef"], "</0>"],
"93LBnX": ["Ĥĩďē Àĝēńţś"],
@@ -675,7 +686,6 @@
"9fvog2": ["Ƥŕēvĩēŵ ũńàvàĩĺàƀĺē: ", ["errorDetail"]],
"9i21pa": ["Ćōḿḿĩţś ĥàƥƥēń àũţōḿàţĩćàĺĺŷ"],
"9ieZhu": ["Ĩńśţàĺĺēď àţ ", ["path"], " — ćĺĩćķ ţō ŕēḿōvē"],
- "9j1tqo": ["Ćōũĺďń’ţ ŕēàćĥ ţĥē ćĺĩƥƀōàŕď — ţĥē śćĥēḿē ĩś ĩń ţĥē ƀōx ƀēĺōŵ."],
"9jnjV0": ["Ēḿƀēď àń àũďĩō ƒĩĺē ŵĩţĥ ńàţĩvē ƥĺàŷēŕ ćōńţŕōĺś."],
"9lso1Y": ["Ćŕēàţēś ţĥē <0>", ["folderPart"], "/</0> ƒōĺďēŕ"],
"9m4D_h": ["ĜĩţĤũƀ, à ĝĩţ ŨŔĹ, ōŕ à ĺōćàĺ ƥàţĥ."],
@@ -712,8 +722,10 @@
],
"AIn2Yv": [["displayName"], " ĆĹĨ, ", ["hint"]],
"AItsE5": ["Ōƥēń ĩţ ţĥēŕē"],
+ "AJ7_B2": ["Ćŕēàţē ńēŵ ţĥēḿē"],
"AKxFtn": [["openedWorktreeCount", "plural", { "one": ["ŵōŕķţŕēē"], "other": ["ŵōŕķţŕēēś"] }]],
"ALhMYW": ["Ţēŕḿĩńàĺ"],
+ "ANFxWn": ["Ćōũĺďń’ţ ďēĺēţē ţĥĩś ţĥēḿē. Ŕēƒŕēśĥ àńď ţŕŷ àĝàĩń."],
"APNlbk": ["ēxĩţ ", ["0"]],
"AQ-Lfg": ["Ćōũĺďń'ţ ĺōàď ţēḿƥĺàţēś"],
"AQGtjK": [
@@ -852,9 +864,11 @@
"Ţĥĩś ƒĩĺē ĩś ţōō ĺàŕĝē ţō ōƥēń ĩń ţĥē ƀũĩĺţ-ĩń ţēxţ ēďĩţōŕ (1 Ḿß ĺĩḿĩţ). Ũśē Ōƥēń ƒĩĺē ƀēĺōŵ ţō ōƥēń ĩţ ĩń àńōţĥēŕ àƥƥ."
],
"C_cPoW": ["Ŷōũŕ ĜĩţĤũƀ śēśśĩōń ēxƥĩŕēď — śĩĝń ĩń àĝàĩń ţō vēŕĩƒŷ ƥũśĥ àććēśś."],
+ "CcaU4i": ["Ēďĩţś àƥƥĺŷ ĺĩvē àńď śàvē àũţōḿàţĩćàĺĺŷ ţō ţĥĩś ţĥēḿē."],
"ChAtFg": ["Ŷōũ ďōń'ţ ĥàvē ƥēŕḿĩśśĩōń ţō ƥũśĥ ţō ţĥĩś ŕēƥō"],
"ChMshD": ["Ǫũĩţ ", ["appName"]],
"Ck9XRt": ["Ćōũĺďń'ţ śàvē ţĥē ķēŷ — ƥĺēàśē ţŕŷ àĝàĩń."],
+ "ClII5l": ["Ƥŕēśś ţĥē śũń ōŕ ḿōōń ōń “Ćũśţōḿ” àƀōvē ţō ũśē ţĥĩś ţĥēḿē."],
"ClTEde": ["Śţàĝē ţĥē śēĺēćţēď ƥàśśàĝē ĩń ţĥē àĝēńţś ƥàńēĺ, ŕēàďŷ ţō ēxţēńď àńď śēńď."],
"CmeH9S": ["Àďď ƥŕōƥēŕţŷ ţō ", ["keyName"]],
"CnOGgs": ["Śŷńć ḿōďē"],
@@ -896,6 +910,7 @@
"DKYW1G": [
"Ţĥĩś śēţţĩńĝ ĩś ƥēŕ-ḿàćĥĩńē àńď ĩśń'ţ śĥàŕēď ŵĩţĥ ćōĺĺàƀōŕàţōŕś. Ĩţ ńēēďś àń ÀƤĨ ķēŷ (śēţ ƀēĺōŵ) ũńĺēśś ŷōũŕ ēńďƥōĩńţ ĩś à ĺōćàĺ śēŕvēŕ ţĥàţ ďōēśń'ţ ŕēǫũĩŕē ōńē."
],
+ "DLIljL": ["Śōḿē śàvēď ţĥēḿēś àŕēń’ţ śĥōŵń ƀēćàũśē ţĥē ţĥēḿē ƒōĺďēŕ ēxćēēďś ţĥē śćàń ĺĩḿĩţ."],
"DMLE5q": ["ḾĆƤ àũţō-ŕēƥàĩŕ ƒàĩĺēď"],
"DMeaxi": ["Ďōŵńĺōàďĩńĝ ", ["0"], " ", ["1"], "…"],
"DNkveC": ["Ćōĺũḿń ōƥţĩōńś"],
@@ -908,6 +923,7 @@
"</0>. Ŷōũ ĥàvē ũńćōḿḿĩţţēď ćĥàńĝēś ţĥàţ ƥŕēvēńţ śŵĩţćĥĩńĝ ĥēŕē — ōƥēń ĩţ ĩń à ŵōŕķţŕēē ţō ĺēàvē ŷōũŕ ćĥàńĝēś ũńţōũćĥēď."
],
"DUWgfT": ["Ŕē-àũţĥēńţĩćàţē ŵĩţĥ ĜĩţĤũƀ Ēńţēŕƥŕĩśē Śēŕvēŕ"],
+ "DUb7Ax": ["Ḿũĺţĩƥĺē ƒĩĺēś ũśē ţĥĩś ţĥēḿē ńàḿē"],
"DVh_Tb": ["Ƒàĩĺēď ţō ćĺēàń ũƥ àƒţēŕ ţŕàśĥ"],
"DWJtEo": ["Ŵĥàţ ĥàƥƥēńś ńēxţ"],
"DXd9LM": ["Ńēŵ ŵōŕķţŕēē"],
@@ -922,6 +938,7 @@
"DhT_PK": ["ŌƥēńĶńōŵĺēďĝē ĩḿƥōŕţēď à śķĩĺĺ"],
"DiFKSL": ["Ćōũńţĩńĝ ḿàŕķďōŵń ƒĩĺēś"],
"DiZ3pq": ["Ĩćōń ƥĩćķēŕ"],
+ "DmkTrb": ["Ćōũĺďń’ţ ćŕēàţē ţĥĩś ţĥēḿē. Ţŕŷ àĝàĩń."],
"Dnn2XG": ["Àũţōḿàţĩć"],
"DpjYd6": ["ĵũḿƥ ţō ţĥē àńćĥōŕēď ţēxţ"],
"DrYM2Z": ["Śŷńć ďĩśàƀĺēď"],
@@ -1095,6 +1112,7 @@
"Ēxƥĺàĩń ĥōŵ ŷōũŕ ćōďēƀàśē ŵōŕķś śō ţēàḿḿàţēś àńď ÀĨ àĝēńţś ćàń ƒĩńď ţĥēĩŕ ŵàŷ àŕōũńď. Ĝōōď ƒōŕ ďōćũḿēńţĩńĝ ţĥē àŕćĥĩţēćţũŕē, ţĥē ḿàĩń ƥàŕţś, àńď ţĥē ǫũēśţĩōńś ńēŵ ćōńţŕĩƀũţōŕś àĺŵàŷś àśķ."
],
"FyW0WO": ["Àũţĥōŕĩźē ĩń ƀŕōŵśēŕ"],
+ "FyyIjH": ["Ţĥēḿē ńàḿē ĩś ţōō ĺōńĝ"],
"G-JBA1": [
"Śōũŕćē ḿōďē ŕēǫũĩŕēś à ĺĩvē ćōńńēćţĩōń — ŷōũŕ ēďĩţś àŕē śàvēď àńď ŵĩĺĺ àƥƥēàŕ ŵĥēń ŷōũ ŕēćōńńēćţ."
],
@@ -1134,6 +1152,7 @@
"GQDSBN": ["Ĺàŷōũţ ōƥţĩōńś"],
"GSYWCm": ["Ĥĩďē ďōćũḿēńţ ƥàńēĺ"],
"GUYwCr": ["Ďĩśḿĩśś ńōţĩćē"],
+ "GUZHkL": ["Ḿĩśśĩńĝ ƥàĺēţţē ćōĺōŕś"],
"GUqTzn": ["Ćōḿƥēţĩţōŕ ŕēśēàŕćĥ"],
"GXf9hG": ["Ćĺōńĩńĝ ", ["repoName"], "..."],
"GZzDqc": [
@@ -1203,6 +1222,7 @@
"HSI88F": ["Ďēĺēţē ţàƀĺē"],
"HSh8u_": ["Ƒōĺďēŕś"],
"HTW0Zw": ["Ōńē ḿōŕē śţēƥ: ŕũń <0>ćĺàũďē</0> ĩń ţĥĩś ƥŕōĴēćţ àńď àƥƥŕōvē ŌƥēńĶńōŵĺēďĝē ōńćē."],
+ "HZ7fEu": ["Ţĥēḿē ńàḿē"],
"HbcQYf": [
"Ŕēƥĺàćē ţĥē śŷḿĺĩńķ àţ ",
["display"],
@@ -1251,6 +1271,7 @@
"IFezUv": ["Ţĥē àũďĩţ ćōũĺď ńōţ ƀē ćōḿƥĺēţēď. Ţŕŷ àĝàĩń."],
"IInnZo": ["Ćōńƒĺĩćţ"],
"IKoTAC": ["Ķēēƥ ďĩśàƀĺēď"],
+ "IMLUBh": ["Ĩńvàĺĩď ćōĺōŕ vàĺũē"],
"INp_z6": ["Ćōḿḿēńţ ōŕ àśķ ÀĨ àƀōũţ ţĥĩś ", ["0"]],
"IO8REi": ["Ćōũĺďń'ţ ōƥēń \"", ["name"], "\": ", ["0"]],
"IQPyrD": ["Ḿĩśśĩńĝ ƥàĝē — ćĺĩćķ ţō ćŕēàţē"],
@@ -1262,7 +1283,6 @@
"IX_uXB": ["ḿŷ-ƒēàţũŕē"],
"IYciRC": ["Ţĥàńķś ƒōŕ ţĥē ŕēƥōŕţ!"],
"IajAbS": ["Àďď à śţàŕţēŕ ƥàćķ"],
- "IbTC7z": ["Ƥàśţē à ƀàśē16 śćĥēḿē"],
"If0crP": ["Ōƥēń ŵĩţĥ ÀĨ ", ["targetDisplayName"], ", ", ["hint"]],
"IgN3LY": ["Ōń śēĺēćţēď ţēxţ ĩń <0>", ["address"], "</0>"],
"IgTwLt": ["Ōƥēń ţĥĩś ďōćũḿēńţ ĩń ţĥē ēďĩţōŕ àńď ćōĺĺàƥśē ţĥē ĝŕàƥĥ."],
@@ -1280,6 +1300,7 @@
"Ix0K8o": ["Ĥĩďē ēxţēŕńàĺ ŨŔĹ ńōďēś"],
"IxHMdF": ["Ćōũĺďń'ţ ďēĺēţē ţĥàţ ćōḿḿēńţ."],
"IxyZXD": ["Śćŕēēńśĥōţ"],
+ "J1XRO3": ["Ţĥēḿē ćōĺōŕś"],
"J2Mv98": ["Ńàḿē (ē.ĝ. ", ["login"], ")"],
"J2_JuX": ["ńōţĥĩńĝ (", ["0"], " ćàńńōţ ḿàţćĥ à ďōć)"],
"J2eKUI": ["Ƒĩĺē"],
@@ -1305,7 +1326,7 @@
"JOcPqH": ["ßŕĩńĝ à ŕēḿōţē ŕēƥōśĩţōŕŷ ōńţō ţĥĩś ḿàćĥĩńē."],
"JWsZlx": ["Ōƥēń à ƥŕōĴēćţ ţō ēďĩţ."],
"JZ8cO6": ["Ĺĩĝĥţ, ďàŕķ, ōŕ ƒōĺĺōŵ ţĥē ŌŚ."],
- "J_bJiH": ["Ƥĩćķ à ƀũĩĺţ-ĩń ĨĎĒ ćōĺōŕ ƥàĺēţţē, ōŕ ďēƒĩńē ŷōũŕ ōŵń."],
+ "JaU1ld": ["Ţĥēḿē ńàḿē ĥàś ũńśũƥƥōŕţēď ćĥàŕàćţēŕś"],
"JddocZ": ["Ţōĝĝĺē ĥēàďēŕ ćōĺũḿń"],
"Jejur6": ["Ćōũĺďń'ţ ĺōàď ďōćũḿēńţ"],
"JfPuv7": [["shareBranch"], " ĩśń'ţ à vàĺĩď ƀŕàńćĥ ńàḿē."],
@@ -1384,6 +1405,7 @@
"KsAPaB": ["Ţĥĩś ƀŕàńćĥ ĩś ćĥēćķēď ōũţ ĩń:"],
"KtACeE": ["Ďēƒàũĺţ: <0>", ["0"], "</0>"],
"KujtjC": ["Ƒĩńď"],
+ "Kx881F": ["Ŕēśţōŕēď ", ["0"], "."],
"L-rMC9": ["Ŕēśēţ ţō ďēƒàũĺţ"],
"L1BQTH": [["0"], " ĩśń'ţ ĩńśţàĺĺēď ŷēţ — ōƥēńĩńĝ ĩţś ďōŵńĺōàď ƥàĝē."],
"L1ZE3M": ["Ďōćũḿēńţ śţàţĩśţĩćś"],
@@ -1567,6 +1589,7 @@
"N55YNr": [
"Ćĥōōśē ŵĥēţĥēŕ ţĥĩś ƥŕōĴēćţ'ś ŌƥēńĶńōŵĺēďĝē śēţũƥ, ĩńćĺũďĩńĝ ĩţś ÀĨ-ţōōĺ ćōńńēćţĩōńś, ĩś śàvēď ŵĩţĥ ţĥē ƥŕōĴēćţ śō ţēàḿḿàţēś ĝēţ ĩţ ţōō, ōŕ ķēƥţ ōńĺŷ ōń ŷōũŕ ćōḿƥũţēŕ."
],
+ "N6j2JH": ["Ēďĩţ ", ["0"]],
"NBdIgR": ["Ćōḿḿēńţ"],
"NCmYhK": [
"Śķĩĺĺś ţēàćĥ àĝēńţś ŕēƥēàţàƀĺē ţàśķś. Àũţĥōŕ àńď ḿàńàĝē ţĥēḿ ƒŕōḿ ţĥē Śķĩĺĺś śēćţĩōń ĩń ţĥē ēďĩţōŕ; ēàćĥ śķĩĺĺ'ś ĩńśţàĺĺ ḿēńũ ćōńţŕōĺś ŵĥēŕē ĩţ ĺĩvēś. Ţĥēśē àŕē ţĥĩś ƥŕōĴēćţ'ś śķĩĺĺ ƒōĺďēŕś."
@@ -1768,6 +1791,7 @@
"</0> àĺŕēàďŷ ĥàś à ŵōŕķţŕēē — ĩţ'ĺĺ ōƥēń ĩń ĩţś ōŵń ŵĩńďōŵ."
],
"QB-moX": ["Ĩńśţàĺĺ ĩţ ţō ŷōũŕ ōţĥēŕ ēďĩţōŕś (Ćĺàũďē Ćōďē, Ćũŕśōŕ, Ćōďēx) ţō śĥàŕē ĩţ."],
+ "QDErHs": ["Śēĺēćţ ", ["slot"], " — ", ["0"]],
"QDZbvN": [["diffDays"], "ď àĝō"],
"QGWzup": ["Ĺōàďĩńĝ ŌƥēńĶńōŵĺēďĝē śķĩĺĺś"],
"QHCx0c": ["ßũĝ ŕēƥōŕţ ĥĩśţōŕŷ"],
@@ -1797,11 +1821,11 @@
"QlxHAH": ["Śĥōŵĩńĝ ŕēśũĺţś ƒōŕ \"", ["semanticResultsLabel"], "\""],
"Qpfxa1": [["secs"], "ś"],
"QqBQu1": ["Ĺàƀēĺ <0>(vĩśĩƀĺē ĺĩńķ ţēxţ)</0>"],
- "Quz_Qu": ["Ēďĩţś àƥƥĺŷ ĺĩvē. Ĺĩĝĥţ ōŕ ďàŕķ ćōḿēś ƒŕōḿ ţĥē śćĥēḿē."],
"Qvls7J": ["Ēńĝ śƥēćś"],
"Qw-7Ie": [
"À śĩḿƥĺē ƥĺàćē ţō ŵŕĩţē, ŵĩţĥ ōńē ƒĩĺē ƥēŕ ţōƥĩć àńď à ďàĩĺŷ Ĵōũŕńàĺ. Ƥĩćķ ţĥĩś ĩƒ ŷōũ Ĵũśţ ŵàńţ ţō śţàŕţ ŵŕĩţĩńĝ àńď ĺēţ ţĥē ĺĩńķś ƀēţŵēēń ńōţēś ƀũĩĺď ũƥ ōvēŕ ţĩḿē."
],
+ "QwG_zJ": ["Ćōńƒĺĩćţĩńĝ ƒĩĺēś: ", ["0"], "."],
"QySH4I": ["Ďēţēćţēď ŌƥēńĶńōŵĺēďĝē ƥŕōĴēćţś"],
"QyioBP": ["Ḿōvē ũƥ"],
"QzofTX": ["Ńō ćōḿḿēńţś ĩń ţĥĩś ƥŕōĴēćţ ŷēţ. Ćōḿḿēńţ ōń à ƥàśśàĝē ţō śţàŕţ ōńē."],
@@ -1816,6 +1840,7 @@
]
],
"R0jJzV": ["Ƥàśţē ŨŔĹ, ōŵńēŕ/ŕēƥō, ōŕ śēàŕćĥ ŷōũŕ ŕēƥōś"],
+ "R30SFt": ["Ũśē à ĺōŵēŕćàśē .ŷàḿĺ ōŕ .ŷḿĺ ēxţēńśĩōń"],
"R3y75Z": ["Ēďĩţ śōũŕćē"],
"R4OWFD": ["Śēćţĩōńś"],
"R65q-K": [
@@ -1826,6 +1851,7 @@
"R9dK63": ["Śàḿƥĺē ĩḿàĝē"],
"RDjuBN": ["Śēţũƥ"],
"RDrXh4": ["Ćōńƒĩĝũŕē ũśēŕ, ƥŕōĴēćţ, àńď ĩńţēĝŕàţĩōń śēţţĩńĝś."],
+ "RG3yW6": ["Ēńţēŕ à ńàḿē ƒōŕ ţĥĩś ţĥēḿē."],
"RG4XHV": ["Ćōƥŷ ", ["0"], " ƥŕōḿƥţ"],
"RGCCrg": ["Ćōƥŷ śĥàŕē ĺĩńķ"],
"RGkNeJ": ["Ĩńĩţĩàĺĩźē à śţàŕţēŕ ƥàćķ"],
@@ -1989,6 +2015,7 @@
"UEdTEN": ["Ōŕƥĥàńēď"],
"UGeJuP": ["Àĺĺōŵēď vàĺũēś (ēḿƥţŷ = àńŷ)"],
"UGtPix": ["ĜĩţĤũƀ ćōńńēćţĩōń ēxƥĩŕēď. Ćōńńēćţ àĝàĩń ţō ćōńţĩńũē."],
+ "UH0Zqw": ["Ţĥĩś ĩśń’ţ à ŕēĝũĺàŕ ţĥēḿē ƒĩĺē"],
"UHwc0P": [
"Ţĥĩś ĩś à ƥŕēvĩēŵ ōƒ ",
["boldName"],
@@ -2045,7 +2072,6 @@
["src"],
"</1> ĩś ńō ĺōńĝēŕ àvàĩĺàƀĺē."
],
- "UeQEbk": ["ßŕōŵśē ĥũńďŕēďś ōƒ śćĥēḿēś"],
"UfW9Kr": [
"Ŷōũŕ śēàŕćĥ ǫũēŕĩēś àńď ţĥē ƒũĺĺ ţēxţ ōƒ ḿàţćĥĩńĝ ƥàĝēś àŕē śēńţ ţō ŷōũŕ ēḿƀēďďĩńĝś ƥŕōvĩďēŕ (ŌƥēńÀĨ ƀŷ ďēƒàũĺţ) ţō ćōḿƥũţē ēḿƀēďďĩńĝś."
],
@@ -2131,6 +2157,7 @@
],
"W8vpBM": ["śţàŕţēŕ ƥàćķ"],
"W9_Bub": ["Ĺōćàĺ ćĥàńĝēś ōvēŕĺàƥ ŵĩţĥ ĩńćōḿĩńĝ śŷńć"],
+ "WBNpt9": ["Ćōũĺďń’ţ ŕēàď ţĥĩś ţĥēḿē (", ["0"], ")"],
"WFEbV1": ["Ƒĺàĝ ćōḿḿōń ḿàŕķďōŵń ĩśśũēś ĩń ţĥē ēďĩţōŕ. Ƥōŵēŕēď ƀŷ <0>ḿàŕķďōŵńĺĩńţ<1/></0>."],
"WGMoTY": ["ßũĝś, ćŕàśĥēś, ōŕ ĩţ ƒēĺţ ũńŕēĺĩàƀĺē"],
"WHPvOb": ["Àĺĺ ƒĩĺēś àŕē ĥĩďďēń ƀŷ vĩēŵ ƒĩĺţēŕś."],
@@ -2259,6 +2286,7 @@
"Y9c_nf": ["0/0"],
"YBt9YP": ["ßēţà"],
"YC6_wP": ["Ēďĩţ ", ["keyName"]],
+ "YCmS3k": ["Ďēĺēţēď ", ["0"], "."],
"YDL7N6": [
"Ĺĩńţ ƥĺũĝĩńś — ŵĥĩćĥ ŕũĺē ƒàḿĩĺĩēś ŕũń àńď ţĥēĩŕ ƥēŕ-ŕũĺē śēţţĩńĝś — àŕē ćōńƒĩĝũŕēď ōń ţĥēĩŕ ōŵń ţàƀ ũńďēŕ Ţĥĩś ƥŕōĴēćţ → Ƥĺũĝĩńś."
],
@@ -2284,6 +2312,7 @@
"Y_kL7X": ["Ćũśţōḿĩźē ĥōŵ ţĥē ēďĩţōŕ ĺōōķś àńď ƀēĥàvēś."],
"Ya3PlJ": ["Ƥēŕḿĩśśĩōń ŕēǫũĩŕēď"],
"YaeyFh": ["Ƥũĺĺś ḿàŷ ōvēŕŵŕĩţē ũńćōḿḿĩţţēď ēďĩţś ĩń ŷōũŕ ĺōćàĺ ƒĩĺēś."],
+ "Yb82LN": ["ĨĎ: ", ["0"]],
"Yea-K5": ["Ŕēśţōŕē ţō ţĥĩś ƥōĩńţ"],
"Yi0VMG": ["Ũƥĺōàď ", ["keyName"]],
"YjMLg2": ["Ōƒƒ — ēxţēŕńàĺ ĺĩńķś śĥōŵ ōńĺŷ ţĥēĩŕ ŨŔĹ. Ńō ŕēǫũēśţś ĺēàvē ţĥĩś ćōḿƥũţēŕ."],
@@ -2358,6 +2387,7 @@
"ZYtq3m": [
"Ćōńńēćţ ţĥē ÀĨ ţōōĺś ŷōũ ũśē ţō ţĥĩś śƥēćĩƒĩć ƥŕōĴēćţ. Ţĥēśē ƒĩĺēś ĺĩvē ĩń ţĥē ƥŕōĴēćţ ƒōĺďēŕ, śō àńŷōńē ŵĥō ōƥēńś ĩţ ĝēţś ţĥē śàḿē śēţũƥ."
],
+ "Z_nNa2": ["Ńàḿē ŷōũŕ ţĥēḿē"],
"ZatAO_": ["Ƒàĩĺēď ţō ēńàƀĺē ĺĩńķ ƥŕēvĩēŵś — ", ["detail"]],
"Zf0w-R": [
"Ţàķē à ƥĩēćē ōƒ ŵŕĩţĩńĝ ƒŕōḿ à ŕōũĝĥ ĩďēà ţō à ƒĩńĩśĥēď ďŕàƒţ ţō śōḿēţĥĩńĝ ŷōũ'ŕē ŕēàďŷ ţō śĥàŕē. Ĝōōď ƒōŕ ƀĺōĝ ƥōśţś, ēśśàŷś, ōŕ àńŷţĥĩńĝ ŷōũ ŵàńţ ţō ḿōvē ţĥŕōũĝĥ ćĺēàŕ śţàĝēś."
@@ -2393,11 +2423,13 @@
["currentLabel"],
"</1>."
],
+ "_DwR-n": ["Ćŕēàţĩńĝ…"],
"_FLBbi": [["sizeText"], " · śēćŕēţś ŕēďàćţēď · ćŕàśĥ ďũḿƥ ńōţ ŕēďàćţēď"],
"_GRWOJ": ["Ćĥàńĝē ţĥē ēḿƀēďďĩńĝś ƥŕōvĩďēŕ?"],
"_HgF9q": ["Śōŕţ ƀŷ"],
"_IGfXZ": ["ŌƥēńĶńōŵĺēďĝē ǫũĩţ ũńēxƥēćţēďĺŷ ĺàśţ ţĩḿē."],
"_IX_7x": ["Ōţĥēŕ"],
+ "_IfSZn": ["À śàvēď ţĥēḿē àĺŕēàďŷ ũśēś ţĥĩś ńàḿē."],
"_JOGC0": ["Śēńď ƒēēďƀàćķ…"],
"_LczaQ": ["Ďēńĩēď — ", ["optionName"]],
"_NWEid": ["Śēàŕćĥ śćĥēḿà ƒĩĺēś ƀŷ ƥàţĥ"],
@@ -2513,7 +2545,6 @@
"b6Fgpe": ["Ēàćĥ ƥàćķ śćàƒƒōĺďś ŷōũŕ ƥŕōĴēćţ ŵĩţĥ ŕēàďŷ-ḿàďē ƒōĺďēŕś àńď ţēḿƥĺàţēś."],
"bBE5tC": ["Ďēţēćţēď ōń ţĥĩś ḿàćĥĩńē"],
"bBcFK_": ["Ōƥēń ēḿōĴĩ ƥĩćķēŕ ƒōŕ ", ["keyName"]],
- "bD2SLZ": ["Śćĥēḿē ćōƥĩēď àś ƀàśē16 ŶÀḾĹ"],
"bD8I7O": ["Ćōḿƥĺēţē"],
"bEp7UY": ["Ńōţ àţţàćĥēď ţō ďēśķţōƥ ƀŕĩďĝē"],
"bF22t6": ["Ŕēḿōvē ƒĩēĺď ", ["field"]],
@@ -2573,6 +2604,7 @@
"cIptmH": ["Ĩń ţĥē Ćĺàũďē Ďēśķţōƥ Àƥƥ"],
"cKjLuT": ["(ƥŕōĴēćţ + ũśēŕ)"],
"cLP0Lf": ["Ŕēḿōţē śķĩĺĺ śōũŕćē"],
+ "cLn264": ["Ţĥĩś ţĥēḿē ƒĩĺē ćōũĺďń’ţ ƀē ŕēàď"],
"cMMb6H": ["Ĩńśţàĺĺēď ", ["imported"], ", ƀũţ ", ["failed"], " ƒàĩĺēď: ", ["failedNames"]],
"cN1Gcp": ["À ŵōŕķţŕēē ƒōĺďēŕ ƒōŕ ", ["shareBranch"], " àĺŕēàďŷ ēxĩśţś."],
"cOJyVj": ["Ďĩśàƀĺē Ţĥēḿēś"],
@@ -2590,6 +2622,7 @@
["conflictCount", "plural", { "one": ["#", " ćōńƒĺĩćţ"], "other": ["#", " ćōńƒĺĩćţś"] }]
],
"cUk6TF": ["Śŷńć ƒàĩĺēď — ćĥēćķ ţĥē śēŕvēŕ ĺōĝś ƒōŕ ďēţàĩĺś."],
+ "cUt8yN": ["Ćĥàńĝēś śàvē àũţōḿàţĩćàĺĺŷ."],
"cV7LOw": ["Ţēàḿ Ŵĩķĩ"],
"cVKnqL": ["Ćōũĺďń'ţ ŕēàď ţĥē ćōḿḿēńţś ŵàĩţĩńĝ ţō śēńď: ", ["0"]],
"cZGNlb": ["Àďď àńōţĥēŕ ƥàţţēŕń"],
@@ -2628,6 +2661,7 @@
"cstC0z": ["Ƥàţţēŕń (ŕēĝēx)"],
"ct2kv5": ["Ńō ĥēàďĩńĝś ĩń ", ["pageTarget"]],
"cuA8QW": ["Ōŕĝàńĩźē śƥēćś"],
+ "cuHhjo": ["Ćŕēàţē & ēďĩţ"],
"d-GtJt": ["Vĩēŵ ĩń Śōũŕćē Ḿàŕķďōŵń"],
"d1JjXo": [
"Ŷōũŕ ĺōćàĺ ćōƥŷ ōƒ ƀŕàńćĥ <0>",
@@ -2738,6 +2772,7 @@
"Ĝĩţ ćàń'ţ ţŕàćķ ţĥĩś ƒōĺďēŕ — ĩţ'ś ēḿƥţŷ ōŕ ćōńţàĩńś ōńĺŷ ĩĝńōŕēď ƒĩĺēś. Ţĥē ĺĩńķ ŵōń'ţ ŵōŕķ ũńţĩĺ ŷōũ àďď à ţŕàćķēď ďōćũḿēńţ."
],
"eiUA4k": [["count", "plural", { "one": ["#", " ćōḿḿēńţ"], "other": ["#", " ćōḿḿēńţś"] }]],
+ "ekSPiP": [["0"], " ŵàś àĺŕēàďŷ ďēĺēţēď."],
"el2KyL": ["Śĺĩďēv ƒōũńď ĩń ţĥĩś ƥŕōĴēćţ. Ďēćķś ŵĩĺĺ ũśē ţĥē ƥŕōĴēćţ'ś vēŕśĩōń."],
"emMrXQ": ["Śēŕvēŕ ŕēţũŕńēď à ḿàĺƒōŕḿēď ďũƥĺĩćàţē ŕēśƥōńśē."],
"emgiet": ["Àũţĥōŕĩţàţĩvē ćōńţēńţ; ḿĩŕŕōŕēď vēŕƀàţĩḿ ēvēŕŷŵĥēŕē ĩţ'ś ŕēƒēŕēńćēď."],
@@ -2806,6 +2841,7 @@
"fwrPh4": ["Ƥĺēàśē ēńţēŕ à vàĺĩď ēḿàĩĺ."],
"fxJk_6": ["<0>Ĥàvē ḿōŕē ţō àďď?</0> Ŵŕĩţē ţō <1/> àńď ḿēńţĩōń ŷōũŕ ŕēƒēŕēńćē."],
"fxbCNQ": ["Śŷńćēď. Ţĥē ĺĩńķ ĩś ũƥ ţō ďàţē."],
+ "g12y1g": ["Ĩńvàĺĩď ŶÀḾĹ"],
"g1ZTh_": [
[
"count",
@@ -2902,7 +2938,6 @@
"gwEcOD": ["Ŷōũŕ ĺōćàĺ ćōƥŷ ĩś ƀēĥĩńď."],
"gwykHF": ["Ţĥĩś ďōć ĥàśń'ţ śŷńćēď ţō ĜĩţĤũƀ ŷēţ. Ţĥē ĺĩńķ ŵĩĺĺ ŵōŕķ àƒţēŕ ţĥē ńēxţ śŷńć."],
"gyHDWC": ["Ƒĩx àĺĺ ŵĩţĥ ÀĨ (", ["count"], ")"],
- "gyWc8_": ["Àććēńţś"],
"h-AdvS": ["Ţĥē ƒōĺďēŕś àńď ţēḿƥĺàţēś àŕē àĺŕēàďŷ ĥēŕē, śō ţĥēŕē'ś ńōţĥĩńĝ ţō àďď."],
"h06R3C": ["Ńō ƥàĝēś àŕē ḿĩśśĩńĝ ōũţĝōĩńĝ ĝŕàƥĥ ĺĩńķś."],
"h16FyT": ["Ĺĩśţś"],
@@ -2924,6 +2959,7 @@
"hDEaQu": ["Ćōńńēćţ ŌƥēńĶńōŵĺēďĝē ţō ōţĥēŕ ţōōĺś ŷōũ ũśē."],
"hDKtoF": [["diffHrs"], "ĥ àĝō"],
"hDoLrm": ["Ŕēḿōvē ", ["projectName"], " ƒŕōḿ ŕēćēńţ ƥŕōĴēćţś"],
+ "hFmYGU": ["Ĺĩńķēď ţĥēḿē ƒĩĺēś àŕēń’ţ śũƥƥōŕţēď"],
"hGmuTc": ["Ďōćś ţàĝĝēď #", ["tagDocsName"]],
"hHMv6l": ["Ďēĺēţē ƀĺōćķ"],
"hHR0tt": ["Ńēŵ ćĥàţ ŵĩţĥ ", ["0"]],
@@ -2937,6 +2973,7 @@
"hSBIG-": ["À ţĩţĺē, ďēśćŕĩƥţĩōń, ţàĝś — àńŷţĥĩńĝ ţĥàţ ďēśćŕĩƀēś ţĥĩś ƒōĺďēŕ."],
"hSySVc": ["Ĩńśţàĺĺ ĥàńďōƒƒ ƒàĩĺēď: ", ["msg"]],
"hVAkI8": ["Ŕũń ĩń ţēŕḿĩńàĺ"],
+ "hVzt9x": ["Śàvēď ţĥēḿēś ćōũĺďń’ţ ĺōàď. Ţĥē ĺàśţ àvàĩĺàƀĺē ţĥēḿē ĺĩśţ ĩś śţĩĺĺ śĥōŵń."],
"hXUWyd": ["Vàĺũē ĩś ŕēǫũĩŕēď"],
"hXbSxc": ["Àśśēţ: ", ["title"]],
"hY8pka": ["Śēĺēćţ ńēxţ ōććũŕŕēńćē"],
@@ -2946,6 +2983,7 @@
"haHgQj": ["Ćōƥĩēď ŕēĺàţĩvē ƥàţĥ"],
"habOU_": ["Ƒàĩĺēď ţō ũƥďàţē ţĥē àũţō-àƥƥŕōvē śēţţĩńĝ — ", ["detail"]],
"he3ygx": ["Ćōƥŷ"],
+ "hgF0al": ["Ũśē ", ["0"], " ƒōŕ ţĥē àćţĩvē ĺĩĝĥţ ḿōďē"],
"hgtsat": ["Ƒàĩĺēď ţō ďēĺēţē ", ["file"]],
"hh4mVC": ["Àśķ ÀĨ ţō ƒĩx ", ["flatId"]],
"hhI__i": ["Àŕē ŷōũ śũŕē ŷōũ ŵàńţ ţō ďēĺēţē {name} àńď ĩţś ćōńţēńţś?"],
@@ -3179,6 +3217,7 @@
]
],
"k_pade": ["Ćōńƒĩĝ śĥàŕĩńĝ ĩś ńōŵ śĥàŕēď. Ćōḿḿĩţ ţĥē ŌĶ ƒĩĺēś ţō śĥàŕē ŵĩţĥ ŷōũŕ ţēàḿ."],
+ "k_tFzX": ["Ḿĩśśĩńĝ ţĥēḿē ńàḿē"],
"k_yIIc": ["Ŵĩĺĺ ƀē ćŕēàţēď àţ: <0>", ["targetPreview"], "</0>"],
"ka6Eke": ["Ōƥēń ƒĩĺē ōń ďĩśķ"],
"kdzzOK": ["Ōƒƒ — śēàŕćĥ ŕàńķś ƀŷ ķēŷŵōŕď ōńĺŷ. Ńō ćōńţēńţ ĺēàvēś ţĥĩś ćōḿƥũţēŕ."],
@@ -3190,6 +3229,7 @@
"khCa4M": ["Ţēàćĥēś ćōďĩńĝ àĝēńţś ĩń ţĥĩś ƥŕōĴēćţ ţō ŕēàď àńď ŵŕĩţē ţĥŕōũĝĥ ŌƥēńĶńōŵĺēďĝē."],
"kj9pAE": ["Ćŕēàţĩńĝ ƥàĝē"],
"kknhfj": ["Ńō ćĥàńĝēś"],
+ "kkux8f": ["Ćōũĺďń’ţ ďēĺēţē ", ["0"], ". Ţŕŷ àĝàĩń."],
"klPS-L": ["Ōŕĩĝĩńàĺ ƒĩĺē — ƀēƒōŕē ţĥĩś àĝēńţ'ś ēďĩţś."],
"kmKqZg": ["Ćĺũśţēŕś"],
"knjOzA": ["Ţàĝ vàĺũē"],
@@ -3203,6 +3243,7 @@
"kwLcuN": [
"Ĝĩvē ţĥē ÀĨ ţōōĺś ŷōũ ũśē àććēśś ţō ŕēàď àńď ũƥďàţē ŷōũŕ ƥŕōĴēćţś. Ƥĩćķ ŵĥàţ ţō śēţ ũƥ ƀēĺōŵ, àńď ćĥàńĝē ĩţ àńŷţĩḿē ĩń Śēţţĩńĝś > ÀĨ ţōōĺś & ĆĹĨ."
],
+ "kwNS82": ["Ţĥĩś ţĥēḿē ćàń’ţ ƀē ũśēď ũńţĩĺ ţĥē ƒĩĺē ĩś ƒĩxēď."],
"ky9Tuc": ["Ēďĩţ ", ["0"], " śōũŕćē"],
"kzpkcn": ["Ćōũĺďń'ţ śàvē ţĥàţ ēďĩţ."],
"l-4nnw": ["Śēàŕćĥ ŕũĺēś"],
@@ -3248,6 +3289,7 @@
"À ƥàţĥ ĩńśĩďē ţĥē śķĩĺĺ — àńŷ ƒōĺďēŕ ŵōŕķś (ē.ĝ. ŕēƒēŕēńćēś/ńōţēś.ḿď). Ƒōĺďēŕś ĩń ţĥē ƥàţĥ àŕē ćŕēàţēď ƒōŕ ŷōũ."
],
"lPzyrU": ["Àĺĺ ĥũńķś ŕēśōĺvēď"],
+ "lS83Sg": ["Ćōũĺďń’ţ ŕēàćĥ ţĥē ćĺĩƥƀōàŕď."],
"lScd1O": ["Śĺĩďēv ďēćķś ōƥēń ĩń ţĥē ŌƥēńĶńōŵĺēďĝē ďēśķţōƥ àƥƥ ōńĺŷ."],
"lUtr1r": [["0"], " ōƒ ", ["1"], " śēĺēćţēď"],
"lVWEIL": ["Ĩńďēxēď ", ["embedded"], " ōƒ ", ["total"], " ƥàĝēś."],
@@ -3395,6 +3437,7 @@
"nNYV3Y": ["àńď ", ["remaining"], " ḿōŕē"],
"nOEDQs": ["Ƒàĩĺēď ţō ũƥďàţē śŷńć ḿōďē — ", ["detail"]],
"nP-KFo": ["Ńēŵ ", ["0"], " ćĥàţ"],
+ "nTM8ab": ["Ĝĩvē ĩţ à ńàḿē ƀēƒōŕē ēďĩţĩńĝ ĩţś ćōĺōŕś."],
"nTwL53": ["Ōƥēń à ďōć ţō śĥàŕē ĩţś ŨŔĹ."],
"nUNZL4": ["Àśķ ", ["0"]],
"nWv1ja": ["Ḿàńàĝē ĥĩďďēń ƒĩĺēś ĩń Śēţţĩńĝś → Ĩĝńōŕē ƥàţţēŕńś."],
@@ -3439,6 +3482,7 @@
"Ĝĩţ ĩďēńţĩţŷ ĩśń'ţ śēţ — ćōḿḿĩţś ũśē à ďēƒàũĺţ àũţĥōŕ. Śēţ ŷōũŕś śō ţēàḿḿàţēś śēē ŷōũŕ ńàḿē."
],
"nrXDdR": ["Ƒĩēĺď ńàḿē"],
+ "nsM-_m": ["ßŕōŵśē ĥũńďŕēďś ōƒ ţĥēḿēś"],
"nsUDL8": [["0"], " ōƒ ", ["1"], " ƥŕōĴēćţś śēĺēćţēď"],
"nskygk": ["Ćĥōōśē àĝēńţ"],
"nwtY4N": ["Śōḿēţĥĩńĝ ŵēńţ ŵŕōńĝ"],
@@ -3479,6 +3523,7 @@
"oYepHb": [
"Ţĥē ţēŕḿĩńàĺ ĩś ţũŕńēď ōƒƒ ƒōŕ ţĥĩś ƥŕōĴēćţ. Ţũŕń ĩţ ƀàćķ ōń ţō ŕũń ćōḿḿàńďś ĥēŕē."
],
+ "oZUYMv": ["Ćōũĺďń’ţ ŕēśţōŕē ", ["0"], ". Ţĥàţ ńàḿē ĩś àĺŕēàďŷ ĩń ũśē."],
"of3tF-": [
"Ŷōũ ƥĩćķēď ~/Ďōćũḿēńţś. ŌƥēńĶńōŵĺēďĝē ŵĩĺĺ ĩńďēx ēvēŕŷ ḿàŕķďōŵń ƒĩĺē ũńďēŕ ĩţ. Ĩƒ ŷōũ ōńĺŷ ŵàńţ ţō ḿàńàĝē à śũƀ-ƒōĺďēŕ, ćĥōōśē à śḿàĺĺēŕ śćōƥē."
],
@@ -3509,6 +3554,7 @@
["0"],
" — śōḿēţĥĩńĝ ōũţśĩďē ŌĶ ćĥàńĝēď ĩţ śĩńćē. Ţĥē śţàţē śĥōŵń ĩś ŵĥàţ'ś ōń ďĩśķ ńōŵ; ŷōũŕ ńēxţ Śŷḿĺĩńķ/Ũńĺĩńķ ŵĩńś."
],
+ "p7Utw8": ["Ńōţ à ƀàśē16 ţĥēḿē"],
"p98xmP": ["Àƥƥĺĩēś ţō"],
"p9sdCy": ["Ńēŵ ĩĝńōŕē ƥàţţēŕń"],
"pA16WG": ["Ţĥĩś ƥŕōĴēćţ ĥàś ńō ĜĩţĤũƀ ŕēḿōţē."],
@@ -3592,6 +3638,7 @@
"qIJIrD": ["Ţēśţĩńĝ"],
"qJSo0_": ["Ŵĥàţ ĩś ţĥē ďĩƒƒēŕēńćē ƀēţŵēēń ćōƥĩēś àńď śŷḿĺĩńķś?"],
"qNOgUu": ["Ēďĩţś àţ ţĥē śōũŕćē ĺàńď ĥēŕē — ńō ćōƥŷ-ƥàśţē ďŕĩƒţ."],
+ "qQi_um": ["Ţĥēḿē ĩḿƥōŕţēď."],
"qRZh7J": ["Ĺēţ Ţàƀ ĺēàvē ţĥē śōũŕćē ēďĩţōŕ ĩńśţēàď ōƒ ĩńďēńţĩńĝ."],
"qSKu2v": ["Śōũŕćē ńàvĩĝàţĩōń àńď śēĺēćţĩōń"],
"qSxaOz": ["Àććēƥţ ţĥēĩŕ ďēĺēţĩōń"],
@@ -3637,6 +3684,7 @@
"qo4zCg": ["Ƥàţĥ ćàńńōţ ćōńţàĩń ƀàćķśĺàśĥēś"],
"qpQwGC": ["Ďēśćŕĩƀē ŵĥàţ ŷōũ'ŕē ŵōŕķĩńĝ ōń àńď ţĥē àĝēńţ śēţś ĩţ ũƥ ƒōŕ ŷōũ."],
"qribBG": ["śćĥēḿà ", ["deleteTarget"]],
+ "qtnmEX": ["Ēńţēŕ à vàĺĩď ţĥēḿē ńàḿē."],
"qvWGzP": ["Ćōĺĺàƥśē àĺĺ"],
"qyLmWw": ["Śōũŕćē ēďĩţōŕ śēàŕćĥ ƥàńēĺ"],
"r-OJYm": ["Ēńţēŕ à vàĺĩď ƀŕàńćĥ ńàḿē (ńō śƥàćēś, ńō ĺēàďĩńĝ ďōţ, ńō \"..\")."],
@@ -3662,6 +3710,7 @@
"rFmBG3": ["Ćōĺōŕ ţĥēḿē"],
"rFw02Q": ["Ũƥĺōàďĩńĝ ", ["keyName"]],
"rJVoVX": ["Śōũŕćē ƒĩńď ŕēśũĺţś"],
+ "rJm8-2": ["Ćōũĺďń’ţ ŕēàćĥ ţĥē ćĺĩƥƀōàŕď — ţĥē ţĥēḿē ĩś ĩń ţĥē ƀōx ƀēĺōŵ."],
"rNifQd": ["Ŕēḿōvē ƥŕōƥēŕţŷ"],
"rQAQus": ["Ćōũĺďń'ţ śàvē ţēḿƥĺàţē: ", ["error"]],
"rQRrkB": ["ŷēśţēŕďàŷ"],
@@ -3732,7 +3781,6 @@
"sJK6pq": ["Ƥēŕḿĩśśĩōń ďēńĩēď"],
"sJWhgo": ["Ũńķńōŵń ćōḿƥōńēńţ: ", ["unregisteredComponentName"]],
"sKEgGd": ["Śēńď ţō ćĥàţ"],
- "sKMhJz": ["ßàćķĝŕōũńď ţō ƒōŕēĝŕōũńď"],
"sLcbHt": [
"Śŷḿĺĩńķ àńōţĥēŕ ƒōĺďēŕ ĩńţō ōńē ōƒ ţĥēśē śō ƀōţĥ àĝēńţś ŕēàď ţĥē śàḿē śķĩĺĺś; ũńĺĩńķ ţō ḿàńàĝē à ƒōĺďēŕ'ś śķĩĺĺś ōńē ƀŷ ōńē àĝàĩń."
],
@@ -3908,6 +3956,7 @@
"ur2XSb": ["Vĩśũàĺ ēďĩţōŕ"],
"uuoHOU": ["Ćōḿḿàńď ƒàĩĺēď."],
"uyJsf6": ["Àƀōũţ"],
+ "uyOQ4e": ["Ţĥēḿē ćōƥĩēď àś ƀàśē16 ŶÀḾĹ"],
"uynXup": [["tokens", "plural", { "one": ["ţōķēń"], "other": ["ţōķēńś"] }]],
"v-h2hx": ["Ďēĺēţē ", ["targetGitPath"]],
"v2ZW0K": ["Ēńàƀĺē ţēŕḿĩńàĺ"],
@@ -4020,6 +4069,7 @@
],
"wZPUJx": ["\"", ["0"], "\""],
"w_Sphq": ["Àţţàćĥḿēńţś"],
+ "wbMbiY": ["Ćōƥĩēď ", ["selectedSlot"]],
"wbpoGe": ["Ćōũĺďń'ţ ĩńśţàĺĺ ŌƥēńĶńōŵĺēďĝē śķĩĺĺ — ", ["message"]],
"wbv9xO": ["Ćŕēàţē ńēŵ ƥŕōĴēćţ"],
"wc54KE": ["Ţŕŷĩńĝ ĩţ ōũţ…"],
@@ -4207,6 +4257,7 @@
"zL0LPh": ["Ĝĺōƀàĺ ōũţśĩďē ţēxţ ƒĩēĺďś"],
"zLGXna": ["Ńō śţàŕţēŕ ƥàćķś àvàĩĺàƀĺē."],
"zLak8b": ["Àćţĩvàţē ńēŵ ţàƀ"],
+ "zMmwh4": ["Ƥĩćķ à ţĥēḿē ōŕ ćŕēàţē ŷōũŕ ōŵń."],
"zQBg2C": ["Ḿōvē ţĥē ćũŕŕēńţ ƀĺōćķ ũƥ ōŕ ďōŵń ōńē ƥōśĩţĩōń."],
"zXj1rA": ["Śēàŕćĥ ƀŷ ḿēàńĩńĝ"],
"zYp8Sr": [
diff --git a/packages/app/src/locales/pseudo/messages.po b/packages/app/src/locales/pseudo/messages.po
index 0a85b91d5..afc35975a 100644
--- a/packages/app/src/locales/pseudo/messages.po
+++ b/packages/app/src/locales/pseudo/messages.po
@@ -332,6 +332,11 @@ msgstr ""
msgid "{0} version {1}"
msgstr ""
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "{0} was already deleted."
+msgstr ""
+
#. placeholder {0}: activeData.label
#: src/components/EditorWorkspace.tsx
msgid "{0} was not moved."
@@ -777,6 +782,11 @@ msgstr ""
msgid "{skillCount, plural, one {skill} other {skills}}"
msgstr ""
+#. placeholder {0}: BASE16_SLOT_ROLES[slot]
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "{slot} color — {0}"
+msgstr ""
+
#: src/components/settings/CustomThemeEditor.tsx
msgid "{slot} hex value"
msgstr ""
@@ -1040,6 +1050,10 @@ msgstr ""
msgid "A reusable starting point for new documents in this folder."
msgstr ""
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "A saved theme already uses this name."
+msgstr ""
+
#: src/components/TemplateForm.tsx
msgid "A short line shown under the title in the template list."
msgstr ""
@@ -1096,10 +1110,6 @@ msgstr ""
msgid "absent"
msgstr ""
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Accents"
-msgstr ""
-
#: src/components/DiffView.tsx
msgid "Accept"
msgstr ""
@@ -1779,10 +1789,6 @@ msgstr ""
msgid "Back to document view"
msgstr ""
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Background to foreground"
-msgstr ""
-
#: src/components/LinksPanel.tsx
msgid "Backlinks"
msgstr ""
@@ -1927,7 +1933,7 @@ msgid "Browse folder"
msgstr ""
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Browse hundreds of schemes"
+msgid "Browse hundreds of themes"
msgstr ""
#: src/components/ImportSkillDialog.tsx
@@ -2047,6 +2053,7 @@ msgstr ""
#: src/components/ReportBugDialogBody.tsx
#: src/components/SeedDialog.tsx
#: src/components/settings/LinkPreviewsSection.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/settings/SearchSection.tsx
#: src/components/ShareBranchSwitchDialog.tsx
#: src/components/ShareReceiveDialog.tsx
@@ -2102,6 +2109,18 @@ msgstr ""
msgid "Changed outside OK since it last wrote here — the state shown is what's on disk now"
msgstr ""
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes save automatically to this theme."
+msgstr ""
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes save automatically."
+msgstr ""
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes saved automatically."
+msgstr ""
+
#: src/components/command-palette-commands.ts
msgid "Check for updates"
msgstr ""
@@ -2699,6 +2718,11 @@ msgstr ""
msgid "Conflicted files"
msgstr ""
+#. placeholder {0}: warning.conflictingFilenames.join(', ')
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Conflicting files: {0}."
+msgstr ""
+
#: src/components/ConflictsSection.tsx
msgid "Conflicts"
msgstr ""
@@ -2891,6 +2915,10 @@ msgstr ""
msgid "Copied"
msgstr ""
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Copied {selectedSlot}"
+msgstr ""
+
#: src/components/EditorTabTargetMenuItems.tsx
#: src/components/FileSidebar.tsx
#: src/components/FileTree.tsx
@@ -2928,6 +2956,7 @@ msgstr ""
#: src/components/CopyButton.tsx
#: src/components/empty-state/CopyablePromptList.tsx
#: src/components/InstallInClaudeDesktopDialog.tsx
+#: src/components/settings/CustomThemeEditor.tsx
#: src/lib/native-menu-catalog.ts
msgid "Copy"
msgstr ""
@@ -3212,6 +3241,15 @@ msgstr ""
msgid "Couldn't create the worktree. Try a different name."
msgstr ""
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t create this theme. Try again."
+msgstr ""
+
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t delete {0}. Try again."
+msgstr ""
+
#. placeholder {0}: result.error
#: src/components/SkillFileDeleteDialog.tsx
msgid "Couldn't delete file: {0}"
@@ -3229,6 +3267,10 @@ msgstr ""
msgid "Couldn't delete that comment."
msgstr ""
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t delete this theme. Refresh and try again."
+msgstr ""
+
#: src/components/settings/AccountSection.tsx
msgid "Couldn't disconnect — please try again."
msgstr ""
@@ -3392,7 +3434,11 @@ msgid "Couldn't reach the agent registry."
msgstr ""
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Couldn’t reach the clipboard — the scheme is in the box below."
+msgid "Couldn’t reach the clipboard — the theme is in the box below."
+msgstr ""
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Couldn’t reach the clipboard."
msgstr ""
#: src/components/CommandPalette.tsx
@@ -3420,6 +3466,11 @@ msgstr ""
msgid "Couldn't read the comments waiting to send: {0}"
msgstr ""
+#. placeholder {0}: warning.code
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t read this theme ({0})"
+msgstr ""
+
#: src/components/EditorActivityPool.tsx
msgid "Couldn't reconnect after server restart"
msgstr ""
@@ -3468,6 +3519,16 @@ msgstr ""
msgid "Couldn't restart the server. Try `ok start` in this folder."
msgstr ""
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t restore {0}. That name is already in use."
+msgstr ""
+
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t restore {0}. Try again."
+msgstr ""
+
#. placeholder {0}: resumeError.message
#: src/components/acp/ThreadView.tsx
msgid "Couldn't resume this chat: {0}"
@@ -3477,6 +3538,10 @@ msgstr ""
msgid "Couldn't run the test. Check that OpenKnowledge is still running."
msgstr ""
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Couldn’t save changes. Try editing a color again."
+msgstr ""
+
#: src/components/TemplateForm.tsx
msgid "Couldn't save template: {error}"
msgstr ""
@@ -3595,6 +3660,10 @@ msgstr ""
msgid "Create"
msgstr ""
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Create & edit"
+msgstr ""
+
#: src/components/TemplateRow.tsx
msgid "Create a document from {label}"
msgstr ""
@@ -3666,6 +3735,10 @@ msgstr ""
msgid "Create new tag #{tagValue}"
msgstr ""
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Create new theme"
+msgstr ""
+
#: src/components/GraphPanel.tsx
#: src/components/ProblemsPanel.tsx
#: src/editor/extensions/InternalLinkPropPanel.tsx
@@ -3764,6 +3837,10 @@ msgstr ""
msgid "Creating..."
msgstr ""
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Creating…"
+msgstr ""
+
#: src/components/RecentProjectsMenu.tsx
msgid "Current"
msgstr ""
@@ -3836,8 +3913,10 @@ msgstr ""
msgid "Delete"
msgstr ""
+#. placeholder {0}: theme.label
#. placeholder {0}: thread.title
#: src/components/acp/ThreadHistoryMenu.tsx
+#: src/components/settings/ColorThemePicker.tsx
msgid "Delete {0}"
msgstr ""
@@ -3917,6 +3996,11 @@ msgstr ""
msgid "Delete this comment"
msgstr ""
+#. placeholder {0}: deletedTheme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Deleted {0}."
+msgstr ""
+
#: src/components/settings/LintingSection.tsx
msgid "Deleted {file}"
msgstr ""
@@ -4235,6 +4319,7 @@ msgstr ""
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/PublishToGitHubDialog.tsx
#: src/components/ReportBugDialogBody.tsx
+#: src/components/settings/CustomThemeEditor.tsx
#: src/editor/extensions/JsxComponentView.tsx
#: src/editor/extensions/JsxInlineView.tsx
#: src/editor/extensions/MathInlineView.tsx
@@ -4369,6 +4454,11 @@ msgstr ""
msgid "Edit"
msgstr ""
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Edit {0}"
+msgstr ""
+
#. placeholder {0}: descriptor.displayName ?? descriptor.name
#: src/editor/extensions/JsxComponentView.tsx
msgid "Edit {0} source"
@@ -4442,6 +4532,11 @@ msgstr ""
msgid "editing [[{realCurrentDoc}]]"
msgstr ""
+#. placeholder {0}: scheme.name
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Editing {0}"
+msgstr ""
+
#: src/components/SkillEditBanner.tsx
msgid "Editing {boldName} in place. Changes save straight to your editor's copy."
msgstr ""
@@ -4471,7 +4566,11 @@ msgid "Editor status bar"
msgstr ""
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Edits apply live. Light or dark comes from the scheme."
+msgid "Edits apply live and save automatically to this theme."
+msgstr ""
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Edits apply live. Light or dark comes from the theme."
msgstr ""
#: src/editor/slash-command/component-items.tsx
@@ -4643,6 +4742,10 @@ msgstr ""
msgid "Enter a folder name (e.g. brain)."
msgstr ""
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Enter a name for this theme."
+msgstr ""
+
#: src/components/CreateProjectDialog.tsx
msgid "Enter a project name"
msgstr ""
@@ -4659,6 +4762,10 @@ msgstr ""
msgid "Enter a valid branch name (no spaces, no leading dot, no \"..\")."
msgstr ""
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Enter a valid theme name."
+msgstr ""
+
#: src/components/settings/SearchSection.tsx
msgid "Enter a valid URL (for example https://api.openai.com/v1)."
msgstr ""
@@ -5551,6 +5658,10 @@ msgstr ""
msgid "GitHub, a git URL, or a local path."
msgstr ""
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Give it a name before editing its colors."
+msgstr ""
+
#: src/components/settings/AiToolsSection.tsx
msgid "Give the AI tools you use access to read and update your projects. Checking a box sets it up right away; unchecking removes it."
msgstr ""
@@ -5730,6 +5841,11 @@ msgstr ""
msgid "Hide"
msgstr ""
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Hide {0} editor"
+msgstr ""
+
#: src/lib/native-menu-catalog.ts
msgid "Hide {appName}"
msgstr ""
@@ -5935,6 +6051,11 @@ msgstr ""
msgid "Icon picker"
msgstr ""
+#. placeholder {0}: createIdentity.stem
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "ID: {0}"
+msgstr ""
+
#: src/components/AutoSyncEnableWarning.tsx
msgid "If an update arrives for something you are editing, you choose which version to keep, like a merge conflict."
msgstr ""
@@ -5970,10 +6091,6 @@ msgstr ""
msgid "Import failed: {0}"
msgstr ""
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Import scheme"
-msgstr ""
-
#. placeholder {0}: result.name
#: src/lib/skill-import-toast.ts
msgid "Imported \"{0}\"."
@@ -6315,6 +6432,10 @@ msgstr ""
msgid "Integrations"
msgstr ""
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Invalid color value"
+msgstr ""
+
#: src/components/CreateProjectDialog.tsx
msgid "Invalid input — pick a different folder."
msgstr ""
@@ -6335,6 +6456,10 @@ msgstr ""
msgid "Invalid share URL."
msgstr ""
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Invalid YAML"
+msgstr ""
+
#: src/uninstall/UninstallSurveyScreen.tsx
msgid "It didn't fit into my workflow"
msgstr ""
@@ -6568,6 +6693,10 @@ msgstr ""
msgid "Link-graph response did not match expected shape."
msgstr ""
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Linked theme files aren’t supported"
+msgstr ""
+
#: src/components/DocPanel.tsx
msgid "Links"
msgstr ""
@@ -6943,6 +7072,14 @@ msgstr ""
msgid "Missing page: {linkTitle}. Click to create."
msgstr ""
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Missing palette colors"
+msgstr ""
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Missing theme name"
+msgstr ""
+
#: src/components/SyncStatusBadge.tsx
msgid "Mode"
msgstr ""
@@ -7140,6 +7277,10 @@ msgstr ""
msgid "Multi-page PDF viewer with toolbar controls (thumbnails, page nav, zoom)."
msgstr ""
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Multiple files use this theme name"
+msgstr ""
+
#: src/components/acp/working-status.ts
msgid "Musing…"
msgstr ""
@@ -7182,6 +7323,10 @@ msgstr ""
msgid "Name is required"
msgstr ""
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Name your theme"
+msgstr ""
+
#: src/lib/keyboard-shortcuts.ts
msgid "Navigate CodeMirror source search results or dismiss the search panel."
msgstr ""
@@ -7738,6 +7883,10 @@ msgstr ""
msgid "None of these problems have an automatic fix. Try Fix all with AI."
msgstr ""
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Not a base16 theme"
+msgstr ""
+
#: src/components/acp/ThreadView.tsx
msgid "Not answered"
msgstr ""
@@ -8638,7 +8787,7 @@ msgid "Paste"
msgstr ""
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Paste a base16 scheme"
+msgid "Paste a base16 theme"
msgstr ""
#: src/components/AuthModal.tsx
@@ -8762,10 +8911,6 @@ msgstr ""
msgid "Pick <0>openknowledge.skill</0> from your <1>Downloads</1> folder. It enables automatically."
msgstr ""
-#: src/components/settings/ThemePluginSection.tsx
-msgid "Pick a built-in IDE color palette, or define your own."
-msgstr ""
-
#: src/components/settings/SkillTargetsPicker.tsx
msgid "Pick a folder to merge INTO {display}. That folder becomes a symlink to this one, so its agent reads everything placed here. This folder stays real. Conflicting skills abort the merge."
msgstr ""
@@ -8778,6 +8923,10 @@ msgstr ""
msgid "Pick a palette for light mode and one for dark mode. The theme setting in Preferences chooses between them — on “System”, so does your OS."
msgstr ""
+#: src/components/settings/ThemePluginSection.tsx
+msgid "Pick a theme or create your own."
+msgstr ""
+
#: src/editor/slash-command/items.tsx
msgid "Pick an emoji to insert at the cursor."
msgstr ""
@@ -8884,7 +9033,7 @@ msgid "Press Space to pick up a tab. Use the arrow keys to move it within a tab
msgstr ""
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Press the sun or moon on “Custom” above to use this scheme."
+msgid "Press the sun or moon on “Custom” above to use this theme."
msgstr ""
#: src/components/PublishToGitHubDialog.tsx
@@ -9785,6 +9934,11 @@ msgstr ""
msgid "Restore with remote changes"
msgstr ""
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Restored {0}."
+msgstr ""
+
#. placeholder {0}: descriptor.targetSha7
#: src/components/TimelinePanel.tsx
msgid "Restored an earlier version ({0})"
@@ -9990,6 +10144,10 @@ msgstr ""
msgid "Saved into your global skills folder (e.g. <0>~/.agents/skills</0>)."
msgstr ""
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Saved themes couldn’t load. The last available theme list is still shown."
+msgstr ""
+
#: src/components/SkillProperties.tsx
msgid "Saved to"
msgstr ""
@@ -10007,6 +10165,10 @@ msgstr ""
msgid "Saving"
msgstr ""
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Saving changes…"
+msgstr ""
+
#: src/components/settings/LintingSection.tsx
msgid "schema {deleteTarget}"
msgstr ""
@@ -10015,10 +10177,6 @@ msgstr ""
msgid "Schema fields"
msgstr ""
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Scheme copied as base16 YAML"
-msgstr ""
-
#: src/components/ImportSkillForm.tsx
#: src/components/PanelScopeHeader.tsx
msgid "Scope"
@@ -10208,6 +10366,11 @@ msgstr ""
msgid "See the full install guide"
msgstr ""
+#. placeholder {0}: BASE16_SLOT_ROLES[slot]
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Select {slot} — {0}"
+msgstr ""
+
#: src/components/FrontmatterRow.tsx
msgid "Select a value"
msgstr ""
@@ -10919,6 +11082,10 @@ msgstr ""
msgid "Small section heading."
msgstr ""
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Some saved themes aren’t shown because the theme folder exceeds the scan limit."
+msgstr ""
+
#: src/components/FeedbackForm.tsx
msgid "Something broke"
msgstr ""
@@ -11839,6 +12006,30 @@ msgstr ""
msgid "Theme"
msgstr ""
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme colors"
+msgstr ""
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme copied as base16 YAML"
+msgstr ""
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme imported."
+msgstr ""
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name"
+msgstr ""
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name has unsupported characters"
+msgstr ""
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name is too long"
+msgstr ""
+
#: src/components/settings/ThemePreviewCanvas.tsx
msgid "Theme preview"
msgstr ""
@@ -12033,6 +12224,10 @@ msgstr ""
msgid "This is a preview of {boldName}. Install it into your agents."
msgstr ""
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This isn’t a regular theme file"
+msgstr ""
+
#: src/components/SlidesToolbarControls.tsx
msgid "This isn't a supported version of Slidev."
msgstr ""
@@ -12194,6 +12389,18 @@ msgstr ""
msgid "This template lives in a parent folder — deleting it affects every folder beneath it that doesn't define its own version."
msgstr ""
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme can’t be used until the file is fixed."
+msgstr ""
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme file couldn’t be read"
+msgstr ""
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme file is too large"
+msgstr ""
+
#: src/components/ShareReceiveDialog.tsx
msgid "This usually means one of:"
msgstr ""
@@ -12367,6 +12574,7 @@ msgstr ""
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/ReportBugDialogBody.tsx
#: src/components/settings/AccountSection.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/ShareReceiveDialog.tsx
msgid "Try again"
msgstr ""
@@ -12474,6 +12682,7 @@ msgstr ""
#: src/components/ActivityPanelBurstRow.tsx
#: src/components/AppMenubar.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/settings/SharingSection.tsx
#: src/lib/native-menu-catalog.ts
msgid "Undo"
@@ -12741,6 +12950,16 @@ msgstr ""
msgid "Use {0} as the light theme"
msgstr ""
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Use {0} for the active dark mode"
+msgstr ""
+
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Use {0} for the active light mode"
+msgstr ""
+
#: src/components/SkillForkDialog.tsx
msgid "Use {editor} version"
msgstr ""
@@ -12753,6 +12972,10 @@ msgstr ""
msgid "Use a folder you already have."
msgstr ""
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Use a lowercase .yaml or .yml extension"
+msgstr ""
+
#: src/components/SkillFileCreateDialog.tsx
#: src/components/SkillFileRenameDialog.tsx
msgid "Use a relative path inside the skill (no .., no spaces; SKILL.md is managed)."
@@ -12937,6 +13160,10 @@ msgstr ""
msgid "We'll create a repository and start syncing — no terminal needed."
msgstr ""
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "We’ll create a safe theme ID from this name."
+msgstr ""
+
#: src/components/ReportBugDialogBody.tsx
msgid "We've filed it with the team and attached your logs."
msgstr ""
diff --git a/packages/app/src/locales/pt-BR/messages.json b/packages/app/src/locales/pt-BR/messages.json
index 90ebfb525..0d4484a59 100644
--- a/packages/app/src/locales/pt-BR/messages.json
+++ b/packages/app/src/locales/pt-BR/messages.json
@@ -50,11 +50,13 @@
"Enviado em particular para a equipe do OpenKnowledge, junto com sua nota e a versão do app. Nunca é publicado."
],
"-oHckY": ["OpenKnowledge leu a configuração ", ["key"]],
+ "-othoN": ["Este arquivo de tema é muito grande"],
"-q4abP": [
"Resultados limitados — este espaço de trabalho tem mais arquivos do que a busca consegue indexar. Um arquivo que falte pode ser efeito do limite, não um erro de digitação."
],
"-slrNR": ["Liga ou desliga uma lista de tarefas."],
"-uaQnI": ["Nenhum worktree ou ramo corresponde."],
+ "-yOx8u": ["Salvando alterações…"],
"-yPBXI": ["Escolher arquivo"],
"-ySLQJ": ["Git e PRs"],
"-zA2E7": ["Não deu para criar o worktree. Tente outro nome."],
@@ -116,6 +118,7 @@
"0kTAXe": ["Abrir a fonte: ", ["mirrorSrc"]],
"0pZmTP": ["Não é possível compartilhar este caminho."],
"0qyKG6": ["Sincronizado a partir do disco"],
+ "0r6d6v": ["Alterações salvas automaticamente."],
"0rwwOn": ["Por tag"],
"0s8-e8": [
"Seleciona, entra ou sai de componentes de bloco e blocos de código alternativos a partir dos limites do teclado."
@@ -126,6 +129,7 @@
"0xnQ_X": ["As atualizações chegam sozinhas"],
"0xnmlQ": ["Nome do repositório"],
"0yL--g": ["Revisar os conflitos"],
+ "0ySP5u": ["As alterações são salvas automaticamente neste tema."],
"0zAhu6": ["todos os documentos"],
"10g8I_": ["Desligar Somente arquivos markdown"],
"11ukmX": ["Falha ao renomear: ", ["0"]],
@@ -139,6 +143,7 @@
"? Esta ação não pode ser desfeita."
],
"16eIWu": ["Parar à força"],
+ "16tSS_": ["Cole um tema base16"],
"170Js2": ["Ocultar o painel"],
"1AumWo": ["Falha no push — veja os logs do servidor para os detalhes."],
"1CalO6": ["Estilo"],
@@ -171,6 +176,7 @@
"1njn7W": ["Claro"],
"1nke1r": ["Abrir ", ["0"], " no GitHub (abre em uma nova aba)"],
"1oSHI0": ["Não deu para instalar ", ["skillName"], ": ", ["0"]],
+ "1qpGKz": ["Não foi possível salvar as alterações. Tente editar uma cor novamente."],
"1ruosn": ["OpenKnowledge"],
"1t_NnN": ["Rejeitar"],
"1u-mAI": ["Não deu para iniciar a sincronização. Verifique sua conexão e tente de novo."],
@@ -307,7 +313,6 @@
"3kYcuM": ["Tem certeza de que deseja excluir os itens selecionados?"],
"3l32hp": ["Faz parte do plugin ", ["plugin"]],
"3l_cXP": ["Dê uma olhada se quiser. Este arquivo exato é o que recebemos."],
- "3l_knd": ["Toque no sol ou na lua em “Personalizado”, acima, para usar este esquema."],
"3m2GBo": ["Buscando documentos"],
"3mFsc3": ["Restaurar com as alterações remotas"],
"3nnyi_": [
@@ -367,6 +372,7 @@
"4TzU0n": ["Inicializar"],
"4buZWd": ["Herdado de ", ["path"]],
"4c_a6S": ["Ainda não há nada definido."],
+ "4d0VYJ": ["Criaremos um ID de tema seguro a partir deste nome."],
"4eO-iB": ["Descartar este comentário"],
"4g19V6": ["Falha ao atualizar a propriedade"],
"4h3e0H": ["Não deu para atualizar o compartilhamento de habilidades — ", ["detail"], "."],
@@ -523,6 +529,7 @@
"Descreva o que ela deve fazer, ou acrescente uma você mesmo. O OpenKnowledge guarda suas habilidades em um só lugar, versiona-as e instala-as em agentes como Claude, Codex e Cursor."
],
"6MnZEC": ["Falha ao carregar o terminal"],
+ "6Nea1q": ["Usar ", ["0"], " no modo escuro ativo"],
"6O626z": ["Nenhum título corresponde a \"", ["trimmedAnchorQuery"], "\""],
"6Pxqwv": [
"Ainda não há modelos de projeto. Crie um para deixá-lo disponível em todo o projeto. Os modelos de pasta ficam na página geral de cada pasta."
@@ -532,6 +539,7 @@
"6VqW-1": ["Remover ", ["keyName"]],
"6WdDG7": ["Página"],
"6YBJ3m": ["Perguntar à IA sobre a seleção"],
+ "6YE0P6": ["Editando ", ["0"]],
"6YtxFj": ["Nome"],
"6ZhdPI": ["O que o agente pode ler, escrever e mostrar."],
"6_ZOw4": ["Caminho completo copiado"],
@@ -573,6 +581,9 @@
]
],
"6vEr3W": ["Destino do link"],
+ "6xeZX9": [
+ "As alterações são aplicadas imediatamente. O tema define se o modo é claro ou escuro."
+ ],
"6zzhQL": ["Envie seu relatório por e-mail"],
"72xhRD": ["Modo de visualização do diagrama"],
"74-bX-": ["Uma citação em destaque se sobressai do texto ao redor."],
@@ -586,13 +597,13 @@
"Valida o frontmatter dos documentos contra arquivos JSON Schema, restrito a conjuntos de documentos por glob."
],
"7Bj3x9": ["Falhou"],
- "7EmDc7": ["Importar esquema"],
"7FA2iI": ["Não deu para ler os comentários que aguardam envio — nada foi enviado."],
"7FamGZ": ["Ir para a linha"],
"7Fkcej": ["+ Adicionar ", ["addChildName"]],
"7H4UHD": ["Documentos com a tag <0>#", ["tagName"], "</0>"],
"7IsvrP": ["Buscando atualizações"],
"7JtSLi": ["Falha ao excluir o caminho"],
+ "7O7REc": ["Não foi possível restaurar ", ["0"], ". Tente novamente."],
"7OhaRy": ["Busca no código"],
"7Ongq0": ["Reduza meu arquivo AGENTS.md para menos de 40 mil caracteres"],
"7OwvEL": ["Mostrar a pré-visualização do HTML"],
@@ -715,6 +726,8 @@
"8uGMP8": ["O conteúdo oculto fica aqui."],
"8vCZcs": ["Falha ao abrir o arquivo."],
"8vETh9": ["Mostrar"],
+ "8x6zk9": ["Ocultar editor de ", ["0"]],
+ "9-lMCF": ["Cor de ", ["slot"], " — ", ["0"]],
"90-wKT": ["OpenKnowledge leu o histórico de ", ["subject"]],
"92rbk2": ["O espelho está carregando <0>", ["mirrorRef"], "</0>"],
"93LBnX": ["Ocultar Agentes"],
@@ -776,7 +789,6 @@
"9fvog2": ["Pré-visualização indisponível: ", ["errorDetail"]],
"9i21pa": ["Os commits acontecem automaticamente"],
"9ieZhu": ["Instalado em ", ["path"], " — clique para remover"],
- "9j1tqo": ["Não deu para acessar a área de transferência — o esquema está na caixa abaixo."],
"9jnjV0": ["Incorpora um arquivo de áudio com os controles nativos do player."],
"9lso1Y": ["Cria a pasta <0>", ["folderPart"], "/</0>"],
"9m4D_h": ["GitHub, uma URL de git ou um caminho local."],
@@ -817,6 +829,7 @@
],
"AIn2Yv": ["CLI do ", ["displayName"], ", ", ["hint"]],
"AItsE5": ["Abrir por lá"],
+ "AJ7_B2": ["Criar novo tema"],
"AKxFtn": [
[
"openedWorktreeCount",
@@ -825,6 +838,7 @@
]
],
"ALhMYW": ["Terminal"],
+ "ANFxWn": ["Não foi possível excluir este tema. Atualize a página e tente novamente."],
"APNlbk": ["saída ", ["0"]],
"AQ-Lfg": ["Não foi possível carregar os modelos"],
"AQGtjK": [
@@ -979,9 +993,11 @@
"Este arquivo é grande demais para abrir no editor de texto integrado (limite de 1 MB). Use Abrir arquivo, abaixo, para abri-lo em outro app."
],
"C_cPoW": ["Sua sessão do GitHub expirou — entre de novo para verificar o acesso de envio."],
+ "CcaU4i": ["As alterações são aplicadas imediatamente e salvas automaticamente neste tema."],
"ChAtFg": ["Você não tem permissão para enviar a este repositório"],
"ChMshD": ["Encerrar o ", ["appName"]],
"Ck9XRt": ["Não deu para salvar a chave — tente de novo."],
+ "ClII5l": ["Pressione o sol ou a lua em “Custom” acima para usar este tema."],
"ClTEde": [
"Prepara o trecho selecionado no painel de agentes, pronto para complementar e enviar."
],
@@ -1033,6 +1049,9 @@
"DKYW1G": [
"Esta configuração é de cada computador e não é compartilhada com os colaboradores. Ela precisa de uma chave de API (defina abaixo), a menos que seu endpoint seja um servidor local que não exija uma."
],
+ "DLIljL": [
+ "Alguns temas salvos não são exibidos porque a pasta de temas excede o limite de verificação."
+ ],
"DMLE5q": ["O reparo automático do MCP falhou"],
"DMeaxi": ["Baixando ", ["0"], " ", ["1"], "…"],
"DNkveC": ["Opções da coluna"],
@@ -1045,6 +1064,7 @@
"</0>. Você tem alterações sem commit que impedem a troca aqui — abra em um worktree para deixar suas alterações intactas."
],
"DUWgfT": ["Autenticar de novo no GitHub Enterprise Server"],
+ "DUb7Ax": ["Vários arquivos usam este nome de tema"],
"DVh_Tb": ["Falha ao limpar depois de mover para o lixo"],
"DWJtEo": ["O que acontece depois"],
"DXd9LM": ["Novo worktree"],
@@ -1063,6 +1083,7 @@
"DhT_PK": ["OpenKnowledge importou uma habilidade"],
"DiFKSL": ["Contando arquivos markdown"],
"DiZ3pq": ["Seletor de ícones"],
+ "DmkTrb": ["Não foi possível criar este tema. Tente novamente."],
"Dnn2XG": ["Automático"],
"DpjYd6": ["Ir para o texto ancorado"],
"DrYM2Z": ["Sincronização desativada"],
@@ -1248,6 +1269,7 @@
"Explique como seu código funciona para que colegas e agentes de IA se orientem. Bom para documentar a arquitetura, as partes principais e as perguntas que todo novo colaborador faz."
],
"FyW0WO": ["Autorizar no navegador"],
+ "FyyIjH": ["O nome do tema é muito longo"],
"G-JBA1": [
"O modo código exige uma conexão ao vivo — suas edições ficam salvas e vão aparecer quando você reconectar."
],
@@ -1299,6 +1321,7 @@
"GQDSBN": ["Opções de layout"],
"GSYWCm": ["Ocultar o painel do documento"],
"GUYwCr": ["Dispensar o aviso"],
+ "GUZHkL": ["Faltam cores na paleta"],
"GUqTzn": ["Pesquisa da concorrência"],
"GXf9hG": ["Clonando ", ["repoName"], "..."],
"GZzDqc": [
@@ -1388,6 +1411,7 @@
"HTW0Zw": [
"Falta um passo: rode <0>claude</0> neste projeto e aprove o OpenKnowledge uma vez."
],
+ "HZ7fEu": ["Nome do tema"],
"HbcQYf": [
"Substituir o link simbólico em ",
["display"],
@@ -1444,6 +1468,7 @@
"IFezUv": ["Não foi possível concluir a auditoria. Tente de novo."],
"IInnZo": ["Conflito"],
"IKoTAC": ["Deixar desativado"],
+ "IMLUBh": ["Valor de cor inválido"],
"INp_z6": ["Comente ou pergunte à IA sobre este ", ["0"]],
"IO8REi": ["Não deu para abrir \"", ["name"], "\": ", ["0"]],
"IQPyrD": ["Página inexistente — clique para criar"],
@@ -1455,7 +1480,6 @@
"IX_uXB": ["meu-recurso"],
"IYciRC": ["Obrigado pelo relatório!"],
"IajAbS": ["Adicionar um pacote inicial"],
- "IbTC7z": ["Cole um esquema base16"],
"If0crP": ["Abrir com a IA ", ["targetDisplayName"], ", ", ["hint"]],
"IgN3LY": ["Sobre o texto selecionado em <0>", ["address"], "</0>"],
"IgTwLt": ["Abre este documento no editor e recolhe o grafo."],
@@ -1477,6 +1501,7 @@
"Ix0K8o": ["Ocultar os nós de URL externa"],
"IxHMdF": ["Não deu para excluir esse comentário."],
"IxyZXD": ["Captura de tela"],
+ "J1XRO3": ["Cores do tema"],
"J2Mv98": ["Nome (ex.: ", ["login"], ")"],
"J2_JuX": ["nada (", ["0"], " não pode corresponder a um documento)"],
"J2eKUI": ["Arquivo"],
@@ -1508,7 +1533,7 @@
"JOcPqH": ["Traga um repositório remoto para este computador."],
"JWsZlx": ["Abra um projeto para editar."],
"JZ8cO6": ["Claro, escuro ou seguir o sistema."],
- "J_bJiH": ["Escolha uma paleta de cores de IDE integrada ou defina a sua."],
+ "JaU1ld": ["O nome do tema contém caracteres não compatíveis"],
"JddocZ": ["Alternar coluna de cabeçalho"],
"Jejur6": ["Não deu para carregar o documento"],
"JfPuv7": [["shareBranch"], " não é um nome de ramo válido."],
@@ -1591,6 +1616,7 @@
"KsAPaB": ["Este ramo está extraído em:"],
"KtACeE": ["Padrão: <0>", ["0"], "</0>"],
"KujtjC": ["Buscar"],
+ "Kx881F": [["0"], " foi restaurado."],
"L-rMC9": ["Redefinir para o padrão"],
"L1BQTH": [["0"], " ainda não está instalado — abrindo sua página de download."],
"L1ZE3M": ["Estatísticas do documento"],
@@ -1793,6 +1819,7 @@
"N55YNr": [
"Escolha se a configuração do OpenKnowledge deste projeto, incluindo as conexões com ferramentas de IA, é salva junto com o projeto para que os colegas também a recebam, ou fica só no seu computador."
],
+ "N6j2JH": ["Editar ", ["0"]],
"NBdIgR": ["Comentar"],
"NCmYhK": [
"As habilidades ensinam tarefas repetíveis aos agentes. Crie e gerencie pela seção Habilidades do editor; o menu de instalação de cada habilidade controla onde ela fica. Estas são as pastas de habilidades deste projeto."
@@ -2006,6 +2033,7 @@
"QB-moX": [
"Instale-a nos seus outros editores (Claude Code, Cursor, Codex) para compartilhá-la."
],
+ "QDErHs": ["Selecionar ", ["slot"], " — ", ["0"]],
"QDZbvN": ["há ", ["diffDays"], " d"],
"QGWzup": ["Carregando as habilidades do OpenKnowledge"],
"QHCx0c": ["Histórico de relatórios de erro"],
@@ -2039,11 +2067,11 @@
"QlxHAH": ["Mostrando resultados de \"", ["semanticResultsLabel"], "\""],
"Qpfxa1": [["secs"], "s"],
"QqBQu1": ["Rótulo <0>(texto visível do link)</0>"],
- "Quz_Qu": ["As edições valem na hora. O modo claro ou escuro vem do esquema."],
"Qvls7J": ["Especificações de engenharia"],
"Qw-7Ie": [
"Um lugar simples para escrever, com um arquivo por assunto e um diário. Escolha isto se quiser apenas começar a escrever e deixar os links entre notas surgirem com o tempo."
],
+ "QwG_zJ": ["Arquivos em conflito: ", ["0"], "."],
"QySH4I": ["Projetos do OpenKnowledge detectados"],
"QyioBP": ["Mover para cima"],
"QzofTX": ["Ainda não há comentários neste projeto. Comente um trecho para começar."],
@@ -2059,6 +2087,7 @@
]
],
"R0jJzV": ["Cole uma URL, dono/repo, ou busque nos seus repositórios"],
+ "R30SFt": ["Use uma extensão .yaml ou .yml em letras minúsculas"],
"R3y75Z": ["Editar o código fonte"],
"R4OWFD": ["Seções"],
"R65q-K": [
@@ -2069,6 +2098,7 @@
"R9dK63": ["Imagem de exemplo"],
"RDjuBN": ["Configuração"],
"RDrXh4": ["Configure as opções de usuário, de projeto e de integrações."],
+ "RG3yW6": ["Insira um nome para este tema."],
"RG4XHV": ["Copiar o prompt de ", ["0"]],
"RGCCrg": ["Copiar link de compartilhamento"],
"RGkNeJ": ["Inicializar um pacote inicial"],
@@ -2247,6 +2277,7 @@
"UEdTEN": ["Órfã"],
"UGeJuP": ["Valores permitidos (vazio = qualquer)"],
"UGtPix": ["A conexão com o GitHub expirou. Conecte-se novamente para continuar."],
+ "UH0Zqw": ["Este não é um arquivo de tema comum"],
"UHwc0P": [
"Isto é uma pré-visualização de ",
["boldName"],
@@ -2305,7 +2336,6 @@
["src"],
"</1> não está mais disponível."
],
- "UeQEbk": ["Explore centenas de esquemas"],
"UfW9Kr": [
"Suas consultas de busca e o texto completo das páginas correspondentes são enviados ao seu provedor de embeddings (OpenAI por padrão) para calcular os embeddings."
],
@@ -2413,6 +2443,7 @@
],
"W8vpBM": ["pacote inicial"],
"W9_Bub": ["As alterações locais se sobrepõem à sincronização que está chegando"],
+ "WBNpt9": ["Não foi possível ler este tema (", ["0"], ")"],
"WFEbV1": [
"Sinaliza problemas comuns de markdown no editor. Funciona com <0>markdownlint<1/></0>."
],
@@ -2545,6 +2576,7 @@
"Y9c_nf": ["0/0"],
"YBt9YP": ["Beta"],
"YC6_wP": ["Editar ", ["keyName"]],
+ "YCmS3k": [["0"], " foi excluído."],
"YDL7N6": [
"Os plugins de análise — quais famílias de regras rodam e as configurações de cada regra — ficam na aba própria deles, em Este projeto → Plugins."
],
@@ -2570,6 +2602,7 @@
"Y_kL7X": ["Personalize a aparência e o comportamento do editor."],
"Ya3PlJ": ["Permissão necessária"],
"YaeyFh": ["O pull pode sobrescrever edições sem commit nos seus arquivos locais."],
+ "Yb82LN": ["ID: ", ["0"]],
"Yea-K5": ["Restaurar até este ponto"],
"Yi0VMG": ["Enviar ", ["keyName"]],
"YjMLg2": [
@@ -2656,6 +2689,7 @@
"ZYtq3m": [
"Conecte a este projeto específico as ferramentas de IA que você usa. Estes arquivos ficam na pasta do projeto, então quem o abrir recebe a mesma configuração."
],
+ "Z_nNa2": ["Dê um nome ao seu tema"],
"ZatAO_": ["Falha ao ativar a pré-visualização de links — ", ["detail"]],
"Zf0w-R": [
"Leve um texto de uma ideia bruta a um rascunho pronto e depois a algo que você já pode compartilhar. Bom para posts de blog, ensaios ou qualquer coisa que você queira mover por etapas claras."
@@ -2693,11 +2727,13 @@
["currentLabel"],
"</1>."
],
+ "_DwR-n": ["Criando…"],
"_FLBbi": [["sizeText"], " · segredos ocultados · despejo de falha sem ocultação"],
"_GRWOJ": ["Trocar o provedor de embeddings?"],
"_HgF9q": ["Ordenar por"],
"_IGfXZ": ["Da última vez o OpenKnowledge fechou de forma inesperada."],
"_IX_7x": ["Outro"],
+ "_IfSZn": ["Um tema salvo já usa este nome."],
"_JOGC0": ["Enviar comentários…"],
"_LczaQ": ["Negado — ", ["optionName"]],
"_NWEid": ["Busque arquivos de esquema por caminho"],
@@ -2830,7 +2866,6 @@
"b6Fgpe": ["Cada pacote prepara seu projeto com pastas e modelos prontos."],
"bBE5tC": ["Detectado neste computador"],
"bBcFK_": ["Abrir o seletor de emojis de ", ["keyName"]],
- "bD2SLZ": ["Esquema copiado como YAML base16"],
"bD8I7O": ["Completo"],
"bEp7UY": ["Sem conexão com a ponte do desktop"],
"bF22t6": ["Remover o campo ", ["field"]],
@@ -2898,6 +2933,7 @@
"cIptmH": ["No app Claude Desktop"],
"cKjLuT": ["(projeto + usuário)"],
"cLP0Lf": ["Fonte remota de habilidades"],
+ "cLn264": ["Não foi possível ler este arquivo de tema"],
"cMMb6H": [["imported"], " instaladas, mas ", ["failed"], " falharam: ", ["failedNames"]],
"cN1Gcp": ["Já existe uma pasta de worktree para ", ["shareBranch"], "."],
"cOJyVj": ["Desativar os temas"],
@@ -2917,6 +2953,7 @@
]
],
"cUk6TF": ["Falha na sincronização — veja os logs do servidor para os detalhes."],
+ "cUt8yN": ["As alterações são salvas automaticamente."],
"cV7LOw": ["Wiki da equipe"],
"cVKnqL": ["Não deu para ler os comentários que aguardam envio: ", ["0"]],
"cZGNlb": ["Adicionar outro padrão"],
@@ -2962,6 +2999,7 @@
"cstC0z": ["Padrão (regex)"],
"ct2kv5": ["Nenhum título em ", ["pageTarget"]],
"cuA8QW": ["Organizar as especificações"],
+ "cuHhjo": ["Criar e editar"],
"d-GtJt": ["Ver no Markdown de origem"],
"d1JjXo": [
"Sua cópia local do ramo <0>",
@@ -3099,6 +3137,7 @@
}
]
],
+ "ekSPiP": [["0"], " já foi excluído."],
"el2KyL": ["Slidev encontrado neste projeto. Os slides usarão a versão do projeto."],
"emMrXQ": ["O servidor retornou uma resposta de duplicação malformada."],
"emgiet": [
@@ -3181,6 +3220,7 @@
"fwrPh4": ["Digite um e-mail válido."],
"fxJk_6": ["<0>Tem mais a acrescentar?</0> Escreva para <1/> e mencione sua referência."],
"fxbCNQ": ["Sincronizado. O link está atualizado."],
+ "g12y1g": ["YAML inválido"],
"g1ZTh_": [
[
"count",
@@ -3286,7 +3326,6 @@
"Este documento ainda não sincronizou com o GitHub. O link vai funcionar depois da próxima sincronização."
],
"gyHDWC": ["Corrigir tudo com IA (", ["count"], ")"],
- "gyWc8_": ["Acentos"],
"h-AdvS": ["As pastas e os modelos já estão aqui, então não há nada a acrescentar."],
"h06R3C": ["Nenhuma página está sem links de saída no grafo."],
"h16FyT": ["Listas"],
@@ -3308,6 +3347,7 @@
"hDEaQu": ["Conecte o OpenKnowledge às outras ferramentas que você usa."],
"hDKtoF": ["há ", ["diffHrs"], " h"],
"hDoLrm": ["Remover ", ["projectName"], " dos projetos recentes"],
+ "hFmYGU": ["Arquivos de tema vinculados não são compatíveis"],
"hGmuTc": ["Documentos com a tag #", ["tagDocsName"]],
"hHMv6l": ["Excluir o bloco"],
"hHR0tt": ["Novo chat com ", ["0"]],
@@ -3321,6 +3361,9 @@
"hSBIG-": ["Um título, uma descrição, tags — qualquer coisa que descreva esta pasta."],
"hSySVc": ["Falha na passagem da instalação: ", ["msg"]],
"hVAkI8": ["Executar no terminal"],
+ "hVzt9x": [
+ "Não foi possível carregar os temas salvos. A última lista de temas disponível continua sendo exibida."
+ ],
"hXUWyd": ["O valor é obrigatório"],
"hXbSxc": ["Recurso: ", ["title"]],
"hY8pka": ["Selecionar a próxima ocorrência"],
@@ -3330,6 +3373,7 @@
"haHgQj": ["Caminho relativo copiado"],
"habOU_": ["Falha ao atualizar a configuração de aprovação automática — ", ["detail"]],
"he3ygx": ["Copiar"],
+ "hgF0al": ["Usar ", ["0"], " no modo claro ativo"],
"hgtsat": ["Falha ao excluir ", ["file"]],
"hh4mVC": ["Pedir à IA para corrigir ", ["flatId"]],
"hhI__i": ["Tem certeza de que deseja excluir \"", ["name"], "\" e seu conteúdo?"],
@@ -3584,6 +3628,7 @@
"k_pade": [
"A configuração agora é compartilhada. Faça commit dos arquivos OK para compartilhá-la com sua equipe."
],
+ "k_tFzX": ["Nome do tema ausente"],
"k_yIIc": ["Será criado em: <0>", ["targetPreview"], "</0>"],
"ka6Eke": ["Abrir o arquivo no disco"],
"kdzzOK": [
@@ -3599,6 +3644,7 @@
],
"kj9pAE": ["Criando a página"],
"kknhfj": ["Sem alterações"],
+ "kkux8f": ["Não foi possível excluir ", ["0"], ". Tente novamente."],
"klPS-L": ["Arquivo original — antes das edições deste agente."],
"kmKqZg": ["Grupos"],
"knjOzA": ["Valor da tag"],
@@ -3614,6 +3660,7 @@
"kwLcuN": [
"Dê às ferramentas de IA que você usa acesso para ler e atualizar seus projetos. Escolha abaixo o que configurar e mude quando quiser em Configurações > Ferramentas de IA e CLI."
],
+ "kwNS82": ["Este tema não pode ser usado até que o arquivo seja corrigido."],
"ky9Tuc": ["Editar o código de ", ["0"]],
"kzpkcn": ["Não deu para salvar essa edição."],
"l-4nnw": ["Buscar regras"],
@@ -3661,6 +3708,7 @@
"Um caminho dentro da habilidade — qualquer pasta serve (ex.: references/notes.md). As pastas do caminho são criadas para você."
],
"lPzyrU": ["Todos os trechos resolvidos"],
+ "lS83Sg": ["Não foi possível acessar a área de transferência."],
"lScd1O": ["Os slides do Slidev abrem apenas no aplicativo de desktop do OpenKnowledge."],
"lUtr1r": [["0"], " de ", ["1"], " selecionados"],
"lVWEIL": [["embedded"], " de ", ["total"], " páginas indexadas."],
@@ -3825,6 +3873,7 @@
"nNYV3Y": ["e mais ", ["remaining"]],
"nOEDQs": ["Falha ao atualizar o modo de sincronização — ", ["detail"]],
"nP-KFo": ["Novo chat do ", ["0"]],
+ "nTM8ab": ["Dê um nome antes de editar as cores."],
"nTwL53": ["Abra um documento para compartilhar a URL dele."],
"nUNZL4": ["Perguntar ao ", ["0"]],
"nWv1ja": ["Gerencie os arquivos ocultos em Configurações → Padrões de exclusão."],
@@ -3872,6 +3921,7 @@
"Sua identidade do git não está definida — os commits usam um autor padrão. Defina a sua para que os colegas vejam seu nome."
],
"nrXDdR": ["Nome do campo"],
+ "nsM-_m": ["Explorar centenas de temas"],
"nsUDL8": [["0"], " de ", ["1"], " projetos selecionados"],
"nskygk": ["Escolher agente"],
"nwtY4N": ["Algo deu errado"],
@@ -3910,6 +3960,7 @@
"Os plugins de projeto são o padrão de autoria do seu projeto — ligue ou desligue aqui. A escolha fica salva no config.yml e é compartilhada com todos os colaboradores pelo git. Cada plugin ativado ganha uma página própria em Plugins, na barra lateral de configurações."
],
"oYepHb": ["O terminal está desligado neste projeto. Ligue de novo para rodar comandos aqui."],
+ "oZUYMv": ["Não foi possível restaurar ", ["0"], ". Esse nome já está em uso."],
"of3tF-": [
"Você escolheu ~/Documents. O OpenKnowledge vai indexar todos os arquivos markdown que estiverem lá dentro. Se quiser cuidar só de uma subpasta, escolha um escopo menor."
],
@@ -3940,6 +3991,7 @@
["0"],
" — algo fora do OK mudou isso desde então. O estado exibido é o que está no disco agora; o seu próximo Vincular/Desvincular prevalece."
],
+ "p7Utw8": ["Não é um tema base16"],
"p98xmP": ["Aplica-se a"],
"p9sdCy": ["Novo padrão de exclusão"],
"pA16WG": ["Este projeto não tem nenhum remoto do GitHub."],
@@ -4033,6 +4085,7 @@
"qIJIrD": ["Testando"],
"qJSo0_": ["Qual é a diferença entre cópias e links simbólicos?"],
"qNOgUu": ["As edições feitas na fonte chegam aqui — sem desvio por copiar e colar."],
+ "qQi_um": ["Tema importado."],
"qRZh7J": ["Deixar o Tab sair do editor de código em vez de recuar."],
"qSKu2v": ["Navegação e seleção no código"],
"qSxaOz": ["Aceitar a exclusão deles"],
@@ -4087,6 +4140,7 @@
"qo4zCg": ["O caminho não pode conter barras invertidas"],
"qpQwGC": ["Descreva no que você está trabalhando e o agente prepara tudo para você."],
"qribBG": ["esquema ", ["deleteTarget"]],
+ "qtnmEX": ["Insira um nome de tema válido."],
"qvWGzP": ["Recolher tudo"],
"qyLmWw": ["Painel de busca do editor de código"],
"r-OJYm": ["Digite um nome de ramo válido (sem espaços, sem ponto inicial, sem \"..\")."],
@@ -4112,6 +4166,7 @@
"rFmBG3": ["Tema de cores"],
"rFw02Q": ["Enviando ", ["keyName"]],
"rJVoVX": ["Resultados de busca no código"],
+ "rJm8-2": ["Não foi possível acessar a área de transferência — o tema está na caixa abaixo."],
"rNifQd": ["Remover a propriedade"],
"rQAQus": ["Não deu para salvar o modelo: ", ["error"]],
"rQRrkB": ["ontem"],
@@ -4190,7 +4245,6 @@
"sJK6pq": ["Permissão negada"],
"sJWhgo": ["Componente desconhecido: ", ["unregisteredComponentName"]],
"sKEgGd": ["Enviar para o chat"],
- "sKMhJz": ["Do fundo para o primeiro plano"],
"sLcbHt": [
"Vincule outra pasta a uma destas para que os dois agentes leiam as mesmas habilidades; desvincule para voltar a gerenciar as habilidades de uma pasta uma a uma."
],
@@ -4384,6 +4438,7 @@
"ur2XSb": ["Editor visual"],
"uuoHOU": ["O comando falhou."],
"uyJsf6": ["Sobre"],
+ "uyOQ4e": ["Tema copiado como YAML base16"],
"uynXup": [["tokens", "plural", { "one": ["token"], "many": ["tokens"], "other": ["tokens"] }]],
"v-h2hx": ["Excluir ", ["targetGitPath"]],
"v2ZW0K": ["Ativar o terminal"],
@@ -4507,6 +4562,7 @@
],
"wZPUJx": ["“", ["0"], "”"],
"w_Sphq": ["Anexos"],
+ "wbMbiY": ["Cópia de ", ["selectedSlot"], " concluída"],
"wbpoGe": ["Não foi possível instalar a habilidade do OpenKnowledge: ", ["message"]],
"wbv9xO": ["Criar novo projeto"],
"wc54KE": ["Experimentando…"],
@@ -4708,6 +4764,7 @@
"zL0LPh": ["Global fora dos campos de texto"],
"zLGXna": ["Nenhum pacote inicial disponível."],
"zLak8b": ["Ativar nova aba"],
+ "zMmwh4": ["Escolha um tema ou crie o seu."],
"zQBg2C": ["Sobe ou desce o bloco atual uma posição."],
"zXj1rA": ["Buscar por significado"],
"zYp8Sr": [
diff --git a/packages/app/src/locales/pt-BR/messages.po b/packages/app/src/locales/pt-BR/messages.po
index 762dd288b..1f21cb5c3 100644
--- a/packages/app/src/locales/pt-BR/messages.po
+++ b/packages/app/src/locales/pt-BR/messages.po
@@ -332,6 +332,11 @@ msgstr "{0} no total"
msgid "{0} version {1}"
msgstr "{0} versão {1}"
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "{0} was already deleted."
+msgstr "{0} já foi excluído."
+
#. placeholder {0}: activeData.label
#: src/components/EditorWorkspace.tsx
msgid "{0} was not moved."
@@ -777,6 +782,11 @@ msgstr "{sizeText} · segredos ocultados · despejo de falha sem ocultação"
msgid "{skillCount, plural, one {skill} other {skills}}"
msgstr "{skillCount, plural, one {habilidade} many {habilidades} other {habilidades}}"
+#. placeholder {0}: BASE16_SLOT_ROLES[slot]
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "{slot} color — {0}"
+msgstr "Cor de {slot} — {0}"
+
#: src/components/settings/CustomThemeEditor.tsx
msgid "{slot} hex value"
msgstr "Valor hexadecimal de {slot}"
@@ -1040,6 +1050,10 @@ msgstr "uma ferramenta git necessária"
msgid "A reusable starting point for new documents in this folder."
msgstr "Um ponto de partida reutilizável para novos documentos nesta pasta."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "A saved theme already uses this name."
+msgstr "Um tema salvo já usa este nome."
+
#: src/components/TemplateForm.tsx
msgid "A short line shown under the title in the template list."
msgstr "Uma linha curta mostrada abaixo do título na lista de modelos."
@@ -1096,10 +1110,6 @@ msgstr "Acima"
msgid "absent"
msgstr "ausente"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Accents"
-msgstr "Acentos"
-
#: src/components/DiffView.tsx
msgid "Accept"
msgstr "Aceitar"
@@ -1779,10 +1789,6 @@ msgstr "Voltar"
msgid "Back to document view"
msgstr "Voltar para a visualização do documento"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Background to foreground"
-msgstr "Do fundo para o primeiro plano"
-
#: src/components/LinksPanel.tsx
msgid "Backlinks"
msgstr "Retrolinks"
@@ -1927,8 +1933,8 @@ msgid "Browse folder"
msgstr "Escolher pasta"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Browse hundreds of schemes"
-msgstr "Explore centenas de esquemas"
+msgid "Browse hundreds of themes"
+msgstr "Explorar centenas de temas"
#: src/components/ImportSkillDialog.tsx
msgid "Browse or upload a skill for this project."
@@ -2047,6 +2053,7 @@ msgstr "Não é possível compartilhar este caminho."
#: src/components/ReportBugDialogBody.tsx
#: src/components/SeedDialog.tsx
#: src/components/settings/LinkPreviewsSection.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/settings/SearchSection.tsx
#: src/components/ShareBranchSwitchDialog.tsx
#: src/components/ShareReceiveDialog.tsx
@@ -2102,6 +2109,18 @@ msgstr "alterado fora"
msgid "Changed outside OK since it last wrote here — the state shown is what's on disk now"
msgstr "Alterado fora do OK desde a última vez que ele escreveu aqui — o estado exibido é o que está no disco agora"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes save automatically to this theme."
+msgstr "As alterações são salvas automaticamente neste tema."
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes save automatically."
+msgstr "As alterações são salvas automaticamente."
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes saved automatically."
+msgstr "Alterações salvas automaticamente."
+
#: src/components/command-palette-commands.ts
msgid "Check for updates"
msgstr "Buscar atualizações"
@@ -2699,6 +2718,11 @@ msgstr "Conflito"
msgid "Conflicted files"
msgstr "Arquivos em conflito"
+#. placeholder {0}: warning.conflictingFilenames.join(', ')
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Conflicting files: {0}."
+msgstr "Arquivos em conflito: {0}."
+
#: src/components/ConflictsSection.tsx
msgid "Conflicts"
msgstr "Conflitos"
@@ -2891,6 +2915,10 @@ msgstr "Convertendo..."
msgid "Copied"
msgstr "Copiado"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Copied {selectedSlot}"
+msgstr "Cópia de {selectedSlot} concluída"
+
#: src/components/EditorTabTargetMenuItems.tsx
#: src/components/FileSidebar.tsx
#: src/components/FileTree.tsx
@@ -2928,6 +2956,7 @@ msgstr "copiar"
#: src/components/CopyButton.tsx
#: src/components/empty-state/CopyablePromptList.tsx
#: src/components/InstallInClaudeDesktopDialog.tsx
+#: src/components/settings/CustomThemeEditor.tsx
#: src/lib/native-menu-catalog.ts
msgid "Copy"
msgstr "Copiar"
@@ -3212,6 +3241,15 @@ msgstr "Não deu para criar o relatório"
msgid "Couldn't create the worktree. Try a different name."
msgstr "Não deu para criar o worktree. Tente outro nome."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t create this theme. Try again."
+msgstr "Não foi possível criar este tema. Tente novamente."
+
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t delete {0}. Try again."
+msgstr "Não foi possível excluir {0}. Tente novamente."
+
#. placeholder {0}: result.error
#: src/components/SkillFileDeleteDialog.tsx
msgid "Couldn't delete file: {0}"
@@ -3229,6 +3267,10 @@ msgstr "Não deu para excluir o modelo: {error}"
msgid "Couldn't delete that comment."
msgstr "Não deu para excluir esse comentário."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t delete this theme. Refresh and try again."
+msgstr "Não foi possível excluir este tema. Atualize a página e tente novamente."
+
#: src/components/settings/AccountSection.tsx
msgid "Couldn't disconnect — please try again."
msgstr "Não deu para desconectar — tente de novo."
@@ -3392,8 +3434,12 @@ msgid "Couldn't reach the agent registry."
msgstr "Não deu para contatar o registro de agentes."
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Couldn’t reach the clipboard — the scheme is in the box below."
-msgstr "Não deu para acessar a área de transferência — o esquema está na caixa abaixo."
+msgid "Couldn’t reach the clipboard — the theme is in the box below."
+msgstr "Não foi possível acessar a área de transferência — o tema está na caixa abaixo."
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Couldn’t reach the clipboard."
+msgstr "Não foi possível acessar a área de transferência."
#: src/components/CommandPalette.tsx
msgid "Couldn't reach the embeddings provider — retry"
@@ -3420,6 +3466,11 @@ msgstr "Não deu para ler os comentários que aguardam envio — nada foi enviad
msgid "Couldn't read the comments waiting to send: {0}"
msgstr "Não deu para ler os comentários que aguardam envio: {0}"
+#. placeholder {0}: warning.code
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t read this theme ({0})"
+msgstr "Não foi possível ler este tema ({0})"
+
#: src/components/EditorActivityPool.tsx
msgid "Couldn't reconnect after server restart"
msgstr "Não deu para reconectar após o reinício do servidor"
@@ -3468,6 +3519,16 @@ msgstr "Não deu para reiniciar o servidor automaticamente. Tente rodar `ok stop
msgid "Couldn't restart the server. Try `ok start` in this folder."
msgstr "Não deu para reiniciar o servidor. Tente `ok start` nesta pasta."
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t restore {0}. That name is already in use."
+msgstr "Não foi possível restaurar {0}. Esse nome já está em uso."
+
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t restore {0}. Try again."
+msgstr "Não foi possível restaurar {0}. Tente novamente."
+
#. placeholder {0}: resumeError.message
#: src/components/acp/ThreadView.tsx
msgid "Couldn't resume this chat: {0}"
@@ -3477,6 +3538,10 @@ msgstr "Não foi possível retomar este chat: {0}"
msgid "Couldn't run the test. Check that OpenKnowledge is still running."
msgstr "Não deu para executar o teste. Verifique se o OpenKnowledge ainda está rodando."
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Couldn’t save changes. Try editing a color again."
+msgstr "Não foi possível salvar as alterações. Tente editar uma cor novamente."
+
#: src/components/TemplateForm.tsx
msgid "Couldn't save template: {error}"
msgstr "Não deu para salvar o modelo: {error}"
@@ -3595,6 +3660,10 @@ msgstr "Despejo de falha"
msgid "Create"
msgstr "Criar"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Create & edit"
+msgstr "Criar e editar"
+
#: src/components/TemplateRow.tsx
msgid "Create a document from {label}"
msgstr "Criar um documento a partir de {label}"
@@ -3666,6 +3735,10 @@ msgstr "Criar novo projeto"
msgid "Create new tag #{tagValue}"
msgstr "Criar a nova tag #{tagValue}"
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Create new theme"
+msgstr "Criar novo tema"
+
#: src/components/GraphPanel.tsx
#: src/components/ProblemsPanel.tsx
#: src/editor/extensions/InternalLinkPropPanel.tsx
@@ -3764,6 +3837,10 @@ msgstr "Criando a página: {linkTitle}."
msgid "Creating..."
msgstr "Criando..."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Creating…"
+msgstr "Criando…"
+
#: src/components/RecentProjectsMenu.tsx
msgid "Current"
msgstr "Atual"
@@ -3836,8 +3913,10 @@ msgstr "Padrão: <0>{0}</0>"
msgid "Delete"
msgstr "Excluir"
+#. placeholder {0}: theme.label
#. placeholder {0}: thread.title
#: src/components/acp/ThreadHistoryMenu.tsx
+#: src/components/settings/ColorThemePicker.tsx
msgid "Delete {0}"
msgstr "Excluir {0}"
@@ -3917,6 +3996,11 @@ msgstr "Excluir este chat?"
msgid "Delete this comment"
msgstr "Excluir este comentário"
+#. placeholder {0}: deletedTheme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Deleted {0}."
+msgstr "{0} foi excluído."
+
#: src/components/settings/LintingSection.tsx
msgid "Deleted {file}"
msgstr "{file} excluído"
@@ -4235,6 +4319,7 @@ msgstr "pronto"
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/PublishToGitHubDialog.tsx
#: src/components/ReportBugDialogBody.tsx
+#: src/components/settings/CustomThemeEditor.tsx
#: src/editor/extensions/JsxComponentView.tsx
#: src/editor/extensions/JsxInlineView.tsx
#: src/editor/extensions/MathInlineView.tsx
@@ -4369,6 +4454,11 @@ msgstr "Cada ferramenta selecionada recebe uma entrada MCP do OpenKnowledge."
msgid "Edit"
msgstr "Editar"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Edit {0}"
+msgstr "Editar {0}"
+
#. placeholder {0}: descriptor.displayName ?? descriptor.name
#: src/editor/extensions/JsxComponentView.tsx
msgid "Edit {0} source"
@@ -4442,6 +4532,11 @@ msgstr "modelo editado"
msgid "editing [[{realCurrentDoc}]]"
msgstr "editando [[{realCurrentDoc}]]"
+#. placeholder {0}: scheme.name
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Editing {0}"
+msgstr "Editando {0}"
+
#: src/components/SkillEditBanner.tsx
msgid "Editing {boldName} in place. Changes save straight to your editor's copy."
msgstr "Editando {boldName} no lugar. As alterações são salvas direto na cópia do seu editor."
@@ -4471,8 +4566,12 @@ msgid "Editor status bar"
msgstr "Barra de status do editor"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Edits apply live. Light or dark comes from the scheme."
-msgstr "As edições valem na hora. O modo claro ou escuro vem do esquema."
+msgid "Edits apply live and save automatically to this theme."
+msgstr "As alterações são aplicadas imediatamente e salvas automaticamente neste tema."
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Edits apply live. Light or dark comes from the theme."
+msgstr "As alterações são aplicadas imediatamente. O tema define se o modo é claro ou escuro."
#: src/editor/slash-command/component-items.tsx
msgid "Edits at the source land here — no copy-paste drift."
@@ -4643,6 +4742,10 @@ msgstr "Digite um valor hexadecimal de 6 dígitos, como #1A2B3C"
msgid "Enter a folder name (e.g. brain)."
msgstr "Digite um nome de pasta (ex.: cerebro)."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Enter a name for this theme."
+msgstr "Insira um nome para este tema."
+
#: src/components/CreateProjectDialog.tsx
msgid "Enter a project name"
msgstr "Digite um nome de projeto"
@@ -4659,6 +4762,10 @@ msgstr "Digite um título para este modelo."
msgid "Enter a valid branch name (no spaces, no leading dot, no \"..\")."
msgstr "Digite um nome de ramo válido (sem espaços, sem ponto inicial, sem \"..\")."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Enter a valid theme name."
+msgstr "Insira um nome de tema válido."
+
#: src/components/settings/SearchSection.tsx
msgid "Enter a valid URL (for example https://api.openai.com/v1)."
msgstr "Digite uma URL válida (por exemplo https://api.openai.com/v1)."
@@ -5551,6 +5658,10 @@ msgstr "O login do GitHub está ausente ou expirou. Reconecte para retomar a sin
msgid "GitHub, a git URL, or a local path."
msgstr "GitHub, uma URL de git ou um caminho local."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Give it a name before editing its colors."
+msgstr "Dê um nome antes de editar as cores."
+
#: src/components/settings/AiToolsSection.tsx
msgid "Give the AI tools you use access to read and update your projects. Checking a box sets it up right away; unchecking removes it."
msgstr "Dê às ferramentas de IA que você usa acesso para ler e atualizar seus projetos. Marcar uma caixa configura na hora; desmarcar remove."
@@ -5730,6 +5841,11 @@ msgstr "Pasta “{basename}” oculta"
msgid "Hide"
msgstr "Ocultar"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Hide {0} editor"
+msgstr "Ocultar editor de {0}"
+
#: src/lib/native-menu-catalog.ts
msgid "Hide {appName}"
msgstr "Ocultar {appName}"
@@ -5935,6 +6051,11 @@ msgstr "Estou mudando para outra ferramenta"
msgid "Icon picker"
msgstr "Seletor de ícones"
+#. placeholder {0}: createIdentity.stem
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "ID: {0}"
+msgstr "ID: {0}"
+
#: src/components/AutoSyncEnableWarning.tsx
msgid "If an update arrives for something you are editing, you choose which version to keep, like a merge conflict."
msgstr "Se chegar uma atualização de algo que você está editando, você escolhe qual versão manter, como em um conflito de mesclagem."
@@ -5970,10 +6091,6 @@ msgstr "Importar como modelo"
msgid "Import failed: {0}"
msgstr "Falha na importação: {0}"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Import scheme"
-msgstr "Importar esquema"
-
#. placeholder {0}: result.name
#: src/lib/skill-import-toast.ts
msgid "Imported \"{0}\"."
@@ -6315,6 +6432,10 @@ msgstr "Instrução para a IA"
msgid "Integrations"
msgstr "Integrações"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Invalid color value"
+msgstr "Valor de cor inválido"
+
#: src/components/CreateProjectDialog.tsx
msgid "Invalid input — pick a different folder."
msgstr "Entrada inválida — escolha outra pasta."
@@ -6335,6 +6456,10 @@ msgstr "Estrutura da resposta do servidor inválida"
msgid "Invalid share URL."
msgstr "URL de compartilhamento inválida."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Invalid YAML"
+msgstr "YAML inválido"
+
#: src/uninstall/UninstallSurveyScreen.tsx
msgid "It didn't fit into my workflow"
msgstr "Não encaixou no meu jeito de trabalhar"
@@ -6568,6 +6693,10 @@ msgstr "URL do link"
msgid "Link-graph response did not match expected shape."
msgstr "A resposta do grafo de links não tinha o formato esperado."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Linked theme files aren’t supported"
+msgstr "Arquivos de tema vinculados não são compatíveis"
+
#: src/components/DocPanel.tsx
msgid "Links"
msgstr "Links"
@@ -6943,6 +7072,14 @@ msgstr "Página inexistente — clique para criar"
msgid "Missing page: {linkTitle}. Click to create."
msgstr "Página inexistente: {linkTitle}. Clique para criar."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Missing palette colors"
+msgstr "Faltam cores na paleta"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Missing theme name"
+msgstr "Nome do tema ausente"
+
#: src/components/SyncStatusBadge.tsx
msgid "Mode"
msgstr "Modo"
@@ -7140,6 +7277,10 @@ msgstr "Ruminando…"
msgid "Multi-page PDF viewer with toolbar controls (thumbnails, page nav, zoom)."
msgstr "Visualizador de PDF de várias páginas com controles na barra de ferramentas (miniaturas, navegação de páginas, zoom)."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Multiple files use this theme name"
+msgstr "Vários arquivos usam este nome de tema"
+
#: src/components/acp/working-status.ts
msgid "Musing…"
msgstr "Divagando…"
@@ -7182,6 +7323,10 @@ msgstr "O nome não pode ficar vazio"
msgid "Name is required"
msgstr "O nome é obrigatório"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Name your theme"
+msgstr "Dê um nome ao seu tema"
+
#: src/lib/keyboard-shortcuts.ts
msgid "Navigate CodeMirror source search results or dismiss the search panel."
msgstr "Percorre os resultados de busca do CodeMirror ou fecha o painel de busca."
@@ -7738,6 +7883,10 @@ msgstr "Nenhum destes problemas tem correção automática."
msgid "None of these problems have an automatic fix. Try Fix all with AI."
msgstr "Nenhum destes problemas tem correção automática. Tente Corrigir tudo com IA."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Not a base16 theme"
+msgstr "Não é um tema base16"
+
#: src/components/acp/ThreadView.tsx
msgid "Not answered"
msgstr "Sem resposta"
@@ -8638,8 +8787,8 @@ msgid "Paste"
msgstr "Colar"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Paste a base16 scheme"
-msgstr "Cole um esquema base16"
+msgid "Paste a base16 theme"
+msgstr "Cole um tema base16"
#: src/components/AuthModal.tsx
msgid "Paste a personal access token for <0>{host}</0>."
@@ -8762,10 +8911,6 @@ msgstr "Pessoal deste dispositivo — guardado na sua configuração de usuário
msgid "Pick <0>openknowledge.skill</0> from your <1>Downloads</1> folder. It enables automatically."
msgstr "Escolha <0>openknowledge.skill</0> na sua pasta <1>Downloads</1>. Ela é ativada automaticamente."
-#: src/components/settings/ThemePluginSection.tsx
-msgid "Pick a built-in IDE color palette, or define your own."
-msgstr "Escolha uma paleta de cores de IDE integrada ou defina a sua."
-
#: src/components/settings/SkillTargetsPicker.tsx
msgid "Pick a folder to merge INTO {display}. That folder becomes a symlink to this one, so its agent reads everything placed here. This folder stays real. Conflicting skills abort the merge."
msgstr "Escolha uma pasta para mesclar DENTRO de {display}. Aquela pasta vira um link simbólico para esta, então o agente dela lê tudo o que for colocado aqui. Esta pasta continua real. Habilidades em conflito cancelam a mesclagem."
@@ -8778,6 +8923,10 @@ msgstr "Escolha um nome"
msgid "Pick a palette for light mode and one for dark mode. The theme setting in Preferences chooses between them — on “System”, so does your OS."
msgstr "Escolha uma paleta para o modo claro e outra para o escuro. A opção de tema em Preferências escolhe entre elas — em “Sistema”, quem escolhe é o seu SO."
+#: src/components/settings/ThemePluginSection.tsx
+msgid "Pick a theme or create your own."
+msgstr "Escolha um tema ou crie o seu."
+
#: src/editor/slash-command/items.tsx
msgid "Pick an emoji to insert at the cursor."
msgstr "Escolha um emoji para inserir no cursor."
@@ -8884,8 +9033,8 @@ msgid "Press Space to pick up a tab. Use the arrow keys to move it within a tab
msgstr "Pressione Espaço para pegar uma aba. Use as setas para movê-la dentro da barra de abas e pressione Espaço ou Enter para soltá-la. Pressione Shift+F10 ou a tecla Menu para abrir o menu de contexto da aba, com as ações de dividir, fechar, fixar e outras."
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Press the sun or moon on “Custom” above to use this scheme."
-msgstr "Toque no sol ou na lua em “Personalizado”, acima, para usar este esquema."
+msgid "Press the sun or moon on “Custom” above to use this theme."
+msgstr "Pressione o sol ou a lua em “Custom” acima para usar este tema."
#: src/components/PublishToGitHubDialog.tsx
msgid "Preview browsers can't auto-copy. Use Cmd/Ctrl+C on the URL above, or open OK in the desktop app."
@@ -9785,6 +9934,11 @@ msgstr "Restaurar até esta versão?"
msgid "Restore with remote changes"
msgstr "Restaurar com as alterações remotas"
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Restored {0}."
+msgstr "{0} foi restaurado."
+
#. placeholder {0}: descriptor.targetSha7
#: src/components/TimelinePanel.tsx
msgid "Restored an earlier version ({0})"
@@ -9990,6 +10144,10 @@ msgstr "Salvo na pasta de habilidades deste projeto (ex.: <0>.agents/skills</0>)
msgid "Saved into your global skills folder (e.g. <0>~/.agents/skills</0>)."
msgstr "Salvo na sua pasta global de habilidades (ex.: <0>~/.agents/skills</0>)."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Saved themes couldn’t load. The last available theme list is still shown."
+msgstr "Não foi possível carregar os temas salvos. A última lista de temas disponível continua sendo exibida."
+
#: src/components/SkillProperties.tsx
msgid "Saved to"
msgstr "Salvo em"
@@ -10007,6 +10165,10 @@ msgstr "Salva o arquivo em <0>~/Downloads/openknowledge.skill</0> e abre o app C
msgid "Saving"
msgstr "Salvando"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Saving changes…"
+msgstr "Salvando alterações…"
+
#: src/components/settings/LintingSection.tsx
msgid "schema {deleteTarget}"
msgstr "esquema {deleteTarget}"
@@ -10015,10 +10177,6 @@ msgstr "esquema {deleteTarget}"
msgid "Schema fields"
msgstr "Campos do esquema"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Scheme copied as base16 YAML"
-msgstr "Esquema copiado como YAML base16"
-
#: src/components/ImportSkillForm.tsx
#: src/components/PanelScopeHeader.tsx
msgid "Scope"
@@ -10208,6 +10366,11 @@ msgstr "Ver os {0} pacotes iniciais"
msgid "See the full install guide"
msgstr "Ver o guia de instalação completo"
+#. placeholder {0}: BASE16_SLOT_ROLES[slot]
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Select {slot} — {0}"
+msgstr "Selecionar {slot} — {0}"
+
#: src/components/FrontmatterRow.tsx
msgid "Select a value"
msgstr "Selecione um valor"
@@ -10919,6 +11082,10 @@ msgstr "O Slidev demorou demais para iniciar. Tente novamente."
msgid "Small section heading."
msgstr "Título de seção pequeno."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Some saved themes aren’t shown because the theme folder exceeds the scan limit."
+msgstr "Alguns temas salvos não são exibidos porque a pasta de temas excede o limite de verificação."
+
#: src/components/FeedbackForm.tsx
msgid "Something broke"
msgstr "Algo quebrou"
@@ -11839,6 +12006,30 @@ msgstr "O token precisa dos escopos repo e read:user."
msgid "Theme"
msgstr "Tema"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme colors"
+msgstr "Cores do tema"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme copied as base16 YAML"
+msgstr "Tema copiado como YAML base16"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme imported."
+msgstr "Tema importado."
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name"
+msgstr "Nome do tema"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name has unsupported characters"
+msgstr "O nome do tema contém caracteres não compatíveis"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name is too long"
+msgstr "O nome do tema é muito longo"
+
#: src/components/settings/ThemePreviewCanvas.tsx
msgid "Theme preview"
msgstr "Pré-visualização do tema"
@@ -12033,6 +12224,10 @@ msgstr "Isto é uma pré-visualização de {boldName}, detectada em {boldHarness
msgid "This is a preview of {boldName}. Install it into your agents."
msgstr "Isto é uma pré-visualização de {boldName}. Instale-a nos seus agentes."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This isn’t a regular theme file"
+msgstr "Este não é um arquivo de tema comum"
+
#: src/components/SlidesToolbarControls.tsx
msgid "This isn't a supported version of Slidev."
msgstr "Esta não é uma versão compatível do Slidev."
@@ -12194,6 +12389,18 @@ msgstr "Esta fonte traz várias habilidades — escolha qual importar."
msgid "This template lives in a parent folder — deleting it affects every folder beneath it that doesn't define its own version."
msgstr "Este modelo fica em uma pasta acima — excluí-lo afeta todas as pastas abaixo dela que não definem a própria versão."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme can’t be used until the file is fixed."
+msgstr "Este tema não pode ser usado até que o arquivo seja corrigido."
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme file couldn’t be read"
+msgstr "Não foi possível ler este arquivo de tema"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme file is too large"
+msgstr "Este arquivo de tema é muito grande"
+
#: src/components/ShareReceiveDialog.tsx
msgid "This usually means one of:"
msgstr "Isto costuma significar uma destas coisas:"
@@ -12367,6 +12574,7 @@ msgstr "Experimente um prompt"
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/ReportBugDialogBody.tsx
#: src/components/settings/AccountSection.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/ShareReceiveDialog.tsx
msgid "Try again"
msgstr "Tente de novo"
@@ -12474,6 +12682,7 @@ msgstr "A última edição em {docName} foi desfeita"
#: src/components/ActivityPanelBurstRow.tsx
#: src/components/AppMenubar.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/settings/SharingSection.tsx
#: src/lib/native-menu-catalog.ts
msgid "Undo"
@@ -12741,6 +12950,16 @@ msgstr "Usar {0} como tema escuro"
msgid "Use {0} as the light theme"
msgstr "Usar {0} como tema claro"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Use {0} for the active dark mode"
+msgstr "Usar {0} no modo escuro ativo"
+
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Use {0} for the active light mode"
+msgstr "Usar {0} no modo claro ativo"
+
#: src/components/SkillForkDialog.tsx
msgid "Use {editor} version"
msgstr "Usar a versão do {editor}"
@@ -12753,6 +12972,10 @@ msgstr "Use <0>{copyShortcut}</0> para copiar o link abaixo, ou abra o OK no app
msgid "Use a folder you already have."
msgstr "Use uma pasta que você já tem."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Use a lowercase .yaml or .yml extension"
+msgstr "Use uma extensão .yaml ou .yml em letras minúsculas"
+
#: src/components/SkillFileCreateDialog.tsx
#: src/components/SkillFileRenameDialog.tsx
msgid "Use a relative path inside the skill (no .., no spaces; SKILL.md is managed)."
@@ -12937,6 +13160,10 @@ msgstr "Vamos compilar o <0>openknowledge.skill</0>, salvá-lo em <1>~/Downloads
msgid "We'll create a repository and start syncing — no terminal needed."
msgstr "Vamos criar um repositório e começar a sincronizar — sem precisar de terminal."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "We’ll create a safe theme ID from this name."
+msgstr "Criaremos um ID de tema seguro a partir deste nome."
+
#: src/components/ReportBugDialogBody.tsx
msgid "We've filed it with the team and attached your logs."
msgstr "Já registramos com a equipe e anexamos seus logs."
diff --git a/packages/app/src/locales/ur/messages.json b/packages/app/src/locales/ur/messages.json
index 15f850962..5fb4a0917 100644
--- a/packages/app/src/locales/ur/messages.json
+++ b/packages/app/src/locales/ur/messages.json
@@ -36,11 +36,13 @@
"آپ کے نوٹ اور ایپ کے ورژن سمیت نجی طور پر OpenKnowledge ٹیم کو بھیجا جاتا ہے۔ کبھی عوامی طور پر شائع نہیں ہوتا۔"
],
"-oHckY": ["OpenKnowledge نے ترتیب ", ["key"], " پڑھی"],
+ "-othoN": ["یہ تھیم فائل بہت بڑی ہے"],
"-q4abP": [
"نتائج محدود — اس ورک اسپیس میں اتنی فائلیں ہیں جتنی تلاش اشاریہ بند نہیں کر سکتی۔ کوئی غائب فائل اس حد کا نتیجہ ہو سکتی ہے، املا کی غلطی نہیں۔"
],
"-slrNR": ["کاموں کی فہرست بدلیں۔"],
"-uaQnI": ["کوئی مماثل ورک ٹری یا برانچ نہیں۔"],
+ "-yOx8u": ["تبدیلیاں محفوظ ہو رہی ہیں…"],
"-yPBXI": ["فائل منتخب کریں"],
"-ySLQJ": ["Git اور PRs"],
"-zA2E7": ["ورک ٹری نہیں بن سکا۔ کوئی مختلف نام آزمائیں۔"],
@@ -102,6 +104,7 @@
"0kTAXe": ["ماخذ کھولیں: ", ["mirrorSrc"]],
"0pZmTP": ["یہ راستہ شیئر نہیں کیا جا سکتا۔"],
"0qyKG6": ["ڈسک سے مطابق"],
+ "0r6d6v": ["تبدیلیاں خودکار طور پر محفوظ ہو گئیں۔"],
"0rwwOn": ["ٹیگ کے لحاظ سے"],
"0s8-e8": [
"کی بورڈ کی حدود سے بلاک اجزاء اور متبادل سورس بلاکس منتخب کریں، ان میں داخل ہوں یا ان سے نکلیں۔"
@@ -112,6 +115,7 @@
"0xnQ_X": ["اپ ڈیٹس آتی رہتی ہیں"],
"0xnmlQ": ["ریپازٹری کا نام"],
"0yL--g": ["تصادمات کا جائزہ لیں"],
+ "0ySP5u": ["تبدیلیاں خودکار طور پر اس تھیم میں محفوظ ہو جاتی ہیں۔"],
"0zAhu6": ["ہر دستاویز"],
"10g8I_": ["«صرف Markdown فائلیں» بند کریں"],
"11ukmX": ["نام بدلنا ناکام: ", ["0"]],
@@ -121,6 +125,7 @@
"161NCV": ["روکا جا رہا ہے"],
"16D5Zj": ["کیا آپ واقعی ", ["itemName"], " حذف کرنا چاہتے ہیں؟ یہ عمل واپس نہیں لیا جا سکتا۔"],
"16eIWu": ["زبردستی روکیں"],
+ "16tSS_": ["ایک base16 تھیم چسپاں کریں"],
"170Js2": ["پینل چھپائیں"],
"1AumWo": ["پُش ناکام رہا — تفصیلات کے لیے سرور کے لاگز دیکھیں۔"],
"1CalO6": ["انداز"],
@@ -155,6 +160,7 @@
"1njn7W": ["روشن"],
"1nke1r": [["0"], " کو GitHub پر کھولیں (نئے ٹیب میں کھلتا ہے)"],
"1oSHI0": [["skillName"], " نصب نہیں ہو سکی: ", ["0"]],
+ "1qpGKz": ["تبدیلیاں محفوظ نہیں ہو سکیں۔ کسی رنگ میں دوبارہ ترمیم کر کے دیکھیں۔"],
"1ruosn": ["OpenKnowledge"],
"1t_NnN": ["مسترد کریں"],
"1u-mAI": ["مطابقت پذیری شروع نہیں ہو سکی۔ اپنا کنکشن دیکھیں، پھر دوبارہ کوشش کریں۔"],
@@ -273,7 +279,6 @@
"3kYcuM": ["کیا آپ واقعی منتخب آئٹمز حذف کرنا چاہتے ہیں؟"],
"3l32hp": [["plugin"], " پلگ اِن کا حصہ"],
"3l_cXP": ["چاہیں تو دیکھ لیں۔ ہمیں بالکل یہی فائل ملتی ہے۔"],
- "3l_knd": ["یہ اسکیم استعمال کرنے کے لیے اوپر “حسبِ ضرورت” پر سورج یا چاند دبائیں۔"],
"3m2GBo": ["دستاویزات تلاش کی جا رہی ہیں"],
"3mFsc3": ["ریموٹ تبدیلیوں کے ساتھ بحال کریں"],
"3nnyi_": [["0", "plural", { "one": ["حذف کریں"], "other": ["#", " آئٹمز حذف کریں"] }]],
@@ -315,6 +320,7 @@
"4TzU0n": ["ابتدائیہ کریں"],
"4buZWd": [["path"], " سے وراثت میں ملا"],
"4c_a6S": ["ابھی کچھ مقرر نہیں۔"],
+ "4d0VYJ": ["ہم اس نام سے ایک محفوظ تھیم ID بنائیں گے۔"],
"4eO-iB": ["یہ تبصرہ رد کریں"],
"4g19V6": ["خصوصیت تازہ نہیں ہو سکی"],
"4h3e0H": ["مہارتوں کا اشتراک تازہ نہیں ہو سکا — ", ["detail"], "۔"],
@@ -456,6 +462,7 @@
"بیان کریں کہ اسے کیا کرنا چاہیے، یا خود ایک شامل کریں۔ OpenKnowledge آپ کی مہارتیں ایک جگہ رکھتا ہے، ان کے ورژن سنبھالتا ہے، اور انہیں Claude، Codex اور Cursor جیسے ایجنٹس میں نصب کرتا ہے۔"
],
"6MnZEC": ["ٹرمینل لوڈ نہیں ہو سکا"],
+ "6Nea1q": ["فعال گہرے موڈ کے لیے ", ["0"], " استعمال کریں"],
"6O626z": ["«", ["trimmedAnchorQuery"], "» سے کوئی عنوان مماثل نہیں"],
"6Pxqwv": [
"ابھی پروجیکٹ کا کوئی ٹیمپلیٹ نہیں۔ اسے اس پروجیکٹ میں ہر جگہ دستیاب کرنے کے لیے ایک بنائیں۔ فولڈر تک محدود ٹیمپلیٹس ہر فولڈر کے جائزہ صفحے پر رہتے ہیں۔"
@@ -465,6 +472,7 @@
"6VqW-1": [["keyName"], " ہٹائیں"],
"6WdDG7": ["صفحہ"],
"6YBJ3m": ["منتخب حصے کے بارے میں AI سے پوچھیں"],
+ "6YE0P6": [["0"], " میں ترمیم ہو رہی ہے"],
"6YtxFj": ["نام"],
"6ZhdPI": ["ایجنٹ کیا پڑھ، لکھ اور ظاہر کر سکتا ہے۔"],
"6_ZOw4": ["مکمل راستہ نقل ہو گیا"],
@@ -494,6 +502,7 @@
"6s7LXO": ["خیال رہے"],
"6u9LvN": [["days", "plural", { "one": ["#", " دن پہلے"], "other": ["#", " دن پہلے"] }]],
"6vEr3W": ["لنک کا ہدف"],
+ "6xeZX9": ["ترامیم فوراً لاگو ہوتی ہیں۔ روشن یا تاریک تھیم سے طے ہوتا ہے۔"],
"6zzhQL": ["اپنی رپورٹ ای میل سے بھیجیں"],
"72xhRD": ["خاکے کا منظر موڈ"],
"74-bX-": ["نمایاں اقتباس ارد گرد کے متن سے الگ نظر آتا ہے۔"],
@@ -505,13 +514,13 @@
"دستاویز کے frontmatter کی توثیق JSON Schema فائلوں سے کریں، جو گلوب کے ذریعے دستاویزات کے مجموعوں تک محدود ہوں۔"
],
"7Bj3x9": ["ناکام"],
- "7EmDc7": ["اسکیم درآمد کریں"],
"7FA2iI": ["بھیجنے کے منتظر تبصرے پڑھے نہیں جا سکے — کچھ نہیں بھیجا گیا۔"],
"7FamGZ": ["سطر پر جائیں"],
"7Fkcej": ["+ ", ["addChildName"], " شامل کریں"],
"7H4UHD": ["<0>#", ["tagName"], "</0> سے ٹیگ شدہ دستاویزات"],
"7IsvrP": ["اپ ڈیٹس دیکھے جا رہے ہیں"],
"7JtSLi": ["راستہ حذف نہیں ہو سکا"],
+ "7O7REc": [["0"], " بحال نہیں کیا جا سکا۔ دوبارہ کوشش کریں۔"],
"7OhaRy": ["سورس کی تلاش"],
"7Ongq0": ["میری AGENTS.md فائل کو 40 ہزار حروف سے کم کر دیں"],
"7OwvEL": ["HTML کا پیش منظر دکھائیں"],
@@ -626,6 +635,8 @@
"8uGMP8": ["پوشیدہ مواد یہاں آتا ہے۔"],
"8vCZcs": ["فائل نہیں کھل سکی۔"],
"8vETh9": ["دکھائیں"],
+ "8x6zk9": [["0"], " ایڈیٹر چھپائیں"],
+ "9-lMCF": [["slot"], " رنگ — ", ["0"]],
"90-wKT": ["OpenKnowledge نے ", ["subject"], " کی تاریخ پڑھی"],
"92rbk2": ["مرر <0>", ["mirrorRef"], "</0> لوڈ ہو رہا ہے"],
"93LBnX": ["ایجنٹس چھپائیں"],
@@ -678,7 +689,6 @@
"9fvog2": ["پیش منظر دستیاب نہیں: ", ["errorDetail"]],
"9i21pa": ["کمٹس خودکار طور پر ہوتے ہیں"],
"9ieZhu": [["path"], " پر نصب — ہٹانے کے لیے کلک کریں"],
- "9j1tqo": ["کلپ بورڈ تک رسائی نہیں ہو سکی — اسکیم نیچے دیے گئے خانے میں ہے۔"],
"9jnjV0": ["مقامی پلیئر کنٹرولز کے ساتھ آڈیو فائل شامل کریں۔"],
"9lso1Y": ["<0>", ["folderPart"], "/</0> فولڈر بناتا ہے"],
"9m4D_h": ["GitHub، کوئی git URL، یا مقامی راستہ۔"],
@@ -715,8 +725,10 @@
],
"AIn2Yv": [["displayName"], " CLI، ", ["hint"]],
"AItsE5": ["اسے وہیں کھولیں"],
+ "AJ7_B2": ["نئی تھیم بنائیں"],
"AKxFtn": [["openedWorktreeCount", "plural", { "one": ["ورک ٹری"], "other": ["ورک ٹریز"] }]],
"ALhMYW": ["ٹرمینل"],
+ "ANFxWn": ["یہ تھیم حذف نہیں کی جا سکی۔ تازہ کر کے دوبارہ کوشش کریں۔"],
"APNlbk": [["0"], " سے باہر نکلیں"],
"AQ-Lfg": ["ٹیمپلیٹس لوڈ نہیں ہو سکے"],
"AQGtjK": [
@@ -851,9 +863,11 @@
"یہ فائل بلٹ اِن ٹیکسٹ ایڈیٹر میں کھولنے کے لیے بہت بڑی ہے (حد 1 MB)۔ اسے کسی اور ایپ میں کھولنے کے لیے نیچے «فائل کھولیں» استعمال کریں۔"
],
"C_cPoW": ["آپ کا GitHub سیشن ختم ہو گیا — پُش کی رسائی کی توثیق کے لیے دوبارہ سائن اِن کریں۔"],
+ "CcaU4i": ["ترامیم فوراً لاگو ہوتی ہیں اور خودکار طور پر اس تھیم میں محفوظ ہو جاتی ہیں۔"],
"ChAtFg": ["آپ کو اس ریپو میں پُش کرنے کی اجازت نہیں"],
"ChMshD": [["appName"], " سے باہر نکلیں"],
"Ck9XRt": ["کلید محفوظ نہیں ہو سکی — براہِ کرم دوبارہ کوشش کریں۔"],
+ "ClII5l": ["اس تھیم کو استعمال کرنے کے لیے اوپر “حسبِ ضرورت” پر سورج یا چاند دبائیں۔"],
"ClTEde": ["منتخب اقتباس کو ایجنٹ پینل میں تیار رکھیں، مزید لکھ کر بھیجنے کے لیے۔"],
"CmeH9S": [["keyName"], " میں خصوصیت شامل کریں"],
"CnOGgs": ["مطابقت پذیری کا موڈ"],
@@ -895,6 +909,9 @@
"DKYW1G": [
"یہ ترتیب ہر مشین کے لیے الگ ہے اور ساتھیوں کے ساتھ مشترک نہیں ہوتی۔ اسے ایک API کلید درکار ہے (نیچے مقرر کریں) الّا یہ کہ آپ کا اینڈ پوائنٹ کوئی مقامی سرور ہو جسے اس کی ضرورت نہ ہو۔"
],
+ "DLIljL": [
+ "تھیم فولڈر اسکین کی حد سے بڑا ہونے کی وجہ سے کچھ محفوظ شدہ تھیمز نہیں دکھائی جا رہیں۔"
+ ],
"DMLE5q": ["MCP کی خودکار مرمت ناکام رہی"],
"DMeaxi": [["0"], " ", ["1"], " ڈاؤن لوڈ ہو رہا ہے…"],
"DNkveC": ["کالم کے اختیارات"],
@@ -907,6 +924,7 @@
"</0> پر موجود ہے۔ آپ کے پاس غیر کمٹ شدہ تبدیلیاں ہیں جو یہاں بدلنے سے روکتی ہیں — اپنی تبدیلیاں محفوظ رکھنے کے لیے اسے کسی ورک ٹری میں کھولیں۔"
],
"DUWgfT": ["GitHub Enterprise Server سے دوبارہ توثیق کریں"],
+ "DUb7Ax": ["متعدد فائلیں اس تھیم کا نام استعمال کرتی ہیں"],
"DVh_Tb": ["ردی کے بعد صفائی نہیں ہو سکی"],
"DWJtEo": ["آگے کیا ہو گا"],
"DXd9LM": ["نیا ورک ٹری"],
@@ -923,6 +941,7 @@
"DhT_PK": ["OpenKnowledge نے ایک اسکل درآمد کی"],
"DiFKSL": ["Markdown فائلیں شمار کی جا رہی ہیں"],
"DiZ3pq": ["آئیکن منتخب کنندہ"],
+ "DmkTrb": ["یہ تھیم بنائی نہیں جا سکی۔ دوبارہ کوشش کریں۔"],
"Dnn2XG": ["خودکار"],
"DpjYd6": ["لنگر انداز متن پر جائیں"],
"DrYM2Z": ["مطابقت پذیری بند"],
@@ -1104,6 +1123,7 @@
"بیان کریں کہ آپ کا کوڈ بیس کیسے کام کرتا ہے تاکہ ساتھی اور AI ایجنٹس اس میں راستہ پا سکیں۔ ڈھانچے، بنیادی حصوں، اور ان سوالات کی دستاویز بندی کے لیے مفید جو نئے معاونین ہمیشہ پوچھتے ہیں۔"
],
"FyW0WO": ["براؤزر میں اجازت دیں"],
+ "FyyIjH": ["تھیم کا نام بہت طویل ہے"],
"G-JBA1": [
"سورس موڈ کے لیے براہِ راست کنکشن درکار ہے — آپ کی ترامیم محفوظ ہیں اور دوبارہ منسلک ہونے پر ظاہر ہو جائیں گی۔"
],
@@ -1143,6 +1163,7 @@
"GQDSBN": ["خاکہ بندی کے آپشنز"],
"GSYWCm": ["دستاویز کا پینل چھپائیں"],
"GUYwCr": ["اطلاع برخاست کریں"],
+ "GUZHkL": ["پیلیٹ کے رنگ غائب ہیں"],
"GUqTzn": ["حریفوں کی تحقیق"],
"GXf9hG": [["repoName"], " کلون کیا جا رہا ہے..."],
"GZzDqc": [
@@ -1216,6 +1237,7 @@
"HTW0Zw": [
"ایک اور مرحلہ: اس پروجیکٹ میں <0>claude</0> چلائیں اور ایک بار OpenKnowledge کو منظور کریں۔"
],
+ "HZ7fEu": ["تھیم کا نام"],
"HbcQYf": [
"کیا ",
["display"],
@@ -1266,6 +1288,7 @@
"IFezUv": ["آڈٹ مکمل نہیں ہو سکا۔ دوبارہ کوشش کریں۔"],
"IInnZo": ["تصادم"],
"IKoTAC": ["بند ہی رکھیں"],
+ "IMLUBh": ["رنگ کی قدر درست نہیں"],
"INp_z6": ["اس ", ["0"], " پر تبصرہ کریں یا AI سے پوچھیں"],
"IO8REi": ["«", ["name"], "» نہیں کھل سکی: ", ["0"]],
"IQPyrD": ["غائب صفحہ — بنانے کے لیے کلک کریں"],
@@ -1277,7 +1300,6 @@
"IX_uXB": ["my-feature"],
"IYciRC": ["رپورٹ کا شکریہ!"],
"IajAbS": ["ابتدائی پیک شامل کریں"],
- "IbTC7z": ["base16 اسکیم چسپاں کریں"],
"If0crP": ["AI ", ["targetDisplayName"], " کے ساتھ کھولیں، ", ["hint"]],
"IgN3LY": ["<0>", ["address"], "</0> میں منتخب متن پر"],
"IgTwLt": ["یہ دستاویز ایڈیٹر میں کھولیں اور گراف سکیڑ دیں۔"],
@@ -1295,6 +1317,7 @@
"Ix0K8o": ["بیرونی URL نوڈز چھپائیں"],
"IxHMdF": ["وہ تبصرہ حذف نہیں ہو سکا۔"],
"IxyZXD": ["اسکرین شاٹ"],
+ "J1XRO3": ["تھیم کے رنگ"],
"J2Mv98": ["نام (مثلاً ", ["login"], ")"],
"J2_JuX": ["کچھ نہیں (", ["0"], " کسی دستاویز سے مماثل نہیں ہو سکتا)"],
"J2eKUI": ["فائل"],
@@ -1322,7 +1345,7 @@
"JOcPqH": ["کسی ریموٹ ریپازٹری کو اس مشین پر لائیں۔"],
"JWsZlx": ["ترمیم کے لیے کوئی پروجیکٹ کھولیں۔"],
"JZ8cO6": ["روشن، تاریک، یا OS کی پیروی۔"],
- "J_bJiH": ["کوئی بلٹ اِن IDE رنگ پیلیٹ منتخب کریں، یا اپنا بنائیں۔"],
+ "JaU1ld": ["تھیم کے نام میں غیر معاون حروف ہیں"],
"JddocZ": ["ہیڈر کالم ٹوگل کریں"],
"Jejur6": ["دستاویز لوڈ نہیں ہو سکی"],
"JfPuv7": [["shareBranch"], " برانچ کا درست نام نہیں ہے۔"],
@@ -1409,6 +1432,7 @@
"KsAPaB": ["یہ برانچ یہاں چیک آؤٹ ہے:"],
"KtACeE": ["طے شدہ: <0>", ["0"], "</0>"],
"KujtjC": ["تلاش"],
+ "Kx881F": [["0"], " بحال کر دیا گیا۔"],
"L-rMC9": ["طے شدہ پر واپس کریں"],
"L1BQTH": [["0"], " ابھی نصب نہیں ہے — اس کا ڈاؤن لوڈ صفحہ کھولا جا رہا ہے۔"],
"L1ZE3M": ["دستاویز کے اعداد و شمار"],
@@ -1596,6 +1620,7 @@
"N55YNr": [
"منتخب کریں کہ اس پروجیکٹ کا OpenKnowledge سیٹ اپ، بشمول اس کے AI ٹول کنکشنز، پروجیکٹ کے ساتھ محفوظ ہو تاکہ ساتھیوں کو بھی مل جائے، یا صرف آپ کے کمپیوٹر پر رہے۔"
],
+ "N6j2JH": [["0"], " میں ترمیم کریں"],
"NBdIgR": ["تبصرہ"],
"NCmYhK": [
"مہارتیں ایجنٹس کو دہرائے جانے والے کام سکھاتی ہیں۔ انہیں ایڈیٹر کے مہارتوں کے سیکشن سے لکھیں اور سنبھالیں؛ ہر مہارت کا تنصیبی مینو طے کرتا ہے کہ وہ کہاں رہے۔ یہ اس پروجیکٹ کے مہارت فولڈرز ہیں۔"
@@ -1802,6 +1827,7 @@
"</0> کا پہلے سے ورک ٹری موجود ہے — یہ اپنی الگ ونڈو میں کھلے گا۔"
],
"QB-moX": ["اسے شیئر کرنے کے لیے اپنے دیگر ایڈیٹرز (Claude Code، Cursor، Codex) میں نصب کریں۔"],
+ "QDErHs": [["slot"], " منتخب کریں — ", ["0"]],
"QDZbvN": [["diffDays"], " دن پہلے"],
"QGWzup": ["OpenKnowledge مہارتیں لوڈ ہو رہی ہیں"],
"QHCx0c": ["بگ رپورٹ کی تاریخ"],
@@ -1832,11 +1858,11 @@
"QlxHAH": ["«", ["semanticResultsLabel"], "» کے نتائج دکھائے جا رہے ہیں"],
"Qpfxa1": [["secs"], "س"],
"QqBQu1": ["لیبل <0>(نظر آنے والا لنک متن)</0>"],
- "Quz_Qu": ["ترامیم براہِ راست لاگو ہوتی ہیں۔ روشن یا تاریک اسکیم سے آتا ہے۔"],
"Qvls7J": ["انجینئرنگ اسپیکس"],
"Qw-7Ie": [
"لکھنے کے لیے ایک سادہ جگہ، ہر موضوع کے لیے ایک فائل اور روزانہ کا جریدہ۔ اگر آپ صرف لکھنا شروع کرنا چاہتے ہیں اور نوٹس کے درمیان روابط کو وقت کے ساتھ بننے دینا چاہتے ہیں تو یہ منتخب کریں۔"
],
+ "QwG_zJ": ["متصادم فائلیں: ", ["0"], "۔"],
"QySH4I": ["پائے گئے OpenKnowledge پروجیکٹس"],
"QyioBP": ["اوپر لے جائیں"],
"QzofTX": [
@@ -1853,6 +1879,7 @@
]
],
"R0jJzV": ["URL، owner/repo چسپاں کریں، یا اپنی ریپوز میں تلاش کریں"],
+ "R30SFt": ["چھوٹے حروف والی .yaml یا .yml ایکسٹینشن استعمال کریں"],
"R3y75Z": ["سورس میں ترمیم کریں"],
"R4OWFD": ["سیکشنز"],
"R65q-K": [
@@ -1863,6 +1890,7 @@
"R9dK63": ["نمونہ تصویر"],
"RDjuBN": ["سیٹ اپ"],
"RDrXh4": ["صارف، پروجیکٹ اور انضمام کی ترتیبات مقرر کریں۔"],
+ "RG3yW6": ["اس تھیم کے لیے نام درج کریں۔"],
"RG4XHV": [["0"], " کا پرامپٹ نقل کریں"],
"RGCCrg": ["شیئر لنک نقل کریں"],
"RGkNeJ": ["کسی ابتدائی پیک کا ابتدائیہ کریں"],
@@ -2033,6 +2061,7 @@
"UEdTEN": ["یتیم"],
"UGeJuP": ["اجازت شدہ اقدار (خالی = کوئی بھی)"],
"UGtPix": ["GitHub کنکشن ختم ہو گیا۔ جاری رکھنے کے لیے دوبارہ منسلک ہوں۔"],
+ "UH0Zqw": ["یہ عام تھیم فائل نہیں ہے"],
"UHwc0P": [
"یہ ",
["boldName"],
@@ -2085,7 +2114,6 @@
],
"Uci-Ph": ["مرتب فہرست"],
"Ud0Pj9": ["<0>مرر کا ماخذ ہٹا دیا گیا۔</0> دستاویز <1>", ["src"], "</1> اب دستیاب نہیں۔"],
- "UeQEbk": ["سینکڑوں اسکیمیں براؤز کریں"],
"UfW9Kr": [
"آپ کے تلاش استفسارات اور مماثل صفحات کا مکمل متن ایمبیڈنگز شمار کرنے کے لیے آپ کے ایمبیڈنگز فراہم کنندہ (طے شدہ طور پر OpenAI) کو بھیجے جاتے ہیں۔"
],
@@ -2177,6 +2205,7 @@
],
"W8vpBM": ["ابتدائی پیک"],
"W9_Bub": ["مقامی تبدیلیاں آنے والی مطابقت پذیری سے ٹکراتی ہیں"],
+ "WBNpt9": ["یہ تھیم پڑھی نہیں جا سکی (", ["0"], ")"],
"WFEbV1": [
"ایڈیٹر میں Markdown کے عام مسائل نشان زد کریں۔ <0>markdownlint<1/></0> سے تقویت یافتہ۔"
],
@@ -2307,6 +2336,7 @@
"Y9c_nf": ["0/0"],
"YBt9YP": ["بیٹا"],
"YC6_wP": [["keyName"], " میں ترمیم کریں"],
+ "YCmS3k": [["0"], " حذف کر دیا گیا۔"],
"YDL7N6": [
"لِنٹ پلگ اِنز — کون سے قاعدے کے خاندان چلتے ہیں اور ہر قاعدے کی ترتیبات — «یہ پروجیکٹ ← پلگ اِنز» کے تحت اپنے الگ ٹیب میں ترتیب دیے جاتے ہیں۔"
],
@@ -2332,6 +2362,7 @@
"Y_kL7X": ["ایڈیٹر کی شکل اور رویہ اپنی مرضی کے مطابق بنائیں۔"],
"Ya3PlJ": ["اجازت درکار ہے"],
"YaeyFh": ["کھینچنے سے آپ کی مقامی فائلوں میں غیر کمٹ شدہ ترامیم مٹ سکتی ہیں۔"],
+ "Yb82LN": ["ID: ", ["0"]],
"Yea-K5": ["اس نقطے پر بحال کریں"],
"Yi0VMG": [["keyName"], " اپ لوڈ کریں"],
"YjMLg2": [
@@ -2405,6 +2436,7 @@
"ZYtq3m": [
"اپنے استعمال کے AI ٹولز کو اسی مخصوص پروجیکٹ سے منسلک کریں۔ یہ فائلیں پروجیکٹ کے فولڈر میں رہتی ہیں، اس لیے جو بھی اسے کھولے اسے وہی سیٹ اپ ملتا ہے۔"
],
+ "Z_nNa2": ["اپنی تھیم کا نام رکھیں"],
"ZatAO_": ["لنکس کے پیش منظر فعال نہیں ہو سکے — ", ["detail"]],
"Zf0w-R": [
"کسی تحریر کو خام خیال سے مکمل مسودے تک اور پھر شیئر کرنے کے قابل چیز تک لے جائیں۔ بلاگ پوسٹس، مضامین، یا کسی بھی ایسی چیز کے لیے مفید جسے آپ واضح مراحل سے گزارنا چاہتے ہیں۔"
@@ -2440,11 +2472,13 @@
["currentLabel"],
"</1> پر ہیں۔"
],
+ "_DwR-n": ["بنائی جا رہی ہے…"],
"_FLBbi": [["sizeText"], " · رازداری کی معلومات چھپا دی گئیں · کریش ڈمپ نہیں چھپایا گیا"],
"_GRWOJ": ["ایمبیڈنگز فراہم کنندہ بدلیں؟"],
"_HgF9q": ["ترتیب کا معیار"],
"_IGfXZ": ["پچھلی بار OpenKnowledge غیر متوقع طور پر بند ہو گیا تھا۔"],
"_IX_7x": ["دیگر"],
+ "_IfSZn": ["اس نام کی ایک محفوظ شدہ تھیم پہلے سے موجود ہے۔"],
"_JOGC0": ["رائے بھیجیں…"],
"_LczaQ": ["مسترد — ", ["optionName"]],
"_NWEid": ["اسکیما فائلیں راستے سے تلاش کریں"],
@@ -2568,7 +2602,6 @@
"b6Fgpe": ["ہر پیک آپ کے پروجیکٹ کا ڈھانچہ تیار شدہ فولڈرز اور ٹیمپلیٹس سے بناتا ہے۔"],
"bBE5tC": ["اس مشین پر پایا گیا"],
"bBcFK_": [["keyName"], " کے لیے ایموجی منتخب کنندہ کھولیں"],
- "bD2SLZ": ["اسکیم base16 YAML کے طور پر نقل ہو گئی"],
"bD8I7O": ["مکمل"],
"bEp7UY": ["ڈیسک ٹاپ برج سے منسلک نہیں"],
"bF22t6": ["فیلڈ ", ["field"], " ہٹائیں"],
@@ -2632,6 +2665,7 @@
"cIptmH": ["Claude Desktop App میں"],
"cKjLuT": ["(پروجیکٹ + صارف)"],
"cLP0Lf": ["ریموٹ مہارت کا ماخذ"],
+ "cLn264": ["یہ تھیم فائل پڑھی نہیں جا سکی"],
"cMMb6H": [["imported"], " نصب ہو گئیں، مگر ", ["failed"], " ناکام رہیں: ", ["failedNames"]],
"cN1Gcp": [["shareBranch"], " کے لیے ورک ٹری فولڈر پہلے سے موجود ہے۔"],
"cOJyVj": ["تھیمز بند کریں"],
@@ -2645,6 +2679,7 @@
"cU-seF": ["کرسر والے بلاک کے Markdown سورس پر جائیں، بیچ میں اور نمایاں۔"],
"cUK8lW": [["conflictCount", "plural", { "one": ["#", " تصادم"], "other": ["#", " تصادمات"] }]],
"cUk6TF": ["مطابقت پذیری ناکام رہی — تفصیلات کے لیے سرور کے لاگز دیکھیں۔"],
+ "cUt8yN": ["تبدیلیاں خودکار طور پر محفوظ ہو جاتی ہیں۔"],
"cV7LOw": ["ٹیم وکی"],
"cVKnqL": ["بھیجنے کے منتظر تبصرے پڑھے نہیں جا سکے: ", ["0"]],
"cZGNlb": ["ایک اور پیٹرن شامل کریں"],
@@ -2685,6 +2720,7 @@
"cstC0z": ["پیٹرن (ریگیکس)"],
"ct2kv5": [["pageTarget"], " میں کوئی عنوان نہیں"],
"cuA8QW": ["اسپیکس منظم کریں"],
+ "cuHhjo": ["بنائیں اور ترمیم کریں"],
"d-GtJt": ["ماخذ Markdown میں دیکھیں"],
"d1JjXo": [
"برانچ <0>",
@@ -2795,6 +2831,7 @@
"Git اس فولڈر کو ٹریک نہیں کر سکتا — یہ خالی ہے یا اس میں صرف نظر انداز شدہ فائلیں ہیں۔ جب تک آپ کوئی ٹریک شدہ دستاویز شامل نہ کریں لنک کام نہیں کرے گا۔"
],
"eiUA4k": [["count", "plural", { "one": ["#", " تبصرہ"], "other": ["#", " تبصرے"] }]],
+ "ekSPiP": [["0"], " پہلے ہی حذف ہو چکا تھا۔"],
"el2KyL": ["اس پروجیکٹ میں Slidev مل گیا۔ ڈیک پروجیکٹ کا ورژن استعمال کریں گے۔"],
"emMrXQ": ["سرور نے بگڑا ہوا ڈپلیکیٹ جواب لوٹایا۔"],
"emgiet": ["مستند مواد؛ جہاں بھی اس کا حوالہ ہو وہاں لفظ بہ لفظ منعکس ہوتا ہے۔"],
@@ -2863,6 +2900,7 @@
"fwrPh4": ["براہِ کرم درست ای میل درج کریں۔"],
"fxJk_6": ["<0>مزید کچھ کہنا ہے؟</0> <1/> پر لکھیں اور اپنا حوالہ ذکر کریں۔"],
"fxbCNQ": ["مطابق ہو گیا۔ لنک تازہ ترین ہے۔"],
+ "g12y1g": ["YAML درست نہیں"],
"g1ZTh_": [
[
"count",
@@ -2954,7 +2992,6 @@
"یہ دستاویز ابھی GitHub سے مطابق نہیں ہوئی۔ لنک اگلی مطابقت پذیری کے بعد کام کرے گا۔"
],
"gyHDWC": ["AI سے سب ٹھیک کریں (", ["count"], ")"],
- "gyWc8_": ["نمایاں رنگ"],
"h-AdvS": ["فولڈرز اور ٹیمپلیٹس یہاں پہلے سے موجود ہیں، اس لیے شامل کرنے کو کچھ نہیں۔"],
"h06R3C": ["کسی صفحے میں جانے والے گراف لنکس کی کمی نہیں۔"],
"h16FyT": ["فہرستیں"],
@@ -2975,6 +3012,7 @@
"hDEaQu": ["OpenKnowledge کو اپنے استعمال کے دیگر ٹولز سے منسلک کریں۔"],
"hDKtoF": [["diffHrs"], " گھنٹے پہلے"],
"hDoLrm": [["projectName"], " کو حالیہ پروجیکٹس سے ہٹائیں"],
+ "hFmYGU": ["منسلک تھیم فائلوں کی معاونت نہیں ہے"],
"hGmuTc": ["#", ["tagDocsName"], " سے ٹیگ شدہ دستاویزات"],
"hHMv6l": ["بلاک حذف کریں"],
"hHR0tt": [["0"], " کے ساتھ نئی چیٹ"],
@@ -2988,6 +3026,7 @@
"hSBIG-": ["عنوان، تفصیل، ٹیگز — کوئی بھی چیز جو اس فولڈر کو بیان کرے۔"],
"hSySVc": ["تنصیب کی منتقلی ناکام: ", ["msg"]],
"hVAkI8": ["ٹرمینل میں چلائیں"],
+ "hVzt9x": ["محفوظ شدہ تھیمز لوڈ نہیں ہو سکیں۔ آخری دستیاب تھیم فہرست اب بھی دکھائی جا رہی ہے۔"],
"hXUWyd": ["قدر درکار ہے"],
"hXbSxc": ["اثاثہ: ", ["title"]],
"hY8pka": ["اگلا موقع منتخب کریں"],
@@ -2997,6 +3036,7 @@
"haHgQj": ["نسبتی راستہ نقل ہو گیا"],
"habOU_": ["خودکار منظوری کی ترتیب تازہ نہیں ہو سکی — ", ["detail"]],
"he3ygx": ["نقل کریں"],
+ "hgF0al": ["فعال روشن موڈ کے لیے ", ["0"], " استعمال کریں"],
"hgtsat": [["file"], " حذف نہیں ہو سکی"],
"hh4mVC": ["AI سے ", ["flatId"], " ٹھیک کرنے کو کہیں"],
"hhI__i": ["کیا آپ واقعی {name} اور اس کا مواد حذف کرنا چاہتے ہیں؟"],
@@ -3239,6 +3279,7 @@
]
],
"k_pade": ["کنفیگ اب مشترکہ ہے۔ اپنی ٹیم کے ساتھ شیئر کرنے کے لیے OK کی فائلیں کمٹ کریں۔"],
+ "k_tFzX": ["تھیم کا نام غائب ہے"],
"k_yIIc": ["یہاں بنے گا: <0>", ["targetPreview"], "</0>"],
"ka6Eke": ["ڈسک پر فائل کھولیں"],
"kdzzOK": [
@@ -3252,6 +3293,7 @@
"khCa4M": ["اس پروجیکٹ کے کوڈنگ ایجنٹس کو OpenKnowledge کے ذریعے پڑھنا اور لکھنا سکھاتا ہے۔"],
"kj9pAE": ["صفحہ بنایا جا رہا ہے"],
"kknhfj": ["کوئی تبدیلی نہیں"],
+ "kkux8f": [["0"], " حذف نہیں کیا جا سکا۔ دوبارہ کوشش کریں۔"],
"klPS-L": ["اصل فائل — اس ایجنٹ کی ترامیم سے پہلے۔"],
"kmKqZg": ["کلسٹرز"],
"knjOzA": ["ٹیگ کی قدر"],
@@ -3265,6 +3307,7 @@
"kwLcuN": [
"اپنے استعمال کے AI ٹولز کو اپنے پروجیکٹس پڑھنے اور تازہ کرنے کی رسائی دیں۔ نیچے سے منتخب کریں کہ کیا ترتیب دینا ہے، اور اسے کسی بھی وقت ترتیبات > AI ٹولز اور CLI میں بدلیں۔"
],
+ "kwNS82": ["فائل درست کیے جانے تک یہ تھیم استعمال نہیں کی جا سکتی۔"],
"ky9Tuc": [["0"], " کا سورس ترمیم کریں"],
"kzpkcn": ["وہ ترمیم محفوظ نہیں ہو سکی۔"],
"l-4nnw": ["قواعد تلاش کریں"],
@@ -3312,6 +3355,7 @@
"مہارت کے اندر کا راستہ — کوئی بھی فولڈر چلتا ہے (مثلاً references/notes.md)۔ راستے میں شامل فولڈرز آپ کے لیے بنا دیے جاتے ہیں۔"
],
"lPzyrU": ["تمام حصے حل ہو گئے"],
+ "lS83Sg": ["کلپ بورڈ تک رسائی نہیں ہو سکی۔"],
"lScd1O": ["Slidev ڈیک صرف OpenKnowledge ڈیسک ٹاپ ایپ میں کھلتے ہیں۔"],
"lUtr1r": [["1"], " میں سے ", ["0"], " منتخب"],
"lVWEIL": [["total"], " میں سے ", ["embedded"], " صفحات اشاریہ بند ہو گئے۔"],
@@ -3462,6 +3506,7 @@
"nNYV3Y": ["اور ", ["remaining"], " مزید"],
"nOEDQs": ["مطابقت پذیری کا موڈ تازہ نہیں ہو سکا — ", ["detail"]],
"nP-KFo": ["نئی ", ["0"], " گفتگو"],
+ "nTM8ab": ["اس کے رنگوں میں ترمیم سے پہلے اسے نام دیں۔"],
"nTwL53": ["کسی دستاویز کا URL شیئر کرنے کے لیے اسے کھولیں۔"],
"nUNZL4": [["0"], " سے پوچھیں"],
"nWv1ja": ["چھپی ہوئی فائلیں ترتیبات ← نظر انداز کرنے کے پیٹرنز میں سنبھالیں۔"],
@@ -3506,6 +3551,7 @@
"Git کی شناخت مقرر نہیں — کمٹس طے شدہ مصنف استعمال کرتے ہیں۔ اپنی شناخت مقرر کریں تاکہ ساتھی آپ کا نام دیکھیں۔"
],
"nrXDdR": ["فیلڈ کا نام"],
+ "nsM-_m": ["سینکڑوں تھیمز دیکھیں"],
"nsUDL8": [["1"], " میں سے ", ["0"], " پروجیکٹ منتخب"],
"nskygk": ["ایجنٹ منتخب کریں"],
"nwtY4N": ["کچھ غلط ہو گیا"],
@@ -3544,6 +3590,7 @@
"پروجیکٹ کے پلگ اِنز آپ کے پروجیکٹ کا تصنیفی معیار ہیں — انہیں یہاں فعال یا بند کریں۔ یہ انتخاب config.yml میں کمٹ ہوتا ہے اور git کے ذریعے ہر ساتھی کے ساتھ مشترک ہوتا ہے۔ ہر فعال پلگ اِن کو ترتیبات کے سائیڈ بار میں پلگ اِنز کے تحت اپنا صفحہ ملتا ہے۔"
],
"oYepHb": ["اس پروجیکٹ کے لیے ٹرمینل بند ہے۔ یہاں کمانڈز چلانے کے لیے اسے دوبارہ فعال کریں۔"],
+ "oZUYMv": [["0"], " بحال نہیں کیا جا سکا۔ یہ نام پہلے سے استعمال ہو رہا ہے۔"],
"of3tF-": [
"آپ نے ~/Documents منتخب کیا۔ OpenKnowledge اس کے تحت ہر Markdown فائل اشاریہ بند کرے گا۔ اگر آپ صرف کوئی ذیلی فولڈر سنبھالنا چاہتے ہیں تو چھوٹا دائرہ کار منتخب کریں۔"
],
@@ -3574,6 +3621,7 @@
["0"],
" مقرر کیا تھا — اس کے بعد OK سے باہر کسی چیز نے اسے بدل دیا۔ دکھائی گئی حالت وہی ہے جو اب ڈسک پر ہے؛ آپ کا اگلا سِم لنک یا لنک ختم کرنا فیصلہ کن ہو گا۔"
],
+ "p7Utw8": ["یہ base16 تھیم نہیں ہے"],
"p98xmP": ["لاگو ہوتا ہے"],
"p9sdCy": ["نظر انداز کرنے کا نیا پیٹرن"],
"pA16WG": ["اس پروجیکٹ کا کوئی GitHub ریموٹ نہیں۔"],
@@ -3656,6 +3704,7 @@
"qIJIrD": ["جانچا جا رہا ہے"],
"qJSo0_": ["نقول اور سِم لنکس میں کیا فرق ہے؟"],
"qNOgUu": ["ماخذ پر ہونے والی ترامیم یہاں پہنچتی ہیں — نقل و چسپاں کا کوئی فرق نہیں۔"],
+ "qQi_um": ["تھیم درآمد ہو گئی۔"],
"qRZh7J": ["Tab کو سورس ایڈیٹر سے باہر نکلنے دیں، اندروں کھسکانے کے بجائے۔"],
"qSKu2v": ["سورس میں نیویگیشن اور انتخاب"],
"qSxaOz": ["ان کا حذف قبول کریں"],
@@ -3693,6 +3742,7 @@
"qo4zCg": ["راستے میں الٹی سلیش نہیں ہو سکتی"],
"qpQwGC": ["بیان کریں کہ آپ کس چیز پر کام کر رہے ہیں اور ایجنٹ اسے آپ کے لیے ترتیب دے دے گا۔"],
"qribBG": ["اسکیما ", ["deleteTarget"]],
+ "qtnmEX": ["درست تھیم نام درج کریں۔"],
"qvWGzP": ["سب سکیڑیں"],
"qyLmWw": ["سورس ایڈیٹر کا تلاش پینل"],
"r-OJYm": ["برانچ کا درست نام درج کریں (کوئی خالی جگہ نہیں، شروع میں نقطہ نہیں، «..» نہیں)۔"],
@@ -3712,6 +3762,7 @@
"rFmBG3": ["رنگ تھیم"],
"rFw02Q": [["keyName"], " اپ لوڈ ہو رہا ہے"],
"rJVoVX": ["سورس کے تلاش نتائج"],
+ "rJm8-2": ["کلپ بورڈ تک رسائی نہیں ہو سکی — تھیم نیچے موجود خانے میں ہے۔"],
"rNifQd": ["خصوصیت ہٹائیں"],
"rQAQus": ["ٹیمپلیٹ محفوظ نہیں ہو سکا: ", ["error"]],
"rQRrkB": ["کل"],
@@ -3782,7 +3833,6 @@
"sJK6pq": ["اجازت نہیں"],
"sJWhgo": ["نامعلوم جزو: ", ["unregisteredComponentName"]],
"sKEgGd": ["چیٹ میں بھیجیں"],
- "sKMhJz": ["پس منظر سے پیش منظر تک"],
"sLcbHt": [
"ان میں سے کسی ایک میں کوئی دوسرا فولڈر سِم لنک کریں تاکہ دونوں ایجنٹس ایک ہی مہارتیں پڑھیں؛ کسی فولڈر کی مہارتیں دوبارہ ایک ایک کر کے سنبھالنے کے لیے لنک ختم کریں۔"
],
@@ -3952,6 +4002,7 @@
"ur2XSb": ["بصری ایڈیٹر"],
"uuoHOU": ["کمانڈ ناکام ہو گئی۔"],
"uyJsf6": ["تعارف"],
+ "uyOQ4e": ["تھیم base16 YAML کے طور پر کاپی ہو گئی"],
"uynXup": [["tokens", "plural", { "one": ["ٹوکن"], "other": ["ٹوکنز"] }]],
"v-h2hx": [["targetGitPath"], " حذف کریں"],
"v2ZW0K": ["ٹرمینل فعال کریں"],
@@ -4073,6 +4124,7 @@
],
"wZPUJx": ["«", ["0"], "»"],
"w_Sphq": ["منسلکات"],
+ "wbMbiY": [["selectedSlot"], " کاپی ہو گیا"],
"wbpoGe": ["OpenKnowledge اسکل انسٹال نہیں ہو سکی: ", ["message"]],
"wbv9xO": ["نیا پروجیکٹ بنائیں"],
"wc54KE": ["آزمایا جا رہا ہے…"],
@@ -4261,6 +4313,7 @@
"zL0LPh": ["متن کے فیلڈز سے باہر عالمی"],
"zLGXna": ["کوئی ابتدائی پیک دستیاب نہیں۔"],
"zLak8b": ["نیا ٹیب فعال کریں"],
+ "zMmwh4": ["ایک تھیم منتخب کریں یا اپنی تھیم بنائیں۔"],
"zQBg2C": ["موجودہ بلاک کو ایک درجہ اوپر یا نیچے لے جائیں۔"],
"zXj1rA": ["معنی کے لحاظ سے تلاش کریں"],
"zYp8Sr": [
diff --git a/packages/app/src/locales/ur/messages.po b/packages/app/src/locales/ur/messages.po
index c10269a1b..1abec8a4a 100644
--- a/packages/app/src/locales/ur/messages.po
+++ b/packages/app/src/locales/ur/messages.po
@@ -332,6 +332,11 @@ msgstr "کل {0}"
msgid "{0} version {1}"
msgstr "{0} ورژن {1}"
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "{0} was already deleted."
+msgstr "{0} پہلے ہی حذف ہو چکا تھا۔"
+
#. placeholder {0}: activeData.label
#: src/components/EditorWorkspace.tsx
msgid "{0} was not moved."
@@ -777,6 +782,11 @@ msgstr "{sizeText} · رازداری کی معلومات چھپا دی گئیں
msgid "{skillCount, plural, one {skill} other {skills}}"
msgstr "{skillCount, plural, one {مہارت} other {مہارتیں}}"
+#. placeholder {0}: BASE16_SLOT_ROLES[slot]
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "{slot} color — {0}"
+msgstr "{slot} رنگ — {0}"
+
#: src/components/settings/CustomThemeEditor.tsx
msgid "{slot} hex value"
msgstr "{slot} کی ہیکس قدر"
@@ -1044,6 +1054,10 @@ msgstr "ایک مطلوبہ git ٹول"
msgid "A reusable starting point for new documents in this folder."
msgstr "اس فولڈر میں نئی دستاویزات کے لیے دوبارہ استعمال ہونے والا نقطۂ آغاز۔"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "A saved theme already uses this name."
+msgstr "اس نام کی ایک محفوظ شدہ تھیم پہلے سے موجود ہے۔"
+
#: src/components/TemplateForm.tsx
msgid "A short line shown under the title in the template list."
msgstr "ٹیمپلیٹ کی فہرست میں عنوان کے نیچے دکھائی جانے والی مختصر سطر۔"
@@ -1100,10 +1114,6 @@ msgstr "اوپر"
msgid "absent"
msgstr "غیر موجود"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Accents"
-msgstr "نمایاں رنگ"
-
#: src/components/DiffView.tsx
msgid "Accept"
msgstr "قبول کریں"
@@ -1783,10 +1793,6 @@ msgstr "واپس"
msgid "Back to document view"
msgstr "دستاویز کے منظر پر واپس"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Background to foreground"
-msgstr "پس منظر سے پیش منظر تک"
-
#: src/components/LinksPanel.tsx
msgid "Backlinks"
msgstr "بیک لنکس"
@@ -1931,8 +1937,8 @@ msgid "Browse folder"
msgstr "فولڈر براؤز کریں"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Browse hundreds of schemes"
-msgstr "سینکڑوں اسکیمیں براؤز کریں"
+msgid "Browse hundreds of themes"
+msgstr "سینکڑوں تھیمز دیکھیں"
#: src/components/ImportSkillDialog.tsx
msgid "Browse or upload a skill for this project."
@@ -2051,6 +2057,7 @@ msgstr "یہ راستہ شیئر نہیں کیا جا سکتا۔"
#: src/components/ReportBugDialogBody.tsx
#: src/components/SeedDialog.tsx
#: src/components/settings/LinkPreviewsSection.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/settings/SearchSection.tsx
#: src/components/ShareBranchSwitchDialog.tsx
#: src/components/ShareReceiveDialog.tsx
@@ -2106,6 +2113,18 @@ msgstr "باہر تبدیل ہوا"
msgid "Changed outside OK since it last wrote here — the state shown is what's on disk now"
msgstr "آخری بار یہاں لکھنے کے بعد OK سے باہر تبدیل ہوا — دکھائی گئی حالت وہی ہے جو اب ڈسک پر ہے"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes save automatically to this theme."
+msgstr "تبدیلیاں خودکار طور پر اس تھیم میں محفوظ ہو جاتی ہیں۔"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes save automatically."
+msgstr "تبدیلیاں خودکار طور پر محفوظ ہو جاتی ہیں۔"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes saved automatically."
+msgstr "تبدیلیاں خودکار طور پر محفوظ ہو گئیں۔"
+
#: src/components/command-palette-commands.ts
msgid "Check for updates"
msgstr "اپ ڈیٹس دیکھیں"
@@ -2703,6 +2722,11 @@ msgstr "تصادم"
msgid "Conflicted files"
msgstr "متضاد فائلیں"
+#. placeholder {0}: warning.conflictingFilenames.join(', ')
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Conflicting files: {0}."
+msgstr "متصادم فائلیں: {0}۔"
+
#: src/components/ConflictsSection.tsx
msgid "Conflicts"
msgstr "تنازعات"
@@ -2895,6 +2919,10 @@ msgstr "تبدیل کیا جا رہا ہے..."
msgid "Copied"
msgstr "نقل ہو گیا"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Copied {selectedSlot}"
+msgstr "{selectedSlot} کاپی ہو گیا"
+
#: src/components/EditorTabTargetMenuItems.tsx
#: src/components/FileSidebar.tsx
#: src/components/FileTree.tsx
@@ -2932,6 +2960,7 @@ msgstr "نقل"
#: src/components/CopyButton.tsx
#: src/components/empty-state/CopyablePromptList.tsx
#: src/components/InstallInClaudeDesktopDialog.tsx
+#: src/components/settings/CustomThemeEditor.tsx
#: src/lib/native-menu-catalog.ts
msgid "Copy"
msgstr "نقل کریں"
@@ -3216,6 +3245,15 @@ msgstr "رپورٹ نہیں بن سکی"
msgid "Couldn't create the worktree. Try a different name."
msgstr "ورک ٹری نہیں بن سکا۔ کوئی مختلف نام آزمائیں۔"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t create this theme. Try again."
+msgstr "یہ تھیم بنائی نہیں جا سکی۔ دوبارہ کوشش کریں۔"
+
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t delete {0}. Try again."
+msgstr "{0} حذف نہیں کیا جا سکا۔ دوبارہ کوشش کریں۔"
+
#. placeholder {0}: result.error
#: src/components/SkillFileDeleteDialog.tsx
msgid "Couldn't delete file: {0}"
@@ -3233,6 +3271,10 @@ msgstr "ٹیمپلیٹ حذف نہیں ہو سکا: {error}"
msgid "Couldn't delete that comment."
msgstr "وہ تبصرہ حذف نہیں ہو سکا۔"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t delete this theme. Refresh and try again."
+msgstr "یہ تھیم حذف نہیں کی جا سکی۔ تازہ کر کے دوبارہ کوشش کریں۔"
+
#: src/components/settings/AccountSection.tsx
msgid "Couldn't disconnect — please try again."
msgstr "منقطع نہیں ہو سکا — براہِ کرم دوبارہ کوشش کریں۔"
@@ -3396,8 +3438,12 @@ msgid "Couldn't reach the agent registry."
msgstr "ایجنٹ رجسٹری تک رسائی نہیں ہو سکی۔"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Couldn’t reach the clipboard — the scheme is in the box below."
-msgstr "کلپ بورڈ تک رسائی نہیں ہو سکی — اسکیم نیچے دیے گئے خانے میں ہے۔"
+msgid "Couldn’t reach the clipboard — the theme is in the box below."
+msgstr "کلپ بورڈ تک رسائی نہیں ہو سکی — تھیم نیچے موجود خانے میں ہے۔"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Couldn’t reach the clipboard."
+msgstr "کلپ بورڈ تک رسائی نہیں ہو سکی۔"
#: src/components/CommandPalette.tsx
msgid "Couldn't reach the embeddings provider — retry"
@@ -3424,6 +3470,11 @@ msgstr "بھیجنے کے منتظر تبصرے پڑھے نہیں جا سکے
msgid "Couldn't read the comments waiting to send: {0}"
msgstr "بھیجنے کے منتظر تبصرے پڑھے نہیں جا سکے: {0}"
+#. placeholder {0}: warning.code
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t read this theme ({0})"
+msgstr "یہ تھیم پڑھی نہیں جا سکی ({0})"
+
#: src/components/EditorActivityPool.tsx
msgid "Couldn't reconnect after server restart"
msgstr "سرور دوبارہ چلنے کے بعد دوبارہ منسلک نہیں ہو سکا"
@@ -3472,6 +3523,16 @@ msgstr "سرور خودکار طور پر دوبارہ نہیں چل سکا۔ ٹ
msgid "Couldn't restart the server. Try `ok start` in this folder."
msgstr "سرور دوبارہ نہیں چل سکا۔ اس فولڈر میں `ok start` آزمائیں۔"
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t restore {0}. That name is already in use."
+msgstr "{0} بحال نہیں کیا جا سکا۔ یہ نام پہلے سے استعمال ہو رہا ہے۔"
+
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t restore {0}. Try again."
+msgstr "{0} بحال نہیں کیا جا سکا۔ دوبارہ کوشش کریں۔"
+
#. placeholder {0}: resumeError.message
#: src/components/acp/ThreadView.tsx
msgid "Couldn't resume this chat: {0}"
@@ -3481,6 +3542,10 @@ msgstr "یہ چیٹ دوبارہ شروع نہیں ہو سکی: {0}"
msgid "Couldn't run the test. Check that OpenKnowledge is still running."
msgstr "ٹیسٹ نہیں چل سکا۔ دیکھیں کہ OpenKnowledge اب بھی چل رہا ہے۔"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Couldn’t save changes. Try editing a color again."
+msgstr "تبدیلیاں محفوظ نہیں ہو سکیں۔ کسی رنگ میں دوبارہ ترمیم کر کے دیکھیں۔"
+
#: src/components/TemplateForm.tsx
msgid "Couldn't save template: {error}"
msgstr "ٹیمپلیٹ محفوظ نہیں ہو سکا: {error}"
@@ -3599,6 +3664,10 @@ msgstr "کریش ڈمپ"
msgid "Create"
msgstr "بنائیں"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Create & edit"
+msgstr "بنائیں اور ترمیم کریں"
+
#: src/components/TemplateRow.tsx
msgid "Create a document from {label}"
msgstr "{label} سے دستاویز بنائیں"
@@ -3670,6 +3739,10 @@ msgstr "نیا پروجیکٹ بنائیں"
msgid "Create new tag #{tagValue}"
msgstr "نیا ٹیگ #{tagValue} بنائیں"
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Create new theme"
+msgstr "نئی تھیم بنائیں"
+
#: src/components/GraphPanel.tsx
#: src/components/ProblemsPanel.tsx
#: src/editor/extensions/InternalLinkPropPanel.tsx
@@ -3768,6 +3841,10 @@ msgstr "صفحہ بنایا جا رہا ہے: {linkTitle}۔"
msgid "Creating..."
msgstr "بنایا جا رہا ہے..."
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Creating…"
+msgstr "بنائی جا رہی ہے…"
+
#: src/components/RecentProjectsMenu.tsx
msgid "Current"
msgstr "موجودہ"
@@ -3840,8 +3917,10 @@ msgstr "طے شدہ: <0>{0}</0>"
msgid "Delete"
msgstr "حذف کریں"
+#. placeholder {0}: theme.label
#. placeholder {0}: thread.title
#: src/components/acp/ThreadHistoryMenu.tsx
+#: src/components/settings/ColorThemePicker.tsx
msgid "Delete {0}"
msgstr "{0} حذف کریں"
@@ -3921,6 +4000,11 @@ msgstr "یہ چیٹ حذف کریں؟"
msgid "Delete this comment"
msgstr "یہ تبصرہ حذف کریں"
+#. placeholder {0}: deletedTheme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Deleted {0}."
+msgstr "{0} حذف کر دیا گیا۔"
+
#: src/components/settings/LintingSection.tsx
msgid "Deleted {file}"
msgstr "{file} حذف ہو گئی"
@@ -4239,6 +4323,7 @@ msgstr "مکمل"
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/PublishToGitHubDialog.tsx
#: src/components/ReportBugDialogBody.tsx
+#: src/components/settings/CustomThemeEditor.tsx
#: src/editor/extensions/JsxComponentView.tsx
#: src/editor/extensions/JsxInlineView.tsx
#: src/editor/extensions/MathInlineView.tsx
@@ -4373,6 +4458,11 @@ msgstr "ہر منتخب ٹول کو ایک OpenKnowledge MCP اندراج ملت
msgid "Edit"
msgstr "ترمیم"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Edit {0}"
+msgstr "{0} میں ترمیم کریں"
+
#. placeholder {0}: descriptor.displayName ?? descriptor.name
#: src/editor/extensions/JsxComponentView.tsx
msgid "Edit {0} source"
@@ -4446,6 +4536,11 @@ msgstr "ٹیمپلیٹ میں ترمیم کی"
msgid "editing [[{realCurrentDoc}]]"
msgstr "[[{realCurrentDoc}]] میں ترمیم کر رہا ہے"
+#. placeholder {0}: scheme.name
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Editing {0}"
+msgstr "{0} میں ترمیم ہو رہی ہے"
+
#: src/components/SkillEditBanner.tsx
msgid "Editing {boldName} in place. Changes save straight to your editor's copy."
msgstr "{boldName} میں اسی جگہ ترمیم ہو رہی ہے۔ تبدیلیاں سیدھی آپ کے ایڈیٹر کی نقل میں محفوظ ہوتی ہیں۔"
@@ -4475,8 +4570,12 @@ msgid "Editor status bar"
msgstr "ایڈیٹر کی حالت کا بار"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Edits apply live. Light or dark comes from the scheme."
-msgstr "ترامیم براہِ راست لاگو ہوتی ہیں۔ روشن یا تاریک اسکیم سے آتا ہے۔"
+msgid "Edits apply live and save automatically to this theme."
+msgstr "ترامیم فوراً لاگو ہوتی ہیں اور خودکار طور پر اس تھیم میں محفوظ ہو جاتی ہیں۔"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Edits apply live. Light or dark comes from the theme."
+msgstr "ترامیم فوراً لاگو ہوتی ہیں۔ روشن یا تاریک تھیم سے طے ہوتا ہے۔"
#: src/editor/slash-command/component-items.tsx
msgid "Edits at the source land here — no copy-paste drift."
@@ -4647,6 +4746,10 @@ msgstr "#1A2B3C جیسی 6 ہندسوں کی ہیکس قدر درج کریں"
msgid "Enter a folder name (e.g. brain)."
msgstr "فولڈر کا نام درج کریں (مثلاً brain)۔"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Enter a name for this theme."
+msgstr "اس تھیم کے لیے نام درج کریں۔"
+
#: src/components/CreateProjectDialog.tsx
msgid "Enter a project name"
msgstr "پروجیکٹ کا نام درج کریں"
@@ -4663,6 +4766,10 @@ msgstr "اس ٹیمپلیٹ کے لیے عنوان درج کریں۔"
msgid "Enter a valid branch name (no spaces, no leading dot, no \"..\")."
msgstr "برانچ کا درست نام درج کریں (کوئی خالی جگہ نہیں، شروع میں نقطہ نہیں، «..» نہیں)۔"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Enter a valid theme name."
+msgstr "درست تھیم نام درج کریں۔"
+
#: src/components/settings/SearchSection.tsx
msgid "Enter a valid URL (for example https://api.openai.com/v1)."
msgstr "درست URL درج کریں (مثلاً https://api.openai.com/v1)۔"
@@ -5555,6 +5662,10 @@ msgstr "GitHub کا سائن اِن غائب یا میعاد ختم ہے۔ مط
msgid "GitHub, a git URL, or a local path."
msgstr "GitHub، کوئی git URL، یا مقامی راستہ۔"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Give it a name before editing its colors."
+msgstr "اس کے رنگوں میں ترمیم سے پہلے اسے نام دیں۔"
+
#: src/components/settings/AiToolsSection.tsx
msgid "Give the AI tools you use access to read and update your projects. Checking a box sets it up right away; unchecking removes it."
msgstr "اپنے استعمال کے AI ٹولز کو اپنے پروجیکٹس پڑھنے اور تازہ کرنے کی رسائی دیں۔ خانہ نشان زد کرنا اسے فوراً ترتیب دے دیتا ہے؛ نشان ہٹانا اسے ہٹا دیتا ہے۔"
@@ -5734,6 +5845,11 @@ msgstr "چھپا ہوا فولڈر “{basename}”"
msgid "Hide"
msgstr "چھپائیں"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Hide {0} editor"
+msgstr "{0} ایڈیٹر چھپائیں"
+
#: src/lib/native-menu-catalog.ts
msgid "Hide {appName}"
msgstr "{appName} چھپائیں"
@@ -5939,6 +6055,11 @@ msgstr "میں کسی دوسرے ٹول پر جا رہا ہوں"
msgid "Icon picker"
msgstr "آئیکن منتخب کنندہ"
+#. placeholder {0}: createIdentity.stem
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "ID: {0}"
+msgstr "ID: {0}"
+
#: src/components/AutoSyncEnableWarning.tsx
msgid "If an update arrives for something you are editing, you choose which version to keep, like a merge conflict."
msgstr "اگر آپ جس چیز میں ترمیم کر رہے ہیں اس کی اپ ڈیٹ آ جائے تو آپ خود منتخب کرتے ہیں کہ کون سا ورژن رکھنا ہے، بالکل ضم کے تصادم کی طرح۔"
@@ -5974,10 +6095,6 @@ msgstr "ٹیمپلیٹ کے طور پر درآمد کریں"
msgid "Import failed: {0}"
msgstr "درآمد ناکام: {0}"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Import scheme"
-msgstr "اسکیم درآمد کریں"
-
#. placeholder {0}: result.name
#: src/lib/skill-import-toast.ts
msgid "Imported \"{0}\"."
@@ -6319,6 +6436,10 @@ msgstr "AI کے لیے ہدایت"
msgid "Integrations"
msgstr "انضمامات"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Invalid color value"
+msgstr "رنگ کی قدر درست نہیں"
+
#: src/components/CreateProjectDialog.tsx
msgid "Invalid input — pick a different folder."
msgstr "غلط اِن پٹ — کوئی مختلف فولڈر منتخب کریں۔"
@@ -6339,6 +6460,10 @@ msgstr "سرور کے جواب کی ساخت غیر درست ہے"
msgid "Invalid share URL."
msgstr "شیئر URL درست نہیں۔"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Invalid YAML"
+msgstr "YAML درست نہیں"
+
#: src/uninstall/UninstallSurveyScreen.tsx
msgid "It didn't fit into my workflow"
msgstr "یہ میرے ورک فلو میں فٹ نہیں بیٹھا"
@@ -6572,6 +6697,10 @@ msgstr "لنک کا URL"
msgid "Link-graph response did not match expected shape."
msgstr "لنک گراف کا جواب متوقع ساخت سے میل نہیں کھایا۔"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Linked theme files aren’t supported"
+msgstr "منسلک تھیم فائلوں کی معاونت نہیں ہے"
+
#: src/components/DocPanel.tsx
msgid "Links"
msgstr "لنکس"
@@ -6947,6 +7076,14 @@ msgstr "غائب صفحہ — بنانے کے لیے کلک کریں"
msgid "Missing page: {linkTitle}. Click to create."
msgstr "غائب صفحہ: {linkTitle}۔ بنانے کے لیے کلک کریں۔"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Missing palette colors"
+msgstr "پیلیٹ کے رنگ غائب ہیں"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Missing theme name"
+msgstr "تھیم کا نام غائب ہے"
+
#: src/components/SyncStatusBadge.tsx
msgid "Mode"
msgstr "موڈ"
@@ -7144,6 +7281,10 @@ msgstr "سوچ بچار جاری ہے…"
msgid "Multi-page PDF viewer with toolbar controls (thumbnails, page nav, zoom)."
msgstr "ٹول بار کنٹرولز کے ساتھ کثیر صفحاتی PDF دیکھنے والا (تھمب نیلز، صفحہ نیویگیشن، زوم)۔"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Multiple files use this theme name"
+msgstr "متعدد فائلیں اس تھیم کا نام استعمال کرتی ہیں"
+
#: src/components/acp/working-status.ts
msgid "Musing…"
msgstr "غور و فکر جاری ہے…"
@@ -7186,6 +7327,10 @@ msgstr "نام خالی نہیں ہو سکتا"
msgid "Name is required"
msgstr "نام درکار ہے"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Name your theme"
+msgstr "اپنی تھیم کا نام رکھیں"
+
#: src/lib/keyboard-shortcuts.ts
msgid "Navigate CodeMirror source search results or dismiss the search panel."
msgstr "CodeMirror کے سورس تلاش نتائج میں گھومیں یا تلاش کا پینل برخاست کریں۔"
@@ -7742,6 +7887,10 @@ msgstr "ان میں سے کسی مسئلے کا خودکار حل نہیں ہے
msgid "None of these problems have an automatic fix. Try Fix all with AI."
msgstr "ان میں سے کسی مسئلے کا خودکار حل نہیں ہے۔ «AI سے سب ٹھیک کریں» آزمائیں۔"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Not a base16 theme"
+msgstr "یہ base16 تھیم نہیں ہے"
+
#: src/components/acp/ThreadView.tsx
msgid "Not answered"
msgstr "جواب نہیں دیا گیا"
@@ -8642,8 +8791,8 @@ msgid "Paste"
msgstr "چسپاں کریں"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Paste a base16 scheme"
-msgstr "base16 اسکیم چسپاں کریں"
+msgid "Paste a base16 theme"
+msgstr "ایک base16 تھیم چسپاں کریں"
#: src/components/AuthModal.tsx
msgid "Paste a personal access token for <0>{host}</0>."
@@ -8766,10 +8915,6 @@ msgstr "اسی آلے تک محدود — آپ کی صارف کنفیگ میں
msgid "Pick <0>openknowledge.skill</0> from your <1>Downloads</1> folder. It enables automatically."
msgstr "اپنے <1>ڈاؤن لوڈز</1> فولڈر سے <0>openknowledge.skill</0> منتخب کریں۔ یہ خودکار طور پر فعال ہو جاتی ہے۔"
-#: src/components/settings/ThemePluginSection.tsx
-msgid "Pick a built-in IDE color palette, or define your own."
-msgstr "کوئی بلٹ اِن IDE رنگ پیلیٹ منتخب کریں، یا اپنا بنائیں۔"
-
#: src/components/settings/SkillTargetsPicker.tsx
msgid "Pick a folder to merge INTO {display}. That folder becomes a symlink to this one, so its agent reads everything placed here. This folder stays real. Conflicting skills abort the merge."
msgstr "{display} میں ضم کرنے کے لیے کوئی فولڈر منتخب کریں۔ وہ فولڈر اس کا سِم لنک بن جاتا ہے، اس لیے اس کا ایجنٹ یہاں رکھی ہر چیز پڑھتا ہے۔ یہ فولڈر حقیقی رہتا ہے۔ متصادم مہارتیں ضم کرنے کا عمل روک دیتی ہیں۔"
@@ -8782,6 +8927,10 @@ msgstr "کوئی نام منتخب کریں"
msgid "Pick a palette for light mode and one for dark mode. The theme setting in Preferences chooses between them — on “System”, so does your OS."
msgstr "روشن موڈ کے لیے ایک پیلیٹ اور تاریک موڈ کے لیے دوسرا منتخب کریں۔ ترجیحات میں تھیم کی ترتیب ان میں سے انتخاب کرتی ہے — “سسٹم” پر آپ کا OS بھی۔"
+#: src/components/settings/ThemePluginSection.tsx
+msgid "Pick a theme or create your own."
+msgstr "ایک تھیم منتخب کریں یا اپنی تھیم بنائیں۔"
+
#: src/editor/slash-command/items.tsx
msgid "Pick an emoji to insert at the cursor."
msgstr "کرسر پر داخل کرنے کے لیے کوئی ایموجی منتخب کریں۔"
@@ -8888,8 +9037,8 @@ msgid "Press Space to pick up a tab. Use the arrow keys to move it within a tab
msgstr "ٹیب اٹھانے کے لیے Space دبائیں۔ اسے ٹیب پٹی کے اندر منتقل کرنے کے لیے تیر والی کلیدیں استعمال کریں، پھر چھوڑنے کے لیے Space یا Enter دبائیں۔ تقسیم، بند، پن اور دیگر ٹیب اعمال والا سیاقی مینو کھولنے کے لیے Shift+F10 یا Menu کلید دبائیں۔"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Press the sun or moon on “Custom” above to use this scheme."
-msgstr "یہ اسکیم استعمال کرنے کے لیے اوپر “حسبِ ضرورت” پر سورج یا چاند دبائیں۔"
+msgid "Press the sun or moon on “Custom” above to use this theme."
+msgstr "اس تھیم کو استعمال کرنے کے لیے اوپر “حسبِ ضرورت” پر سورج یا چاند دبائیں۔"
#: src/components/PublishToGitHubDialog.tsx
msgid "Preview browsers can't auto-copy. Use Cmd/Ctrl+C on the URL above, or open OK in the desktop app."
@@ -9789,6 +9938,11 @@ msgstr "اس ورژن پر بحال کریں؟"
msgid "Restore with remote changes"
msgstr "ریموٹ تبدیلیوں کے ساتھ بحال کریں"
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Restored {0}."
+msgstr "{0} بحال کر دیا گیا۔"
+
#. placeholder {0}: descriptor.targetSha7
#: src/components/TimelinePanel.tsx
msgid "Restored an earlier version ({0})"
@@ -9994,6 +10148,10 @@ msgstr "اس پروجیکٹ کے مہارت فولڈر میں محفوظ (مثل
msgid "Saved into your global skills folder (e.g. <0>~/.agents/skills</0>)."
msgstr "آپ کے عالمی مہارت فولڈر میں محفوظ (مثلاً <0>~/.agents/skills</0>)۔"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Saved themes couldn’t load. The last available theme list is still shown."
+msgstr "محفوظ شدہ تھیمز لوڈ نہیں ہو سکیں۔ آخری دستیاب تھیم فہرست اب بھی دکھائی جا رہی ہے۔"
+
#: src/components/SkillProperties.tsx
msgid "Saved to"
msgstr "یہاں محفوظ ہوا"
@@ -10011,6 +10169,10 @@ msgstr "فائل کو <0>~/Downloads/openknowledge.skill</0> میں محفوظ
msgid "Saving"
msgstr "محفوظ کیا جا رہا ہے"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Saving changes…"
+msgstr "تبدیلیاں محفوظ ہو رہی ہیں…"
+
#: src/components/settings/LintingSection.tsx
msgid "schema {deleteTarget}"
msgstr "اسکیما {deleteTarget}"
@@ -10019,10 +10181,6 @@ msgstr "اسکیما {deleteTarget}"
msgid "Schema fields"
msgstr "اسکیما فیلڈز"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Scheme copied as base16 YAML"
-msgstr "اسکیم base16 YAML کے طور پر نقل ہو گئی"
-
#: src/components/ImportSkillForm.tsx
#: src/components/PanelScopeHeader.tsx
msgid "Scope"
@@ -10212,6 +10370,11 @@ msgstr "تمام {0} ابتدائی پیکس دیکھیں"
msgid "See the full install guide"
msgstr "مکمل تنصیبی رہنما دیکھیں"
+#. placeholder {0}: BASE16_SLOT_ROLES[slot]
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Select {slot} — {0}"
+msgstr "{slot} منتخب کریں — {0}"
+
#: src/components/FrontmatterRow.tsx
msgid "Select a value"
msgstr "کوئی قدر منتخب کریں"
@@ -10923,6 +11086,10 @@ msgstr "Slidev شروع ہوتے ہوئے وقت ختم ہو گیا۔ دوبار
msgid "Small section heading."
msgstr "چھوٹا سیکشن عنوان۔"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Some saved themes aren’t shown because the theme folder exceeds the scan limit."
+msgstr "تھیم فولڈر اسکین کی حد سے بڑا ہونے کی وجہ سے کچھ محفوظ شدہ تھیمز نہیں دکھائی جا رہیں۔"
+
#: src/components/FeedbackForm.tsx
msgid "Something broke"
msgstr "کچھ ٹوٹ گیا"
@@ -11843,6 +12010,30 @@ msgstr "ٹوکن کو repo اور read:user دائرہ کار درکار ہیں
msgid "Theme"
msgstr "تھیم"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme colors"
+msgstr "تھیم کے رنگ"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme copied as base16 YAML"
+msgstr "تھیم base16 YAML کے طور پر کاپی ہو گئی"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme imported."
+msgstr "تھیم درآمد ہو گئی۔"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name"
+msgstr "تھیم کا نام"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name has unsupported characters"
+msgstr "تھیم کے نام میں غیر معاون حروف ہیں"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name is too long"
+msgstr "تھیم کا نام بہت طویل ہے"
+
#: src/components/settings/ThemePreviewCanvas.tsx
msgid "Theme preview"
msgstr "تھیم کا پیش منظر"
@@ -12037,6 +12228,10 @@ msgstr "یہ {boldName} کا پیش منظر ہے، جو {boldHarness} میں {b
msgid "This is a preview of {boldName}. Install it into your agents."
msgstr "یہ {boldName} کا پیش منظر ہے۔ اسے اپنے ایجنٹس میں نصب کریں۔"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This isn’t a regular theme file"
+msgstr "یہ عام تھیم فائل نہیں ہے"
+
#: src/components/SlidesToolbarControls.tsx
msgid "This isn't a supported version of Slidev."
msgstr "یہ Slidev کا معاون ورژن نہیں ہے۔"
@@ -12198,6 +12393,18 @@ msgstr "یہ ماخذ کئی مہارتیں سمیٹے ہوئے ہے — درآ
msgid "This template lives in a parent folder — deleting it affects every folder beneath it that doesn't define its own version."
msgstr "یہ ٹیمپلیٹ کسی والد فولڈر میں رہتا ہے — اسے حذف کرنا اس کے نیچے کے ہر اُس فولڈر پر اثر ڈالتا ہے جو اپنا ورژن متعین نہیں کرتا۔"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme can’t be used until the file is fixed."
+msgstr "فائل درست کیے جانے تک یہ تھیم استعمال نہیں کی جا سکتی۔"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme file couldn’t be read"
+msgstr "یہ تھیم فائل پڑھی نہیں جا سکی"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme file is too large"
+msgstr "یہ تھیم فائل بہت بڑی ہے"
+
#: src/components/ShareReceiveDialog.tsx
msgid "This usually means one of:"
msgstr "اس کا عام طور پر مطلب ان میں سے کوئی ایک ہے:"
@@ -12371,6 +12578,7 @@ msgstr "کوئی پرامپٹ آزمائیں"
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/ReportBugDialogBody.tsx
#: src/components/settings/AccountSection.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/ShareReceiveDialog.tsx
msgid "Try again"
msgstr "دوبارہ کوشش کریں"
@@ -12478,6 +12686,7 @@ msgstr "{docName} پر آخری ترمیم واپس لے لی گئی"
#: src/components/ActivityPanelBurstRow.tsx
#: src/components/AppMenubar.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/settings/SharingSection.tsx
#: src/lib/native-menu-catalog.ts
msgid "Undo"
@@ -12745,6 +12954,16 @@ msgstr "{0} کو تاریک تھیم کے طور پر استعمال کریں"
msgid "Use {0} as the light theme"
msgstr "{0} کو روشن تھیم کے طور پر استعمال کریں"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Use {0} for the active dark mode"
+msgstr "فعال گہرے موڈ کے لیے {0} استعمال کریں"
+
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Use {0} for the active light mode"
+msgstr "فعال روشن موڈ کے لیے {0} استعمال کریں"
+
#: src/components/SkillForkDialog.tsx
msgid "Use {editor} version"
msgstr "{editor} والا ورژن استعمال کریں"
@@ -12757,6 +12976,10 @@ msgstr "نیچے دیا گیا لنک نقل کرنے کے لیے <0>{copyShortc
msgid "Use a folder you already have."
msgstr "کوئی ایسا فولڈر استعمال کریں جو آپ کے پاس پہلے سے ہے۔"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Use a lowercase .yaml or .yml extension"
+msgstr "چھوٹے حروف والی .yaml یا .yml ایکسٹینشن استعمال کریں"
+
#: src/components/SkillFileCreateDialog.tsx
#: src/components/SkillFileRenameDialog.tsx
msgid "Use a relative path inside the skill (no .., no spaces; SKILL.md is managed)."
@@ -12941,6 +13164,10 @@ msgstr "ہم <0>openknowledge.skill</0> بنائیں گے، اسے <1>~/Download
msgid "We'll create a repository and start syncing — no terminal needed."
msgstr "ہم ایک ریپازٹری بنا کر مطابقت پذیری شروع کر دیں گے — کسی ٹرمینل کی ضرورت نہیں۔"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "We’ll create a safe theme ID from this name."
+msgstr "ہم اس نام سے ایک محفوظ تھیم ID بنائیں گے۔"
+
#: src/components/ReportBugDialogBody.tsx
msgid "We've filed it with the team and attached your logs."
msgstr "ہم نے اسے ٹیم کے پاس درج کر دیا ہے اور آپ کے لاگز منسلک کر دیے ہیں۔"
diff --git a/packages/app/src/locales/zh-Hans/messages.json b/packages/app/src/locales/zh-Hans/messages.json
index c8088203a..42924de9f 100644
--- a/packages/app/src/locales/zh-Hans/messages.json
+++ b/packages/app/src/locales/zh-Hans/messages.json
@@ -30,11 +30,13 @@
"-lCAuQ": ["正在加载关系图"],
"-o5XAG": ["会连同你的备注和应用版本一起私下发送给 OpenKnowledge 团队。绝不会公开发布。"],
"-oHckY": ["OpenKnowledge 读取了设置 ", ["key"]],
+ "-othoN": ["此主题文件过大"],
"-q4abP": [
"结果已被截断——这个工作区的文件数超出了搜索可索引的上限。找不到某个文件可能是上限造成的,而不是拼写错误。"
],
"-slrNR": ["切换任务清单。"],
"-uaQnI": ["没有匹配的 worktree 或分支。"],
+ "-yOx8u": ["正在保存更改…"],
"-yPBXI": ["选择文件"],
"-ySLQJ": ["Git 与 PR"],
"-zA2E7": ["无法创建 worktree。请换一个名字。"],
@@ -95,6 +97,7 @@
"0kTAXe": ["来源:", ["mirrorSrc"]],
"0pZmTP": ["无法共享此路径。"],
"0qyKG6": ["已从磁盘同步"],
+ "0r6d6v": ["更改已自动保存。"],
"0rwwOn": ["按标签"],
"0s8-e8": ["从键盘边界选中、进入或离开块组件和回退源码块。"],
"0t0bbC": ["无法保存同步偏好:", ["detail"]],
@@ -103,6 +106,7 @@
"0xnQ_X": ["更新会自动流入"],
"0xnmlQ": ["仓库名"],
"0yL--g": ["查看冲突"],
+ "0ySP5u": ["更改会自动保存到此主题。"],
"0zAhu6": ["所有文档"],
"10g8I_": ["关闭「只显示 markdown 文件」"],
"11ukmX": ["重命名失败:", ["0"]],
@@ -112,6 +116,7 @@
"161NCV": ["正在停止"],
"16D5Zj": ["确定要删除 ", ["itemName"], " 吗?此操作无法撤销。"],
"16eIWu": ["强制停止"],
+ "16tSS_": ["粘贴 base16 主题"],
"170Js2": ["隐藏面板"],
"1AumWo": ["推送失败——详情请查看服务器日志。"],
"1CalO6": ["样式"],
@@ -142,6 +147,7 @@
"1njn7W": ["浅色"],
"1nke1r": ["在 GitHub 上打开 ", ["0"], "(在新标签页中打开)"],
"1oSHI0": ["无法安装 ", ["skillName"], ":", ["0"]],
+ "1qpGKz": ["无法保存更改。请再次编辑颜色。"],
"1ruosn": ["OpenKnowledge"],
"1t_NnN": ["拒绝"],
"1u-mAI": ["无法开始同步。请检查你的网络连接,然后重试。"],
@@ -246,7 +252,6 @@
"3kYcuM": ["确定要删除所选项目吗?"],
"3l32hp": ["属于 ", ["plugin"], " 插件"],
"3l_cXP": ["愿意的话可以看看。我们收到的就是这个文件本身。"],
- "3l_knd": ["点击上方「自定义」处的太阳或月亮图标即可使用这个配色方案。"],
"3m2GBo": ["正在搜索文档"],
"3mFsc3": ["带上远程改动一起恢复"],
"3nnyi_": [["0", "plural", { "other": ["删除 ", "#", " 个项目"] }]],
@@ -284,6 +289,7 @@
"4TzU0n": ["初始化"],
"4buZWd": ["继承自 ", ["path"]],
"4c_a6S": ["还没有设置任何内容。"],
+ "4d0VYJ": ["我们将根据此名称创建安全的主题 ID。"],
"4eO-iB": ["丢弃这条评论"],
"4g19V6": ["更新属性失败"],
"4h3e0H": ["无法更新技能共享设置——", ["detail"], "。"],
@@ -402,6 +408,7 @@
"描述它该做什么,或者自己添加一个。OpenKnowledge 会把你的技能集中保存、做版本管理,并安装到 Claude、Codex、Cursor 等智能体中。"
],
"6MnZEC": ["终端加载失败"],
+ "6Nea1q": ["将 ", ["0"], " 用于当前的深色模式"],
"6O626z": ["没有标题匹配 \"", ["trimmedAnchorQuery"], "\""],
"6Pxqwv": [
"还没有项目模板。创建一个,就能在这个项目的任何地方使用它。文件夹范围的模板保存在各个文件夹的总览页上。"
@@ -411,6 +418,7 @@
"6VqW-1": ["移除 ", ["keyName"]],
"6WdDG7": ["页"],
"6YBJ3m": ["就选中内容问 AI"],
+ "6YE0P6": ["正在编辑 ", ["0"]],
"6YtxFj": ["名称"],
"6ZhdPI": ["智能体可以读取、写入和呈现的内容。"],
"6_ZOw4": ["已复制完整路径"],
@@ -440,6 +448,7 @@
"6s7LXO": ["注意"],
"6u9LvN": [["days", "plural", { "other": ["#", " 天前"] }]],
"6vEr3W": ["链接目标"],
+ "6xeZX9": ["编辑会实时生效。浅色或深色由主题决定。"],
"6zzhQL": ["通过邮件发送你的报告"],
"72xhRD": ["图示查看模式"],
"74-bX-": ["引文块会从周围的正文中凸显出来。"],
@@ -449,13 +458,13 @@
"77SdEP": ["删除 ", ["itemName"]],
"78G7R3": ["按 JSON Schema 文件校验文档的 frontmatter,并用 glob 限定适用的文档集。"],
"7Bj3x9": ["失败"],
- "7EmDc7": ["导入配色方案"],
"7FA2iI": ["无法读取等待发送的评论——什么都没有发送。"],
"7FamGZ": ["跳转到行"],
"7Fkcej": ["+ 添加 ", ["addChildName"]],
"7H4UHD": ["带 <0>#", ["tagName"], "</0> 标签的文档"],
"7IsvrP": ["正在检查更新"],
"7JtSLi": ["删除路径失败"],
+ "7O7REc": ["无法恢复 ", ["0"], "。请重试。"],
"7OhaRy": ["源码搜索"],
"7Ongq0": ["把我的 AGENTS.md 文件精简到 4 万字符以内"],
"7OwvEL": ["显示 HTML 预览"],
@@ -549,6 +558,8 @@
"8uGMP8": ["隐藏的内容放在这里。"],
"8vCZcs": ["打开文件失败。"],
"8vETh9": ["显示"],
+ "8x6zk9": ["隐藏 ", ["0"], " 编辑器"],
+ "9-lMCF": [["slot"], " 颜色 — ", ["0"]],
"90-wKT": ["OpenKnowledge 查看了 ", ["subject"], " 的历史"],
"92rbk2": ["镜像正在加载 <0>", ["mirrorRef"], "</0>"],
"93LBnX": ["隐藏「智能体」"],
@@ -596,7 +607,6 @@
"9fvog2": ["无法预览:", ["errorDetail"]],
"9i21pa": ["提交会自动进行"],
"9ieZhu": ["已安装在 ", ["path"], "——点击可移除"],
- "9j1tqo": ["无法访问剪贴板——配色方案在下方的输入框中。"],
"9jnjV0": ["嵌入一个音频文件,带原生播放器控件。"],
"9lso1Y": ["创建 <0>", ["folderPart"], "/</0> 文件夹"],
"9m4D_h": ["GitHub、一个 git URL,或一个本地路径。"],
@@ -629,8 +639,10 @@
"AIC67-": ["在侧边栏中连续点击时复用同一个标签页。关闭后,每次点击都会打开新标签页。"],
"AIn2Yv": [["displayName"], " CLI,", ["hint"]],
"AItsE5": ["在那里打开"],
+ "AJ7_B2": ["创建新主题"],
"AKxFtn": [["openedWorktreeCount", "plural", { "other": ["worktree"] }]],
"ALhMYW": ["终端"],
+ "ANFxWn": ["无法删除此主题。请刷新后重试。"],
"APNlbk": ["退出 ", ["0"]],
"AQ-Lfg": ["无法加载模板"],
"AQGtjK": ["命令将以你在这台电脑上的 macOS 用户账户的全部权限运行。关闭此项可禁用 shell。"],
@@ -743,9 +755,11 @@
"这个文件太大,无法在内置文本编辑器中打开(上限 1 MB)。请用下方的「打开文件」在其他应用中打开它。"
],
"C_cPoW": ["你的 GitHub 会话已过期——请重新登录以验证推送权限。"],
+ "CcaU4i": ["编辑会实时生效,并自动保存到此主题。"],
"ChAtFg": ["你没有推送到这个仓库的权限"],
"ChMshD": ["退出 ", ["appName"]],
"Ck9XRt": ["无法保存密钥——请重试。"],
+ "ClII5l": ["按上方“自定义”中的太阳或月亮图标以使用此主题。"],
"ClTEde": ["把选中的内容放入智能体面板,随时可以补充并发送。"],
"CmeH9S": ["向 ", ["keyName"], " 添加属性"],
"CnOGgs": ["同步模式"],
@@ -787,6 +801,7 @@
"DKYW1G": [
"这项设置按电脑生效,不会与协作者共享。除非你的端点是不需要密钥的本地服务器,否则需要一个 API 密钥(在下方设置)。"
],
+ "DLIljL": ["因为主题文件夹超出扫描限制,部分已保存的主题未显示。"],
"DMLE5q": ["MCP 自动修复失败"],
"DMeaxi": ["正在下载 ", ["0"], " ", ["1"], "…"],
"DNkveC": ["列选项"],
@@ -799,6 +814,7 @@
"</0> 分支上。你有未提交的改动,无法在这里切换——请在 worktree 中打开它,这样你的改动不会被动到。"
],
"DUWgfT": ["重新通过 GitHub Enterprise Server 认证"],
+ "DUb7Ax": ["多个文件使用了此主题名称"],
"DVh_Tb": ["移到废纸篓后的清理失败"],
"DWJtEo": ["接下来会怎样"],
"DXd9LM": ["新建 worktree"],
@@ -813,6 +829,7 @@
"DhT_PK": ["OpenKnowledge 导入了一个技能"],
"DiFKSL": ["正在统计 markdown 文件"],
"DiZ3pq": ["图标选择器"],
+ "DmkTrb": ["无法创建此主题。请重试。"],
"Dnn2XG": ["自动"],
"DpjYd6": ["跳到锚定的文本"],
"DrYM2Z": ["同步已禁用"],
@@ -960,6 +977,7 @@
"讲清楚你的代码库是怎么运作的,让队友和 AI 智能体都能找到方向。适合记录架构、主要组成部分,以及新贡献者总会问到的问题。"
],
"FyW0WO": ["在浏览器中授权"],
+ "FyyIjH": ["主题名称过长"],
"G-JBA1": ["源码模式需要保持连接——你的编辑已保存,重新连接后就会出现。"],
"G-h6qN": [["0", "plural", { "other": ["已设置 ", "#", " 个选项"] }]],
"G0I7bo": ["正在解谜…"],
@@ -990,6 +1008,7 @@
"GQDSBN": ["布局选项"],
"GSYWCm": ["隐藏文档面板"],
"GUYwCr": ["忽略此提示"],
+ "GUZHkL": ["缺少调色板颜色"],
"GUqTzn": ["竞品调研"],
"GXf9hG": ["正在克隆 ", ["repoName"], "…"],
"GZzDqc": ["其中包含你刚遇到的错误的详细信息。API 密钥、令牌等机密内容会自动隐去。"],
@@ -1049,6 +1068,7 @@
"HSI88F": ["删除表格"],
"HSh8u_": ["文件夹"],
"HTW0Zw": ["还差一步:在这个项目中运行 <0>claude</0>,并批准 OpenKnowledge 一次。"],
+ "HZ7fEu": ["主题名称"],
"HbcQYf": ["要把 ", ["display"], " 处的符号链接替换为技能的独立副本吗?其他内容不会移动。"],
"HdkSiO": ["新建文件"],
"HfI1dR": ["我本地已经有了 →"],
@@ -1087,6 +1107,7 @@
"IFezUv": ["审查未能完成。请重试。"],
"IInnZo": ["冲突"],
"IKoTAC": ["保持关闭"],
+ "IMLUBh": ["无效的颜色值"],
"INp_z6": ["对此", ["0"], "发表评论或询问 AI"],
"IO8REi": ["无法打开“", ["name"], "”:", ["0"]],
"IQPyrD": ["页面不存在——点击可创建"],
@@ -1098,7 +1119,6 @@
"IX_uXB": ["my-feature"],
"IYciRC": ["感谢你的报告!"],
"IajAbS": ["添加入门包"],
- "IbTC7z": ["粘贴一个 base16 配色方案"],
"If0crP": ["用 AI ", ["targetDisplayName"], " 打开,", ["hint"]],
"IgN3LY": ["在 <0>", ["address"], "</0> 中选中的文本上"],
"IgTwLt": ["在编辑器中打开这个文档并折叠关系图。"],
@@ -1113,6 +1133,7 @@
"Ix0K8o": ["隐藏外部 URL 节点"],
"IxHMdF": ["无法删除那条评论。"],
"IxyZXD": ["截图"],
+ "J1XRO3": ["主题颜色"],
"J2Mv98": ["名称(例如 ", ["login"], ")"],
"J2_JuX": ["无(", ["0"], " 无法匹配任何文档)"],
"J2eKUI": ["文件"],
@@ -1136,7 +1157,7 @@
"JOcPqH": ["把一个远程仓库取到这台电脑上。"],
"JWsZlx": ["请打开一个项目以进行编辑。"],
"JZ8cO6": ["浅色、深色,或跟随系统。"],
- "J_bJiH": ["选择一个内置的 IDE 配色方案,或者自己定义一个。"],
+ "JaU1ld": ["主题名称包含不支持的字符"],
"JddocZ": ["切换标题列"],
"Jejur6": ["无法加载文档"],
"JfPuv7": [["shareBranch"], " 不是有效的分支名。"],
@@ -1207,6 +1228,7 @@
"KsAPaB": ["这个分支已在以下位置检出:"],
"KtACeE": ["默认:<0>", ["0"], "</0>"],
"KujtjC": ["查找"],
+ "Kx881F": ["已恢复 ", ["0"], "。"],
"L-rMC9": ["重置为默认值"],
"L1BQTH": [["0"], " 尚未安装——正在打开它的下载页面。"],
"L1ZE3M": ["文档统计"],
@@ -1359,6 +1381,7 @@
"N55YNr": [
"选择这个项目的 OpenKnowledge 配置(包括它与 AI 工具的连接)是随项目一起保存、让队友也能获得,还是只留在你的电脑上。"
],
+ "N6j2JH": ["编辑 ", ["0"]],
"NBdIgR": ["评论"],
"NCmYhK": [
"技能教会智能体完成可重复的任务。可在编辑器的「技能」区中编写和管理它们;每个技能的安装菜单决定它保存在哪里。以下是这个项目的技能文件夹。"
@@ -1547,6 +1570,7 @@
],
"QAi7Q9": ["分支 <0>", ["trimmed"], "</0> 已有一个 worktree——它会在自己的窗口中打开。"],
"QB-moX": ["把它安装到你的其他编辑器(Claude Code、Cursor、Codex)中即可共享。"],
+ "QDErHs": ["选择 ", ["slot"], " — ", ["0"]],
"QDZbvN": [["diffDays"], " 天前"],
"QGWzup": ["正在加载 OpenKnowledge 技能"],
"QHCx0c": ["错误报告历史"],
@@ -1576,16 +1600,17 @@
"QlxHAH": ["正在显示 \"", ["semanticResultsLabel"], "\" 的结果"],
"Qpfxa1": [["secs"], "秒"],
"QqBQu1": ["标签 <0>(可见的链接文本)</0>"],
- "Quz_Qu": ["更改实时生效。明暗模式来自配色方案。"],
"Qvls7J": ["工程规格"],
"Qw-7Ie": [
"一个简单的写作空间,每个主题一个文件,外加一份日志。如果你只想先动笔,让笔记之间的链接慢慢生长,请选这个。"
],
+ "QwG_zJ": ["冲突文件:", ["0"], "。"],
"QySH4I": ["检测到的 OpenKnowledge 项目"],
"QyioBP": ["上移"],
"QzofTX": ["本项目还没有评论。对一段内容添加评论即可开始。"],
"R0cyYB": [["0", "plural", { "other": ["预览的安全策略拦截了 ", "#", " 个请求"] }]],
"R0jJzV": ["粘贴 URL、owner/repo,或搜索你的仓库"],
+ "R30SFt": ["使用小写的 .yaml 或 .yml 扩展名"],
"R3y75Z": ["编辑源码"],
"R4OWFD": ["章节"],
"R65q-K": ["这个项目关闭了真实 shell。开启后,命令将以你的 macOS 用户账户的全部权限运行。"],
@@ -1594,6 +1619,7 @@
"R9dK63": ["示例图片"],
"RDjuBN": ["设置"],
"RDrXh4": ["配置用户、项目和集成相关的设置。"],
+ "RG3yW6": ["输入此主题的名称。"],
"RG4XHV": ["复制 ", ["0"], " 提示词"],
"RGCCrg": ["复制共享链接"],
"RGkNeJ": ["初始化一个入门包"],
@@ -1743,6 +1769,7 @@
"UEdTEN": ["孤立"],
"UGeJuP": ["允许的值(留空 = 任意)"],
"UGtPix": ["GitHub 连接已过期。请重新连接以继续。"],
+ "UH0Zqw": ["这不是常规主题文件"],
"UHwc0P": [
"这是 ",
["boldName"],
@@ -1791,7 +1818,6 @@
],
"Uci-Ph": ["有序列表"],
"Ud0Pj9": ["<0>镜像来源已被移除。</0>文档 <1>", ["src"], "</1> 已不可用。"],
- "UeQEbk": ["浏览数百种配色方案"],
"UfW9Kr": [
"你的搜索查询和匹配页面的全文会发送到你的嵌入服务提供方(默认是 OpenAI)来计算嵌入向量。"
],
@@ -1875,6 +1901,7 @@
],
"W8vpBM": ["入门包"],
"W9_Bub": ["本地改动与传入的同步内容重叠"],
+ "WBNpt9": ["无法读取此主题(", ["0"], ")"],
"WFEbV1": ["在编辑器中标出常见的 markdown 问题。由 <0>markdownlint<1/></0> 提供支持。"],
"WGMoTY": ["有缺陷、崩溃,或者感觉不太稳定"],
"WHPvOb": ["所有文件都被视图筛选条件隐藏了。"],
@@ -2003,6 +2030,7 @@
"Y9c_nf": ["0/0"],
"YBt9YP": ["Beta"],
"YC6_wP": ["编辑 ", ["keyName"]],
+ "YCmS3k": ["已删除 ", ["0"], "。"],
"YDL7N6": [
"检查插件——运行哪些规则族及其逐条规则的设置——在「本项目 → 插件」下的独立标签页中配置。"
],
@@ -2026,6 +2054,7 @@
"Y_kL7X": ["自定义编辑器的外观和行为。"],
"Ya3PlJ": ["需要授权"],
"YaeyFh": ["拉取可能会覆盖你本地文件中未提交的编辑。"],
+ "Yb82LN": ["ID:", ["0"]],
"Yea-K5": ["恢复到这个时间点"],
"Yi0VMG": ["上传 ", ["keyName"]],
"YjMLg2": ["关闭——外部链接只显示 URL。不会有任何请求离开这台电脑。"],
@@ -2094,6 +2123,7 @@
"ZYtq3m": [
"把你使用的 AI 工具连接到这个具体项目。这些文件保存在项目文件夹中,因此打开它的人都会得到相同的配置。"
],
+ "Z_nNa2": ["为主题命名"],
"ZatAO_": ["开启链接预览失败——", ["detail"]],
"Zf0w-R": [
"把一段文字从粗略的想法带到完成的初稿,再到可以拿出去分享的成品。适合博客文章、随笔,或者任何你想分阶段推进的写作。"
@@ -2127,11 +2157,13 @@
["currentLabel"],
"</1> 上。"
],
+ "_DwR-n": ["正在创建…"],
"_FLBbi": [["sizeText"], " · 已隐去机密信息 · 崩溃转储未隐去"],
"_GRWOJ": ["要更换嵌入服务提供方吗?"],
"_HgF9q": ["排序方式"],
"_IGfXZ": ["OpenKnowledge 上次意外退出了。"],
"_IX_7x": ["其他"],
+ "_IfSZn": ["已有一个已保存的主题使用此名称。"],
"_JOGC0": ["发送反馈…"],
"_LczaQ": ["已拒绝 — ", ["optionName"]],
"_NWEid": ["按路径搜索架构文件"],
@@ -2239,7 +2271,6 @@
"b6Fgpe": ["每个包都会用现成的文件夹和模板为你的项目搭好骨架。"],
"bBE5tC": ["在这台电脑上检测到"],
"bBcFK_": ["打开 ", ["keyName"], " 的表情符号选择器"],
- "bD2SLZ": ["已把配色方案复制为 base16 YAML"],
"bD8I7O": ["完成"],
"bEp7UY": ["未连接到桌面桥接"],
"bF22t6": ["移除字段 ", ["field"]],
@@ -2295,6 +2326,7 @@
"cIptmH": ["在 Claude 桌面应用中"],
"cKjLuT": ["(项目 + 用户)"],
"cLP0Lf": ["远程技能来源"],
+ "cLn264": ["无法读取此主题文件"],
"cMMb6H": ["已安装 ", ["imported"], " 个,但 ", ["failed"], " 个失败:", ["failedNames"]],
"cN1Gcp": [["shareBranch"], " 的 worktree 文件夹已存在。"],
"cOJyVj": ["禁用主题"],
@@ -2308,6 +2340,7 @@
"cU-seF": ["跳到光标所在块的 markdown 源码,居中并高亮显示。"],
"cUK8lW": [["conflictCount", "plural", { "other": ["#", " 处冲突"] }]],
"cUk6TF": ["同步失败——详情请查看服务器日志。"],
+ "cUt8yN": ["更改会自动保存。"],
"cV7LOw": ["团队维基"],
"cVKnqL": ["无法读取等待发送的评论:", ["0"]],
"cZGNlb": ["再添加一个模式"],
@@ -2339,6 +2372,7 @@
"cstC0z": ["模式(正则表达式)"],
"ct2kv5": [["pageTarget"], " 中没有标题"],
"cuA8QW": ["整理规格"],
+ "cuHhjo": ["创建并编辑"],
"d-GtJt": ["在 Markdown 源码中查看"],
"d1JjXo": [
"你本地的 <0>",
@@ -2438,6 +2472,7 @@
"Git 无法跟踪这个文件夹——它是空的,或者只包含被忽略的文件。在你添加一个受跟踪的文档之前,链接不会生效。"
],
"eiUA4k": [["count", "plural", { "other": ["#", " 条评论"] }]],
+ "ekSPiP": [["0"], " 已经被删除了。"],
"el2KyL": ["在此项目中找到 Slidev。幻灯片将使用项目的版本。"],
"emMrXQ": ["服务器返回的副本响应格式错误。"],
"emgiet": ["权威内容;在所有被引用的地方逐字镜像。"],
@@ -2502,6 +2537,7 @@
"fwrPh4": ["请输入有效的邮箱。"],
"fxJk_6": ["<0>还有想补充的吗?</0>请写信到 <1/> 并附上你的编号。"],
"fxbCNQ": ["已同步。链接是最新的。"],
+ "g12y1g": ["无效的 YAML"],
"g1ZTh_": [
["count", "plural", { "other": ["确定要删除以下 ", "#", " 个文件/文件夹及其内容吗?"] }]
],
@@ -2571,7 +2607,6 @@
"gwEcOD": ["你的本地副本落后了。"],
"gwykHF": ["这个文档还没有同步到 GitHub。下次同步后链接就会生效。"],
"gyHDWC": ["用 AI 全部修复(", ["count"], ")"],
- "gyWc8_": ["重音符号"],
"h-AdvS": ["文件夹和模板都已经在这里了,没有需要添加的内容。"],
"h06R3C": ["没有页面缺少出链。"],
"h16FyT": ["列表"],
@@ -2589,6 +2624,7 @@
"hDEaQu": ["把 OpenKnowledge 与你使用的其他工具连接起来。"],
"hDKtoF": [["diffHrs"], " 小时前"],
"hDoLrm": ["把 ", ["projectName"], " 从最近的项目中移除"],
+ "hFmYGU": ["不支持链接的主题文件"],
"hGmuTc": ["带 #", ["tagDocsName"], " 标签的文档"],
"hHMv6l": ["删除块"],
"hHR0tt": ["与 ", ["0"], " 的新对话"],
@@ -2602,6 +2638,7 @@
"hSBIG-": ["标题、描述、标签——任何能描述这个文件夹的信息。"],
"hSySVc": ["安装交接失败:", ["msg"]],
"hVAkI8": ["在终端中运行"],
+ "hVzt9x": ["无法加载已保存的主题。仍显示上次可用的主题列表。"],
"hXUWyd": ["此项必填"],
"hXbSxc": ["资源:", ["title"]],
"hY8pka": ["选中下一处出现"],
@@ -2611,6 +2648,7 @@
"haHgQj": ["已复制相对路径"],
"habOU_": ["更新自动批准设置失败——", ["detail"]],
"he3ygx": ["复制"],
+ "hgF0al": ["将 ", ["0"], " 用于当前的浅色模式"],
"hgtsat": ["删除 ", ["file"], " 失败"],
"hh4mVC": ["让 AI 修复 ", ["flatId"]],
"hhI__i": ["确定要删除“", ["name"], "”及其内容吗?"],
@@ -2821,6 +2859,7 @@
"kYL1lH": ["智能体活动"],
"k_Dqw1": [["0", "plural", { "other": ["#", " 个文档均无问题。"] }]],
"k_pade": ["配置现在已共享。提交这些 OK 文件即可分享给你的团队。"],
+ "k_tFzX": ["缺少主题名称"],
"k_yIIc": ["将创建在:<0>", ["targetPreview"], "</0>"],
"ka6Eke": ["在磁盘上打开文件"],
"kdzzOK": ["关闭——搜索仅按关键词排序。不会有任何内容离开这台电脑。"],
@@ -2832,6 +2871,7 @@
"khCa4M": ["教会这个项目中的编程智能体通过 OpenKnowledge 读写内容。"],
"kj9pAE": ["正在创建页面"],
"kknhfj": ["没有改动"],
+ "kkux8f": ["无法删除 ", ["0"], "。请重试。"],
"klPS-L": ["原始文件——这个智能体编辑之前的版本。"],
"kmKqZg": ["聚类"],
"knjOzA": ["标签值"],
@@ -2845,6 +2885,7 @@
"kwLcuN": [
"让你使用的 AI 工具能够读取和更新你的项目。在下方选择要配置的项,随时可在「设置 > AI 工具与 CLI」中更改。"
],
+ "kwNS82": ["修复文件后才能使用此主题。"],
"ky9Tuc": ["编辑 ", ["0"], " 源码"],
"kzpkcn": ["无法保存那次编辑。"],
"l-4nnw": ["搜索规则"],
@@ -2890,6 +2931,7 @@
"技能内部的一个路径——任何文件夹都可以(例如 references/notes.md)。路径中的文件夹会自动创建。"
],
"lPzyrU": ["所有差异块均已解决"],
+ "lS83Sg": ["无法访问剪贴板。"],
"lScd1O": ["Slidev 幻灯片仅在 OpenKnowledge 桌面应用中打开。"],
"lUtr1r": ["已选择 ", ["1"], " 项中的 ", ["0"], " 项"],
"lVWEIL": ["已索引 ", ["total"], " 个页面中的 ", ["embedded"], " 个。"],
@@ -3009,6 +3051,7 @@
"nNYV3Y": ["另外还有 ", ["remaining"], " 个"],
"nOEDQs": ["更新同步模式失败——", ["detail"]],
"nP-KFo": ["新建 ", ["0"], " 对话"],
+ "nTM8ab": ["请先命名主题,再编辑颜色。"],
"nTwL53": ["打开一个文档来共享它的 URL。"],
"nUNZL4": ["询问 ", ["0"]],
"nWv1ja": ["在「设置 → 忽略模式」中管理隐藏文件。"],
@@ -3040,6 +3083,7 @@
"nqV0Kk": ["这个文件夹还没有同步到 GitHub。下次同步后链接就会生效。"],
"nrGWJ7": ["尚未设置 git 身份——提交会使用默认作者。设置你自己的身份,队友才能看到你的名字。"],
"nrXDdR": ["字段名"],
+ "nsM-_m": ["浏览数百个主题"],
"nsUDL8": ["已选择 ", ["1"], " 个项目中的 ", ["0"], " 个"],
"nskygk": ["选择智能体"],
"nwtY4N": ["出了点问题"],
@@ -3078,6 +3122,7 @@
"项目插件是你项目的写作规范——在这里开启或关闭它们。这个选择会写入 config.yml,并通过 git 与所有协作者共享。每个启用的插件在设置侧边栏的「插件」下都有自己的页面。"
],
"oYepHb": ["这个项目关闭了终端。重新开启后才能在这里运行命令。"],
+ "oZUYMv": ["无法恢复 ", ["0"], "。该名称已被使用。"],
"of3tF-": [
"你选择了 ~/Documents。OpenKnowledge 会索引它下面的每个 markdown 文件。如果你只想管理某个子文件夹,请选择更小的范围。"
],
@@ -3104,6 +3149,7 @@
["0"],
"——此后 OK 之外的操作改动过它。显示的是磁盘上现在的状态;你下一次的「符号链接/取消链接」会覆盖它。"
],
+ "p7Utw8": ["不是 base16 主题"],
"p98xmP": ["适用于"],
"p9sdCy": ["新的忽略模式"],
"pA16WG": ["此项目没有 GitHub 远程仓库。"],
@@ -3183,6 +3229,7 @@
"qIJIrD": ["正在测试"],
"qJSo0_": ["副本和符号链接有什么区别?"],
"qNOgUu": ["在来源处的编辑会同步到这里——不会因复制粘贴而产生偏差。"],
+ "qQi_um": ["主题已导入。"],
"qRZh7J": ["让 Tab 键离开源码编辑器,而不是缩进。"],
"qSKu2v": ["源码导航与选择"],
"qSxaOz": ["接受对方的删除"],
@@ -3211,6 +3258,7 @@
"qo4zCg": ["路径不能包含反斜杠"],
"qpQwGC": ["描述一下你在做什么,智能体会为你搭建好。"],
"qribBG": ["架构 ", ["deleteTarget"]],
+ "qtnmEX": ["输入有效的主题名称。"],
"qvWGzP": ["全部折叠"],
"qyLmWw": ["源码编辑器搜索面板"],
"r-OJYm": ["请输入有效的分支名(不能有空格、不能以点开头、不能包含 \"..\")。"],
@@ -3234,6 +3282,7 @@
"rFmBG3": ["配色主题"],
"rFw02Q": ["正在上传 ", ["keyName"]],
"rJVoVX": ["源码查找结果"],
+ "rJm8-2": ["无法访问剪贴板 — 主题内容已显示在下方框中。"],
"rNifQd": ["移除属性"],
"rQAQus": ["无法保存模板:", ["error"]],
"rQRrkB": ["昨天"],
@@ -3298,7 +3347,6 @@
"sJK6pq": ["权限不足"],
"sJWhgo": ["未知组件:", ["unregisteredComponentName"]],
"sKEgGd": ["发送到对话"],
- "sKMhJz": ["背景色到前景色"],
"sLcbHt": [
"把另一个文件夹符号链接到其中之一,让两个智能体读取相同的技能;取消链接后可再次逐个管理某个文件夹的技能。"
],
@@ -3443,6 +3491,7 @@
"ur2XSb": ["可视化编辑器"],
"uuoHOU": ["命令执行失败。"],
"uyJsf6": ["关于"],
+ "uyOQ4e": ["主题已复制为 base16 YAML"],
"uynXup": [["tokens", "plural", { "other": ["token"] }]],
"v-h2hx": ["删除 ", ["targetGitPath"]],
"v2ZW0K": ["启用终端"],
@@ -3528,6 +3577,7 @@
"wXw19Y": ["已把“", ["projectName"], "”从最近的项目中移除。它的文件夹已不存在。"],
"wZPUJx": ["“", ["0"], "”"],
"w_Sphq": ["附件"],
+ "wbMbiY": ["已复制 ", ["selectedSlot"]],
"wbpoGe": ["无法安装 OpenKnowledge 技能:", ["message"]],
"wbv9xO": ["新建项目"],
"wc54KE": ["正在试用…"],
@@ -3693,6 +3743,7 @@
"zL0LPh": ["文本字段之外的全局范围"],
"zLGXna": ["没有可用的入门包。"],
"zLak8b": ["激活新标签页"],
+ "zMmwh4": ["选择一个主题或创建自己的主题。"],
"zQBg2C": ["把当前块上移或下移一个位置。"],
"zXj1rA": ["按语义搜索"],
"zYp8Sr": [
diff --git a/packages/app/src/locales/zh-Hans/messages.po b/packages/app/src/locales/zh-Hans/messages.po
index 974d27290..54c71a9e0 100644
--- a/packages/app/src/locales/zh-Hans/messages.po
+++ b/packages/app/src/locales/zh-Hans/messages.po
@@ -332,6 +332,11 @@ msgstr "共 {0} 个"
msgid "{0} version {1}"
msgstr "{0} 版本 {1}"
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "{0} was already deleted."
+msgstr "{0} 已经被删除了。"
+
#. placeholder {0}: activeData.label
#: src/components/EditorWorkspace.tsx
msgid "{0} was not moved."
@@ -777,6 +782,11 @@ msgstr "{sizeText} · 已隐去机密信息 · 崩溃转储未隐去"
msgid "{skillCount, plural, one {skill} other {skills}}"
msgstr "{skillCount, plural, other {技能}}"
+#. placeholder {0}: BASE16_SLOT_ROLES[slot]
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "{slot} color — {0}"
+msgstr "{slot} 颜色 — {0}"
+
#: src/components/settings/CustomThemeEditor.tsx
msgid "{slot} hex value"
msgstr "{slot} 十六进制值"
@@ -1044,6 +1054,10 @@ msgstr "一个必需的 git 工具"
msgid "A reusable starting point for new documents in this folder."
msgstr "这个文件夹中新文档可复用的起点。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "A saved theme already uses this name."
+msgstr "已有一个已保存的主题使用此名称。"
+
#: src/components/TemplateForm.tsx
msgid "A short line shown under the title in the template list."
msgstr "在模板列表中显示在标题下方的一行简介。"
@@ -1100,10 +1114,6 @@ msgstr "上方"
msgid "absent"
msgstr "不存在"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Accents"
-msgstr "重音符号"
-
#: src/components/DiffView.tsx
msgid "Accept"
msgstr "接受"
@@ -1783,10 +1793,6 @@ msgstr "返回"
msgid "Back to document view"
msgstr "返回文档视图"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Background to foreground"
-msgstr "背景色到前景色"
-
#: src/components/LinksPanel.tsx
msgid "Backlinks"
msgstr "反向链接"
@@ -1931,8 +1937,8 @@ msgid "Browse folder"
msgstr "浏览文件夹"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Browse hundreds of schemes"
-msgstr "浏览数百种配色方案"
+msgid "Browse hundreds of themes"
+msgstr "浏览数百个主题"
#: src/components/ImportSkillDialog.tsx
msgid "Browse or upload a skill for this project."
@@ -2051,6 +2057,7 @@ msgstr "无法共享此路径。"
#: src/components/ReportBugDialogBody.tsx
#: src/components/SeedDialog.tsx
#: src/components/settings/LinkPreviewsSection.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/settings/SearchSection.tsx
#: src/components/ShareBranchSwitchDialog.tsx
#: src/components/ShareReceiveDialog.tsx
@@ -2106,6 +2113,18 @@ msgstr "在外部被修改"
msgid "Changed outside OK since it last wrote here — the state shown is what's on disk now"
msgstr "自上次在这里写入后,它在 OK 之外被改动过——显示的是磁盘上现在的状态"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes save automatically to this theme."
+msgstr "更改会自动保存到此主题。"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes save automatically."
+msgstr "更改会自动保存。"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes saved automatically."
+msgstr "更改已自动保存。"
+
#: src/components/command-palette-commands.ts
msgid "Check for updates"
msgstr "检查更新"
@@ -2703,6 +2722,11 @@ msgstr "冲突"
msgid "Conflicted files"
msgstr "冲突文件"
+#. placeholder {0}: warning.conflictingFilenames.join(', ')
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Conflicting files: {0}."
+msgstr "冲突文件:{0}。"
+
#: src/components/ConflictsSection.tsx
msgid "Conflicts"
msgstr "冲突"
@@ -2895,6 +2919,10 @@ msgstr "正在转换…"
msgid "Copied"
msgstr "已复制"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Copied {selectedSlot}"
+msgstr "已复制 {selectedSlot}"
+
#: src/components/EditorTabTargetMenuItems.tsx
#: src/components/FileSidebar.tsx
#: src/components/FileTree.tsx
@@ -2932,6 +2960,7 @@ msgstr "复制"
#: src/components/CopyButton.tsx
#: src/components/empty-state/CopyablePromptList.tsx
#: src/components/InstallInClaudeDesktopDialog.tsx
+#: src/components/settings/CustomThemeEditor.tsx
#: src/lib/native-menu-catalog.ts
msgid "Copy"
msgstr "复制"
@@ -3216,6 +3245,15 @@ msgstr "无法生成报告"
msgid "Couldn't create the worktree. Try a different name."
msgstr "无法创建 worktree。请换一个名字。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t create this theme. Try again."
+msgstr "无法创建此主题。请重试。"
+
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t delete {0}. Try again."
+msgstr "无法删除 {0}。请重试。"
+
#. placeholder {0}: result.error
#: src/components/SkillFileDeleteDialog.tsx
msgid "Couldn't delete file: {0}"
@@ -3233,6 +3271,10 @@ msgstr "无法删除模板:{error}"
msgid "Couldn't delete that comment."
msgstr "无法删除那条评论。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t delete this theme. Refresh and try again."
+msgstr "无法删除此主题。请刷新后重试。"
+
#: src/components/settings/AccountSection.tsx
msgid "Couldn't disconnect — please try again."
msgstr "无法断开连接——请重试。"
@@ -3396,8 +3438,12 @@ msgid "Couldn't reach the agent registry."
msgstr "无法连接到智能体注册表。"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Couldn’t reach the clipboard — the scheme is in the box below."
-msgstr "无法访问剪贴板——配色方案在下方的输入框中。"
+msgid "Couldn’t reach the clipboard — the theme is in the box below."
+msgstr "无法访问剪贴板 — 主题内容已显示在下方框中。"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Couldn’t reach the clipboard."
+msgstr "无法访问剪贴板。"
#: src/components/CommandPalette.tsx
msgid "Couldn't reach the embeddings provider — retry"
@@ -3424,6 +3470,11 @@ msgstr "无法读取等待发送的评论——什么都没有发送。"
msgid "Couldn't read the comments waiting to send: {0}"
msgstr "无法读取等待发送的评论:{0}"
+#. placeholder {0}: warning.code
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t read this theme ({0})"
+msgstr "无法读取此主题({0})"
+
#: src/components/EditorActivityPool.tsx
msgid "Couldn't reconnect after server restart"
msgstr "服务器重启后无法重新连接"
@@ -3472,6 +3523,16 @@ msgstr "无法自动重启服务器。请在终端中运行 `ok stop all`,然
msgid "Couldn't restart the server. Try `ok start` in this folder."
msgstr "无法重启服务器。请在这个文件夹中尝试 `ok start`。"
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t restore {0}. That name is already in use."
+msgstr "无法恢复 {0}。该名称已被使用。"
+
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t restore {0}. Try again."
+msgstr "无法恢复 {0}。请重试。"
+
#. placeholder {0}: resumeError.message
#: src/components/acp/ThreadView.tsx
msgid "Couldn't resume this chat: {0}"
@@ -3481,6 +3542,10 @@ msgstr "无法恢复此对话:{0}"
msgid "Couldn't run the test. Check that OpenKnowledge is still running."
msgstr "无法运行测试。请确认 OpenKnowledge 仍在运行。"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Couldn’t save changes. Try editing a color again."
+msgstr "无法保存更改。请再次编辑颜色。"
+
#: src/components/TemplateForm.tsx
msgid "Couldn't save template: {error}"
msgstr "无法保存模板:{error}"
@@ -3599,6 +3664,10 @@ msgstr "崩溃转储"
msgid "Create"
msgstr "创建"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Create & edit"
+msgstr "创建并编辑"
+
#: src/components/TemplateRow.tsx
msgid "Create a document from {label}"
msgstr "用 {label} 创建文档"
@@ -3670,6 +3739,10 @@ msgstr "新建项目"
msgid "Create new tag #{tagValue}"
msgstr "新建标签 #{tagValue}"
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Create new theme"
+msgstr "创建新主题"
+
#: src/components/GraphPanel.tsx
#: src/components/ProblemsPanel.tsx
#: src/editor/extensions/InternalLinkPropPanel.tsx
@@ -3768,6 +3841,10 @@ msgstr "正在创建页面:{linkTitle}。"
msgid "Creating..."
msgstr "正在创建…"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Creating…"
+msgstr "正在创建…"
+
#: src/components/RecentProjectsMenu.tsx
msgid "Current"
msgstr "当前"
@@ -3840,8 +3917,10 @@ msgstr "默认:<0>{0}</0>"
msgid "Delete"
msgstr "删除"
+#. placeholder {0}: theme.label
#. placeholder {0}: thread.title
#: src/components/acp/ThreadHistoryMenu.tsx
+#: src/components/settings/ColorThemePicker.tsx
msgid "Delete {0}"
msgstr "删除 {0}"
@@ -3921,6 +4000,11 @@ msgstr "删除此对话?"
msgid "Delete this comment"
msgstr "删除这条评论"
+#. placeholder {0}: deletedTheme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Deleted {0}."
+msgstr "已删除 {0}。"
+
#: src/components/settings/LintingSection.tsx
msgid "Deleted {file}"
msgstr "已删除 {file}"
@@ -4239,6 +4323,7 @@ msgstr "完成"
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/PublishToGitHubDialog.tsx
#: src/components/ReportBugDialogBody.tsx
+#: src/components/settings/CustomThemeEditor.tsx
#: src/editor/extensions/JsxComponentView.tsx
#: src/editor/extensions/JsxInlineView.tsx
#: src/editor/extensions/MathInlineView.tsx
@@ -4373,6 +4458,11 @@ msgstr "每个选中的工具都会获得一条 OpenKnowledge MCP 条目。"
msgid "Edit"
msgstr "编辑"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Edit {0}"
+msgstr "编辑 {0}"
+
#. placeholder {0}: descriptor.displayName ?? descriptor.name
#: src/editor/extensions/JsxComponentView.tsx
msgid "Edit {0} source"
@@ -4446,6 +4536,11 @@ msgstr "已编辑模板"
msgid "editing [[{realCurrentDoc}]]"
msgstr "正在编辑 [[{realCurrentDoc}]]"
+#. placeholder {0}: scheme.name
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Editing {0}"
+msgstr "正在编辑 {0}"
+
#: src/components/SkillEditBanner.tsx
msgid "Editing {boldName} in place. Changes save straight to your editor's copy."
msgstr "正在就地编辑 {boldName}。更改会直接保存到你编辑器中的那份副本。"
@@ -4475,8 +4570,12 @@ msgid "Editor status bar"
msgstr "编辑器状态栏"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Edits apply live. Light or dark comes from the scheme."
-msgstr "更改实时生效。明暗模式来自配色方案。"
+msgid "Edits apply live and save automatically to this theme."
+msgstr "编辑会实时生效,并自动保存到此主题。"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Edits apply live. Light or dark comes from the theme."
+msgstr "编辑会实时生效。浅色或深色由主题决定。"
#: src/editor/slash-command/component-items.tsx
msgid "Edits at the source land here — no copy-paste drift."
@@ -4647,6 +4746,10 @@ msgstr "请输入 6 位十六进制值,例如 #1A2B3C"
msgid "Enter a folder name (e.g. brain)."
msgstr "请输入文件夹名(例如 brain)。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Enter a name for this theme."
+msgstr "输入此主题的名称。"
+
#: src/components/CreateProjectDialog.tsx
msgid "Enter a project name"
msgstr "请输入项目名"
@@ -4663,6 +4766,10 @@ msgstr "请为这个模板输入标题。"
msgid "Enter a valid branch name (no spaces, no leading dot, no \"..\")."
msgstr "请输入有效的分支名(不能有空格、不能以点开头、不能包含 \"..\")。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Enter a valid theme name."
+msgstr "输入有效的主题名称。"
+
#: src/components/settings/SearchSection.tsx
msgid "Enter a valid URL (for example https://api.openai.com/v1)."
msgstr "请输入有效的 URL(例如 https://api.openai.com/v1)。"
@@ -5555,6 +5662,10 @@ msgstr "GitHub 登录缺失或已过期。请重新连接以继续同步。"
msgid "GitHub, a git URL, or a local path."
msgstr "GitHub、一个 git URL,或一个本地路径。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Give it a name before editing its colors."
+msgstr "请先命名主题,再编辑颜色。"
+
#: src/components/settings/AiToolsSection.tsx
msgid "Give the AI tools you use access to read and update your projects. Checking a box sets it up right away; unchecking removes it."
msgstr "让你使用的 AI 工具能够读取和更新你的项目。勾选即刻生效;取消勾选则移除。"
@@ -5734,6 +5845,11 @@ msgstr "已隐藏文件夹“{basename}”"
msgid "Hide"
msgstr "隐藏"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Hide {0} editor"
+msgstr "隐藏 {0} 编辑器"
+
#: src/lib/native-menu-catalog.ts
msgid "Hide {appName}"
msgstr "隐藏 {appName}"
@@ -5939,6 +6055,11 @@ msgstr "我要换用另一个工具"
msgid "Icon picker"
msgstr "图标选择器"
+#. placeholder {0}: createIdentity.stem
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "ID: {0}"
+msgstr "ID:{0}"
+
#: src/components/AutoSyncEnableWarning.tsx
msgid "If an update arrives for something you are editing, you choose which version to keep, like a merge conflict."
msgstr "如果你正在编辑的内容收到更新,你可以像处理合并冲突那样选择保留哪个版本。"
@@ -5974,10 +6095,6 @@ msgstr "作为模板导入"
msgid "Import failed: {0}"
msgstr "导入失败:{0}"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Import scheme"
-msgstr "导入配色方案"
-
#. placeholder {0}: result.name
#: src/lib/skill-import-toast.ts
msgid "Imported \"{0}\"."
@@ -6319,6 +6436,10 @@ msgstr "给 AI 的指令"
msgid "Integrations"
msgstr "集成"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Invalid color value"
+msgstr "无效的颜色值"
+
#: src/components/CreateProjectDialog.tsx
msgid "Invalid input — pick a different folder."
msgstr "输入无效——请换一个文件夹。"
@@ -6339,6 +6460,10 @@ msgstr "服务器响应结构无效"
msgid "Invalid share URL."
msgstr "共享链接无效。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Invalid YAML"
+msgstr "无效的 YAML"
+
#: src/uninstall/UninstallSurveyScreen.tsx
msgid "It didn't fit into my workflow"
msgstr "它不适合我的工作流程"
@@ -6572,6 +6697,10 @@ msgstr "链接 URL"
msgid "Link-graph response did not match expected shape."
msgstr "链接关系图响应的结构与预期不符。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Linked theme files aren’t supported"
+msgstr "不支持链接的主题文件"
+
#: src/components/DocPanel.tsx
msgid "Links"
msgstr "链接"
@@ -6947,6 +7076,14 @@ msgstr "页面不存在——点击可创建"
msgid "Missing page: {linkTitle}. Click to create."
msgstr "页面不存在:{linkTitle}。点击可创建。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Missing palette colors"
+msgstr "缺少调色板颜色"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Missing theme name"
+msgstr "缺少主题名称"
+
#: src/components/SyncStatusBadge.tsx
msgid "Mode"
msgstr "模式"
@@ -7144,6 +7281,10 @@ msgstr "正在琢磨…"
msgid "Multi-page PDF viewer with toolbar controls (thumbnails, page nav, zoom)."
msgstr "多页 PDF 查看器,带工具栏控件(缩略图、翻页、缩放)。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Multiple files use this theme name"
+msgstr "多个文件使用了此主题名称"
+
#: src/components/acp/working-status.ts
msgid "Musing…"
msgstr "正在沉思…"
@@ -7186,6 +7327,10 @@ msgstr "名称不能为空"
msgid "Name is required"
msgstr "名称为必填项"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Name your theme"
+msgstr "为主题命名"
+
#: src/lib/keyboard-shortcuts.ts
msgid "Navigate CodeMirror source search results or dismiss the search panel."
msgstr "在 CodeMirror 源码搜索结果之间移动,或关闭搜索面板。"
@@ -7742,6 +7887,10 @@ msgstr "这些问题都没有自动修复方案。"
msgid "None of these problems have an automatic fix. Try Fix all with AI."
msgstr "这些问题都没有自动修复方案。可以试试「用 AI 全部修复」。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Not a base16 theme"
+msgstr "不是 base16 主题"
+
#: src/components/acp/ThreadView.tsx
msgid "Not answered"
msgstr "未回答"
@@ -8642,8 +8791,8 @@ msgid "Paste"
msgstr "粘贴"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Paste a base16 scheme"
-msgstr "粘贴一个 base16 配色方案"
+msgid "Paste a base16 theme"
+msgstr "粘贴 base16 主题"
#: src/components/AuthModal.tsx
msgid "Paste a personal access token for <0>{host}</0>."
@@ -8766,10 +8915,6 @@ msgstr "仅限这台设备——保存在你的用户配置中,不会共享。
msgid "Pick <0>openknowledge.skill</0> from your <1>Downloads</1> folder. It enables automatically."
msgstr "从你的<1>下载</1>文件夹中选择 <0>openknowledge.skill</0>。它会自动启用。"
-#: src/components/settings/ThemePluginSection.tsx
-msgid "Pick a built-in IDE color palette, or define your own."
-msgstr "选择一个内置的 IDE 配色方案,或者自己定义一个。"
-
#: src/components/settings/SkillTargetsPicker.tsx
msgid "Pick a folder to merge INTO {display}. That folder becomes a symlink to this one, so its agent reads everything placed here. This folder stays real. Conflicting skills abort the merge."
msgstr "选择一个文件夹,把它合并进 {display}。那个文件夹会变成指向这个文件夹的符号链接,因此它的智能体会读取放在这里的一切。这个文件夹仍然是真实文件夹。如果技能冲突,合并会中止。"
@@ -8782,6 +8927,10 @@ msgstr "取个名字"
msgid "Pick a palette for light mode and one for dark mode. The theme setting in Preferences chooses between them — on “System”, so does your OS."
msgstr "为浅色模式和深色模式各选一个配色方案。「偏好设置」中的主题设置决定用哪一个;选择「系统」时,则由你的操作系统决定。"
+#: src/components/settings/ThemePluginSection.tsx
+msgid "Pick a theme or create your own."
+msgstr "选择一个主题或创建自己的主题。"
+
#: src/editor/slash-command/items.tsx
msgid "Pick an emoji to insert at the cursor."
msgstr "选择一个表情符号插入到光标处。"
@@ -8888,8 +9037,8 @@ msgid "Press Space to pick up a tab. Use the arrow keys to move it within a tab
msgstr "按空格键拾取标签页。使用方向键在标签栏内移动,然后按空格键或回车键放下。按 Shift+F10 或菜单键打开标签页的右键菜单,其中包含拆分、关闭、固定等操作。"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Press the sun or moon on “Custom” above to use this scheme."
-msgstr "点击上方「自定义」处的太阳或月亮图标即可使用这个配色方案。"
+msgid "Press the sun or moon on “Custom” above to use this theme."
+msgstr "按上方“自定义”中的太阳或月亮图标以使用此主题。"
#: src/components/PublishToGitHubDialog.tsx
msgid "Preview browsers can't auto-copy. Use Cmd/Ctrl+C on the URL above, or open OK in the desktop app."
@@ -9789,6 +9938,11 @@ msgstr "要恢复到这个版本吗?"
msgid "Restore with remote changes"
msgstr "带上远程改动一起恢复"
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Restored {0}."
+msgstr "已恢复 {0}。"
+
#. placeholder {0}: descriptor.targetSha7
#: src/components/TimelinePanel.tsx
msgid "Restored an earlier version ({0})"
@@ -9994,6 +10148,10 @@ msgstr "保存到这个项目的技能文件夹中(例如 <0>.agents/skills</0
msgid "Saved into your global skills folder (e.g. <0>~/.agents/skills</0>)."
msgstr "保存到你的全局技能文件夹中(例如 <0>~/.agents/skills</0>)。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Saved themes couldn’t load. The last available theme list is still shown."
+msgstr "无法加载已保存的主题。仍显示上次可用的主题列表。"
+
#: src/components/SkillProperties.tsx
msgid "Saved to"
msgstr "保存到"
@@ -10011,6 +10169,10 @@ msgstr "把文件保存到 <0>~/Downloads/openknowledge.skill</0> 并打开 Clau
msgid "Saving"
msgstr "正在保存"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Saving changes…"
+msgstr "正在保存更改…"
+
#: src/components/settings/LintingSection.tsx
msgid "schema {deleteTarget}"
msgstr "架构 {deleteTarget}"
@@ -10019,10 +10181,6 @@ msgstr "架构 {deleteTarget}"
msgid "Schema fields"
msgstr "架构字段"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Scheme copied as base16 YAML"
-msgstr "已把配色方案复制为 base16 YAML"
-
#: src/components/ImportSkillForm.tsx
#: src/components/PanelScopeHeader.tsx
msgid "Scope"
@@ -10212,6 +10370,11 @@ msgstr "查看全部 {0} 个入门包"
msgid "See the full install guide"
msgstr "查看完整的安装指南"
+#. placeholder {0}: BASE16_SLOT_ROLES[slot]
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Select {slot} — {0}"
+msgstr "选择 {slot} — {0}"
+
#: src/components/FrontmatterRow.tsx
msgid "Select a value"
msgstr "选择一个值"
@@ -10923,6 +11086,10 @@ msgstr "Slidev 启动超时。请重试。"
msgid "Small section heading."
msgstr "小号章节标题。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Some saved themes aren’t shown because the theme folder exceeds the scan limit."
+msgstr "因为主题文件夹超出扫描限制,部分已保存的主题未显示。"
+
#: src/components/FeedbackForm.tsx
msgid "Something broke"
msgstr "有东西坏了"
@@ -11843,6 +12010,30 @@ msgstr "这个令牌需要 repo 和 read:user 权限范围。"
msgid "Theme"
msgstr "主题"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme colors"
+msgstr "主题颜色"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme copied as base16 YAML"
+msgstr "主题已复制为 base16 YAML"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme imported."
+msgstr "主题已导入。"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name"
+msgstr "主题名称"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name has unsupported characters"
+msgstr "主题名称包含不支持的字符"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name is too long"
+msgstr "主题名称过长"
+
#: src/components/settings/ThemePreviewCanvas.tsx
msgid "Theme preview"
msgstr "主题预览"
@@ -12037,6 +12228,10 @@ msgstr "这是 {boldName} 的预览,在 {boldHarness} 的 {boldLevel} 级别
msgid "This is a preview of {boldName}. Install it into your agents."
msgstr "这是 {boldName} 的预览。把它安装到你的智能体中。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This isn’t a regular theme file"
+msgstr "这不是常规主题文件"
+
#: src/components/SlidesToolbarControls.tsx
msgid "This isn't a supported version of Slidev."
msgstr "这不是受支持的 Slidev 版本。"
@@ -12198,6 +12393,18 @@ msgstr "这个来源包含多个技能——请选择要导入的那一个。"
msgid "This template lives in a parent folder — deleting it affects every folder beneath it that doesn't define its own version."
msgstr "这个模板位于上级文件夹中——删除它会影响下面所有没有定义自己版本的文件夹。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme can’t be used until the file is fixed."
+msgstr "修复文件后才能使用此主题。"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme file couldn’t be read"
+msgstr "无法读取此主题文件"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme file is too large"
+msgstr "此主题文件过大"
+
#: src/components/ShareReceiveDialog.tsx
msgid "This usually means one of:"
msgstr "这通常意味着以下之一:"
@@ -12371,6 +12578,7 @@ msgstr "试试一段提示词"
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/ReportBugDialogBody.tsx
#: src/components/settings/AccountSection.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/ShareReceiveDialog.tsx
msgid "Try again"
msgstr "重试"
@@ -12478,6 +12686,7 @@ msgstr "已撤销 {docName} 上的最后一次编辑"
#: src/components/ActivityPanelBurstRow.tsx
#: src/components/AppMenubar.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/settings/SharingSection.tsx
#: src/lib/native-menu-catalog.ts
msgid "Undo"
@@ -12745,6 +12954,16 @@ msgstr "把 {0} 用作深色主题"
msgid "Use {0} as the light theme"
msgstr "把 {0} 用作浅色主题"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Use {0} for the active dark mode"
+msgstr "将 {0} 用于当前的深色模式"
+
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Use {0} for the active light mode"
+msgstr "将 {0} 用于当前的浅色模式"
+
#: src/components/SkillForkDialog.tsx
msgid "Use {editor} version"
msgstr "使用 {editor} 的版本"
@@ -12757,6 +12976,10 @@ msgstr "用 <0>{copyShortcut}</0> 复制下方的链接,或者在桌面应用
msgid "Use a folder you already have."
msgstr "使用你已有的文件夹。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Use a lowercase .yaml or .yml extension"
+msgstr "使用小写的 .yaml 或 .yml 扩展名"
+
#: src/components/SkillFileCreateDialog.tsx
#: src/components/SkillFileRenameDialog.tsx
msgid "Use a relative path inside the skill (no .., no spaces; SKILL.md is managed)."
@@ -12941,6 +13164,10 @@ msgstr "我们会构建 <0>openknowledge.skill</0>,保存到 <1>~/Downloads</1
msgid "We'll create a repository and start syncing — no terminal needed."
msgstr "我们会创建一个仓库并开始同步——不需要用终端。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "We’ll create a safe theme ID from this name."
+msgstr "我们将根据此名称创建安全的主题 ID。"
+
#: src/components/ReportBugDialogBody.tsx
msgid "We've filed it with the team and attached your logs."
msgstr "我们已经把它提交给团队,并附上了你的日志。"
diff --git a/packages/app/src/locales/zh-Hant/messages.json b/packages/app/src/locales/zh-Hant/messages.json
index 805cb6a4d..57eda3167 100644
--- a/packages/app/src/locales/zh-Hant/messages.json
+++ b/packages/app/src/locales/zh-Hant/messages.json
@@ -30,11 +30,13 @@
"-lCAuQ": ["正在載入關係圖"],
"-o5XAG": ["會連同你的備註和應用程式版本一起私下寄給 OpenKnowledge 團隊。絕不會公開發布。"],
"-oHckY": ["OpenKnowledge 讀取了設定 ", ["key"]],
+ "-othoN": ["這個主題檔案太大"],
"-q4abP": [
"結果已被截斷——這個工作區的檔案數超過搜尋能索引的上限。找不到某個檔案可能是上限造成的,不是打錯字。"
],
"-slrNR": ["切換工作清單。"],
"-uaQnI": ["沒有相符的 worktree 或分支。"],
+ "-yOx8u": ["正在儲存變更…"],
"-yPBXI": ["選擇檔案"],
"-ySLQJ": ["Git 與 PR"],
"-zA2E7": ["無法建立 worktree。請換一個名稱。"],
@@ -95,6 +97,7 @@
"0kTAXe": ["來源:", ["mirrorSrc"]],
"0pZmTP": ["無法分享這個路徑。"],
"0qyKG6": ["已從磁碟同步"],
+ "0r6d6v": ["變更已自動儲存。"],
"0rwwOn": ["依標籤"],
"0s8-e8": ["從鍵盤邊界選取、進入或離開區塊元件和備用的原始碼區塊。"],
"0t0bbC": ["無法儲存同步偏好設定:", ["detail"]],
@@ -103,6 +106,7 @@
"0xnQ_X": ["更新會自動流入"],
"0xnmlQ": ["儲存庫名稱"],
"0yL--g": ["檢視衝突"],
+ "0ySP5u": ["變更會自動儲存到這個主題。"],
"0zAhu6": ["所有文件"],
"10g8I_": ["關閉「只顯示 markdown 檔案」"],
"11ukmX": ["重新命名失敗:", ["0"]],
@@ -112,6 +116,7 @@
"161NCV": ["正在停止"],
"16D5Zj": ["確定要刪除 ", ["itemName"], " 嗎?這個動作無法復原。"],
"16eIWu": ["強制停止"],
+ "16tSS_": ["貼上 base16 主題"],
"170Js2": ["隱藏面板"],
"1AumWo": ["推送失敗——詳情請看伺服器記錄。"],
"1CalO6": ["樣式"],
@@ -142,6 +147,7 @@
"1njn7W": ["淺色"],
"1nke1r": ["在 GitHub 上開啟 ", ["0"], "(在新分頁中開啟)"],
"1oSHI0": ["無法安裝 ", ["skillName"], ":", ["0"]],
+ "1qpGKz": ["無法儲存變更。請再編輯一次色彩。"],
"1ruosn": ["OpenKnowledge"],
"1t_NnN": ["拒絕"],
"1u-mAI": ["無法開始同步。請檢查你的網路連線,然後再試一次。"],
@@ -248,7 +254,6 @@
"3kYcuM": ["確定要刪除所選的項目嗎?"],
"3l32hp": ["屬於 ", ["plugin"], " 外掛"],
"3l_cXP": ["想看的話可以看看。我們收到的就是這個檔案本身。"],
- "3l_knd": ["點一下上面「自訂」旁的太陽或月亮圖示,就能使用這個配色方案。"],
"3m2GBo": ["正在搜尋文件"],
"3mFsc3": ["連同遠端的變更一起還原"],
"3nnyi_": [["0", "plural", { "other": ["刪除 ", "#", " 個項目"] }]],
@@ -286,6 +291,7 @@
"4TzU0n": ["初始化"],
"4buZWd": ["繼承自 ", ["path"]],
"4c_a6S": ["還沒有設定任何東西。"],
+ "4d0VYJ": ["我們會根據這個名稱建立安全的主題 ID。"],
"4eO-iB": ["捨棄這則註解"],
"4g19V6": ["更新屬性失敗"],
"4h3e0H": ["無法更新技能分享設定——", ["detail"], "。"],
@@ -404,6 +410,7 @@
"描述它該做什麼,或者自己加一個。OpenKnowledge 會把你的技能集中保存、做版本管理,並安裝到 Claude、Codex、Cursor 等代理裡。"
],
"6MnZEC": ["終端機載入失敗"],
+ "6Nea1q": ["將 ", ["0"], " 用於目前的深色模式"],
"6O626z": ["沒有標題符合「", ["trimmedAnchorQuery"], "」"],
"6Pxqwv": [
"還沒有專案範本。建立一個,就能在這個專案的任何地方使用它。資料夾範圍的範本放在各個資料夾的總覽頁上。"
@@ -413,6 +420,7 @@
"6VqW-1": ["移除 ", ["keyName"]],
"6WdDG7": ["頁"],
"6YBJ3m": ["就選取內容問 AI"],
+ "6YE0P6": ["正在編輯 ", ["0"]],
"6YtxFj": ["名稱"],
"6ZhdPI": ["代理可以讀取、寫入和呈現的內容。"],
"6_ZOw4": ["已複製完整路徑"],
@@ -442,6 +450,7 @@
"6s7LXO": ["提醒"],
"6u9LvN": [["days", "plural", { "other": ["#", " 天前"] }]],
"6vEr3W": ["連結目標"],
+ "6xeZX9": ["編輯會即時套用。淺色或深色由主題決定。"],
"6zzhQL": ["用電子郵件寄出你的回報"],
"72xhRD": ["圖表檢視模式"],
"74-bX-": ["引言區塊會從周圍的內文中凸顯出來。"],
@@ -451,13 +460,13 @@
"77SdEP": ["刪除 ", ["itemName"]],
"78G7R3": ["依 JSON Schema 檔案驗證文件的 frontmatter,並用 glob 限定適用的文件集。"],
"7Bj3x9": ["失敗"],
- "7EmDc7": ["匯入配色方案"],
"7FA2iI": ["無法讀取等著傳送的註解——什麼都沒有送出。"],
"7FamGZ": ["移至行"],
"7Fkcej": ["+ 新增 ", ["addChildName"]],
"7H4UHD": ["標了 <0>#", ["tagName"], "</0> 的文件"],
"7IsvrP": ["正在檢查更新"],
"7JtSLi": ["刪除路徑失敗"],
+ "7O7REc": ["無法還原 ", ["0"], "。請再試一次。"],
"7OhaRy": ["原始碼搜尋"],
"7Ongq0": ["把我的 AGENTS.md 檔案精簡到 4 萬字元以內"],
"7OwvEL": ["顯示 HTML 預覽"],
@@ -551,6 +560,8 @@
"8uGMP8": ["隱藏的內容放在這裡。"],
"8vCZcs": ["開啟檔案失敗。"],
"8vETh9": ["顯示"],
+ "8x6zk9": ["隱藏 ", ["0"], " 編輯器"],
+ "9-lMCF": [["slot"], " 色彩 — ", ["0"]],
"90-wKT": ["OpenKnowledge 查看了 ", ["subject"], " 的歷史"],
"92rbk2": ["鏡像正在載入 <0>", ["mirrorRef"], "</0>"],
"93LBnX": ["隱藏「代理」"],
@@ -598,7 +609,6 @@
"9fvog2": ["無法預覽:", ["errorDetail"]],
"9i21pa": ["提交會自動進行"],
"9ieZhu": ["已安裝在 ", ["path"], "——點一下可移除"],
- "9j1tqo": ["無法存取剪貼簿——配色方案在下面的方框中。"],
"9jnjV0": ["嵌入一個音訊檔,附原生播放器控制項。"],
"9lso1Y": ["建立 <0>", ["folderPart"], "/</0> 資料夾"],
"9m4D_h": ["GitHub、一個 git URL,或一個本機路徑。"],
@@ -631,8 +641,10 @@
"AIC67-": ["在側邊欄中一路點下去時重複使用同一個分頁。關掉之後,每次點擊都會開新分頁。"],
"AIn2Yv": [["displayName"], " CLI,", ["hint"]],
"AItsE5": ["在那裡開啟"],
+ "AJ7_B2": ["建立新主題"],
"AKxFtn": [["openedWorktreeCount", "plural", { "other": ["worktree"] }]],
"ALhMYW": ["終端機"],
+ "ANFxWn": ["無法刪除這個主題。請重新整理後再試一次。"],
"APNlbk": ["結束 ", ["0"]],
"AQ-Lfg": ["無法載入範本"],
"AQGtjK": ["指令會以你在這台電腦上的 macOS 使用者帳戶的完整權限執行。關掉這一項可停用 shell。"],
@@ -747,9 +759,11 @@
"這個檔案太大,無法在內建文字編輯器中開啟(上限 1 MB)。請用下面的「開啟檔案」在其他應用程式中開啟它。"
],
"C_cPoW": ["你的 GitHub 工作階段已過期——請重新登入以確認推送權限。"],
+ "CcaU4i": ["編輯會即時套用,並自動儲存到這個主題。"],
"ChAtFg": ["你沒有推送到這個儲存庫的權限"],
"ChMshD": ["結束 ", ["appName"]],
"Ck9XRt": ["無法儲存金鑰——請再試一次。"],
+ "ClII5l": ["按上方「自訂」中的太陽或月亮圖示以使用這個主題。"],
"ClTEde": ["把選取的內容放入代理面板,隨時可以補充並傳送。"],
"CmeH9S": ["為 ", ["keyName"], " 新增屬性"],
"CnOGgs": ["同步模式"],
@@ -791,6 +805,7 @@
"DKYW1G": [
"這項設定按每台電腦生效,不會分享給協作者。除非你的端點是不需要金鑰的本機伺服器,否則需要一把 API 金鑰(在下面設定)。"
],
+ "DLIljL": ["因為主題資料夾超出掃描限制,部分已儲存的主題未顯示。"],
"DMLE5q": ["MCP 自動修復失敗"],
"DMeaxi": ["正在下載 ", ["0"], " ", ["1"], "…"],
"DNkveC": ["欄選項"],
@@ -803,6 +818,7 @@
"</0> 分支上。你有尚未提交的變更,沒辦法在這裡切換——請在 worktree 中開啟它,這樣你的變更就不會被動到。"
],
"DUWgfT": ["重新用 GitHub Enterprise Server 驗證"],
+ "DUb7Ax": ["多個檔案使用這個主題名稱"],
"DVh_Tb": ["移到垃圾桶後的清理失敗"],
"DWJtEo": ["接下來會怎樣"],
"DXd9LM": ["新增 worktree"],
@@ -817,6 +833,7 @@
"DhT_PK": ["OpenKnowledge 匯入了一個技能"],
"DiFKSL": ["正在統計 markdown 檔案"],
"DiZ3pq": ["圖示選擇器"],
+ "DmkTrb": ["無法建立這個主題。請再試一次。"],
"Dnn2XG": ["自動"],
"DpjYd6": ["跳到錨定的文字"],
"DrYM2Z": ["同步已停用"],
@@ -966,6 +983,7 @@
"說清楚你的程式碼庫是怎麼運作的,讓隊友和 AI 代理都找得到方向。適合用來記錄架構、主要組成,以及新貢獻者一定會問的問題。"
],
"FyW0WO": ["在瀏覽器中授權"],
+ "FyyIjH": ["主題名稱太長"],
"G-JBA1": ["原始碼模式需要保持連線——你的編輯已經存好,重新連上後就會出現。"],
"G-h6qN": [["0", "plural", { "other": ["已設定 ", "#", " 個選項"] }]],
"G0I7bo": ["解謎中…"],
@@ -996,6 +1014,7 @@
"GQDSBN": ["版面配置選項"],
"GSYWCm": ["隱藏文件面板"],
"GUYwCr": ["關閉這則提示"],
+ "GUZHkL": ["缺少色盤色彩"],
"GUqTzn": ["競品研究"],
"GXf9hG": ["正在複製 ", ["repoName"], "…"],
"GZzDqc": ["其中包含你剛遇到的錯誤的詳細資料。API 金鑰、權杖之類的機密內容會自動遮蔽。"],
@@ -1059,6 +1078,7 @@
"HSI88F": ["刪除表格"],
"HSh8u_": ["資料夾"],
"HTW0Zw": ["還差一步:在這個專案中執行 <0>claude</0>,並核准 OpenKnowledge 一次。"],
+ "HZ7fEu": ["主題名稱"],
"HbcQYf": ["要把 ", ["display"], " 處的符號連結換成技能的獨立副本嗎?其他東西都不會動。"],
"HdkSiO": ["新增檔案"],
"HfI1dR": ["我本機已經有了 →"],
@@ -1097,6 +1117,7 @@
"IFezUv": ["稽核未能完成。請再試一次。"],
"IInnZo": ["衝突"],
"IKoTAC": ["維持關閉"],
+ "IMLUBh": ["無效的色彩值"],
"INp_z6": ["對此", ["0"], "發表評論或詢問 AI"],
"IO8REi": ["無法開啟「", ["name"], "」:", ["0"]],
"IQPyrD": ["頁面不存在——點一下可建立"],
@@ -1108,7 +1129,6 @@
"IX_uXB": ["my-feature"],
"IYciRC": ["謝謝你的回報!"],
"IajAbS": ["加入入門套件"],
- "IbTC7z": ["貼上一個 base16 配色方案"],
"If0crP": ["用 AI ", ["targetDisplayName"], " 開啟,", ["hint"]],
"IgN3LY": ["在 <0>", ["address"], "</0> 中選取的文字上"],
"IgTwLt": ["在編輯器中開啟這份文件並摺疊關係圖。"],
@@ -1123,6 +1143,7 @@
"Ix0K8o": ["隱藏外部 URL 節點"],
"IxHMdF": ["無法刪除那則註解。"],
"IxyZXD": ["螢幕擷圖"],
+ "J1XRO3": ["主題色彩"],
"J2Mv98": ["名稱(例如 ", ["login"], ")"],
"J2_JuX": ["無(", ["0"], " 無法比對到任何文件)"],
"J2eKUI": ["檔案"],
@@ -1146,7 +1167,7 @@
"JOcPqH": ["把遠端儲存庫取到這台電腦上。"],
"JWsZlx": ["請開啟一個專案才能編輯。"],
"JZ8cO6": ["淺色、深色,或跟隨系統。"],
- "J_bJiH": ["挑一個內建的 IDE 配色方案,或者自己定義一個。"],
+ "JaU1ld": ["主題名稱包含不支援的字元"],
"JddocZ": ["切換標題欄"],
"Jejur6": ["無法載入文件"],
"JfPuv7": [["shareBranch"], " 不是有效的分支名稱。"],
@@ -1221,6 +1242,7 @@
"KsAPaB": ["這個分支已在以下位置簽出:"],
"KtACeE": ["預設:<0>", ["0"], "</0>"],
"KujtjC": ["尋找"],
+ "Kx881F": ["已還原 ", ["0"], "。"],
"L-rMC9": ["重設為預設值"],
"L1BQTH": [["0"], " 尚未安裝——正在開啟它的下載頁面。"],
"L1ZE3M": ["文件統計"],
@@ -1379,6 +1401,7 @@
"N55YNr": [
"選擇這個專案的 OpenKnowledge 設定(包括它和 AI 工具的連接)要隨專案一起保存、讓隊友也能拿到,還是只留在你的電腦上。"
],
+ "N6j2JH": ["編輯 ", ["0"]],
"NBdIgR": ["註解"],
"NCmYhK": [
"技能會教代理完成可重複的工作。可以在編輯器的「技能」區中撰寫和管理它們;每個技能的安裝選單決定它放在哪裡。以下是這個專案的技能資料夾。"
@@ -1567,6 +1590,7 @@
],
"QAi7Q9": ["分支 <0>", ["trimmed"], "</0> 已經有一個 worktree——它會在自己的視窗中開啟。"],
"QB-moX": ["把它安裝到你的其他編輯器(Claude Code、Cursor、Codex)就能分享。"],
+ "QDErHs": ["選取 ", ["slot"], " — ", ["0"]],
"QDZbvN": [["diffDays"], " 天前"],
"QGWzup": ["正在載入 OpenKnowledge 技能"],
"QHCx0c": ["錯誤回報記錄"],
@@ -1596,16 +1620,17 @@
"QlxHAH": ["正在顯示「", ["semanticResultsLabel"], "」的結果"],
"Qpfxa1": [["secs"], "秒"],
"QqBQu1": ["標籤 <0>(可見的連結文字)</0>"],
- "Quz_Qu": ["編輯會即時生效。淺色或深色由配色方案決定。"],
"Qvls7J": ["工程規格"],
"Qw-7Ie": [
"一個單純的寫作空間,每個主題一個檔案,外加一份日誌。如果你只想先動筆,讓筆記之間的連結慢慢長出來,請選這個。"
],
+ "QwG_zJ": ["衝突的檔案:", ["0"], "。"],
"QySH4I": ["偵測到的 OpenKnowledge 專案"],
"QyioBP": ["上移"],
"QzofTX": ["這個專案還沒有註解。為一段內容新增註解即可開始。"],
"R0cyYB": [["0", "plural", { "other": ["預覽的安全性原則攔截了 ", "#", " 個要求"] }]],
"R0jJzV": ["貼上 URL、owner/repo,或搜尋你的儲存庫"],
+ "R30SFt": ["使用小寫的 .yaml 或 .yml 副檔名"],
"R3y75Z": ["編輯原始碼"],
"R4OWFD": ["章節"],
"R65q-K": ["這個專案關閉了真實 shell。開啟後,指令會以你的 macOS 使用者帳戶的完整權限執行。"],
@@ -1614,6 +1639,7 @@
"R9dK63": ["範例圖片"],
"RDjuBN": ["設定"],
"RDrXh4": ["設定使用者、專案和整合相關的選項。"],
+ "RG3yW6": ["輸入這個主題的名稱。"],
"RG4XHV": ["複製 ", ["0"], " 提示"],
"RGCCrg": ["複製分享連結"],
"RGkNeJ": ["初始化一個入門套件"],
@@ -1763,6 +1789,7 @@
"UEdTEN": ["孤立"],
"UGeJuP": ["允許的值(留空 = 任意)"],
"UGtPix": ["GitHub 連線已過期。請重新連線以繼續。"],
+ "UH0Zqw": ["這不是一般的主題檔案"],
"UHwc0P": [
"這是 ",
["boldName"],
@@ -1811,7 +1838,6 @@
],
"Uci-Ph": ["編號清單"],
"Ud0Pj9": ["<0>鏡像來源已移除。</0>文件 <1>", ["src"], "</1> 已無法使用。"],
- "UeQEbk": ["瀏覽數百種配色方案"],
"UfW9Kr": [
"你的搜尋查詢和相符頁面的全文會送到你的嵌入服務供應商(預設是 OpenAI)來計算嵌入向量。"
],
@@ -1897,6 +1923,7 @@
],
"W8vpBM": ["入門套件"],
"W9_Bub": ["本機變更和傳入的同步內容重疊"],
+ "WBNpt9": ["無法讀取這個主題(", ["0"], ")"],
"WFEbV1": ["在編輯器中標出常見的 markdown 問題。由 <0>markdownlint<1/></0> 提供。"],
"WGMoTY": ["有錯誤、當機,或者覺得不太可靠"],
"WHPvOb": ["所有檔案都被檢視篩選條件隱藏了。"],
@@ -2025,6 +2052,7 @@
"Y9c_nf": ["0/0"],
"YBt9YP": ["Beta"],
"YC6_wP": ["編輯 ", ["keyName"]],
+ "YCmS3k": ["已刪除 ", ["0"], "。"],
"YDL7N6": [
"檢查外掛——要執行哪些規則家族,以及各條規則的設定——在「這個專案 → 外掛」底下的獨立分頁中設定。"
],
@@ -2048,6 +2076,7 @@
"Y_kL7X": ["自訂編輯器的外觀和行為。"],
"Ya3PlJ": ["需要授權"],
"YaeyFh": ["拉取可能會覆蓋你本機檔案中尚未提交的編輯。"],
+ "Yb82LN": ["ID:", ["0"]],
"Yea-K5": ["還原到這個時間點"],
"Yi0VMG": ["上傳 ", ["keyName"]],
"YjMLg2": ["關閉——外部連結只顯示 URL。不會有任何要求離開這台電腦。"],
@@ -2112,6 +2141,7 @@
"ZYtq3m": [
"把你用的 AI 工具連接到這個特定專案。這些檔案放在專案資料夾裡,所以開啟它的人都會得到同樣的設定。"
],
+ "Z_nNa2": ["為主題命名"],
"ZatAO_": ["開啟連結預覽失敗——", ["detail"]],
"Zf0w-R": [
"把一段文字從粗略的想法帶到完成的初稿,再到可以拿出去分享的成品。適合部落格文章、隨筆,或任何你想分階段推進的寫作。"
@@ -2147,11 +2177,13 @@
["currentLabel"],
"</1> 上。"
],
+ "_DwR-n": ["正在建立…"],
"_FLBbi": [["sizeText"], " · 已遮蔽機密資訊 · 當機傾印未遮蔽"],
"_GRWOJ": ["要更換嵌入服務供應商嗎?"],
"_HgF9q": ["排序方式"],
"_IGfXZ": ["OpenKnowledge 上次非預期地結束了。"],
"_IX_7x": ["其他"],
+ "_IfSZn": ["已有已儲存的主題使用這個名稱。"],
"_JOGC0": ["傳送意見回饋…"],
"_LczaQ": ["已拒絕 — ", ["optionName"]],
"_NWEid": ["依路徑搜尋結構描述檔案"],
@@ -2259,7 +2291,6 @@
"b6Fgpe": ["每個套件都會用現成的資料夾和範本幫你的專案搭好骨架。"],
"bBE5tC": ["在這台電腦上偵測到"],
"bBcFK_": ["開啟 ", ["keyName"], " 的表情符號選擇器"],
- "bD2SLZ": ["已把配色方案複製為 base16 YAML"],
"bD8I7O": ["完成"],
"bEp7UY": ["未連接到桌面橋接"],
"bF22t6": ["移除欄位 ", ["field"]],
@@ -2315,6 +2346,7 @@
"cIptmH": ["在 Claude Desktop App 中"],
"cKjLuT": ["(專案 + 使用者)"],
"cLP0Lf": ["遠端技能來源"],
+ "cLn264": ["無法讀取這個主題檔案"],
"cMMb6H": ["已安裝 ", ["imported"], " 個,但 ", ["failed"], " 個失敗:", ["failedNames"]],
"cN1Gcp": [["shareBranch"], " 的 worktree 資料夾已存在。"],
"cOJyVj": ["停用主題"],
@@ -2328,6 +2360,7 @@
"cU-seF": ["跳到游標所在區塊的 markdown 原始碼,置中並醒目提示。"],
"cUK8lW": [["conflictCount", "plural", { "other": ["#", " 處衝突"] }]],
"cUk6TF": ["同步失敗——詳情請看伺服器記錄。"],
+ "cUt8yN": ["變更會自動儲存。"],
"cV7LOw": ["團隊維基"],
"cVKnqL": ["無法讀取等著傳送的註解:", ["0"]],
"cZGNlb": ["再新增一個模式"],
@@ -2359,6 +2392,7 @@
"cstC0z": ["模式(正規表示式)"],
"ct2kv5": [["pageTarget"], " 中沒有標題"],
"cuA8QW": ["整理規格"],
+ "cuHhjo": ["建立並編輯"],
"d-GtJt": ["在 Markdown 原始碼中檢視"],
"d1JjXo": [
"你本機的 <0>",
@@ -2458,6 +2492,7 @@
"Git 無法追蹤這個資料夾——它是空的,或者只有被忽略的檔案。在你加入一份被追蹤的文件之前,連結不會生效。"
],
"eiUA4k": [["count", "plural", { "other": ["#", " 則註解"] }]],
+ "ekSPiP": [["0"], " 已經被刪除了。"],
"el2KyL": ["在此專案中找到 Slidev。簡報將使用專案的版本。"],
"emMrXQ": ["伺服器回傳的複本回應格式錯誤。"],
"emgiet": ["權威內容;在所有被參照的地方逐字鏡像。"],
@@ -2522,6 +2557,7 @@
"fwrPh4": ["請輸入有效的電子郵件。"],
"fxJk_6": ["<0>還有想補充的嗎?</0>請寫信到 <1/> 並附上你的編號。"],
"fxbCNQ": ["已同步。連結是最新的。"],
+ "g12y1g": ["無效的 YAML"],
"g1ZTh_": [
["count", "plural", { "other": ["確定要刪除以下 ", "#", " 個檔案/資料夾及其內容嗎?"] }]
],
@@ -2595,7 +2631,6 @@
"gwEcOD": ["你的本機副本落後了。"],
"gwykHF": ["這份文件還沒有同步到 GitHub。下次同步之後連結就會生效。"],
"gyHDWC": ["用 AI 全部修正(", ["count"], ")"],
- "gyWc8_": ["重音符號"],
"h-AdvS": ["資料夾和範本都已經在這裡了,沒有東西要加。"],
"h06R3C": ["沒有頁面缺少連出的關係圖連結。"],
"h16FyT": ["清單"],
@@ -2613,6 +2648,7 @@
"hDEaQu": ["把 OpenKnowledge 和你用的其他工具連接起來。"],
"hDKtoF": [["diffHrs"], " 小時前"],
"hDoLrm": ["把 ", ["projectName"], " 從最近的專案中移除"],
+ "hFmYGU": ["不支援連結的主題檔案"],
"hGmuTc": ["標了 #", ["tagDocsName"], " 的文件"],
"hHMv6l": ["刪除區塊"],
"hHR0tt": ["與 ", ["0"], " 的新對話"],
@@ -2626,6 +2662,7 @@
"hSBIG-": ["標題、描述、標籤——任何能描述這個資料夾的資訊。"],
"hSySVc": ["安裝交接失敗:", ["msg"]],
"hVAkI8": ["在終端機中執行"],
+ "hVzt9x": ["無法載入已儲存的主題。仍顯示上次可用的主題清單。"],
"hXUWyd": ["這一項必填"],
"hXbSxc": ["資產:", ["title"]],
"hY8pka": ["選取下一個出現的位置"],
@@ -2635,6 +2672,7 @@
"haHgQj": ["已複製相對路徑"],
"habOU_": ["更新自動核准設定失敗——", ["detail"]],
"he3ygx": ["複製"],
+ "hgF0al": ["將 ", ["0"], " 用於目前的淺色模式"],
"hgtsat": ["刪除 ", ["file"], " 失敗"],
"hh4mVC": ["請 AI 修正 ", ["flatId"]],
"hhI__i": ["確定要刪除「", ["name"], "」及其內容嗎?"],
@@ -2845,6 +2883,7 @@
"kYL1lH": ["代理活動"],
"k_Dqw1": [["0", "plural", { "other": ["#", " 份文件都沒有問題。"] }]],
"k_pade": ["設定現在已分享。提交這些 OK 檔案就能分享給你的團隊。"],
+ "k_tFzX": ["缺少主題名稱"],
"k_yIIc": ["會建立在:<0>", ["targetPreview"], "</0>"],
"ka6Eke": ["在磁碟上開啟檔案"],
"kdzzOK": ["關閉——搜尋只按關鍵字排序。不會有任何內容離開這台電腦。"],
@@ -2856,6 +2895,7 @@
"khCa4M": ["教會這個專案裡的程式碼代理透過 OpenKnowledge 讀寫內容。"],
"kj9pAE": ["正在建立頁面"],
"kknhfj": ["沒有變更"],
+ "kkux8f": ["無法刪除 ", ["0"], "。請再試一次。"],
"klPS-L": ["原始檔案——這個代理編輯之前的樣子。"],
"kmKqZg": ["叢集"],
"knjOzA": ["標籤值"],
@@ -2869,6 +2909,7 @@
"kwLcuN": [
"讓你用的 AI 工具能夠讀取和更新你的專案。在下面挑要設定的項目,之後隨時可以在「設定 > AI 工具與 CLI」中變更。"
],
+ "kwNS82": ["修正檔案後才能使用這個主題。"],
"ky9Tuc": ["編輯 ", ["0"], " 原始碼"],
"kzpkcn": ["無法儲存那次編輯。"],
"l-4nnw": ["搜尋規則"],
@@ -2914,6 +2955,7 @@
"技能內部的一個路徑——任何資料夾都可以(例如 references/notes.md)。路徑中的資料夾會自動建立。"
],
"lPzyrU": ["所有差異區塊都已解決"],
+ "lS83Sg": ["無法存取剪貼簿。"],
"lScd1O": ["Slidev 簡報僅能在 OpenKnowledge 桌面應用程式中開啟。"],
"lUtr1r": ["已選取 ", ["1"], " 項中的 ", ["0"], " 項"],
"lVWEIL": ["已索引 ", ["total"], " 個頁面中的 ", ["embedded"], " 個。"],
@@ -3035,6 +3077,7 @@
"nNYV3Y": ["另外還有 ", ["remaining"], " 個"],
"nOEDQs": ["更新同步模式失敗——", ["detail"]],
"nP-KFo": ["新的 ", ["0"], " 對話"],
+ "nTM8ab": ["請先為主題命名,再編輯色彩。"],
"nTwL53": ["開啟一份文件才能分享它的 URL。"],
"nUNZL4": ["詢問 ", ["0"]],
"nWv1ja": ["在「設定 → 忽略模式」中管理隱藏的檔案。"],
@@ -3066,6 +3109,7 @@
"nqV0Kk": ["這個資料夾還沒有同步到 GitHub。下次同步之後連結就會生效。"],
"nrGWJ7": ["還沒設定 git 身分——提交會用預設作者。設定你自己的身分,隊友才看得到你的名字。"],
"nrXDdR": ["欄位名稱"],
+ "nsM-_m": ["瀏覽數百個主題"],
"nsUDL8": ["已選取 ", ["1"], " 個專案中的 ", ["0"], " 個"],
"nskygk": ["選擇代理"],
"nwtY4N": ["出了點問題"],
@@ -3104,6 +3148,7 @@
"專案外掛是你專案的寫作標準——在這裡開啟或關閉它們。這個選擇會寫進 config.yml,並透過 git 分享給每位協作者。每個啟用的外掛在設定側邊欄的「外掛」底下都有自己的頁面。"
],
"oYepHb": ["這個專案關閉了終端機。重新開啟後才能在這裡執行指令。"],
+ "oZUYMv": ["無法還原 ", ["0"], "。這個名稱已在使用中。"],
"of3tF-": [
"你選了 ~/Documents。OpenKnowledge 會把它底下的每個 markdown 檔案都建立索引。如果你只想管理某個子資料夾,請選一個更小的範圍。"
],
@@ -3130,6 +3175,7 @@
["0"],
"——之後 OK 以外的東西改動過它。顯示的是磁碟上現在的狀態;你下一次的「符號連結/取消連結」會覆蓋它。"
],
+ "p7Utw8": ["不是 base16 主題"],
"p98xmP": ["適用於"],
"p9sdCy": ["新的忽略模式"],
"pA16WG": ["這個專案沒有 GitHub 遠端儲存庫。"],
@@ -3209,6 +3255,7 @@
"qIJIrD": ["正在測試"],
"qJSo0_": ["副本和符號連結有什麼差別?"],
"qNOgUu": ["在來源處的編輯會同步到這裡——不會因為複製貼上而產生偏差。"],
+ "qQi_um": ["主題已匯入。"],
"qRZh7J": ["讓 Tab 鍵離開原始碼編輯器,而不是縮排。"],
"qSKu2v": ["原始碼導覽與選取"],
"qSxaOz": ["接受對方的刪除"],
@@ -3237,6 +3284,7 @@
"qo4zCg": ["路徑不能包含反斜線"],
"qpQwGC": ["描述一下你正在做的事,代理就會幫你設定好。"],
"qribBG": ["結構描述 ", ["deleteTarget"]],
+ "qtnmEX": ["輸入有效的主題名稱。"],
"qvWGzP": ["全部摺疊"],
"qyLmWw": ["原始碼編輯器搜尋面板"],
"r-OJYm": ["請輸入有效的分支名稱(不能有空格、不能以點開頭、不能包含「..」)。"],
@@ -3262,6 +3310,7 @@
"rFmBG3": ["配色主題"],
"rFw02Q": ["正在上傳 ", ["keyName"]],
"rJVoVX": ["原始碼尋找結果"],
+ "rJm8-2": ["無法存取剪貼簿 — 主題內容已顯示在下方方塊中。"],
"rNifQd": ["移除屬性"],
"rQAQus": ["無法儲存範本:", ["error"]],
"rQRrkB": ["昨天"],
@@ -3326,7 +3375,6 @@
"sJK6pq": ["權限不足"],
"sJWhgo": ["未知的元件:", ["unregisteredComponentName"]],
"sKEgGd": ["傳送到對話"],
- "sKMhJz": ["背景色到前景色"],
"sLcbHt": [
"把另一個資料夾符號連結到其中一個,讓兩個代理讀到相同的技能;取消連結後就能再次一個一個管理某個資料夾的技能。"
],
@@ -3473,6 +3521,7 @@
"ur2XSb": ["視覺化編輯器"],
"uuoHOU": ["指令執行失敗。"],
"uyJsf6": ["關於"],
+ "uyOQ4e": ["主題已複製為 base16 YAML"],
"uynXup": [["tokens", "plural", { "other": ["token"] }]],
"v-h2hx": ["刪除 ", ["targetGitPath"]],
"v2ZW0K": ["啟用終端機"],
@@ -3558,6 +3607,7 @@
"wXw19Y": ["已把「", ["projectName"], "」從最近的專案中移除。它的資料夾已經不存在了。"],
"wZPUJx": ["「", ["0"], "」"],
"w_Sphq": ["附件"],
+ "wbMbiY": ["已複製 ", ["selectedSlot"]],
"wbpoGe": ["無法安裝 OpenKnowledge 技能:", ["message"]],
"wbv9xO": ["建立新專案"],
"wc54KE": ["試用中…"],
@@ -3725,6 +3775,7 @@
"zL0LPh": ["文字欄位之外的全域範圍"],
"zLGXna": ["沒有可用的入門套件。"],
"zLak8b": ["切換到新分頁"],
+ "zMmwh4": ["選擇主題或建立自己的主題。"],
"zQBg2C": ["把目前的區塊往上或往下移一個位置。"],
"zXj1rA": ["按語意搜尋"],
"zYp8Sr": [
diff --git a/packages/app/src/locales/zh-Hant/messages.po b/packages/app/src/locales/zh-Hant/messages.po
index cbb5b31ba..d1202b113 100644
--- a/packages/app/src/locales/zh-Hant/messages.po
+++ b/packages/app/src/locales/zh-Hant/messages.po
@@ -332,6 +332,11 @@ msgstr "共 {0} 個"
msgid "{0} version {1}"
msgstr "{0} 版本 {1}"
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "{0} was already deleted."
+msgstr "{0} 已經被刪除了。"
+
#. placeholder {0}: activeData.label
#: src/components/EditorWorkspace.tsx
msgid "{0} was not moved."
@@ -777,6 +782,11 @@ msgstr "{sizeText} · 已遮蔽機密資訊 · 當機傾印未遮蔽"
msgid "{skillCount, plural, one {skill} other {skills}}"
msgstr "{skillCount, plural, other {技能}}"
+#. placeholder {0}: BASE16_SLOT_ROLES[slot]
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "{slot} color — {0}"
+msgstr "{slot} 色彩 — {0}"
+
#: src/components/settings/CustomThemeEditor.tsx
msgid "{slot} hex value"
msgstr "{slot} 十六進位值"
@@ -1044,6 +1054,10 @@ msgstr "一個必要的 git 工具"
msgid "A reusable starting point for new documents in this folder."
msgstr "這個資料夾中新文件可重複使用的起點。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "A saved theme already uses this name."
+msgstr "已有已儲存的主題使用這個名稱。"
+
#: src/components/TemplateForm.tsx
msgid "A short line shown under the title in the template list."
msgstr "在範本清單中顯示在標題下方的簡短說明。"
@@ -1100,10 +1114,6 @@ msgstr "上方"
msgid "absent"
msgstr "不存在"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Accents"
-msgstr "重音符號"
-
#: src/components/DiffView.tsx
msgid "Accept"
msgstr "接受"
@@ -1783,10 +1793,6 @@ msgstr "返回"
msgid "Back to document view"
msgstr "回到文件檢視"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Background to foreground"
-msgstr "背景色到前景色"
-
#: src/components/LinksPanel.tsx
msgid "Backlinks"
msgstr "反向連結"
@@ -1931,8 +1937,8 @@ msgid "Browse folder"
msgstr "瀏覽資料夾"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Browse hundreds of schemes"
-msgstr "瀏覽數百種配色方案"
+msgid "Browse hundreds of themes"
+msgstr "瀏覽數百個主題"
#: src/components/ImportSkillDialog.tsx
msgid "Browse or upload a skill for this project."
@@ -2051,6 +2057,7 @@ msgstr "無法分享這個路徑。"
#: src/components/ReportBugDialogBody.tsx
#: src/components/SeedDialog.tsx
#: src/components/settings/LinkPreviewsSection.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/settings/SearchSection.tsx
#: src/components/ShareBranchSwitchDialog.tsx
#: src/components/ShareReceiveDialog.tsx
@@ -2106,6 +2113,18 @@ msgstr "在外部被改動"
msgid "Changed outside OK since it last wrote here — the state shown is what's on disk now"
msgstr "自從它上次寫入這裡之後,在 OK 之外被改動過——顯示的是磁碟上現在的狀態"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes save automatically to this theme."
+msgstr "變更會自動儲存到這個主題。"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes save automatically."
+msgstr "變更會自動儲存。"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Changes saved automatically."
+msgstr "變更已自動儲存。"
+
#: src/components/command-palette-commands.ts
msgid "Check for updates"
msgstr "檢查更新"
@@ -2703,6 +2722,11 @@ msgstr "衝突"
msgid "Conflicted files"
msgstr "衝突的檔案"
+#. placeholder {0}: warning.conflictingFilenames.join(', ')
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Conflicting files: {0}."
+msgstr "衝突的檔案:{0}。"
+
#: src/components/ConflictsSection.tsx
msgid "Conflicts"
msgstr "衝突"
@@ -2895,6 +2919,10 @@ msgstr "正在轉換…"
msgid "Copied"
msgstr "已複製"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Copied {selectedSlot}"
+msgstr "已複製 {selectedSlot}"
+
#: src/components/EditorTabTargetMenuItems.tsx
#: src/components/FileSidebar.tsx
#: src/components/FileTree.tsx
@@ -2932,6 +2960,7 @@ msgstr "複製"
#: src/components/CopyButton.tsx
#: src/components/empty-state/CopyablePromptList.tsx
#: src/components/InstallInClaudeDesktopDialog.tsx
+#: src/components/settings/CustomThemeEditor.tsx
#: src/lib/native-menu-catalog.ts
msgid "Copy"
msgstr "複製"
@@ -3216,6 +3245,15 @@ msgstr "無法建立回報"
msgid "Couldn't create the worktree. Try a different name."
msgstr "無法建立 worktree。請換一個名稱。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t create this theme. Try again."
+msgstr "無法建立這個主題。請再試一次。"
+
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t delete {0}. Try again."
+msgstr "無法刪除 {0}。請再試一次。"
+
#. placeholder {0}: result.error
#: src/components/SkillFileDeleteDialog.tsx
msgid "Couldn't delete file: {0}"
@@ -3233,6 +3271,10 @@ msgstr "無法刪除範本:{error}"
msgid "Couldn't delete that comment."
msgstr "無法刪除那則註解。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t delete this theme. Refresh and try again."
+msgstr "無法刪除這個主題。請重新整理後再試一次。"
+
#: src/components/settings/AccountSection.tsx
msgid "Couldn't disconnect — please try again."
msgstr "無法中斷連接——請再試一次。"
@@ -3396,8 +3438,12 @@ msgid "Couldn't reach the agent registry."
msgstr "無法連上代理登錄檔。"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Couldn’t reach the clipboard — the scheme is in the box below."
-msgstr "無法存取剪貼簿——配色方案在下面的方框中。"
+msgid "Couldn’t reach the clipboard — the theme is in the box below."
+msgstr "無法存取剪貼簿 — 主題內容已顯示在下方方塊中。"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Couldn’t reach the clipboard."
+msgstr "無法存取剪貼簿。"
#: src/components/CommandPalette.tsx
msgid "Couldn't reach the embeddings provider — retry"
@@ -3424,6 +3470,11 @@ msgstr "無法讀取等著傳送的註解——什麼都沒有送出。"
msgid "Couldn't read the comments waiting to send: {0}"
msgstr "無法讀取等著傳送的註解:{0}"
+#. placeholder {0}: warning.code
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t read this theme ({0})"
+msgstr "無法讀取這個主題({0})"
+
#: src/components/EditorActivityPool.tsx
msgid "Couldn't reconnect after server restart"
msgstr "伺服器重新啟動後無法重新連線"
@@ -3472,6 +3523,16 @@ msgstr "無法自動重新啟動伺服器。請在終端機中執行 `ok stop al
msgid "Couldn't restart the server. Try `ok start` in this folder."
msgstr "無法重新啟動伺服器。請在這個資料夾中試試 `ok start`。"
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t restore {0}. That name is already in use."
+msgstr "無法還原 {0}。這個名稱已在使用中。"
+
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Couldn’t restore {0}. Try again."
+msgstr "無法還原 {0}。請再試一次。"
+
#. placeholder {0}: resumeError.message
#: src/components/acp/ThreadView.tsx
msgid "Couldn't resume this chat: {0}"
@@ -3481,6 +3542,10 @@ msgstr "無法恢復此對話:{0}"
msgid "Couldn't run the test. Check that OpenKnowledge is still running."
msgstr "無法執行測試。請確認 OpenKnowledge 仍在執行。"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Couldn’t save changes. Try editing a color again."
+msgstr "無法儲存變更。請再編輯一次色彩。"
+
#: src/components/TemplateForm.tsx
msgid "Couldn't save template: {error}"
msgstr "無法儲存範本:{error}"
@@ -3599,6 +3664,10 @@ msgstr "當機傾印"
msgid "Create"
msgstr "建立"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Create & edit"
+msgstr "建立並編輯"
+
#: src/components/TemplateRow.tsx
msgid "Create a document from {label}"
msgstr "用 {label} 建立文件"
@@ -3670,6 +3739,10 @@ msgstr "建立新專案"
msgid "Create new tag #{tagValue}"
msgstr "建立新標籤 #{tagValue}"
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Create new theme"
+msgstr "建立新主題"
+
#: src/components/GraphPanel.tsx
#: src/components/ProblemsPanel.tsx
#: src/editor/extensions/InternalLinkPropPanel.tsx
@@ -3768,6 +3841,10 @@ msgstr "正在建立頁面:{linkTitle}。"
msgid "Creating..."
msgstr "正在建立…"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Creating…"
+msgstr "正在建立…"
+
#: src/components/RecentProjectsMenu.tsx
msgid "Current"
msgstr "目前"
@@ -3840,8 +3917,10 @@ msgstr "預設:<0>{0}</0>"
msgid "Delete"
msgstr "刪除"
+#. placeholder {0}: theme.label
#. placeholder {0}: thread.title
#: src/components/acp/ThreadHistoryMenu.tsx
+#: src/components/settings/ColorThemePicker.tsx
msgid "Delete {0}"
msgstr "刪除 {0}"
@@ -3921,6 +4000,11 @@ msgstr "刪除此對話?"
msgid "Delete this comment"
msgstr "刪除這則註解"
+#. placeholder {0}: deletedTheme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Deleted {0}."
+msgstr "已刪除 {0}。"
+
#: src/components/settings/LintingSection.tsx
msgid "Deleted {file}"
msgstr "已刪除 {file}"
@@ -4239,6 +4323,7 @@ msgstr "完成"
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/PublishToGitHubDialog.tsx
#: src/components/ReportBugDialogBody.tsx
+#: src/components/settings/CustomThemeEditor.tsx
#: src/editor/extensions/JsxComponentView.tsx
#: src/editor/extensions/JsxInlineView.tsx
#: src/editor/extensions/MathInlineView.tsx
@@ -4373,6 +4458,11 @@ msgstr "每個選取的工具都會得到一筆 OpenKnowledge MCP 項目。"
msgid "Edit"
msgstr "編輯"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Edit {0}"
+msgstr "編輯 {0}"
+
#. placeholder {0}: descriptor.displayName ?? descriptor.name
#: src/editor/extensions/JsxComponentView.tsx
msgid "Edit {0} source"
@@ -4446,6 +4536,11 @@ msgstr "已編輯範本"
msgid "editing [[{realCurrentDoc}]]"
msgstr "正在編輯 [[{realCurrentDoc}]]"
+#. placeholder {0}: scheme.name
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Editing {0}"
+msgstr "正在編輯 {0}"
+
#: src/components/SkillEditBanner.tsx
msgid "Editing {boldName} in place. Changes save straight to your editor's copy."
msgstr "正在原地編輯 {boldName}。變更會直接存到你編輯器裡的那份副本。"
@@ -4475,8 +4570,12 @@ msgid "Editor status bar"
msgstr "編輯器狀態列"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Edits apply live. Light or dark comes from the scheme."
-msgstr "編輯會即時生效。淺色或深色由配色方案決定。"
+msgid "Edits apply live and save automatically to this theme."
+msgstr "編輯會即時套用,並自動儲存到這個主題。"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Edits apply live. Light or dark comes from the theme."
+msgstr "編輯會即時套用。淺色或深色由主題決定。"
#: src/editor/slash-command/component-items.tsx
msgid "Edits at the source land here — no copy-paste drift."
@@ -4647,6 +4746,10 @@ msgstr "請輸入 6 位十六進位值,例如 #1A2B3C"
msgid "Enter a folder name (e.g. brain)."
msgstr "請輸入資料夾名稱(例如 brain)。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Enter a name for this theme."
+msgstr "輸入這個主題的名稱。"
+
#: src/components/CreateProjectDialog.tsx
msgid "Enter a project name"
msgstr "請輸入專案名稱"
@@ -4663,6 +4766,10 @@ msgstr "請為這個範本輸入標題。"
msgid "Enter a valid branch name (no spaces, no leading dot, no \"..\")."
msgstr "請輸入有效的分支名稱(不能有空格、不能以點開頭、不能包含「..」)。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Enter a valid theme name."
+msgstr "輸入有效的主題名稱。"
+
#: src/components/settings/SearchSection.tsx
msgid "Enter a valid URL (for example https://api.openai.com/v1)."
msgstr "請輸入有效的 URL(例如 https://api.openai.com/v1)。"
@@ -5555,6 +5662,10 @@ msgstr "GitHub 登入不存在或已過期。請重新連接以繼續同步。"
msgid "GitHub, a git URL, or a local path."
msgstr "GitHub、一個 git URL,或一個本機路徑。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Give it a name before editing its colors."
+msgstr "請先為主題命名,再編輯色彩。"
+
#: src/components/settings/AiToolsSection.tsx
msgid "Give the AI tools you use access to read and update your projects. Checking a box sets it up right away; unchecking removes it."
msgstr "讓你用的 AI 工具能夠讀取和更新你的專案。勾選就會立刻設定好;取消勾選則會移除。"
@@ -5734,6 +5845,11 @@ msgstr "已隱藏資料夾「{basename}」"
msgid "Hide"
msgstr "隱藏"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Hide {0} editor"
+msgstr "隱藏 {0} 編輯器"
+
#: src/lib/native-menu-catalog.ts
msgid "Hide {appName}"
msgstr "隱藏 {appName}"
@@ -5939,6 +6055,11 @@ msgstr "我要改用別的工具"
msgid "Icon picker"
msgstr "圖示選擇器"
+#. placeholder {0}: createIdentity.stem
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "ID: {0}"
+msgstr "ID:{0}"
+
#: src/components/AutoSyncEnableWarning.tsx
msgid "If an update arrives for something you are editing, you choose which version to keep, like a merge conflict."
msgstr "如果你正在編輯的東西收到更新,你可以像處理合併衝突那樣選擇要保留哪個版本。"
@@ -5974,10 +6095,6 @@ msgstr "當成範本匯入"
msgid "Import failed: {0}"
msgstr "匯入失敗:{0}"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Import scheme"
-msgstr "匯入配色方案"
-
#. placeholder {0}: result.name
#: src/lib/skill-import-toast.ts
msgid "Imported \"{0}\"."
@@ -6319,6 +6436,10 @@ msgstr "給 AI 的指示"
msgid "Integrations"
msgstr "整合"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Invalid color value"
+msgstr "無效的色彩值"
+
#: src/components/CreateProjectDialog.tsx
msgid "Invalid input — pick a different folder."
msgstr "輸入無效——請換一個資料夾。"
@@ -6339,6 +6460,10 @@ msgstr "伺服器回應結構無效"
msgid "Invalid share URL."
msgstr "分享網址無效。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Invalid YAML"
+msgstr "無效的 YAML"
+
#: src/uninstall/UninstallSurveyScreen.tsx
msgid "It didn't fit into my workflow"
msgstr "它不符合我的工作流程"
@@ -6572,6 +6697,10 @@ msgstr "連結 URL"
msgid "Link-graph response did not match expected shape."
msgstr "連結關係圖回應的結構與預期不符。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Linked theme files aren’t supported"
+msgstr "不支援連結的主題檔案"
+
#: src/components/DocPanel.tsx
msgid "Links"
msgstr "連結"
@@ -6947,6 +7076,14 @@ msgstr "頁面不存在——點一下可建立"
msgid "Missing page: {linkTitle}. Click to create."
msgstr "頁面不存在:{linkTitle}。點一下可建立。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Missing palette colors"
+msgstr "缺少色盤色彩"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Missing theme name"
+msgstr "缺少主題名稱"
+
#: src/components/SyncStatusBadge.tsx
msgid "Mode"
msgstr "模式"
@@ -7144,6 +7281,10 @@ msgstr "琢磨中…"
msgid "Multi-page PDF viewer with toolbar controls (thumbnails, page nav, zoom)."
msgstr "多頁 PDF 檢視器,附工具列控制項(縮圖、翻頁、縮放)。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Multiple files use this theme name"
+msgstr "多個檔案使用這個主題名稱"
+
#: src/components/acp/working-status.ts
msgid "Musing…"
msgstr "沉思中…"
@@ -7186,6 +7327,10 @@ msgstr "名稱不能是空的"
msgid "Name is required"
msgstr "名稱為必填"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Name your theme"
+msgstr "為主題命名"
+
#: src/lib/keyboard-shortcuts.ts
msgid "Navigate CodeMirror source search results or dismiss the search panel."
msgstr "在 CodeMirror 原始碼搜尋結果之間移動,或關閉搜尋面板。"
@@ -7742,6 +7887,10 @@ msgstr "這些問題都沒有自動修正的方式。"
msgid "None of these problems have an automatic fix. Try Fix all with AI."
msgstr "這些問題都沒有自動修正的方式。可以試試「用 AI 全部修正」。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Not a base16 theme"
+msgstr "不是 base16 主題"
+
#: src/components/acp/ThreadView.tsx
msgid "Not answered"
msgstr "未回答"
@@ -8642,8 +8791,8 @@ msgid "Paste"
msgstr "貼上"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Paste a base16 scheme"
-msgstr "貼上一個 base16 配色方案"
+msgid "Paste a base16 theme"
+msgstr "貼上 base16 主題"
#: src/components/AuthModal.tsx
msgid "Paste a personal access token for <0>{host}</0>."
@@ -8766,10 +8915,6 @@ msgstr "只限這台裝置——存在你的使用者設定中,不會分享出
msgid "Pick <0>openknowledge.skill</0> from your <1>Downloads</1> folder. It enables automatically."
msgstr "從你的<1>下載</1>資料夾中選 <0>openknowledge.skill</0>。它會自動啟用。"
-#: src/components/settings/ThemePluginSection.tsx
-msgid "Pick a built-in IDE color palette, or define your own."
-msgstr "挑一個內建的 IDE 配色方案,或者自己定義一個。"
-
#: src/components/settings/SkillTargetsPicker.tsx
msgid "Pick a folder to merge INTO {display}. That folder becomes a symlink to this one, so its agent reads everything placed here. This folder stays real. Conflicting skills abort the merge."
msgstr "挑一個資料夾,把它併進 {display}。那個資料夾會變成指向這個資料夾的符號連結,所以它的代理會讀到放在這裡的所有東西。這個資料夾仍然是真實的資料夾。如果技能有衝突,合併會中止。"
@@ -8782,6 +8927,10 @@ msgstr "取個名字"
msgid "Pick a palette for light mode and one for dark mode. The theme setting in Preferences chooses between them — on “System”, so does your OS."
msgstr "為淺色模式和深色模式各挑一個配色方案。「偏好設定」中的主題設定會決定用哪一個;選「系統」時,則由你的作業系統決定。"
+#: src/components/settings/ThemePluginSection.tsx
+msgid "Pick a theme or create your own."
+msgstr "選擇主題或建立自己的主題。"
+
#: src/editor/slash-command/items.tsx
msgid "Pick an emoji to insert at the cursor."
msgstr "挑一個表情符號插入到游標處。"
@@ -8888,8 +9037,8 @@ msgid "Press Space to pick up a tab. Use the arrow keys to move it within a tab
msgstr "按空白鍵拾取分頁。使用方向鍵在分頁列內移動,然後按空白鍵或 Enter 鍵放下。按 Shift+F10 或選單鍵開啟分頁的快顯功能表,其中包含分割、關閉、釘選等操作。"
#: src/components/settings/CustomThemeEditor.tsx
-msgid "Press the sun or moon on “Custom” above to use this scheme."
-msgstr "點一下上面「自訂」旁的太陽或月亮圖示,就能使用這個配色方案。"
+msgid "Press the sun or moon on “Custom” above to use this theme."
+msgstr "按上方「自訂」中的太陽或月亮圖示以使用這個主題。"
#: src/components/PublishToGitHubDialog.tsx
msgid "Preview browsers can't auto-copy. Use Cmd/Ctrl+C on the URL above, or open OK in the desktop app."
@@ -9789,6 +9938,11 @@ msgstr "要還原到這個版本嗎?"
msgid "Restore with remote changes"
msgstr "連同遠端的變更一起還原"
+#. placeholder {0}: theme.label
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Restored {0}."
+msgstr "已還原 {0}。"
+
#. placeholder {0}: descriptor.targetSha7
#: src/components/TimelinePanel.tsx
msgid "Restored an earlier version ({0})"
@@ -9994,6 +10148,10 @@ msgstr "存到這個專案的技能資料夾中(例如 <0>.agents/skills</0>
msgid "Saved into your global skills folder (e.g. <0>~/.agents/skills</0>)."
msgstr "存到你的全域技能資料夾中(例如 <0>~/.agents/skills</0>)。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Saved themes couldn’t load. The last available theme list is still shown."
+msgstr "無法載入已儲存的主題。仍顯示上次可用的主題清單。"
+
#: src/components/SkillProperties.tsx
msgid "Saved to"
msgstr "儲存到"
@@ -10011,6 +10169,10 @@ msgstr "把檔案存到 <0>~/Downloads/openknowledge.skill</0> 並開啟 Claude
msgid "Saving"
msgstr "正在儲存"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Saving changes…"
+msgstr "正在儲存變更…"
+
#: src/components/settings/LintingSection.tsx
msgid "schema {deleteTarget}"
msgstr "結構描述 {deleteTarget}"
@@ -10019,10 +10181,6 @@ msgstr "結構描述 {deleteTarget}"
msgid "Schema fields"
msgstr "結構描述欄位"
-#: src/components/settings/CustomThemeEditor.tsx
-msgid "Scheme copied as base16 YAML"
-msgstr "已把配色方案複製為 base16 YAML"
-
#: src/components/ImportSkillForm.tsx
#: src/components/PanelScopeHeader.tsx
msgid "Scope"
@@ -10212,6 +10370,11 @@ msgstr "查看全部 {0} 個入門套件"
msgid "See the full install guide"
msgstr "查看完整的安裝指南"
+#. placeholder {0}: BASE16_SLOT_ROLES[slot]
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Select {slot} — {0}"
+msgstr "選取 {slot} — {0}"
+
#: src/components/FrontmatterRow.tsx
msgid "Select a value"
msgstr "選一個值"
@@ -10923,6 +11086,10 @@ msgstr "Slidev 啟動逾時。請再試一次。"
msgid "Small section heading."
msgstr "小型章節標題。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Some saved themes aren’t shown because the theme folder exceeds the scan limit."
+msgstr "因為主題資料夾超出掃描限制,部分已儲存的主題未顯示。"
+
#: src/components/FeedbackForm.tsx
msgid "Something broke"
msgstr "有東西壞了"
@@ -11843,6 +12010,30 @@ msgstr "這個權杖需要 repo 和 read:user 權限範圍。"
msgid "Theme"
msgstr "主題"
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme colors"
+msgstr "主題色彩"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme copied as base16 YAML"
+msgstr "主題已複製為 base16 YAML"
+
+#: src/components/settings/CustomThemeEditor.tsx
+msgid "Theme imported."
+msgstr "主題已匯入。"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name"
+msgstr "主題名稱"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name has unsupported characters"
+msgstr "主題名稱包含不支援的字元"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Theme name is too long"
+msgstr "主題名稱太長"
+
#: src/components/settings/ThemePreviewCanvas.tsx
msgid "Theme preview"
msgstr "主題預覽"
@@ -12037,6 +12228,10 @@ msgstr "這是 {boldName} 的預覽,在 {boldHarness} 的 {boldLevel} 層級
msgid "This is a preview of {boldName}. Install it into your agents."
msgstr "這是 {boldName} 的預覽。把它安裝到你的代理中。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This isn’t a regular theme file"
+msgstr "這不是一般的主題檔案"
+
#: src/components/SlidesToolbarControls.tsx
msgid "This isn't a supported version of Slidev."
msgstr "這不是支援的 Slidev 版本。"
@@ -12198,6 +12393,18 @@ msgstr "這個來源包含好幾個技能——請選要匯入的那一個。"
msgid "This template lives in a parent folder — deleting it affects every folder beneath it that doesn't define its own version."
msgstr "這個範本放在上層資料夾中——刪掉它會影響底下所有沒有定義自己版本的資料夾。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme can’t be used until the file is fixed."
+msgstr "修正檔案後才能使用這個主題。"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme file couldn’t be read"
+msgstr "無法讀取這個主題檔案"
+
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "This theme file is too large"
+msgstr "這個主題檔案太大"
+
#: src/components/ShareReceiveDialog.tsx
msgid "This usually means one of:"
msgstr "這通常代表下列其中之一:"
@@ -12371,6 +12578,7 @@ msgstr "試試一段提示"
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/ReportBugDialogBody.tsx
#: src/components/settings/AccountSection.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/ShareReceiveDialog.tsx
msgid "Try again"
msgstr "再試一次"
@@ -12478,6 +12686,7 @@ msgstr "已復原 {docName} 上的最後一次編輯"
#: src/components/ActivityPanelBurstRow.tsx
#: src/components/AppMenubar.tsx
+#: src/components/settings/SavedThemesTiles.tsx
#: src/components/settings/SharingSection.tsx
#: src/lib/native-menu-catalog.ts
msgid "Undo"
@@ -12745,6 +12954,16 @@ msgstr "把 {0} 用作深色主題"
msgid "Use {0} as the light theme"
msgstr "把 {0} 用作淺色主題"
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Use {0} for the active dark mode"
+msgstr "將 {0} 用於目前的深色模式"
+
+#. placeholder {0}: theme.label
+#: src/components/settings/ColorThemePicker.tsx
+msgid "Use {0} for the active light mode"
+msgstr "將 {0} 用於目前的淺色模式"
+
#: src/components/SkillForkDialog.tsx
msgid "Use {editor} version"
msgstr "使用 {editor} 的版本"
@@ -12757,6 +12976,10 @@ msgstr "用 <0>{copyShortcut}</0> 複製下面的連結,或者在桌面應用
msgid "Use a folder you already have."
msgstr "用你已經有的資料夾。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "Use a lowercase .yaml or .yml extension"
+msgstr "使用小寫的 .yaml 或 .yml 副檔名"
+
#: src/components/SkillFileCreateDialog.tsx
#: src/components/SkillFileRenameDialog.tsx
msgid "Use a relative path inside the skill (no .., no spaces; SKILL.md is managed)."
@@ -12941,6 +13164,10 @@ msgstr "我們會建置 <0>openknowledge.skill</0>,存到 <1>~/Downloads</1>
msgid "We'll create a repository and start syncing — no terminal needed."
msgstr "我們會建立一個儲存庫並開始同步——不必用終端機。"
+#: src/components/settings/SavedThemesTiles.tsx
+msgid "We’ll create a safe theme ID from this name."
+msgstr "我們會根據這個名稱建立安全的主題 ID。"
+
#: src/components/ReportBugDialogBody.tsx
msgid "We've filed it with the team and attached your logs."
msgstr "我們已經把它交給團隊,並附上了你的記錄。"
diff --git a/packages/app/tests/integration/attribution-sweep-coverage.test.ts b/packages/app/tests/integration/attribution-sweep-coverage.test.ts
index ef257aae7..ad0abed2f 100644
--- a/packages/app/tests/integration/attribution-sweep-coverage.test.ts
+++ b/packages/app/tests/integration/attribution-sweep-coverage.test.ts
@@ -173,6 +173,12 @@ const EXEMPT_HANDLERS = new Set([
// definitions), not agent-authored document content — same rationale as
// seed/sync/local-op handlers. No agent identity needed.
'handleFolderConfig',
+ // `/api/saved-themes` (list) + `/api/saved-theme` (save/delete) — user-global
+ // theme-store operations. They write scheme files under `<home>/.ok/themes`,
+ // not agent-authored CRDT document content, so there is no authorship to
+ // attribute — same rationale as `handleFolderConfig` / the local-op handlers.
+ 'handleSavedThemesList',
+ 'handleSavedTheme',
'handleTemplate',
// `/api/lint/config` (GET) + `/api/lint/markdownlint-config` (POST) — the markdown
// linter's effective-config read and the native `.markdownlint.*` rule write.
diff --git a/packages/app/tests/integration/config-diagnostics-endpoint.test.ts b/packages/app/tests/integration/config-diagnostics-endpoint.test.ts
index 8a1edafec..3252b0b8a 100644
--- a/packages/app/tests/integration/config-diagnostics-endpoint.test.ts
+++ b/packages/app/tests/integration/config-diagnostics-endpoint.test.ts
@@ -1,7 +1,9 @@
/**
- * Integration tests for `GET /api/config/diagnostics` — the read-only surface
- * that reports active config diagnostics across the user, committed-project,
- * and project-local layers.
+ * Integration tests for active config reads against a booted server. Most
+ * cover `GET /api/config/diagnostics`, the read-only surface that reports
+ * diagnostics across the user, committed-project, and project-local layers.
+ * The saved-theme deletion case composes the same user-home seam with the real
+ * theme route and config reader so dangling references cannot erase siblings.
*
* Drives the real endpoint against a booted server: the three config files are
* written on disk, the handler reads them fresh per request, and the response
@@ -10,10 +12,15 @@
* `packages/core/src/config/collect-config-diagnostics.test.ts`.
*/
-import { mkdirSync, rmSync, writeFileSync } from 'node:fs';
+import { mkdirSync, readdirSync, rmSync, writeFileSync } from 'node:fs';
import { dirname } from 'node:path';
-import { REMOVED_KEYS, type WriteScope } from '@inkeep/open-knowledge-core';
-import { resolveConfigPath } from '@inkeep/open-knowledge-core/server';
+import {
+ BASE16_SLOTS,
+ REMOVED_KEYS,
+ resolveThemePlugin,
+ type WriteScope,
+} from '@inkeep/open-knowledge-core';
+import { readConfigSafely, resolveConfigPath } from '@inkeep/open-knowledge-core/server';
import { afterAll, afterEach, beforeAll, describe, expect, test } from 'vitest';
import { stringify } from 'yaml';
import { HARNESS_BOOT_TIMEOUT_MS } from './harness-boot-timeout';
@@ -158,6 +165,61 @@ describe('GET /api/config/diagnostics', () => {
expect(second.diagnostics.map((d) => d.path?.join('.'))).toEqual(['mcp.autoStart']);
});
+ test('deleting an assigned saved theme preserves unrelated user preferences', async () => {
+ const themeName = 'assigned-personal';
+ const themeId = `saved-${themeName}`;
+ const palette = Object.fromEntries(
+ BASE16_SLOTS.map((slot, index) => {
+ const byte = (index * 16).toString(16).padStart(2, '0');
+ return [slot, `#${byte}${byte}${byte}`];
+ }),
+ );
+ const created = await fetch(`http://127.0.0.1:${server.port}/api/saved-theme`, {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify({
+ name: themeName,
+ scheme: { name: 'Assigned personal', variant: 'dark', palette },
+ }),
+ });
+ expect(created.status).toBe(201);
+
+ writeScope('user', {
+ editor: { wordWrap: false },
+ appearance: {
+ theme: 'dark',
+ colorThemeLight: themeId,
+ colorThemeDark: 'dracula',
+ },
+ });
+
+ const deleted = await fetch(`http://127.0.0.1:${server.port}/api/saved-theme?id=${themeId}`, {
+ method: 'DELETE',
+ });
+ expect(deleted.status).toBe(200);
+ expect((await deleted.json()) as unknown).toMatchObject({
+ existed: true,
+ filename: `${themeName}.yaml`,
+ });
+
+ const configFile = scopeFile('user');
+ const readBack = readConfigSafely({ absPath: configFile, warn: () => {} });
+ expect(readBack.valid).toBe(true);
+ expect(readBack).not.toHaveProperty('sidelinedTo');
+ expect(readBack.value).toMatchObject({
+ editor: { wordWrap: false },
+ appearance: {
+ theme: 'dark',
+ colorThemeLight: themeId,
+ colorThemeDark: 'dracula',
+ },
+ });
+ expect(resolveThemePlugin(themeId).id).toBe('default');
+ expect(readdirSync(dirname(configFile)).filter((file) => file.includes('.invalid-'))).toEqual(
+ [],
+ );
+ });
+
test('no config files present → 200 with an empty diagnostics list', async () => {
const res = await fetch(url());
expect(res.status).toBe(200);
diff --git a/packages/app/tests/integration/conflict-gate-coverage.test.ts b/packages/app/tests/integration/conflict-gate-coverage.test.ts
index 31ed3bf1d..ff45c920a 100644
--- a/packages/app/tests/integration/conflict-gate-coverage.test.ts
+++ b/packages/app/tests/integration/conflict-gate-coverage.test.ts
@@ -137,6 +137,12 @@ const EXEMPT_HANDLERS = new Set([
'handleTagsForName',
'handlePages',
'handleFolderConfig',
+ // `/api/saved-themes` (list) + `/api/saved-theme` (save/delete) — user-global
+ // theme-store operations. They target scheme files under `<home>/.ok/themes`,
+ // not a Y.Doc, so the per-doc conflict-refusal gate does not apply — same
+ // posture as `handleFolderConfig`.
+ 'handleSavedThemesList',
+ 'handleSavedTheme',
// `/api/lint/config` (GET) + `/api/lint/markdownlint-config` (POST) — read the
// effective lint config / write the native `.markdownlint.*` rules. No Y.Doc
// target (config files, not documents), so the per-doc conflict gate does not
diff --git a/packages/app/tests/integration/saved-themes-client.test.ts b/packages/app/tests/integration/saved-themes-client.test.ts
new file mode 100644
index 000000000..8e5014b9f
--- /dev/null
+++ b/packages/app/tests/integration/saved-themes-client.test.ts
@@ -0,0 +1,96 @@
+import { mkdirSync, mkdtempSync, readdirSync, rmSync, writeFileSync } from 'node:fs';
+import { tmpdir } from 'node:os';
+import { join } from 'node:path';
+import { BASE16_SLOTS } from '@inkeep/open-knowledge-core';
+import { afterAll, beforeAll, describe, expect, test } from 'vitest';
+import {
+ deleteSavedTheme,
+ fetchSavedThemes,
+ saveSavedTheme,
+} from '../../src/lib/saved-themes-client';
+import { HARNESS_BOOT_TIMEOUT_MS } from './harness-boot-timeout';
+import { createTestServer, type TestServer } from './test-harness';
+
+let homeDir: string;
+let server: TestServer;
+
+function schemeYaml(name: string): string {
+ const slots = BASE16_SLOTS.map(
+ (slot, index) => ` ${slot}: "#${(index * 16).toString(16).padStart(2, '0').repeat(3)}"`,
+ ).join('\n');
+ return `name: "${name}"\nvariant: "light"\npalette:\n${slots}\n`;
+}
+
+function scheme(name: string) {
+ return {
+ name,
+ variant: 'dark' as const,
+ palette: Object.fromEntries(
+ BASE16_SLOTS.map((slot, index) => {
+ const byte = (index * 16).toString(16).padStart(2, '0');
+ return [slot, `#${byte}${byte}${byte}`];
+ }),
+ ),
+ };
+}
+
+beforeAll(async () => {
+ homeDir = mkdtempSync(join(tmpdir(), 'ok-saved-themes-client-'));
+ const dir = join(homeDir, '.ok', 'themes');
+ mkdirSync(dir, { recursive: true });
+ writeFileSync(join(dir, 'day.yaml'), schemeYaml('Day'));
+ writeFileSync(join(dir, 'broken.yaml'), 'name: "Broken"\npalette:\n base00: "#000000"\n');
+ server = await createTestServer({ configHomedirOverride: homeDir });
+}, HARNESS_BOOT_TIMEOUT_MS);
+
+afterAll(async () => {
+ await server.cleanup();
+ rmSync(homeDir, { recursive: true, force: true });
+});
+
+describe('saved-theme server-to-app list', () => {
+ test('adapts the real list response without dropping warning entries', async () => {
+ const baseUrl = `http://127.0.0.1:${server.port}`;
+ const request = (path: string, init?: RequestInit) => fetch(`${baseUrl}${path}`, init);
+
+ const result = await fetchSavedThemes({ request });
+
+ expect(result.themes.at(-1)).toMatchObject({ id: 'saved-day', label: 'Day', kind: 'light' });
+ expect(result.warnings).toEqual([
+ { filename: 'broken.yaml', id: 'saved-broken', code: 'missing-slots' },
+ ]);
+ });
+
+ test('hard-deletes through the client without retaining a copy and recreates the intact palette', async () => {
+ const baseUrl = `http://127.0.0.1:${server.port}`;
+ const request = (path: string, init?: RequestInit) => fetch(`${baseUrl}${path}`, init);
+ const recoverable = scheme('Recoverable');
+ const dotOkEntriesBefore = readdirSync(join(homeDir, '.ok')).sort();
+
+ expect(
+ await saveSavedTheme({ name: 'recoverable', scheme: recoverable }, { request }),
+ ).toMatchObject({ ok: true, id: 'saved-recoverable' });
+
+ expect(await deleteSavedTheme('saved-recoverable', { request })).toEqual({
+ ok: true,
+ existed: true,
+ filename: 'recoverable.yaml',
+ scheme: recoverable,
+ });
+ expect(readdirSync(join(homeDir, '.ok', 'themes')).sort()).toEqual(['broken.yaml', 'day.yaml']);
+ expect(readdirSync(join(homeDir, '.ok')).sort()).toEqual(dotOkEntriesBefore);
+ expect(
+ (await fetchSavedThemes({ request })).themes.some(
+ (theme) => theme.id === 'saved-recoverable',
+ ),
+ ).toBe(false);
+
+ expect(
+ await saveSavedTheme({ name: 'recoverable', scheme: recoverable }, { request }),
+ ).toMatchObject({ ok: true, id: 'saved-recoverable' });
+ expect(
+ (await fetchSavedThemes({ request })).themes.find((theme) => theme.id === 'saved-recoverable')
+ ?.scheme,
+ ).toEqual(recoverable);
+ });
+});
diff --git a/packages/core/src/config/read-config-safely.test.ts b/packages/core/src/config/read-config-safely.test.ts
index be01cce01..1047f258b 100644
--- a/packages/core/src/config/read-config-safely.test.ts
+++ b/packages/core/src/config/read-config-safely.test.ts
@@ -3,6 +3,7 @@ import { tmpdir } from 'node:os';
import { resolve } from 'node:path';
import { afterEach, beforeEach, describe, expect, test } from 'vitest';
import { stringify } from 'yaml';
+import { resolveThemePlugin } from '../theme/theme-plugins.ts';
import { isKnownConfigError } from './errors.ts';
import { readConfigSafely } from './read-config-safely.ts';
import { REMOVED_KEYS } from './removed-keys.ts';
@@ -130,6 +131,59 @@ describe('readConfigSafely', () => {
expect(siblings).toEqual([]);
});
+ test('an unrecognized theme id degrades that slot only; siblings survive; file not sidelined', () => {
+ // The discriminating test for opening the palette fields from a closed enum
+ // to a shape-constrained string. A saved-theme id is by construction absent
+ // from the built-in registry; under the old closed enum it failed
+ // whole-document validation, which this reader handled as corruption —
+ // replacing EVERY user preference with defaults and sidelining the file.
+ // The fields now accept the id shape, so the reader keeps every sibling and
+ // the unknown id degrades to the default palette only at resolve time.
+ //
+ // This FAILS on an unmodified checkout: `colorThemeLight: saved-*` trips
+ // SCHEMA_INVALID, `value` becomes defaults (wordWrap true, theme unset), and
+ // the file is renamed aside — so the sibling-survival assertions below all
+ // fail. Asserting only "the config still parses" would NOT discriminate: the
+ // old behavior also yields a parseable config, by discarding the user's.
+ const path = resolve(testDir, 'global.yml');
+ writeFileSync(
+ path,
+ [
+ 'editor:',
+ ' wordWrap: false',
+ 'appearance:',
+ ' theme: dark',
+ ' colorThemeLight: saved-my-personal',
+ ' colorThemeDark: dracula',
+ '',
+ ].join('\n'),
+ 'utf-8',
+ );
+ const result = readConfigSafely({ absPath: path, warn: () => {} });
+
+ expect(result.valid).toBe(true);
+ if (result.valid) {
+ // An unrelated sibling (a different section) keeps its authored value.
+ expect(result.value.editor.wordWrap).toBe(false);
+ // A sibling WITHIN appearance survives too.
+ expect(result.value.appearance.theme).toBe('dark');
+ // The dangling id is preserved verbatim, not stripped or rewritten.
+ expect(result.value.appearance.colorThemeLight).toBe('saved-my-personal');
+ // The known slot is untouched.
+ expect(result.value.appearance.colorThemeDark).toBe('dracula');
+ }
+ // Resolve-time degradation: the unknown id falls back to `default`; the
+ // known one still resolves to itself — the other slot is unaffected.
+ expect(resolveThemePlugin('saved-my-personal').id).toBe('default');
+ expect(resolveThemePlugin('dracula').id).toBe('dracula');
+ // The file is intact — a dangling reference is never a reason to sideline.
+ // This is the command-line read path, the only one that produces a
+ // `.invalid-*` file, so asserting its absence is meaningful here.
+ expect(existsSync(path)).toBe(true);
+ const siblings = readdirSync(testDir).filter((f) => f.includes('.invalid-'));
+ expect(siblings).toEqual([]);
+ });
+
test('a removed key is never sidelined, regardless of the sideline option', () => {
for (const sideline of [true, false] as const) {
const path = resolve(testDir, `stale-${sideline}.yml`);
diff --git a/packages/core/src/config/schema-jsonschema.test.ts b/packages/core/src/config/schema-jsonschema.test.ts
index 08447e479..f80262e20 100644
--- a/packages/core/src/config/schema-jsonschema.test.ts
+++ b/packages/core/src/config/schema-jsonschema.test.ts
@@ -54,6 +54,19 @@ const FIXTURES: Fixture[] = [
input: { appearance: { theme: 'midnight' } },
shouldAccept: false,
},
+ {
+ // The palette fields are open, shape-constrained strings (not a closed
+ // enum), so a saved-theme id the built-in registry never heard of validates
+ // — and the published IDE schema must agree with runtime on that shape.
+ name: 'appearance.colorThemeLight accepts a saved-theme id (open string)',
+ input: { appearance: { colorThemeLight: 'saved-my-theme' } },
+ shouldAccept: true,
+ },
+ {
+ name: 'appearance.colorThemeLight rejects an id outside the grammar',
+ input: { appearance: { colorThemeLight: 'Not A Theme' } },
+ shouldAccept: false,
+ },
{
name: 'editor.wordWrap=false accepted',
input: { editor: { wordWrap: false } },
diff --git a/packages/core/src/config/schema.ts b/packages/core/src/config/schema.ts
index 4c3fed92e..5d15e077e 100644
--- a/packages/core/src/config/schema.ts
+++ b/packages/core/src/config/schema.ts
@@ -3,7 +3,7 @@ import { DEFAULT_ATTACHMENT_FOLDER_PATH } from '../constants/upload.ts';
import { SUPPORTED_LOCALES } from '../i18n/locales.ts';
import { DEFAULT_LINKS_VALIDATION, LINKS_VALIDATION_SETTINGS } from '../markdown/lint/types.ts';
import { BASE16_SLOT_ROLES, BASE16_SLOTS } from '../theme/base16.ts';
-import { THEME_PLUGIN_IDS } from '../theme/theme-plugins.ts';
+import { THEME_ID_PATTERN, THEME_PLUGIN_IDS } from '../theme/theme-plugins.ts';
import { STORED_SYNC_ACTIVE_MODES, STORED_SYNC_MODES } from './auto-sync-mode.ts';
import { fieldRegistry } from './field-registry.ts';
@@ -272,42 +272,62 @@ export const ConfigSchema = z.looseObject({
// the resolved mode is light, `colorThemeDark` while it is dark, so the
// palette follows the OS as `theme: 'system'` flips. `default` carries no
// palette (the base stylesheet shows through); `custom` applies the user's
- // own `appearance.customTheme` scheme below. Any palette may sit in either
- // slot — a dark scheme chosen as the light-mode palette still forces its
- // own variant, so the app renders it dark. Personal preferences (user
- // scope). The id list is DERIVED from the `THEME_PLUGINS` registry
- // (`packages/core/src/theme/theme-plugins.ts`) via `THEME_PLUGIN_IDS` — add
- // a theme there and these enums follow, with no edit here.
+ // own `appearance.customTheme` scheme below; a built-in name selects a
+ // bundled palette; any other id names a saved theme resolved at read time.
+ // Any palette may sit in either slot — a dark scheme chosen as the
+ // light-mode palette still forces its own variant, so the app renders it
+ // dark. Personal preferences (user scope).
+ //
+ // These are shape-constrained strings (THEME_ID_PATTERN), NOT a closed
+ // enum: an id the built-in registry doesn't know resolves to `default` for
+ // that one slot rather than failing whole-config validation and discarding
+ // every other user preference. The grammar is shared verbatim with the
+ // FOUC pre-paint validator in `packages/app/index.html`, so config and
+ // pre-paint can never disagree on what a valid id is.
colorThemeLight: z
- .enum(THEME_PLUGIN_IDS)
+ .string()
.register(fieldRegistry, {
scope: 'user',
agentSettable: false,
defaultScope: 'user',
- description: `IDE color palette applied in light mode: 'default' (no palette), 'custom' (your own colors from appearance.customTheme), or one of ${namedThemeIds()}. A personal preference (user scope) — not shared with the project.`,
+ description: `IDE color palette applied in light mode: 'default' (no palette), 'custom' (your own colors from appearance.customTheme), one of ${namedThemeIds()}, or the id of a saved theme. A short id of lowercase letters, digits, and hyphens (max 32 characters); an id no palette matches falls back to 'default' for this mode only, leaving the rest of your config untouched. A personal preference (user scope) — not shared with the project.`,
+ })
+ .regex(THEME_ID_PATTERN, {
+ message:
+ "Theme id must be lowercase letters, digits, and hyphens, 1–32 characters (e.g. 'dracula', 'custom', or a saved theme id).",
})
.optional(),
colorThemeDark: z
- .enum(THEME_PLUGIN_IDS)
+ .string()
.register(fieldRegistry, {
scope: 'user',
agentSettable: false,
defaultScope: 'user',
- description: `IDE color palette applied in dark mode: 'default' (no palette), 'custom' (your own colors from appearance.customTheme), or one of ${namedThemeIds()}. A personal preference (user scope) — not shared with the project.`,
+ description: `IDE color palette applied in dark mode: 'default' (no palette), 'custom' (your own colors from appearance.customTheme), one of ${namedThemeIds()}, or the id of a saved theme. A short id of lowercase letters, digits, and hyphens (max 32 characters); an id no palette matches falls back to 'default' for this mode only, leaving the rest of your config untouched. A personal preference (user scope) — not shared with the project.`,
+ })
+ .regex(THEME_ID_PATTERN, {
+ message:
+ "Theme id must be lowercase letters, digits, and hyphens, 1–32 characters (e.g. 'dracula', 'custom', or a saved theme id).",
})
.optional(),
// The single palette written before the light/dark pair existed. Read only
// as the seed for BOTH slots when neither is set, so an older config keeps
// rendering what it always did; the first pick in the Themes pane writes
- // the pair and retires this key.
+ // the pair and retires this key. Opened to the same string shape as the
+ // pair above: it too must tolerate a saved-theme id without invalidating
+ // the whole config.
colorTheme: z
- .enum(THEME_PLUGIN_IDS)
+ .string()
.register(fieldRegistry, {
scope: 'user',
agentSettable: false,
defaultScope: 'user',
description:
- 'Superseded by appearance.colorThemeLight / appearance.colorThemeDark. Read as the palette for both modes while neither of those is set. A personal preference (user scope) — not shared with the project.',
+ "Superseded by appearance.colorThemeLight / appearance.colorThemeDark. Read as the palette for both modes while neither of those is set. A short theme id (lowercase letters, digits, and hyphens; max 32 characters); an id no palette matches falls back to 'default'. A personal preference (user scope) — not shared with the project.",
+ })
+ .regex(THEME_ID_PATTERN, {
+ message:
+ "Theme id must be lowercase letters, digits, and hyphens, 1–32 characters (e.g. 'dracula', 'custom', or a saved theme id).",
})
.optional(),
// Whether the Themes plugin appears under Settings → Plugins. The theme is
diff --git a/packages/core/src/constants/ok-dir.ts b/packages/core/src/constants/ok-dir.ts
index a41669a45..ecbaa9048 100644
--- a/packages/core/src/constants/ok-dir.ts
+++ b/packages/core/src/constants/ok-dir.ts
@@ -26,3 +26,14 @@ export const OK_PROJECT_MARKER = '.ok/config.yml';
* from `./ok-paths.ts` for the resolved absolute path on Node.
*/
export const LOCAL_DIR = 'local';
+
+/**
+ * User-global folder that holds saved color-theme scheme files, one file per
+ * theme, under `<homedir>/.ok/`. Sibling to the user-global `global.yml`, not a
+ * project sidecar — themes are device-personal, so the store is invisible to the
+ * content index and to git sharing by construction.
+ *
+ * A supported on-disk interface: the filename stem is the theme's identity, so
+ * this name is user-visible and changing it is a breaking move.
+ */
+export const SAVED_THEMES_DIRNAME = 'themes';
diff --git a/packages/core/src/handoff/urn-ipc-registry.ts b/packages/core/src/handoff/urn-ipc-registry.ts
index b6cbb8bfd..be59a1c11 100644
--- a/packages/core/src/handoff/urn-ipc-registry.ts
+++ b/packages/core/src/handoff/urn-ipc-registry.ts
@@ -305,6 +305,12 @@ export const URN_HTTP_ONLY: ReadonlySet<ProblemType> = new Set<ProblemType>([
// `GET /api/lint/audit` → 409). HTTP-only — the audit surface is REST, with
// no IPC counterpart.
'urn:ok:error:audit-superseded',
+ // Saved-theme store save refusals (`POST /api/saved-theme`). HTTP-only — the
+ // renderer's picker/editor hit the embedded server's HTTP endpoint directly in
+ // both web and Electron modes, with no IPC counterpart (same posture as
+ // `/api/handoff` and the folder-config / template writes).
+ 'urn:ok:error:theme-name-taken',
+ 'urn:ok:error:theme-name-invalid',
]);
/**
diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts
index b15cd7d12..0ccea339a 100644
--- a/packages/core/src/index.ts
+++ b/packages/core/src/index.ts
@@ -352,7 +352,7 @@ export {
NATIVE_MENU_LABELS,
type NativeMenuLabelKey,
} from './constants/native-menu-labels.ts';
-export { LOCAL_DIR, OK_DIR, OK_PROJECT_MARKER } from './constants/ok-dir.ts';
+export { LOCAL_DIR, OK_DIR, OK_PROJECT_MARKER, SAVED_THEMES_DIRNAME } from './constants/ok-dir.ts';
export {
PREVIEW_EMBED_STARTERS,
type PreviewEmbedStarter,
@@ -1034,6 +1034,22 @@ export {
RollbackRequestSchema,
type RollbackSuccess,
RollbackSuccessSchema,
+ type SavedThemeDeleteSuccess,
+ SavedThemeDeleteSuccessSchema,
+ type SavedThemeListEntry,
+ SavedThemeListEntrySchema,
+ type SavedThemeSaveRequest,
+ SavedThemeSaveRequestSchema,
+ type SavedThemeSaveSuccess,
+ SavedThemeSaveSuccessSchema,
+ type SavedThemeScheme,
+ SavedThemeSchemeSchema,
+ type SavedThemesListSuccess,
+ SavedThemesListSuccessSchema,
+ type SavedThemeUpdateRequest,
+ SavedThemeUpdateRequestSchema,
+ type SavedThemeUpdateSuccess,
+ SavedThemeUpdateSuccessSchema,
type SaveVersionRequest,
SaveVersionRequestSchema,
type SaveVersionSuccess,
@@ -1341,17 +1357,25 @@ export {
export type {
ColorThemeSelection,
ColorThemeSelectionInput,
+ SavedThemeIdError,
+ SavedThemeIdResult,
+ SavedThemeNameResult,
ThemePlugin,
ThemePluginId,
} from './theme/theme-plugins.ts';
export {
colorThemeMode,
+ deriveSavedThemeId,
+ deriveSavedThemeName,
generateColorThemesCss,
isDarkTheme,
+ parseSavedThemeId,
renderThemeBlock,
resolveColorThemeSelection,
resolveModePreference,
resolveThemePlugin,
+ SAVED_THEME_ID_PREFIX,
+ THEME_ID_PATTERN,
THEME_PLUGIN_IDS,
THEME_PLUGINS,
} from './theme/theme-plugins.ts';
diff --git a/packages/core/src/schemas/api/_envelope.ts b/packages/core/src/schemas/api/_envelope.ts
index 9962e9bf5..f534e1e27 100644
--- a/packages/core/src/schemas/api/_envelope.ts
+++ b/packages/core/src/schemas/api/_envelope.ts
@@ -399,6 +399,15 @@ export const ProblemTypeSchema = z.enum([
// Retryable and self-correcting: the same mutation broadcasts `lint-config`,
// so the caller is already scheduling the walk that supersedes this one.
'urn:ok:error:audit-superseded',
+ // Saved-theme store (`POST /api/saved-theme`). `theme-name-taken` (409) — the
+ // save name already names a scheme file in the store; refused before any
+ // write so a name collision never overwrites prior work. `theme-name-invalid`
+ // (400) — the name can't become a palette id (empty / too long / characters
+ // outside the grammar); the specific cause rides `detail`. Distinct URNs so
+ // the save form branches "pick a different name" vs "fix the name" without
+ // parsing a string.
+ 'urn:ok:error:theme-name-taken',
+ 'urn:ok:error:theme-name-invalid',
]) satisfies StandardSchemaV1;
export type ProblemType = z.infer<typeof ProblemTypeSchema>;
diff --git a/packages/core/src/schemas/api/index.ts b/packages/core/src/schemas/api/index.ts
index 9ef1d7e90..241c66b47 100644
--- a/packages/core/src/schemas/api/index.ts
+++ b/packages/core/src/schemas/api/index.ts
@@ -31,6 +31,7 @@ export * from './links-orphans.ts';
export * from './local-op.ts';
export * from './metrics.ts';
export * from './pages.ts';
+export * from './saved-themes.ts';
export * from './share.ts';
export * from './sync-seed.ts';
export * from './tags-search.ts';
diff --git a/packages/core/src/schemas/api/saved-themes.test.ts b/packages/core/src/schemas/api/saved-themes.test.ts
new file mode 100644
index 000000000..27cfb9b2f
--- /dev/null
+++ b/packages/core/src/schemas/api/saved-themes.test.ts
@@ -0,0 +1,31 @@
+import { describe, expect, test } from 'vitest';
+import { BASE16_SLOTS } from '../../theme/base16.ts';
+import { SavedThemeSchemeSchema } from './saved-themes.ts';
+
+function scheme(name: string, author?: string) {
+ return {
+ name,
+ ...(author === undefined ? {} : { author }),
+ variant: 'dark' as const,
+ palette: Object.fromEntries(BASE16_SLOTS.map((slot) => [slot, '#123456'])),
+ };
+}
+
+describe('SavedThemeSchemeSchema metadata', () => {
+ test.each([
+ ['name', scheme('\u0085', 'Ada')],
+ ['author', scheme('Valid', '\u0085')],
+ ])('rejects a U+0085 NEXT LINE-only %s', (_field, input) => {
+ expect(SavedThemeSchemeSchema.safeParse(input).success).toBe(false);
+ });
+
+ test('preserves accepted boundary whitespace without transforming it', () => {
+ const input = scheme(' Theme\t', '\n Ada \r');
+ const parsed = SavedThemeSchemeSchema.safeParse(input);
+
+ expect(parsed.success).toBe(true);
+ if (!parsed.success) return;
+ expect(parsed.data.name).toBe(input.name);
+ expect(parsed.data.author).toBe(input.author);
+ });
+});
diff --git a/packages/core/src/schemas/api/saved-themes.ts b/packages/core/src/schemas/api/saved-themes.ts
new file mode 100644
index 000000000..c5539bf92
--- /dev/null
+++ b/packages/core/src/schemas/api/saved-themes.ts
@@ -0,0 +1,161 @@
+/**
+ * Saved-theme store routes (`GET /api/saved-themes`, `POST`/`PUT`/`DELETE /api/saved-theme`).
+ *
+ * The store is a user-global folder of Tinted Theming scheme files; the renderer
+ * cannot write it directly, so save/update/delete/list are server operations. These are
+ * the wire schemas both sides share.
+ *
+ * Two bars, deliberately different: the LIST response mirrors the store's
+ * permissive total read — a scheme file that failed to parse (or whose name
+ * can't become an id) still appears, as a `{ ok: false, code }` warning entry,
+ * so the user can see and fix it. The SAVE request is the strict write validator
+ * — `SavedThemeSchemeSchema` requires all sixteen slots as `#rrggbb`, so a
+ * malformed palette is refused at the wire boundary before anything is written.
+ */
+
+import type { StandardSchemaV1 } from '@standard-schema/spec';
+import { z } from 'zod';
+import { BASE16_SLOTS, type Base16Slot, containsNonWhitespace } from '../../theme/base16.ts';
+
+/** A single palette slot: a `#rrggbb` hex color. The canonical form the editor's
+ * color picker emits; the strict write path requires it (the permissive read
+ * parser also accepts bare/legacy forms, which is the point of the two bars). */
+const HEX_COLOR_RE = /^#[0-9a-fA-F]{6}$/;
+
+/**
+ * The sixteen-slot palette, every slot required. Built from `BASE16_SLOTS` so
+ * the wire shape can't drift from the format. The cast asserts what the const
+ * array makes structurally true — a keyed `Record<Base16Slot, …>` shape — so the
+ * inferred palette type is precise (`{ base00: string; … }`) rather than a loose
+ * index signature.
+ */
+const paletteShape = Object.fromEntries(
+ BASE16_SLOTS.map((slot) => [slot, z.string().regex(HEX_COLOR_RE, 'must be a #rrggbb hex color')]),
+) as Record<Base16Slot, z.ZodString>;
+
+const Base16PaletteSchema = z.object(paletteShape);
+
+const NonBlankMetadataStringSchema = z.string().min(1).refine(containsNonWhitespace, {
+ message: 'must contain a non-whitespace character',
+});
+
+/**
+ * A complete base16 scheme as the save path accepts and the list path returns.
+ * `.loose()` tolerates extra top-level fields for forward-compat; the serializer
+ * only emits the standard fields, so nothing proprietary can ride into the file.
+ */
+export const SavedThemeSchemeSchema = z
+ .object({
+ name: NonBlankMetadataStringSchema,
+ author: NonBlankMetadataStringSchema.optional(),
+ variant: z.enum(['dark', 'light']),
+ palette: Base16PaletteSchema,
+ })
+ .loose() satisfies StandardSchemaV1;
+export type SavedThemeScheme = z.infer<typeof SavedThemeSchemeSchema>;
+
+/**
+ * Request body for `POST /api/saved-theme`. `name` is the human-facing display
+ * name; the handler derives a safe filename stem and palette id from it and
+ * refuses a taken identity. `stem` is reserved for restoring a just-deleted
+ * file under its exact prior identity. `scheme` is the palette to write.
+ */
+export const SavedThemeSaveRequestSchema = z
+ .object({
+ name: z.string().min(1),
+ scheme: SavedThemeSchemeSchema,
+ /** Exact prior filename stem, used only by the delete-undo restore path. */
+ stem: z.string().min(1).optional(),
+ /** Preserve a hand-dropped `.yml` filename when restoring after delete. */
+ extension: z.enum(['.yaml', '.yml']).optional(),
+ })
+ .loose() satisfies StandardSchemaV1;
+export type SavedThemeSaveRequest = z.infer<typeof SavedThemeSaveRequestSchema>;
+
+/** Success body for `POST /api/saved-theme`. `id` is the namespaced palette id
+ * the config fields reference; `filename` is the file written (the stable
+ * edit/delete target). */
+export const SavedThemeSaveSuccessSchema = z
+ .object({
+ id: z.string().min(1),
+ filename: z.string().min(1),
+ })
+ .loose() satisfies StandardSchemaV1;
+export type SavedThemeSaveSuccess = z.infer<typeof SavedThemeSaveSuccessSchema>;
+
+/**
+ * Request body for `PUT /api/saved-theme`. The immutable saved-theme id picks
+ * an existing file; the complete scheme replaces its contents. Full-state
+ * replacement makes retries idempotent and keeps partial client state from
+ * leaking into the user-owned base16 file.
+ */
+export const SavedThemeUpdateRequestSchema = z
+ .object({
+ id: z.string().min(1),
+ scheme: SavedThemeSchemeSchema,
+ })
+ .loose() satisfies StandardSchemaV1;
+export type SavedThemeUpdateRequest = z.infer<typeof SavedThemeUpdateRequestSchema>;
+
+/** Success body for `PUT /api/saved-theme`. The filename is the same file that
+ * existed before the update; update never creates a missing theme. */
+export const SavedThemeUpdateSuccessSchema = z
+ .object({
+ id: z.string().min(1),
+ filename: z.string().min(1),
+ })
+ .loose() satisfies StandardSchemaV1;
+export type SavedThemeUpdateSuccess = z.infer<typeof SavedThemeUpdateSuccessSchema>;
+
+/** Success body for `DELETE /api/saved-theme?id=<id>`. A real deletion returns
+ * the exact parsed scheme so the renderer can offer a time-boxed undo without
+ * retaining a server-side backup. An absent id is an idempotent no-op. */
+export const SavedThemeDeleteSuccessSchema = z.discriminatedUnion('existed', [
+ z.object({ existed: z.literal(false) }).loose(),
+ z
+ .object({
+ existed: z.literal(true),
+ filename: z.string().min(1),
+ scheme: SavedThemeSchemeSchema,
+ })
+ .loose(),
+]) satisfies StandardSchemaV1;
+export type SavedThemeDeleteSuccess = z.infer<typeof SavedThemeDeleteSuccessSchema>;
+
+/**
+ * One entry in the list response, discriminated on `ok`. A usable theme carries
+ * its palette so the picker can render a preview; an unusable one carries a
+ * machine-readable `code` (a parse failure or an id-derivation failure) and is
+ * listed rather than hidden. `code` is a plain string, not a closed enum, so a
+ * new failure kind in the store never breaks older clients — the UI maps known
+ * codes to copy and shows the raw code otherwise.
+ */
+export const SavedThemeListEntrySchema = z.discriminatedUnion('ok', [
+ z.object({
+ ok: z.literal(true),
+ id: z.string().min(1),
+ filename: z.string().min(1),
+ scheme: SavedThemeSchemeSchema,
+ }),
+ z.object({
+ ok: z.literal(false),
+ filename: z.string().min(1),
+ id: z.string().min(1).optional(),
+ code: z.string().min(1),
+ conflictingFilenames: z.array(z.string().min(1)).min(2).optional(),
+ }),
+]) satisfies StandardSchemaV1;
+export type SavedThemeListEntry = z.infer<typeof SavedThemeListEntrySchema>;
+
+/**
+ * Success body for `GET /api/saved-themes`. `truncated` is `true` when the store
+ * held more scheme files than the scan cap listed — surfaced so the UI can tell
+ * the user the list is incomplete rather than silently cutting it.
+ */
+export const SavedThemesListSuccessSchema = z
+ .object({
+ themes: z.array(SavedThemeListEntrySchema),
+ truncated: z.boolean(),
+ })
+ .loose() satisfies StandardSchemaV1;
+export type SavedThemesListSuccess = z.infer<typeof SavedThemesListSuccessSchema>;
diff --git a/packages/core/src/theme/base16.test.ts b/packages/core/src/theme/base16.test.ts
index 8a14c0717..b34b3819e 100644
--- a/packages/core/src/theme/base16.test.ts
+++ b/packages/core/src/theme/base16.test.ts
@@ -173,6 +173,15 @@ describe('parseBase16Scheme', () => {
expect(parseBase16Scheme('')).toMatchObject({ error: { kind: 'not-a-scheme' } });
});
+ test.each([
+ ['name', { name: '\u0085', author: 'Ada' }],
+ ['author', { name: 'Valid', author: '\u0085' }],
+ ])('rejects U+0085 NEXT LINE-only %s metadata', (_field, metadata) => {
+ expect(
+ parseBase16Scheme(JSON.stringify({ ...metadata, variant: 'dark', palette: paletteOf() })),
+ ).toMatchObject({ error: { kind: 'not-a-scheme' } });
+ });
+
test('rejects unparseable input and names the offending line', () => {
const result = parseBase16Scheme('{[unclosed');
expect(result).toMatchObject({ error: { kind: 'unparseable' } });
@@ -328,6 +337,40 @@ describe('base16ToYaml', () => {
if (!reparsed.ok) return;
expect(reparsed.scheme.name).toBe('He said "hi" \\ bye');
});
+
+ test('round-trips line breaks, tabs, and control characters in metadata', () => {
+ const name = 'Line one\nLine two\twith controls \u0001 and \u007f';
+ const author = 'Ada\r\nLovelace\twith controls \u0085 and \u009f plus \u2028 a line separator';
+ const yaml = base16ToYaml({
+ name,
+ author,
+ variant: 'dark',
+ palette: paletteOf(),
+ });
+
+ expect(yaml).toContain('name: "Line one\\nLine two\\twith controls \\u0001 and \\u007f"');
+ expect(yaml).toContain(
+ 'author: "Ada\\r\\nLovelace\\twith controls \\u0085 and \\u009f plus \\u2028',
+ );
+ const reparsed = parseBase16Scheme(yaml);
+ expect(reparsed.ok).toBe(true);
+ if (!reparsed.ok) return;
+ expect(reparsed.scheme.name).toBe(name);
+ expect(reparsed.scheme.author).toBe(author);
+ });
+
+ test('preserves intentional leading and trailing whitespace in nonblank metadata', () => {
+ const name = ' Padded theme\t';
+ const author = '\t Ada Lovelace \n';
+ const reparsed = parseBase16Scheme(
+ base16ToYaml({ name, author, variant: 'light', palette: paletteOf() }),
+ );
+
+ expect(reparsed.ok).toBe(true);
+ if (!reparsed.ok) return;
+ expect(reparsed.scheme.name).toBe(name);
+ expect(reparsed.scheme.author).toBe(author);
+ });
});
describe('color helpers', () => {
diff --git a/packages/core/src/theme/base16.ts b/packages/core/src/theme/base16.ts
index 43e7dd59e..2ee67123f 100644
--- a/packages/core/src/theme/base16.ts
+++ b/packages/core/src/theme/base16.ts
@@ -108,6 +108,12 @@ export interface Base16Scheme {
}
const HEX_RE = /^#[0-9a-fA-F]{6}$/;
+const HAS_NON_WHITESPACE_RE = /\P{White_Space}/u;
+
+/** True when a metadata scalar is not solely Unicode White_Space characters. */
+export function containsNonWhitespace(value: string): boolean {
+ return HAS_NON_WHITESPACE_RE.test(value);
+}
export function isBase16Hex(value: unknown): value is string {
return typeof value === 'string' && HEX_RE.test(value);
@@ -260,7 +266,12 @@ function kebab(name: string): string {
/** Double-quoted YAML scalar — the one form that needs no context to be safe. */
function yamlString(value: string): string {
- return `"${value.replace(/\\/g, '\\\\').replace(/"/g, '\\"')}"`;
+ // JSON handles C0 controls, quotes, backslashes, and lone surrogates. Escape
+ // the remaining YAML line/control characters that JSON may emit literally.
+ return JSON.stringify(value).replace(
+ /[\u007f-\u009f\u2028\u2029\ufffe\uffff]/g,
+ (character) => `\\u${character.charCodeAt(0).toString(16).padStart(4, '0')}`,
+ );
}
/**
@@ -351,12 +362,18 @@ export function parseBase16Scheme(text: string): Base16ParseResult {
}
if (missing.length) return { ok: false, error: { kind: 'missing-slots', slots: missing } };
if (badHex.length) return { ok: false, error: { kind: 'bad-hex', slots: badHex } };
+ if (
+ (typeof doc.name === 'string' && !containsNonWhitespace(doc.name)) ||
+ (typeof doc.author === 'string' && !containsNonWhitespace(doc.author))
+ ) {
+ return { ok: false, error: { kind: 'not-a-scheme' } };
+ }
return {
ok: true,
scheme: {
- name: typeof doc.name === 'string' && doc.name.trim() ? doc.name.trim() : 'Imported',
- author: typeof doc.author === 'string' && doc.author.trim() ? doc.author.trim() : undefined,
+ name: typeof doc.name === 'string' ? doc.name : 'Imported',
+ author: typeof doc.author === 'string' ? doc.author : undefined,
variant:
doc.variant === 'light' || doc.variant === 'dark' ? doc.variant : inferVariant(palette),
palette,
diff --git a/packages/core/src/theme/theme-plugins.test.ts b/packages/core/src/theme/theme-plugins.test.ts
index 19d733813..1b16e4bde 100644
--- a/packages/core/src/theme/theme-plugins.test.ts
+++ b/packages/core/src/theme/theme-plugins.test.ts
@@ -2,12 +2,17 @@ import { describe, expect, test } from 'vitest';
import { BASE16_SLOTS, base16ToTokens } from './base16.ts';
import {
colorThemeMode,
+ deriveSavedThemeId,
+ deriveSavedThemeName,
generateColorThemesCss,
isDarkTheme,
+ parseSavedThemeId,
renderThemeBlock,
resolveColorThemeSelection,
resolveModePreference,
resolveThemePlugin,
+ SAVED_THEME_ID_PREFIX,
+ THEME_ID_PATTERN,
THEME_PLUGIN_IDS,
THEME_PLUGINS,
} from './theme-plugins.ts';
@@ -45,14 +50,118 @@ describe('THEME_PLUGINS registry', () => {
const ids = THEME_PLUGINS.map((t) => t.id);
expect(new Set(ids).size).toBe(ids.length);
});
+
+ test('no built-in id begins with the reserved saved-theme prefix', () => {
+ // Guards the shadowing contract: built-ins are an authored set and a
+ // collision here would silently let a saved theme redefine a built-in name.
+ for (const theme of THEME_PLUGINS) {
+ expect(theme.id.startsWith(SAVED_THEME_ID_PREFIX), theme.id).toBe(false);
+ }
+ });
+});
+
+describe('deriveSavedThemeName', () => {
+ test('keeps the display name and derives a natural id from punctuation and spaces', () => {
+ expect(deriveSavedThemeName(" John's theme ")).toEqual({
+ ok: true,
+ name: "John's theme",
+ stem: 'johns-theme',
+ id: 'saved-johns-theme',
+ });
+ expect(deriveSavedThemeName('John’s theme')).toMatchObject({
+ ok: true,
+ stem: 'johns-theme',
+ id: 'saved-johns-theme',
+ });
+ });
+
+ test('folds Latin diacritics into an ASCII filename id', () => {
+ expect(deriveSavedThemeName('Café Noir')).toEqual({
+ ok: true,
+ name: 'Café Noir',
+ stem: 'cafe-noir',
+ id: 'saved-cafe-noir',
+ });
+ });
+
+ test('gives non-ASCII and overlong names stable ids within the grammar', () => {
+ const nonAscii = deriveSavedThemeName('夜空 🌙');
+ const overlong = deriveSavedThemeName('This is a particularly long custom theme name');
+ expect(nonAscii).toMatchObject({ ok: true, name: '夜空 🌙' });
+ expect(overlong).toMatchObject({
+ ok: true,
+ name: 'This is a particularly long custom theme name',
+ });
+ if (nonAscii.ok) expect(THEME_ID_PATTERN.test(nonAscii.id)).toBe(true);
+ if (overlong.ok) expect(THEME_ID_PATTERN.test(overlong.id)).toBe(true);
+ expect(deriveSavedThemeName('夜空 🌙')).toEqual(nonAscii);
+ expect(deriveSavedThemeName('This is a particularly long custom theme name')).toEqual(overlong);
+ });
+
+ test('refuses only an empty display name', () => {
+ expect(deriveSavedThemeName(' ')).toEqual({ ok: false, code: 'empty' });
+ });
+});
+
+describe('deriveSavedThemeId', () => {
+ test('prefixes the stem and stays inside the theme-id grammar', () => {
+ const result = deriveSavedThemeId('midnight');
+ expect(result).toEqual({ ok: true, id: 'saved-midnight' });
+ // The derived id must be admissible to the same grammar the config fields
+ // and the pre-paint script validate against — no separate namespace form.
+ if (result.ok) expect(THEME_ID_PATTERN.test(result.id)).toBe(true);
+ });
+
+ test('refuses an over-length stem with a distinct code rather than truncating', () => {
+ // `saved-` (6) leaves 26 for the stem; 27 overflows the 32-char id budget.
+ const stem = 'a'.repeat(27);
+ expect(deriveSavedThemeId(stem)).toEqual({ ok: false, code: 'too-long' });
+ // The 26-char boundary is the last accepted length.
+ expect(deriveSavedThemeId('a'.repeat(26))).toEqual({ ok: true, id: `saved-${'a'.repeat(26)}` });
+ });
+
+ test('refuses characters outside the grammar rather than rewriting them', () => {
+ for (const stem of ['My Theme', 'café', 'sub/dir', 'UPPER']) {
+ expect(deriveSavedThemeId(stem)).toEqual({ ok: false, code: 'invalid-chars' });
+ }
+ });
+
+ test('refuses an empty stem', () => {
+ expect(deriveSavedThemeId('')).toEqual({ ok: false, code: 'empty' });
+ });
+
+ test('a stem that already carries the prefix doubles it, unambiguously', () => {
+ expect(deriveSavedThemeId('saved-theme')).toEqual({ ok: true, id: 'saved-saved-theme' });
+ });
});
-describe('config enum derives from the registry', () => {
- // The headline of the plugin refactor: the `appearance.colorTheme` enum is
- // built from THEME_PLUGIN_IDS, which is built from the registry. Adding a
- // ThemePlugin grows the enum with no schema edit — the coupling the old
- // hand-listed enum carried is gone. (The schema-level cross-check that the
- // ConfigSchema enum equals these ids lives in the app's color-themes.test.ts.)
+describe('parseSavedThemeId', () => {
+ test('recovers the stem from a well-formed saved-theme id (round-trips deriveSavedThemeId)', () => {
+ for (const stem of ['midnight', 'a', 'my-theme', 'saved-theme', 'a'.repeat(26)]) {
+ const derived = deriveSavedThemeId(stem);
+ expect(derived.ok).toBe(true);
+ if (derived.ok) expect(parseSavedThemeId(derived.id)).toEqual({ ok: true, stem });
+ }
+ });
+
+ test('refuses a built-in id (no reserved prefix)', () => {
+ for (const id of ['dracula', 'default', 'custom', 'catppuccin-latte']) {
+ expect(parseSavedThemeId(id)).toEqual({ ok: false });
+ }
+ });
+
+ test('refuses a bare prefix with an empty stem', () => {
+ expect(parseSavedThemeId('saved-')).toEqual({ ok: false });
+ });
+
+ test('refuses an id outside the grammar', () => {
+ for (const id of ['saved-My Theme', 'saved-sub/dir', '', `saved-${'a'.repeat(27)}`]) {
+ expect(parseSavedThemeId(id)).toEqual({ ok: false });
+ }
+ });
+});
+
+describe('built-in id list derives from the registry', () => {
test('THEME_PLUGIN_IDS is exactly the registry ids, in order', () => {
expect([...THEME_PLUGIN_IDS]).toEqual(THEME_PLUGINS.map((t) => t.id));
});
@@ -122,6 +231,21 @@ describe('resolveColorThemeSelection', () => {
).toEqual({ light: 'catppuccin-latte', dark: 'dracula' });
});
+ test('reads saved ids when the caller supplies the live palette registry', () => {
+ const themes = [
+ ...THEME_PLUGINS,
+ { id: 'saved-day', label: 'Day', kind: 'light' as const },
+ { id: 'saved-night', label: 'Night', kind: 'dark' as const },
+ ];
+
+ expect(
+ resolveColorThemeSelection(
+ { colorThemeLight: 'saved-day', colorThemeDark: 'saved-night' },
+ themes,
+ ),
+ ).toEqual({ light: 'saved-day', dark: 'saved-night' });
+ });
+
test('a legacy single palette seeds both slots, so the pre-pair config renders unchanged', () => {
expect(resolveColorThemeSelection({ colorTheme: 'dracula' })).toEqual({
light: 'dracula',
@@ -135,6 +259,15 @@ describe('resolveColorThemeSelection', () => {
).toEqual({ light: 'monokai', dark: 'gruvbox' });
});
+ test('an explicit unknown slot falls back to default without reviving the legacy palette', () => {
+ expect(
+ resolveColorThemeSelection({
+ colorTheme: 'monokai',
+ colorThemeLight: 'missing-theme',
+ }),
+ ).toEqual({ light: 'default', dark: 'monokai' });
+ });
+
test('an empty or unknown selection resolves to default in both slots', () => {
expect(resolveColorThemeSelection(undefined)).toEqual({ light: 'default', dark: 'default' });
expect(resolveColorThemeSelection({})).toEqual({ light: 'default', dark: 'default' });
diff --git a/packages/core/src/theme/theme-plugins.ts b/packages/core/src/theme/theme-plugins.ts
index 510dd3a0b..0a62ae96f 100644
--- a/packages/core/src/theme/theme-plugins.ts
+++ b/packages/core/src/theme/theme-plugins.ts
@@ -1,10 +1,9 @@
/**
* IDE color-theme plugin registry — the single source of truth for the built-in
- * palettes the Settings → Preferences picker offers, and the source the
- * `appearance.colorThemeLight` / `colorThemeDark` config enums (and the retired
- * single `colorTheme`) are DERIVED from (`THEME_PLUGIN_IDS`, see
- * `config/schema.ts`). Lives in `core` (not `app`) precisely so the config
- * schema can derive its enum from the registry — `core` can't import `app`.
+ * palettes the Settings → Preferences picker offers. Config accepts the open,
+ * shape-constrained id grammar declared below so user-owned saved themes can
+ * participate without extending this registry. This lives in `core` (not
+ * `app`) so config validation and app resolution share the same contracts.
*
* This mirrors the content-rules `LintPlugin<Id, Slice>` registry: each entry is
* a self-describing descriptor (`ThemePlugin`) the host iterates, and a plugin's
@@ -33,7 +32,7 @@ import { type Base16Scheme, base16ToTokens } from './base16.ts';
* descriptor rather than branching per-theme.
*/
export interface ThemePlugin<Id extends string = string> {
- /** Config value under `appearance.colorTheme`, and the picker tile key. */
+ /** Palette id used by appearance config and picker tiles. */
id: Id;
/** Display name. A brand proper-noun (Dracula, Nord, …) — intentionally not translated. */
label: string;
@@ -234,17 +233,133 @@ export const THEME_PLUGINS = [
export type ThemePluginId = (typeof THEME_PLUGINS)[number]['id'];
/**
- * The theme ids as a non-empty tuple, DERIVED from the registry, for `z.enum` in
- * `config/schema.ts`. This is what makes `appearance.colorTheme` follow the
- * registry: add a `ThemePlugin` and the config enum grows with no schema edit
- * (the coupling the old hand-listed enum carried). The cast supplies the tuple
- * shape `z.enum` needs; the literal members come from the registry.
+ * The built-in theme ids as a non-empty tuple derived from the registry.
+ * Config metadata uses this list for built-in suggestions while validation
+ * remains open to any id admitted by `THEME_ID_PATTERN`.
*/
export const THEME_PLUGIN_IDS = THEME_PLUGINS.map((t) => t.id) as [
ThemePluginId,
...ThemePluginId[],
];
+/**
+ * The grammar every theme id must satisfy: lowercase letters, digits, and
+ * hyphens, 1–32 characters. The config fields that name a palette
+ * (`appearance.colorThemeLight` / `colorThemeDark` / the retired `colorTheme`)
+ * are shape-constrained to this rather than to a closed set of built-in ids, so
+ * a palette the built-in registry has never heard of — a user's saved theme —
+ * validates and resolves to `default` at read time instead of failing
+ * whole-config validation and discarding every other user preference.
+ *
+ * The FOUC pre-paint script inlined in `packages/app/index.html` validates ids
+ * against this exact shape but can't import it (it runs before any bundle
+ * loads), so it hardcodes the pattern. The two MUST stay identical — a palette
+ * config accepts but pre-paint rejects would flash unstyled on reload — and a
+ * drift test in the app pins the inline copy to this source.
+ */
+export const THEME_ID_PATTERN = /^[a-z0-9-]{1,32}$/;
+
+/**
+ * Reserved prefix that namespaces a saved theme's palette id. A built-in id must
+ * never begin with it (a registry-invariant test enforces this), so a saved
+ * theme can never shadow a built-in and resolution order never has to arbitrate
+ * between the two.
+ *
+ * The prefix is itself `[a-z0-9-]`, so `saved-<stem>` stays admissible to
+ * `THEME_ID_PATTERN` — the config fields and the FOUC pre-paint script keep
+ * validating against the one grammar with no namespace separator to learn.
+ */
+export const SAVED_THEME_ID_PREFIX = 'saved-';
+
+/** Why a filename stem (or a proposed save name) could not become a saved-theme id. */
+export type SavedThemeIdError = 'empty' | 'too-long' | 'invalid-chars';
+
+export type SavedThemeIdResult = { ok: true; id: string } | { ok: false; code: SavedThemeIdError };
+
+export type SavedThemeNameResult =
+ | { ok: true; name: string; stem: string; id: string }
+ | { ok: false; code: 'empty' };
+
+const SAVED_THEME_STEM_MAX_LENGTH = 32 - SAVED_THEME_ID_PREFIX.length;
+const COMBINING_MARK_RE = /\p{M}+/gu;
+const APOSTROPHE_RE = /['\u2019\u02bc]+/gu;
+const NON_ASCII_ALPHANUMERIC_RE = /[^a-z0-9]+/g;
+
+function savedThemeNameHash(name: string): string {
+ let hash = 0x811c9dc5;
+ for (const character of name) {
+ hash ^= character.codePointAt(0) ?? 0;
+ hash = Math.imul(hash, 0x01000193);
+ }
+ return (hash >>> 0).toString(16).padStart(8, '0');
+}
+
+/**
+ * Turn a human-facing theme name into its safe filename identity while keeping
+ * the display name intact. Common punctuation becomes word boundaries, while
+ * apostrophes disappear so "John's theme" maps naturally to `johns-theme`.
+ * Names that cannot fit the storage grammar receive a stable hash suffix rather
+ * than being refused or silently colliding through plain truncation.
+ */
+export function deriveSavedThemeName(name: string): SavedThemeNameResult {
+ const displayName = name.trim();
+ if (displayName.length === 0) return { ok: false, code: 'empty' };
+
+ const slug = displayName
+ .normalize('NFKD')
+ .replace(COMBINING_MARK_RE, '')
+ .toLowerCase()
+ .replace(APOSTROPHE_RE, '')
+ .replace(NON_ASCII_ALPHANUMERIC_RE, '-')
+ .replace(/^-+|-+$/g, '');
+ const hash = savedThemeNameHash(displayName);
+ const stem =
+ slug.length === 0
+ ? `theme-${hash}`
+ : slug.length <= SAVED_THEME_STEM_MAX_LENGTH
+ ? slug
+ : `${slug.slice(0, SAVED_THEME_STEM_MAX_LENGTH - hash.length - 1).replace(/-+$/g, '')}-${hash}`;
+ const derived = deriveSavedThemeId(stem);
+ if (!derived.ok) throw new Error('Saved theme name derivation produced an invalid id');
+ return { ok: true, name: displayName, stem, id: derived.id };
+}
+
+/**
+ * Derive a saved theme's palette id from a filename stem:
+ * `SAVED_THEME_ID_PREFIX` + stem, admitted only if the whole id satisfies
+ * `THEME_ID_PATTERN`. A stem that overflows the id's length budget, or carries
+ * characters outside the grammar, is REFUSED with a distinguishing code — never
+ * truncated or rewritten to fit. The caller lists such a file in an error state
+ * when scanning a hand-dropped file. User-facing names route through
+ * `deriveSavedThemeName` instead.
+ */
+export function deriveSavedThemeId(stem: string): SavedThemeIdResult {
+ if (stem.length === 0) return { ok: false, code: 'empty' };
+ const id = SAVED_THEME_ID_PREFIX + stem;
+ if (THEME_ID_PATTERN.test(id)) return { ok: true, id };
+ // The grammar rejected it; name the fixable cause. A well-formed-but-overlong
+ // id passes the character class and fails only the length bound, so a clean
+ // charset match localizes the fault to length; anything else is stray characters.
+ return { ok: false, code: /^[a-z0-9-]+$/.test(id) ? 'too-long' : 'invalid-chars' };
+}
+
+/**
+ * Recover a saved theme's filename stem from its palette id — the inverse of
+ * `deriveSavedThemeId`. Succeeds only for a well-formed saved-theme id: it must
+ * satisfy `THEME_ID_PATTERN`, carry the `SAVED_THEME_ID_PREFIX`, and leave a
+ * non-empty stem after the prefix. A built-in id (no prefix) or a bare `saved-`
+ * (empty stem) yields `{ ok: false }`. Because the stem is `[a-z0-9-]+` by
+ * construction, callers may use it as a filename segment without further
+ * path-safety escaping.
+ */
+export function parseSavedThemeId(id: string): { ok: true; stem: string } | { ok: false } {
+ if (!THEME_ID_PATTERN.test(id)) return { ok: false };
+ if (!id.startsWith(SAVED_THEME_ID_PREFIX)) return { ok: false };
+ const stem = id.slice(SAVED_THEME_ID_PREFIX.length);
+ if (stem.length === 0) return { ok: false };
+ return { ok: true, stem };
+}
+
const THEME_PLUGIN_BY_ID = new Map<string, ThemePlugin>(THEME_PLUGINS.map((t) => [t.id, t]));
/** Resolve a raw config value to a known theme, falling back to `default`. */
@@ -267,15 +382,14 @@ export function colorThemeMode(id: string | undefined): 'light' | 'dark' | undef
return kind === 'system' ? undefined : kind;
}
-/** The palette to apply in each light/dark mode — one theme id per mode. */
+/**
+ * The palette to apply in each light/dark mode — one theme id per mode. The id
+ * is a shape-constrained string, not the closed built-in set: the config fields
+ * it is read from accept a user's saved-theme id too.
+ */
export interface ColorThemeSelection {
- light: ThemePluginId;
- dark: ThemePluginId;
-}
-
-/** Narrow an arbitrary config value to a known theme id. */
-function isThemePluginId(value: unknown): value is ThemePluginId {
- return typeof value === 'string' && THEME_PLUGIN_BY_ID.has(value);
+ light: string;
+ dark: string;
}
/** The `appearance` fields the selection is resolved from. */
@@ -294,14 +408,21 @@ export interface ColorThemeSelectionInput {
* and — because a palette still forces its own variant — the app renders exactly
* what it rendered before the pair existed. A half-written pair (one slot only)
* falls back per-slot rather than discarding the other.
+ *
+ * Callers resolving saved-theme ids must pass the complete merged registry;
+ * the default registry contains built-in themes only.
*/
export function resolveColorThemeSelection(
appearance: ColorThemeSelectionInput | undefined,
+ themes: readonly ThemePlugin[] = THEME_PLUGINS,
): ColorThemeSelection {
+ const availableIds = new Set(themes.map((theme) => theme.id));
const legacy = appearance?.colorTheme;
- const fallback: ThemePluginId = isThemePluginId(legacy) ? legacy : THEME_PLUGINS[0].id;
- const pick = (value: string | undefined): ThemePluginId =>
- isThemePluginId(value) ? value : fallback;
+ const fallback = legacy && availableIds.has(legacy) ? legacy : THEME_PLUGINS[0].id;
+ const pick = (value: string | undefined): string => {
+ if (value === undefined) return fallback;
+ return availableIds.has(value) ? value : THEME_PLUGINS[0].id;
+ };
return {
light: pick(appearance?.colorThemeLight),
dark: pick(appearance?.colorThemeDark),
diff --git a/packages/core/src/util/atomic-yaml-write.test.ts b/packages/core/src/util/atomic-yaml-write.test.ts
index 2358759be..e6c68404a 100644
--- a/packages/core/src/util/atomic-yaml-write.test.ts
+++ b/packages/core/src/util/atomic-yaml-write.test.ts
@@ -175,4 +175,16 @@ describe('atomicWriteFile (async) — crash-orphan sweep', () => {
await atomicWriteFile(target, 'new');
expect(existsSync(unrelatedTmp)).toBe(true);
});
+
+ test('can skip the directory sweep while a finite-staleness lock is held', async () => {
+ const ancientTmp = join(testDir, 'state.yml.tmp.ancient-uuid');
+ writeFileSync(ancientTmp, 'crashed mid-write');
+ const ancient = new Date('2000-01-01T00:00:00Z');
+ utimesSync(ancientTmp, ancient, ancient);
+
+ await atomicWriteFile(target, 'new', { sweepStaleTmps: false });
+
+ expect(existsSync(ancientTmp)).toBe(true);
+ expect(readFileSync(target, 'utf-8')).toBe('new');
+ });
});
diff --git a/packages/core/src/util/atomic-yaml-write.ts b/packages/core/src/util/atomic-yaml-write.ts
index 14c96264a..38748f687 100644
--- a/packages/core/src/util/atomic-yaml-write.ts
+++ b/packages/core/src/util/atomic-yaml-write.ts
@@ -63,6 +63,12 @@ const DEFAULT_FS: AtomicWriteFsAdapter = {
export interface AtomicWriteOptions {
/** Posix file mode for the final file. Defaults to 0o644 (config is not secret). */
mode?: number;
+ /**
+ * Sweep stale sibling temp files before writing. Defaults to true. Callers
+ * holding a finite-staleness cross-process lock may disable the unbounded
+ * directory sweep so the lock cannot be mistaken for stale mid-operation.
+ */
+ sweepStaleTmps?: boolean;
/**
* Inject traced fs primitives. Server-side callers pass `{writeFile: tracedWriteFile, rename: tracedRename}`
* from `packages/server/src/fs-traced.ts` so disk writes appear as `fs.*` spans.
@@ -136,7 +142,7 @@ export async function atomicWriteFile(
content: string,
opts: AtomicWriteOptions = {},
): Promise<void> {
- await sweepStaleTmps(absPath);
+ if (opts.sweepStaleTmps !== false) await sweepStaleTmps(absPath);
const fs = opts.fs ?? DEFAULT_FS;
const tmpPath = `${absPath}.tmp.${crypto.randomUUID()}`;
try {
diff --git a/packages/desktop/tests/smoke/saved-theme-paint.e2e.ts b/packages/desktop/tests/smoke/saved-theme-paint.e2e.ts
new file mode 100644
index 000000000..7dd96bf45
--- /dev/null
+++ b/packages/desktop/tests/smoke/saved-theme-paint.e2e.ts
@@ -0,0 +1,194 @@
+/**
+ * Real-Electron coverage for user-global saved palettes. The fixture redirects
+ * both the app home and Chromium user data, then reads a computed color from a
+ * live CSS probe; checking only the theme attribute would not prove cascade.
+ */
+
+import { mkdirSync, mkdtempSync, writeFileSync } from 'node:fs';
+import { tmpdir } from 'node:os';
+import { join } from 'node:path';
+import type { ElectronApplication, Page } from '@playwright/test';
+import { _electron as electron } from '@playwright/test';
+import { desktopLaunchOptions, resolveDesktopTarget } from './_helpers/launch-desktop';
+import {
+ homeEnv,
+ PLATFORM_SKIP_REASON,
+ PLATFORM_SUPPORTED,
+ SMOKE_ENABLED,
+ userDataDirFor,
+} from './_helpers/platform-gate';
+import { expect, test } from './_helpers/smoke-test';
+
+const TARGET = resolveDesktopTarget();
+
+const LIGHT_BACKGROUND = '#f1e2d3';
+const DARK_BACKGROUND = '#102030';
+
+function savedThemeYaml(name: string, variant: 'light' | 'dark', background: string): string {
+ const foreground = variant === 'light' ? '#201810' : '#e8eef4';
+ return `system: "base16"
+name: "${name}"
+variant: "${variant}"
+palette:
+ base00: "${background}"
+ base01: "${variant === 'light' ? '#e7d5c3' : '#182838'}"
+ base02: "${variant === 'light' ? '#d8c2ad' : '#304050'}"
+ base03: "#657080"
+ base04: "#8b96a6"
+ base05: "${foreground}"
+ base06: "${foreground}"
+ base07: "${foreground}"
+ base08: "#d24b4b"
+ base09: "#d97931"
+ base0A: "#c49a21"
+ base0B: "#4d9b53"
+ base0C: "#329b9b"
+ base0D: "#397bd1"
+ base0E: "#8756c5"
+ base0F: "#a06445"
+`;
+}
+
+interface SeededThemeHome {
+ tmpHome: string;
+ projectDir: string;
+}
+
+function seedThemeHome(): SeededThemeHome {
+ const tmpHome = mkdtempSync(join(tmpdir(), 'ok-saved-theme-paint-home-'));
+ const projectDir = mkdtempSync(join(tmpdir(), 'ok-saved-theme-paint-project-'));
+ mkdirSync(join(projectDir, '.ok'), { recursive: true });
+ writeFileSync(
+ join(projectDir, '.ok', 'config.yml'),
+ "content:\n dir: '.'\n include: ['**/*.md']\n exclude: []\n",
+ );
+ writeFileSync(join(projectDir, 'paint.md'), '# Saved theme paint\n');
+
+ const okDir = join(tmpHome, '.ok');
+ const themesDir = join(okDir, 'themes');
+ mkdirSync(themesDir, { recursive: true });
+ writeFileSync(
+ join(okDir, 'global.yml'),
+ [
+ 'appearance:',
+ ' theme: system',
+ ' colorThemeLight: saved-personal-light',
+ ' colorThemeDark: saved-personal-dark',
+ '',
+ ].join('\n'),
+ );
+ writeFileSync(
+ join(themesDir, 'personal-light.yaml'),
+ savedThemeYaml('Personal Light', 'light', LIGHT_BACKGROUND),
+ );
+ writeFileSync(
+ join(themesDir, 'personal-dark.yaml'),
+ savedThemeYaml('Personal Dark', 'dark', DARK_BACKGROUND),
+ );
+
+ const userDataDir = userDataDirFor(tmpHome);
+ mkdirSync(userDataDir, { recursive: true });
+ writeFileSync(
+ join(userDataDir, 'state.json'),
+ JSON.stringify({
+ recentProjects: [
+ { path: projectDir, name: 'Saved Theme Paint', lastOpenedAt: new Date().toISOString() },
+ ],
+ lastOpenedProject: projectDir,
+ versionPendingInstall: null,
+ lastSeenVersion: null,
+ lastSuccessfulCheckAt: null,
+ stuckHintShown: false,
+ }),
+ );
+
+ return { tmpHome, projectDir };
+}
+
+async function launchApp(tmpHome: string): Promise<ElectronApplication> {
+ return electron.launch(
+ desktopLaunchOptions({
+ target: TARGET,
+ args: [`--user-data-dir=${userDataDirFor(tmpHome)}`],
+ env: {
+ ...process.env,
+ ...homeEnv(tmpHome),
+ OK_DESKTOP_E2E_SMOKE: '1',
+ },
+ timeout: 30_000,
+ }),
+ );
+}
+
+async function findEditorWindow(app: ElectronApplication): Promise<Page> {
+ await expect
+ .poll(
+ async () => {
+ for (const page of app.windows()) {
+ const mode = await page
+ .evaluate(() => window.okDesktop?.config?.mode)
+ .catch(() => undefined);
+ if (mode === 'editor') return true;
+ }
+ return false;
+ },
+ { timeout: 20_000, message: 'editor window did not appear within timeout' },
+ )
+ .toBe(true);
+
+ for (const page of app.windows()) {
+ const mode = await page.evaluate(() => window.okDesktop?.config?.mode).catch(() => undefined);
+ if (mode === 'editor') return page;
+ }
+ throw new Error('editor window vanished between poll resolution and read');
+}
+
+async function readPaintedBackground(page: Page): Promise<{
+ themeId: string | null;
+ backgroundColor: string;
+}> {
+ return page.evaluate(() => {
+ const probe = document.createElement('div');
+ probe.style.backgroundColor = 'var(--background)';
+ document.body.appendChild(probe);
+ try {
+ return {
+ themeId: document.documentElement.getAttribute('data-color-theme'),
+ backgroundColor: getComputedStyle(probe).backgroundColor,
+ };
+ } finally {
+ probe.remove();
+ }
+ });
+}
+
+test.describe('saved theme paint smoke', () => {
+ test.skip(!SMOKE_ENABLED, 'Set OK_DESKTOP_E2E_SMOKE=1 to run Electron smoke tests.');
+ test.skip(!PLATFORM_SUPPORTED, PLATFORM_SKIP_REASON);
+ test.skip(!TARGET.exists, TARGET.missingReason);
+
+ test('different user-global saved themes paint in light and dark modes', async ({
+ captureStderrFor,
+ }) => {
+ const { tmpHome, projectDir } = seedThemeHome();
+ const app = await launchApp(tmpHome);
+ captureStderrFor(app, { cleanupDirs: [tmpHome, projectDir] });
+ const editor = await findEditorWindow(app);
+
+ await editor.emulateMedia({ colorScheme: 'light' });
+ await expect
+ .poll(() => readPaintedBackground(editor), { timeout: 10_000 })
+ .toEqual({
+ themeId: 'saved-personal-light',
+ backgroundColor: 'rgb(241, 226, 211)',
+ });
+
+ await editor.emulateMedia({ colorScheme: 'dark' });
+ await expect
+ .poll(() => readPaintedBackground(editor), { timeout: 10_000 })
+ .toEqual({
+ themeId: 'saved-personal-dark',
+ backgroundColor: 'rgb(16, 32, 48)',
+ });
+ });
+});
diff --git a/packages/server/src/api-extension.ts b/packages/server/src/api-extension.ts
index 2c4885d29..b2b236b94 100644
--- a/packages/server/src/api-extension.ts
+++ b/packages/server/src/api-extension.ts
@@ -155,6 +155,12 @@ import {
RollbackRequestSchema,
RollbackSuccessSchema,
readFmMap,
+ SavedThemeDeleteSuccessSchema,
+ SavedThemeSaveRequestSchema,
+ SavedThemeSaveSuccessSchema,
+ SavedThemesListSuccessSchema,
+ SavedThemeUpdateRequestSchema,
+ SavedThemeUpdateSuccessSchema,
SaveVersionRequestSchema,
SaveVersionSuccessSchema,
SearchRequestSchema,
@@ -425,6 +431,8 @@ import {
parseFrontmatterMetadata,
} from './page-identity.ts';
import type { RecentlyRemovedDocs } from './recently-removed-docs.ts';
+import { scanSavedThemes } from './saved-themes-store.ts';
+import { deleteSavedTheme, saveSavedTheme, updateSavedTheme } from './saved-themes-write.ts';
import { readServerLock } from './server-lock.ts';
import {
buildGitHubBlobUrl,
@@ -2543,6 +2551,8 @@ export interface ApiExtensionOptions {
* so global-scope writes don't touch the real user home.
*/
homeDirOverride?: string;
+ /** Saved-theme store lock acquisition budget. Defaults to the core helper's 5s. */
+ savedThemeLockTimeoutMs?: number;
/**
* ACP agent catalog (registry-driven). When present, `GET /api/acp/catalog`
* serves the featured + full agent lists the thread-launch UI renders.
@@ -2779,6 +2789,7 @@ export function createApiExtension(
getBridgeLossReporter,
getPrincipal,
homeDirOverride,
+ savedThemeLockTimeoutMs,
acpRegistry,
loadAcpCustomAgents,
acpHarnessAvailability = createAcpHarnessAvailabilityProbe(),
@@ -12506,6 +12517,246 @@ export function createApiExtension(
{ handler: 'folder-config' },
);
+ // ── Saved themes (`/api/saved-themes` list, `/api/saved-theme` mutations) ──
+ // The store is a user-global folder of scheme files the renderer can't reach;
+ // save/delete/list run here. Discovery is by scan (no live watcher in v1), and
+ // the home is the same `homeDirOverride` seam the skills store uses so tests
+ // isolate against a tempdir without touching `os.homedir()`.
+
+ const handleSavedThemesList = withValidation(
+ EmptyRequestSchema,
+ async (_req, res) => {
+ try {
+ const { entries, truncated } = scanSavedThemes({ homedirOverride: homeDirOverride });
+ // Entries carry their own `ok` discriminator: usable themes ship their
+ // palette for the picker preview; unusable ones ship a warning `code` so
+ // a file the user placed is listed, never silently missing.
+ successResponse(
+ res,
+ 200,
+ SavedThemesListSuccessSchema,
+ { themes: entries, truncated },
+ { handler: 'saved-themes-list' },
+ );
+ } catch (e) {
+ errorResponse(
+ res,
+ 500,
+ 'urn:ok:error:internal-server-error',
+ 'Failed to list saved themes.',
+ {
+ handler: 'saved-themes-list',
+ cause: e,
+ },
+ );
+ }
+ },
+ { handler: 'saved-themes-list', method: 'GET', skipBodyParse: true },
+ );
+
+ const handleSavedThemeSave = withValidation(
+ SavedThemeSaveRequestSchema,
+ async (_req, res, body) => {
+ try {
+ const result = await saveSavedTheme({
+ name: body.name,
+ stem: body.stem,
+ scheme: body.scheme,
+ extension: body.extension,
+ homedirOverride: homeDirOverride,
+ lockTimeoutMs: savedThemeLockTimeoutMs,
+ });
+ if (!result.ok) {
+ if (result.code === 'lock-timeout') {
+ errorResponse(
+ res,
+ 503,
+ 'urn:ok:error:concurrent-operation',
+ 'Saved themes are temporarily busy.',
+ {
+ handler: 'saved-theme-save',
+ detail: result.code,
+ extraHeaders: { 'Retry-After': '5' },
+ },
+ );
+ return;
+ }
+ if (result.code === 'name-taken') {
+ // Refuse-and-prompt: a collision never overwrites prior work.
+ errorResponse(
+ res,
+ 409,
+ 'urn:ok:error:theme-name-taken',
+ 'A saved theme with that name already exists.',
+ { handler: 'saved-theme-save', detail: body.name },
+ );
+ return;
+ }
+ // Restore stems remain strict; a new human-facing name only fails when
+ // it is empty. The specific cause rides `detail` so the save form can
+ // localize the reason.
+ errorResponse(
+ res,
+ 400,
+ 'urn:ok:error:theme-name-invalid',
+ 'That name cannot be used as a theme id.',
+ { handler: 'saved-theme-save', detail: result.code },
+ );
+ return;
+ }
+ successResponse(
+ res,
+ 201,
+ SavedThemeSaveSuccessSchema,
+ { id: result.id, filename: result.filename },
+ { handler: 'saved-theme-save' },
+ );
+ } catch (e) {
+ errorResponse(res, 500, 'urn:ok:error:internal-server-error', 'Failed to save theme.', {
+ handler: 'saved-theme-save',
+ cause: e,
+ });
+ }
+ },
+ { handler: 'saved-theme-save', method: 'POST' },
+ );
+
+ const handleSavedThemeDelete = withValidation(
+ EmptyRequestSchema,
+ async (req, res) => {
+ try {
+ const id = parseQuery(req).get('id') ?? '';
+ if (id === '') {
+ errorResponse(res, 400, 'urn:ok:error:invalid-request', 'Missing theme id.', {
+ handler: 'saved-theme-delete',
+ });
+ return;
+ }
+ const result = await deleteSavedTheme({
+ id,
+ homedirOverride: homeDirOverride,
+ lockTimeoutMs: savedThemeLockTimeoutMs,
+ });
+ if (!result.ok) {
+ if (result.code === 'lock-timeout') {
+ errorResponse(
+ res,
+ 503,
+ 'urn:ok:error:concurrent-operation',
+ 'Saved themes are temporarily busy.',
+ {
+ handler: 'saved-theme-delete',
+ detail: result.code,
+ extraHeaders: { 'Retry-After': '5' },
+ },
+ );
+ return;
+ }
+ const conflict = result.code !== 'invalid-id';
+ errorResponse(
+ res,
+ conflict ? 409 : 400,
+ 'urn:ok:error:invalid-request',
+ 'Cannot delete saved theme.',
+ {
+ handler: 'saved-theme-delete',
+ detail: result.code,
+ },
+ );
+ return;
+ }
+ // Deleting an id that names no file is a benign no-op (`existed: false`),
+ // and deleting one currently assigned to a mode slot is allowed — the
+ // config's read-time fallback makes the dangling reference harmless.
+ successResponse(
+ res,
+ 200,
+ SavedThemeDeleteSuccessSchema,
+ result.existed
+ ? { existed: true, filename: result.filename, scheme: result.scheme }
+ : { existed: false },
+ { handler: 'saved-theme-delete' },
+ );
+ } catch (e) {
+ errorResponse(res, 500, 'urn:ok:error:internal-server-error', 'Failed to delete theme.', {
+ handler: 'saved-theme-delete',
+ cause: e,
+ });
+ }
+ },
+ { handler: 'saved-theme-delete', method: 'DELETE', skipBodyParse: true },
+ );
+
+ const handleSavedThemeUpdate = withValidation(
+ SavedThemeUpdateRequestSchema,
+ async (_req, res, body) => {
+ try {
+ const result = await updateSavedTheme({
+ id: body.id,
+ scheme: body.scheme,
+ homedirOverride: homeDirOverride,
+ lockTimeoutMs: savedThemeLockTimeoutMs,
+ });
+ if (!result.ok) {
+ if (result.code === 'lock-timeout') {
+ errorResponse(
+ res,
+ 503,
+ 'urn:ok:error:concurrent-operation',
+ 'Saved themes are temporarily busy.',
+ {
+ handler: 'saved-theme-update',
+ detail: result.code,
+ extraHeaders: { 'Retry-After': '5' },
+ },
+ );
+ return;
+ }
+ if (result.code === 'not-found') {
+ errorResponse(res, 404, 'urn:ok:error:not-found', 'Saved theme not found.', {
+ handler: 'saved-theme-update',
+ });
+ return;
+ }
+ if (result.code === 'ambiguous-id' || result.code === 'unsafe-target') {
+ const message =
+ result.code === 'ambiguous-id'
+ ? 'Multiple saved theme files claim that id.'
+ : 'The saved theme id conflicts with a file that cannot be safely updated.';
+ errorResponse(res, 409, 'urn:ok:error:invalid-request', message, {
+ handler: 'saved-theme-update',
+ detail: result.code,
+ });
+ return;
+ }
+ errorResponse(res, 400, 'urn:ok:error:invalid-request', 'Not a saved theme id.', {
+ handler: 'saved-theme-update',
+ detail: result.code,
+ });
+ return;
+ }
+ successResponse(
+ res,
+ 200,
+ SavedThemeUpdateSuccessSchema,
+ { id: result.id, filename: result.filename },
+ { handler: 'saved-theme-update' },
+ );
+ } catch (e) {
+ errorResponse(res, 500, 'urn:ok:error:internal-server-error', 'Failed to update theme.', {
+ handler: 'saved-theme-update',
+ cause: e,
+ });
+ }
+ },
+ { handler: 'saved-theme-update', method: 'PUT' },
+ );
+
+ const handleSavedTheme = methodRouter(
+ { POST: handleSavedThemeSave, PUT: handleSavedThemeUpdate, DELETE: handleSavedThemeDelete },
+ { handler: 'saved-theme' },
+ );
+
/**
* Conflict-aware refusal helper for the template handlers. A template is a
* content doc now (`<folder>/.ok/templates/<name>`), so its live Y.Doc carries
@@ -21268,6 +21519,8 @@ export function createApiExtension(
'/api/comment-counts': handleCommentCounts,
'/api/link-preview': handleLinkPreview,
'/api/folder-config': handleFolderConfig,
+ '/api/saved-themes': handleSavedThemesList,
+ '/api/saved-theme': handleSavedTheme,
'/api/template': handleTemplate,
'/api/template/import': handleTemplateImport,
'/api/templates': handleTemplatesList,
@@ -21408,6 +21661,9 @@ export function createApiExtension(
'/api/test-rescan-files',
'/api/install-skill',
'/api/folder-config',
+ // `/api/saved-theme` (POST save / PUT update / DELETE) mutates the user-global theme
+ // store; `/api/saved-themes` (GET list) is read-only and stays out.
+ '/api/saved-theme',
'/api/template',
'/api/template/import',
'/api/skill',
diff --git a/packages/server/src/api-saved-themes.test.ts b/packages/server/src/api-saved-themes.test.ts
new file mode 100644
index 000000000..cd9e53317
--- /dev/null
+++ b/packages/server/src/api-saved-themes.test.ts
@@ -0,0 +1,490 @@
+import { createHash } from 'node:crypto';
+import { existsSync, mkdirSync, mkdtempSync, readdirSync, rmSync, writeFileSync } from 'node:fs';
+import type { IncomingMessage, ServerResponse } from 'node:http';
+import { tmpdir } from 'node:os';
+import { join, resolve } from 'node:path';
+import { Readable } from 'node:stream';
+import { BASE16_SLOTS } from '@inkeep/open-knowledge-core';
+import { afterEach, beforeEach, describe, expect, test } from 'vitest';
+import { createApiExtension } from './api-extension.test-helper.ts';
+import { savedThemesDir } from './saved-themes-store.ts';
+
+/**
+ * Handler-boundary coverage for the saved-theme routes: the renderer's HTTP
+ * request flows through the real `onRequest` → route table → handler → store →
+ * wire response. The store is isolated to a tempdir via the `homedirOverride`
+ * seam `createApiExtension` already exposes, so no `os.homedir()` mutation.
+ */
+
+interface CapturedResponse {
+ status: number;
+ headers: Record<string, string>;
+ body: string;
+}
+
+function makeReq(url: string, method: string, body?: unknown): IncomingMessage {
+ const raw = body === undefined ? '' : JSON.stringify(body);
+ const readable = Readable.from(Buffer.from(raw)) as unknown as IncomingMessage;
+ readable.method = method;
+ readable.url = url;
+ readable.headers = { host: 'localhost' };
+ return readable;
+}
+
+function makeRes(): { res: ServerResponse; captured: CapturedResponse } {
+ const captured: CapturedResponse = { status: 0, headers: {}, body: '' };
+ const res = {
+ writeHead(status: number, headers?: Record<string, string>) {
+ captured.status = status;
+ if (headers) Object.assign(captured.headers, headers);
+ },
+ end(body?: string) {
+ captured.body = body ?? '';
+ },
+ } as unknown as ServerResponse;
+ return { res, captured };
+}
+
+/** A complete, valid scheme payload: sixteen distinct `#rrggbb` slots. */
+function schemePayload(name: string, variant: 'dark' | 'light' = 'dark') {
+ const palette = Object.fromEntries(
+ BASE16_SLOTS.map((slot, i) => {
+ const byte = (i * 16).toString(16).padStart(2, '0');
+ return [slot, `#${byte}${byte}${byte}`];
+ }),
+ );
+ return { name, variant, palette };
+}
+
+describe('/api/saved-themes + /api/saved-theme', () => {
+ let home: string;
+ let savedThemeLockTimeoutMs: number | undefined;
+
+ function buildExt() {
+ return createApiExtension({
+ hocuspocus: {} as Parameters<typeof createApiExtension>[0]['hocuspocus'],
+ sessionManager: {} as Parameters<typeof createApiExtension>[0]['sessionManager'],
+ contentDir: home,
+ serverInstanceId: 'test-server',
+ getFileIndex: () => new Map(),
+ homeDirOverride: home,
+ savedThemeLockTimeoutMs,
+ }) as {
+ onRequest: (ctx: { request: IncomingMessage; response: ServerResponse }) => Promise<void>;
+ };
+ }
+
+ async function dispatch(url: string, method: string, body?: unknown): Promise<CapturedResponse> {
+ const { res, captured } = makeRes();
+ await buildExt().onRequest({ request: makeReq(url, method, body), response: res });
+ return captured;
+ }
+
+ function storeFiles(): string[] {
+ const dir = savedThemesDir(home);
+ return existsSync(dir) ? readdirSync(dir).sort() : [];
+ }
+
+ async function withContendedStoreLock<T>(fn: () => Promise<T>): Promise<T> {
+ const rootKey = createHash('sha256')
+ .update(resolve(savedThemesDir(home)))
+ .digest('hex')
+ .slice(0, 24);
+ const lockDir = join(home, '.ok');
+ mkdirSync(lockDir, { recursive: true });
+ const lockPath = join(lockDir, `saved-themes-${rootKey}.lock`);
+ writeFileSync(lockPath, '', { flag: 'wx', mode: 0o600 });
+ try {
+ return await fn();
+ } finally {
+ rmSync(lockPath, { force: true });
+ }
+ }
+
+ beforeEach(() => {
+ home = mkdtempSync(join(tmpdir(), 'ok-api-saved-themes-'));
+ savedThemeLockTimeoutMs = undefined;
+ });
+
+ afterEach(() => {
+ rmSync(home, { recursive: true, force: true });
+ });
+
+ test('GET list of an absent store is an empty, un-truncated list (no error)', async () => {
+ const res = await dispatch('/api/saved-themes', 'GET');
+ expect(res.status).toBe(200);
+ expect(JSON.parse(res.body)).toEqual({ themes: [], truncated: false });
+ });
+
+ test('GET lists usable themes and surfaces a malformed file as a warning entry', async () => {
+ const dir = savedThemesDir(home);
+ mkdirSync(dir, { recursive: true });
+ const good = `name: "Good"\nvariant: "dark"\npalette:\n${BASE16_SLOTS.map(
+ (s, i) => ` ${s}: "#${(i * 16).toString(16).padStart(2, '0').repeat(3)}"`,
+ ).join('\n')}\n`;
+ writeFileSync(join(dir, 'good.yaml'), good);
+ writeFileSync(join(dir, 'broken.yaml'), 'name: "Broken"\npalette:\n base00: "#000000"\n');
+
+ const res = await dispatch('/api/saved-themes', 'GET');
+ expect(res.status).toBe(200);
+ const body = JSON.parse(res.body) as {
+ themes: Array<{ ok: boolean; id?: string; filename: string; code?: string }>;
+ truncated: boolean;
+ };
+ const byKey = new Map(body.themes.map((t) => [t.ok ? t.id : t.filename, t]));
+ expect(byKey.get('saved-good')).toMatchObject({ ok: true, filename: 'good.yaml' });
+ // The malformed file is listed, not hidden — carrying its machine-readable reason.
+ expect(byKey.get('broken.yaml')).toMatchObject({ ok: false, code: 'missing-slots' });
+ });
+
+ test('GET remains 200 and warns for a hand-dropped U+0085-only theme name', async () => {
+ const dir = savedThemesDir(home);
+ mkdirSync(dir, { recursive: true });
+ const palette = BASE16_SLOTS.map((slot) => ` ${slot}: "#123456"`).join('\n');
+ writeFileSync(
+ join(dir, 'blank-name.yaml'),
+ `name: "\\u0085"\nvariant: "dark"\npalette:\n${palette}\n`,
+ );
+
+ const res = await dispatch('/api/saved-themes', 'GET');
+
+ expect(res.status).toBe(200);
+ expect(JSON.parse(res.body)).toEqual({
+ themes: [
+ {
+ ok: false,
+ filename: 'blank-name.yaml',
+ id: 'saved-blank-name',
+ code: 'not-a-scheme',
+ },
+ ],
+ truncated: false,
+ });
+ });
+
+ test('GET carries every filename that claims a duplicate identity', async () => {
+ const dir = savedThemesDir(home);
+ mkdirSync(dir, { recursive: true });
+ writeFileSync(join(dir, 'conflict.yaml'), 'placeholder');
+ writeFileSync(join(dir, 'conflict.yml'), 'placeholder');
+
+ const res = await dispatch('/api/saved-themes', 'GET');
+
+ expect(res.status).toBe(200);
+ expect(JSON.parse(res.body).themes).toEqual([
+ {
+ ok: false,
+ id: 'saved-conflict',
+ filename: 'conflict.yaml',
+ code: 'duplicate-identity',
+ conflictingFilenames: ['conflict.yaml', 'conflict.yml'],
+ },
+ ]);
+ });
+
+ test('POST saves a palette and returns 201 with the id + filename', async () => {
+ const res = await dispatch('/api/saved-theme', 'POST', {
+ name: 'midnight',
+ scheme: schemePayload('Midnight'),
+ });
+ expect(res.status).toBe(201);
+ expect(JSON.parse(res.body)).toEqual({ id: 'saved-midnight', filename: 'midnight.yaml' });
+ expect(storeFiles()).toEqual(['midnight.yaml']);
+ });
+
+ test('POST derives a safe id from the display name while preserving that name', async () => {
+ const res = await dispatch('/api/saved-theme', 'POST', {
+ name: "John's theme",
+ scheme: schemePayload("John's theme"),
+ });
+ expect(res.status).toBe(201);
+ expect(JSON.parse(res.body)).toEqual({
+ id: 'saved-johns-theme',
+ filename: 'johns-theme.yaml',
+ });
+
+ const listed = await dispatch('/api/saved-themes', 'GET');
+ expect(JSON.parse(listed.body).themes).toContainEqual(
+ expect.objectContaining({
+ ok: true,
+ id: 'saved-johns-theme',
+ scheme: expect.objectContaining({ name: "John's theme" }),
+ }),
+ );
+ });
+
+ test('POST then GET preserves line breaks, tabs, and control characters in metadata', async () => {
+ const name = 'Line one\nLine two\twith controls \u0001 and \u007f';
+ const author = 'Ada\r\nLovelace\twith controls \u0085 and \u009f plus \u2028 a line separator';
+ const scheme = { ...schemePayload(name), author };
+
+ const saved = await dispatch('/api/saved-theme', 'POST', {
+ name: 'escaped metadata',
+ scheme,
+ });
+ expect(saved.status).toBe(201);
+
+ const listed = await dispatch('/api/saved-themes', 'GET');
+ expect(listed.status).toBe(200);
+ expect(JSON.parse(listed.body).themes).toContainEqual(
+ expect.objectContaining({
+ ok: true,
+ id: 'saved-escaped-metadata',
+ scheme: expect.objectContaining({ name, author }),
+ }),
+ );
+ });
+
+ test('POST then GET preserves nonblank metadata boundary whitespace', async () => {
+ const name = ' Padded theme\t';
+ const author = '\t Ada Lovelace \n';
+
+ const saved = await dispatch('/api/saved-theme', 'POST', {
+ name: 'boundary whitespace',
+ scheme: { ...schemePayload(name), author },
+ });
+ expect(saved.status).toBe(201);
+
+ const listed = await dispatch('/api/saved-themes', 'GET');
+ expect(listed.status).toBe(200);
+ expect(JSON.parse(listed.body).themes).toContainEqual(
+ expect.objectContaining({
+ ok: true,
+ id: 'saved-boundary-whitespace',
+ scheme: expect.objectContaining({ name, author }),
+ }),
+ );
+ });
+
+ test.each([
+ ['ASCII whitespace-only name', { ...schemePayload(' '), author: 'Ada' }],
+ ['ASCII whitespace-only author', { ...schemePayload('Valid'), author: '\t \n' }],
+ ['U+0085 NEXT LINE-only name', { ...schemePayload('\u0085'), author: 'Ada' }],
+ ['U+0085 NEXT LINE-only author', { ...schemePayload('Valid'), author: '\u0085' }],
+ ])('POST rejects a scheme with %s', async (_case, scheme) => {
+ const res = await dispatch('/api/saved-theme', 'POST', {
+ name: 'blank metadata',
+ scheme,
+ });
+
+ expect(res.status).toBe(400);
+ expect(JSON.parse(res.body)).toMatchObject({ type: 'urn:ok:error:invalid-request' });
+ expect(storeFiles()).toEqual([]);
+ });
+
+ test('POST can preserve .yml when restoring a deleted theme', async () => {
+ const res = await dispatch('/api/saved-theme', 'POST', {
+ name: 'terse',
+ scheme: schemePayload('Terse'),
+ extension: '.yml',
+ });
+
+ expect(res.status).toBe(201);
+ expect(JSON.parse(res.body)).toEqual({ id: 'saved-terse', filename: 'terse.yml' });
+ expect(storeFiles()).toEqual(['terse.yml']);
+ });
+
+ test('POST with a taken name is refused 409 theme-name-taken and writes nothing new', async () => {
+ await dispatch('/api/saved-theme', 'POST', { name: 'dup', scheme: schemePayload('First') });
+
+ const res = await dispatch('/api/saved-theme', 'POST', {
+ name: 'dup',
+ scheme: schemePayload('Second'),
+ });
+ expect(res.status).toBe(409);
+ expect(res.headers['Content-Type']).toBe('application/problem+json');
+ expect(JSON.parse(res.body)).toMatchObject({ type: 'urn:ok:error:theme-name-taken' });
+ expect(storeFiles()).toEqual(['dup.yaml']);
+ });
+
+ test('POST with an invalid explicit restore stem is refused with the cause in detail', async () => {
+ const res = await dispatch('/api/saved-theme', 'POST', {
+ name: 'Restored theme',
+ stem: 'a'.repeat(27),
+ scheme: schemePayload('TooLong'),
+ });
+ expect(res.status).toBe(400);
+ expect(JSON.parse(res.body)).toMatchObject({
+ type: 'urn:ok:error:theme-name-invalid',
+ detail: 'too-long',
+ });
+ expect(storeFiles()).toEqual([]);
+ });
+
+ test('POST with a malformed scheme is refused as an invalid request', async () => {
+ const res = await dispatch('/api/saved-theme', 'POST', {
+ name: 'partial',
+ scheme: { name: 'Partial', variant: 'dark', palette: { base00: '#000000' } },
+ });
+ expect(res.status).toBe(400);
+ expect(JSON.parse(res.body)).toMatchObject({ type: 'urn:ok:error:invalid-request' });
+ expect(storeFiles()).toEqual([]);
+ });
+
+ test('POST, PUT, and DELETE map store lock contention to retryable 503 responses', async () => {
+ const dir = savedThemesDir(home);
+ mkdirSync(dir, { recursive: true });
+ writeFileSync(
+ join(dir, 'update.yaml'),
+ `name: "Update"\nvariant: "dark"\npalette:\n${BASE16_SLOTS.map(
+ (slot) => ` ${slot}: "#123456"`,
+ ).join('\n')}\n`,
+ );
+ writeFileSync(
+ join(dir, 'delete.yaml'),
+ `name: "Delete"\nvariant: "dark"\npalette:\n${BASE16_SLOTS.map(
+ (slot) => ` ${slot}: "#123456"`,
+ ).join('\n')}\n`,
+ );
+ savedThemeLockTimeoutMs = 250;
+
+ const responses = await withContendedStoreLock(() =>
+ Promise.all([
+ dispatch('/api/saved-theme', 'POST', {
+ name: 'new-theme',
+ scheme: schemePayload('New theme'),
+ }),
+ dispatch('/api/saved-theme', 'PUT', {
+ id: 'saved-update',
+ scheme: schemePayload('Update revised'),
+ }),
+ dispatch('/api/saved-theme?id=saved-delete', 'DELETE'),
+ ]),
+ );
+
+ expect(
+ responses.map((response) => ({
+ status: response.status,
+ headers: response.headers,
+ body: JSON.parse(response.body),
+ })),
+ ).toEqual(
+ responses.map(() =>
+ expect.objectContaining({
+ status: 503,
+ headers: expect.objectContaining({ 'Retry-After': '5' }),
+ body: expect.objectContaining({
+ type: 'urn:ok:error:concurrent-operation',
+ detail: 'lock-timeout',
+ }),
+ }),
+ ),
+ );
+ expect(storeFiles()).toEqual(['delete.yaml', 'update.yaml']);
+ });
+
+ test('PUT replaces a saved palette in place and the next list returns the new scheme', async () => {
+ await dispatch('/api/saved-theme', 'POST', {
+ name: 'midnight',
+ scheme: schemePayload('Midnight'),
+ });
+ const replacement = schemePayload('Midnight revised', 'light');
+ replacement.palette.base00 = '#123456';
+
+ const updated = await dispatch('/api/saved-theme', 'PUT', {
+ id: 'saved-midnight',
+ scheme: replacement,
+ });
+
+ expect(updated.status).toBe(200);
+ expect(JSON.parse(updated.body)).toEqual({
+ id: 'saved-midnight',
+ filename: 'midnight.yaml',
+ });
+ expect(storeFiles()).toEqual(['midnight.yaml']);
+
+ const listed = await dispatch('/api/saved-themes', 'GET');
+ expect(JSON.parse(listed.body).themes).toEqual([
+ expect.objectContaining({
+ ok: true,
+ id: 'saved-midnight',
+ filename: 'midnight.yaml',
+ scheme: expect.objectContaining({
+ name: 'Midnight revised',
+ variant: 'light',
+ palette: expect.objectContaining({ base00: '#123456' }),
+ }),
+ }),
+ ]);
+ });
+
+ test('PUT refuses an absent id rather than creating a new palette', async () => {
+ const res = await dispatch('/api/saved-theme', 'PUT', {
+ id: 'saved-absent',
+ scheme: schemePayload('Absent'),
+ });
+
+ expect(res.status).toBe(404);
+ expect(JSON.parse(res.body)).toMatchObject({ type: 'urn:ok:error:not-found' });
+ expect(storeFiles()).toEqual([]);
+ });
+
+ test('PUT reports an unsafe existing target as a 409 conflict', async () => {
+ const dir = savedThemesDir(home);
+ mkdirSync(dir, { recursive: true });
+ writeFileSync(join(dir, 'ocean.YAML'), 'user-owned unsupported file');
+
+ const res = await dispatch('/api/saved-theme', 'PUT', {
+ id: 'saved-ocean',
+ scheme: schemePayload('Ocean revised'),
+ });
+
+ expect(res.status).toBe(409);
+ expect(JSON.parse(res.body)).toMatchObject({
+ type: 'urn:ok:error:invalid-request',
+ title: 'The saved theme id conflicts with a file that cannot be safely updated.',
+ detail: 'unsafe-target',
+ });
+ expect(storeFiles()).toEqual(['ocean.YAML']);
+ });
+
+ test('DELETE removes the file and returns existed:true', async () => {
+ await dispatch('/api/saved-theme', 'POST', { name: 'gone', scheme: schemePayload('Gone') });
+
+ const res = await dispatch('/api/saved-theme?id=saved-gone', 'DELETE');
+ expect(res.status).toBe(200);
+ expect(JSON.parse(res.body)).toEqual({
+ existed: true,
+ filename: 'gone.yaml',
+ scheme: schemePayload('Gone'),
+ });
+ expect(storeFiles()).toEqual([]);
+ });
+
+ test('PUT and DELETE refuse a duplicate-stem identity without mutating either file', async () => {
+ const dir = savedThemesDir(home);
+ mkdirSync(dir, { recursive: true });
+ writeFileSync(join(dir, 'conflict.yaml'), 'original yaml');
+ writeFileSync(join(dir, 'conflict.yml'), 'original yml');
+
+ const update = await dispatch('/api/saved-theme', 'PUT', {
+ id: 'saved-conflict',
+ scheme: schemePayload('Revised'),
+ });
+ const deletion = await dispatch('/api/saved-theme?id=saved-conflict', 'DELETE');
+
+ expect(update.status).toBe(409);
+ expect(JSON.parse(update.body)).toMatchObject({ detail: 'ambiguous-id' });
+ expect(deletion.status).toBe(409);
+ expect(JSON.parse(deletion.body)).toMatchObject({ detail: 'ambiguous-id' });
+ expect(storeFiles()).toEqual(['conflict.yaml', 'conflict.yml']);
+ });
+
+ test('DELETE of an id that names no file is a 200 no-op (existed:false)', async () => {
+ const res = await dispatch('/api/saved-theme?id=saved-absent', 'DELETE');
+ expect(res.status).toBe(200);
+ expect(JSON.parse(res.body)).toEqual({ existed: false });
+ });
+
+ test('DELETE with a missing id is a 400', async () => {
+ const res = await dispatch('/api/saved-theme', 'DELETE');
+ expect(res.status).toBe(400);
+ expect(JSON.parse(res.body)).toMatchObject({ type: 'urn:ok:error:invalid-request' });
+ });
+
+ test('an unsupported method on /api/saved-theme is a 405', async () => {
+ const res = await dispatch('/api/saved-theme', 'GET');
+ expect(res.status).toBe(405);
+ expect(JSON.parse(res.body)).toMatchObject({ type: 'urn:ok:error:method-not-allowed' });
+ });
+});
diff --git a/packages/server/src/saved-themes-store.test.ts b/packages/server/src/saved-themes-store.test.ts
new file mode 100644
index 000000000..c44da879a
--- /dev/null
+++ b/packages/server/src/saved-themes-store.test.ts
@@ -0,0 +1,305 @@
+import {
+ existsSync,
+ mkdirSync,
+ mkdtempSync,
+ readdirSync,
+ rmSync,
+ symlinkSync,
+ writeFileSync,
+} from 'node:fs';
+import { tmpdir } from 'node:os';
+import { join } from 'node:path';
+import { BASE16_SLOTS } from '@inkeep/open-knowledge-core';
+import { afterEach, beforeEach, describe, expect, test } from 'vitest';
+import {
+ SAVED_THEME_FILE_BYTE_LIMIT,
+ SAVED_THEME_SCAN_CAP,
+ type SavedThemeEntry,
+ savedThemesDir,
+ scanSavedThemes,
+} from './saved-themes-store.ts';
+
+let home: string;
+
+beforeEach(() => {
+ home = mkdtempSync(join(tmpdir(), 'ok-saved-themes-home-'));
+});
+
+afterEach(() => {
+ rmSync(home, { recursive: true, force: true });
+});
+
+/** A valid nested Tinted Theming scheme: all sixteen slots, distinct hex per slot. */
+function validSchemeYaml(name: string): string {
+ const palette = BASE16_SLOTS.map((slot, i) => {
+ const byte = (i * 16).toString(16).padStart(2, '0');
+ return ` ${slot}: "#${byte}${byte}${byte}"`;
+ }).join('\n');
+ return `name: "${name}"\nvariant: "dark"\npalette:\n${palette}\n`;
+}
+
+/** Create `<home>/.ok/themes` and write one file into it, returning the store dir. */
+function seedStore(files: Record<string, string>): string {
+ const dir = savedThemesDir(home);
+ mkdirSync(dir, { recursive: true });
+ for (const [filename, content] of Object.entries(files)) {
+ writeFileSync(join(dir, filename), content);
+ }
+ return dir;
+}
+
+function byId(entries: SavedThemeEntry[]): Map<string | undefined, SavedThemeEntry> {
+ return new Map(entries.map((e) => [e.ok ? e.id : e.filename, e]));
+}
+
+describe('savedThemesDir', () => {
+ test('resolves the store under <home>/.ok/themes', () => {
+ expect(savedThemesDir(home)).toBe(join(home, '.ok', 'themes'));
+ });
+});
+
+describe('scanSavedThemes', () => {
+ test('lists one entry per scheme file, id = prefix + filename stem', () => {
+ seedStore({ 'midnight.yaml': validSchemeYaml('Midnight') });
+
+ const result = scanSavedThemes({ homedirOverride: home });
+
+ expect(result.truncated).toBe(false);
+ expect(result.entries).toHaveLength(1);
+ const [entry] = result.entries;
+ expect(entry).toMatchObject({
+ ok: true,
+ id: 'saved-midnight',
+ filename: 'midnight.yaml',
+ });
+ if (entry?.ok) {
+ expect(entry.scheme.name).toBe('Midnight');
+ expect(entry.scheme.variant).toBe('dark');
+ expect(Object.keys(entry.scheme.palette)).toHaveLength(16);
+ }
+ });
+
+ test('a missing store folder reads as empty and is never created', () => {
+ const result = scanSavedThemes({ homedirOverride: home });
+
+ expect(result).toEqual({ entries: [], truncated: false });
+ // No lazy write: reading an absent store must not materialize it.
+ expect(existsSync(savedThemesDir(home))).toBe(false);
+ });
+
+ test('an existing but empty store reads as empty', () => {
+ seedStore({});
+ expect(scanSavedThemes({ homedirOverride: home })).toEqual({ entries: [], truncated: false });
+ });
+
+ test('one malformed file never fails enumeration; it is listed with a code', () => {
+ seedStore({
+ 'good.yaml': validSchemeYaml('Good'),
+ 'broken.yaml': 'name: "Broken"\npalette:\n base00: "#000000"\n', // missing 15 slots
+ });
+
+ const entries = byId(scanSavedThemes({ homedirOverride: home }).entries);
+
+ expect(entries.get('saved-good')).toMatchObject({ ok: true });
+ // The bad file is present, not hidden, and carries the machine-readable reason.
+ expect(entries.get('broken.yaml')).toEqual({
+ ok: false,
+ filename: 'broken.yaml',
+ id: 'saved-broken',
+ code: 'missing-slots',
+ });
+ });
+
+ test('lists a U+0085-only name as a not-a-scheme warning', () => {
+ seedStore({ 'blank-name.yaml': validSchemeYaml('\\u0085') });
+
+ expect(scanSavedThemes({ homedirOverride: home }).entries).toEqual([
+ {
+ ok: false,
+ filename: 'blank-name.yaml',
+ id: 'saved-blank-name',
+ code: 'not-a-scheme',
+ },
+ ]);
+ });
+
+ test('a non-hex value is reported per-entry rather than dropped', () => {
+ const badHex = validSchemeYaml('BadHex').replace('#000000', '#zzzzzz');
+ seedStore({ 'badhex.yaml': badHex });
+
+ expect(scanSavedThemes({ homedirOverride: home }).entries).toEqual([
+ { ok: false, filename: 'badhex.yaml', id: 'saved-badhex', code: 'bad-hex' },
+ ]);
+ });
+
+ test('a name that overflows the id budget is listed, not truncated', () => {
+ // 27-char stem → saved-<27> = 33 chars, past the 32-char id grammar.
+ const filename = `${'a'.repeat(27)}.yaml`;
+ seedStore({ [filename]: validSchemeYaml('TooLong') });
+
+ expect(scanSavedThemes({ homedirOverride: home }).entries).toEqual([
+ { ok: false, filename, code: 'too-long' },
+ ]);
+ });
+
+ test('a name outside the grammar is listed with invalid-chars', () => {
+ seedStore({ 'My Theme.yaml': validSchemeYaml('My Theme') });
+
+ expect(scanSavedThemes({ homedirOverride: home }).entries).toEqual([
+ { ok: false, filename: 'My Theme.yaml', code: 'invalid-chars' },
+ ]);
+ });
+
+ test('keeps an uppercase stem invalid and distinct from its lowercase identity', () => {
+ const dir = seedStore({ 'Ocean.yaml': validSchemeYaml('Uppercase stem') });
+
+ expect(scanSavedThemes({ homedirOverride: home }).entries).toEqual([
+ { ok: false, filename: 'Ocean.yaml', code: 'invalid-chars' },
+ ]);
+
+ // Case-insensitive filesystems cannot hold the mixed-case pair. The
+ // uppercase-only assertion above still verifies their scanner behavior.
+ if (existsSync(join(dir, 'ocean.yaml'))) return;
+
+ writeFileSync(join(dir, 'ocean.yaml'), validSchemeYaml('Lowercase stem'));
+ const entries = scanSavedThemes({ homedirOverride: home }).entries;
+ expect(entries).toHaveLength(2);
+ expect(entries).toContainEqual({
+ ok: false,
+ filename: 'Ocean.yaml',
+ code: 'invalid-chars',
+ });
+ expect(entries).toContainEqual(
+ expect.objectContaining({
+ ok: true,
+ id: 'saved-ocean',
+ filename: 'ocean.yaml',
+ scheme: expect.objectContaining({ name: 'Lowercase stem' }),
+ }),
+ );
+ });
+
+ test('non-scheme files and hidden files are skipped, not listed as errors', () => {
+ seedStore({
+ 'real.yaml': validSchemeYaml('Real'),
+ 'notes.txt': 'not a theme',
+ '.DS_Store': '\0\0',
+ '.hidden.yaml': validSchemeYaml('Hidden'),
+ });
+
+ const result = scanSavedThemes({ homedirOverride: home });
+ expect(result.entries).toHaveLength(1);
+ expect(result.entries[0]).toMatchObject({ ok: true, id: 'saved-real' });
+ });
+
+ test('lists a symlinked scheme as unsafe without reading its target', () => {
+ const dir = seedStore({ target: validSchemeYaml('Target') });
+ symlinkSync(join(dir, 'target'), join(dir, 'linked.yaml'));
+
+ expect(scanSavedThemes({ homedirOverride: home }).entries).toEqual([
+ { ok: false, filename: 'linked.yaml', id: 'saved-linked', code: 'symlink' },
+ ]);
+ });
+
+ test('lists a non-regular scheme path as an unsupported file type', () => {
+ const dir = seedStore({});
+ mkdirSync(join(dir, 'folder.yaml'));
+
+ expect(scanSavedThemes({ homedirOverride: home }).entries).toEqual([
+ {
+ ok: false,
+ filename: 'folder.yaml',
+ id: 'saved-folder',
+ code: 'not-regular-file',
+ },
+ ]);
+ });
+
+ test('lists an oversized scheme without reading or parsing it', () => {
+ seedStore({ 'huge.yaml': 'x'.repeat(SAVED_THEME_FILE_BYTE_LIMIT + 1) });
+
+ expect(scanSavedThemes({ homedirOverride: home }).entries).toEqual([
+ { ok: false, filename: 'huge.yaml', id: 'saved-huge', code: 'file-too-large' },
+ ]);
+ });
+
+ test('accepts the .yml extension as well as .yaml', () => {
+ seedStore({ 'terse.yml': validSchemeYaml('Terse') });
+ expect(scanSavedThemes({ homedirOverride: home }).entries).toMatchObject([
+ { ok: true, id: 'saved-terse' },
+ ]);
+ });
+
+ test('lists a case-variant YAML extension as an unsupported warning', () => {
+ seedStore({ 'upper.YAML': validSchemeYaml('Upper') });
+
+ expect(scanSavedThemes({ homedirOverride: home }).entries).toEqual([
+ {
+ ok: false,
+ filename: 'upper.YAML',
+ id: 'saved-upper',
+ code: 'unsupported-extension-case',
+ },
+ ]);
+ });
+
+ test('lists duplicate filename stems as one conflict warning', () => {
+ seedStore({
+ 'conflict.yaml': validSchemeYaml('YAML'),
+ 'conflict.yml': validSchemeYaml('YML'),
+ });
+
+ expect(scanSavedThemes({ homedirOverride: home }).entries).toEqual([
+ {
+ ok: false,
+ filename: 'conflict.yaml',
+ id: 'saved-conflict',
+ code: 'duplicate-identity',
+ conflictingFilenames: ['conflict.yaml', 'conflict.yml'],
+ },
+ ]);
+ });
+
+ test('reports truncation instead of silently cutting the list', () => {
+ const dir = seedStore({
+ 'a.yaml': validSchemeYaml('A'),
+ 'b.yaml': validSchemeYaml('B'),
+ 'c.yaml': validSchemeYaml('C'),
+ });
+
+ const result = scanSavedThemes({ root: dir, cap: 2 });
+ expect(result.truncated).toBe(true);
+ expect(result.entries).toHaveLength(2);
+ // Sorted, so truncation drops the tail deterministically.
+ expect(result.entries.map((e) => e.filename)).toEqual(['a.yaml', 'b.yaml']);
+ });
+
+ test('bounds directory observation and reports that the result is truncated', () => {
+ const dir = seedStore({
+ 'a.yaml': validSchemeYaml('A'),
+ 'b.yaml': validSchemeYaml('B'),
+ 'c.yaml': validSchemeYaml('C'),
+ });
+
+ const result = scanSavedThemes({ root: dir, observationCap: 2 });
+
+ expect(result.truncated).toBe(true);
+ expect(result.entries).toHaveLength(2);
+ });
+
+ test('exactly cap files is not truncated', () => {
+ const dir = seedStore({ 'a.yaml': validSchemeYaml('A'), 'b.yaml': validSchemeYaml('B') });
+ expect(scanSavedThemes({ root: dir, cap: 2 }).truncated).toBe(false);
+ });
+
+ test('the default cap is a bounded positive number', () => {
+ expect(SAVED_THEME_SCAN_CAP).toBeGreaterThan(0);
+ });
+
+ test('scanning writes nothing back to the store', () => {
+ const dir = seedStore({ 'only.yaml': validSchemeYaml('Only') });
+ scanSavedThemes({ homedirOverride: home });
+ // The reader persists no provenance file, index, or lockfile alongside themes.
+ expect(readdirSync(dir).sort()).toEqual(['only.yaml']);
+ });
+});
diff --git a/packages/server/src/saved-themes-store.ts b/packages/server/src/saved-themes-store.ts
new file mode 100644
index 000000000..fc6986292
--- /dev/null
+++ b/packages/server/src/saved-themes-store.ts
@@ -0,0 +1,339 @@
+/**
+ * The user-global saved-theme store: a folder of Tinted Theming scheme files
+ * under `<homedir>/.ok/themes/`, one file per theme, filename stem as identity.
+ *
+ * This module is the store's read path — a total, bounded enumeration. It is the
+ * permissive half of the store's two-bar split: it never throws and still lists a
+ * broken entry (a file that fails to parse, or whose name can't become a valid
+ * id) as a warning rather than dropping it, so a theme a user placed can always
+ * be seen and fixed. The strict, coded write validator is a separate surface.
+ *
+ * Discovery is by scan, re-run at boot and when the theme settings surface opens.
+ * There is deliberately no live filesystem watcher here.
+ *
+ * Nothing proprietary is persisted: the scheme files are the only artifacts, so
+ * this reader neither writes nor lazily creates anything — a missing folder stays
+ * missing and simply reads as empty.
+ */
+
+import {
+ closeSync,
+ constants,
+ type Dirent,
+ fstatSync,
+ lstatSync,
+ opendirSync,
+ openSync,
+ readSync,
+} from 'node:fs';
+import { homedir } from 'node:os';
+import { join, parse, resolve } from 'node:path';
+import {
+ type Base16ParseError,
+ type Base16Scheme,
+ deriveSavedThemeId,
+ OK_DIR,
+ parseBase16Scheme,
+ SAVED_THEMES_DIRNAME,
+ type SavedThemeIdError,
+} from '@inkeep/open-knowledge-core';
+import { errnoCode } from './http/handler-utils.ts';
+import { getLogger } from './logger.ts';
+import {
+ recordSavedThemeParseAttempt,
+ recordSavedThemeParseFailure,
+ recordSavedThemeScan,
+ recordSavedThemeUsableCount,
+} from './saved-themes-telemetry.ts';
+
+const log = getLogger('saved-themes');
+
+/** Scheme-file extensions the store recognizes. The Tinted Theming ecosystem and
+ * OK's own serializer both emit YAML; other extensions are not theme files.
+ * Exported so the write path checks collisions and resolves deletes against the
+ * same set the scan lists — one source, no drift. */
+export const SCHEME_EXTENSIONS = ['.yaml', '.yml'] as const;
+
+/**
+ * Upper bound on entries a single scan lists. The scan runs on the collaboration
+ * thread, so it caps rather than enumerating an unbounded folder; a scan that
+ * hits the cap reports `truncated` instead of silently cutting the list. Matches
+ * the order of magnitude of the sibling artifact-list caps.
+ */
+export const SAVED_THEME_SCAN_CAP = 500;
+
+/** Maximum directory entries observed during one scan, including non-themes. */
+export const SAVED_THEME_DIRECTORY_ENTRY_CAP = 2_000;
+
+/** Maximum bytes read from one user-owned scheme file. */
+export const SAVED_THEME_FILE_BYTE_LIMIT = 64 * 1024;
+
+/** A usable saved theme: a parsed scheme carrying a valid namespaced id. A member
+ * of the exported `SavedThemeEntry` union; callers narrow via `entry.ok`. */
+interface SavedThemeOk {
+ ok: true;
+ /** Namespaced palette id (`SAVED_THEME_ID_PREFIX` + filename stem). */
+ id: string;
+ /** Filename including extension — the stable delete/edit target. */
+ filename: string;
+ /** The parsed Tinted Theming scheme (standard fields only). */
+ scheme: Base16Scheme;
+}
+
+/**
+ * Why a folder entry could not become a usable theme. The parse causes come
+ * from the base16 parser; the id causes from filename-stem derivation. Derived
+ * from the source taxonomies so a new parser or id failure mode surfaces here
+ * without a manual edit.
+ */
+type SavedThemeWarningCode =
+ | Base16ParseError['kind']
+ | SavedThemeIdError
+ | 'unsupported-extension-case'
+ | 'duplicate-identity'
+ | 'symlink'
+ | 'not-regular-file'
+ | 'file-too-large'
+ | 'read-failed';
+
+/** A listed-but-unusable entry: it exists, carries a reason, and can be fixed. A
+ * member of the exported `SavedThemeEntry` union; callers narrow via `entry.ok`. */
+interface SavedThemeWarning {
+ ok: false;
+ /** Filename including extension — shown so the user knows the file is there. */
+ filename: string;
+ /** Present when the name yielded a valid id but the contents failed to parse. */
+ id?: string;
+ /** Machine-readable reason; the UI maps it to localized, human-readable copy. */
+ code: SavedThemeWarningCode;
+ /** All files claiming the same filename-stem identity. */
+ conflictingFilenames?: string[];
+}
+
+export type SavedThemeEntry = SavedThemeOk | SavedThemeWarning;
+
+export interface SavedThemeScanResult {
+ entries: SavedThemeEntry[];
+ /** True when the folder held more scheme files than the scan listed. */
+ truncated: boolean;
+}
+
+export interface ScanSavedThemesOptions {
+ /**
+ * Absolute path to the store folder. When given, it is used verbatim and
+ * `homedirOverride` is ignored — the caller has already resolved the root.
+ */
+ root?: string;
+ /**
+ * Test seam: resolve the store under this home directory instead of
+ * `os.homedir()`. A parameter, never an environment variable, so parallel
+ * tests stay isolated.
+ */
+ homedirOverride?: string;
+ /** Scan bound; defaults to `SAVED_THEME_SCAN_CAP`. */
+ cap?: number;
+ /** Directory-entry observation bound; defaults to `SAVED_THEME_DIRECTORY_ENTRY_CAP`. */
+ observationCap?: number;
+}
+
+/** Absolute path to the saved-theme store under a (possibly overridden) home. */
+export function savedThemesDir(homedirOverride?: string): string {
+ return resolve(homedirOverride ?? homedir(), OK_DIR, SAVED_THEMES_DIRNAME);
+}
+
+/**
+ * Enumerate the saved-theme store: one entry per scheme identity, sorted by
+ * name. When the directory-observation bound is reached, `truncated` is true;
+ * membership then reflects the filesystem's bounded first page and is not
+ * claimed to be stable across platforms.
+ *
+ * Per-entry isolated: one unreadable, unparseable, or badly-named file never
+ * fails enumeration or hides its siblings. A missing folder is an empty result,
+ * not an error.
+ */
+export function scanSavedThemes(options: ScanSavedThemesOptions = {}): SavedThemeScanResult {
+ recordSavedThemeScan();
+ const root = options.root ?? savedThemesDir(options.homedirOverride);
+ const cap = options.cap ?? SAVED_THEME_SCAN_CAP;
+
+ const dirents: Dirent[] = [];
+ let observationTruncated = false;
+ try {
+ const dir = opendirSync(root);
+ try {
+ const observationCap = options.observationCap ?? SAVED_THEME_DIRECTORY_ENTRY_CAP;
+ while (dirents.length < observationCap) {
+ const entry = dir.readSync();
+ if (entry === null) break;
+ dirents.push(entry);
+ }
+ observationTruncated = dir.readSync() !== null;
+ } finally {
+ try {
+ dir.closeSync();
+ } catch {
+ // Reading through end-of-directory may auto-close the handle.
+ }
+ }
+ } catch (err) {
+ // A missing store is the ordinary cold-start case: no themes yet. Any other
+ // failure (EACCES, ENOTDIR) still degrades to "no saved themes" so the picker
+ // keeps working, and earns a log so an operator can trace it.
+ if (errnoCode(err) !== 'ENOENT') {
+ log.warn(
+ { root, reason: err instanceof Error ? err.message : String(err) },
+ `failed to read saved-theme store at ${root} — treating as empty`,
+ );
+ } else {
+ recordSavedThemeUsableCount(0);
+ }
+ return { entries: [], truncated: false };
+ }
+
+ const candidates = dirents
+ .filter(isSchemeCandidate)
+ .map((d) => d.name)
+ .sort();
+
+ const groups = new Map<string, string[]>();
+ for (const filename of candidates) {
+ const stem = schemeStem(filename);
+ const group = groups.get(stem) ?? [];
+ group.push(filename);
+ groups.set(stem, group);
+ }
+
+ const identities = [...groups.entries()].sort(([a], [b]) => a.localeCompare(b));
+ const truncated = observationTruncated || identities.length > cap;
+ if (truncated) {
+ log.warn(
+ { root, cap, found: identities.length, observationTruncated },
+ `saved-theme store at ${root} exceeded a scan bound; the returned list is incomplete.`,
+ );
+ }
+
+ const entries: SavedThemeEntry[] = [];
+ for (const [stem, filenames] of identities.slice(0, cap)) {
+ const filename = filenames[0];
+ if (!filename) continue;
+ if (filenames.length > 1) {
+ const derived = deriveSavedThemeId(stem);
+ entries.push({
+ ok: false,
+ filename,
+ ...(derived.ok ? { id: derived.id } : {}),
+ code: 'duplicate-identity',
+ conflictingFilenames: filenames,
+ });
+ continue;
+ }
+ const entry = readSavedThemeFile(root, filename);
+ if (entry) entries.push(entry);
+ }
+ recordSavedThemeUsableCount(entries.filter((entry) => entry.ok).length);
+ return { entries, truncated };
+}
+
+/** A scheme candidate is a non-hidden regular file (or symlink to one) with a
+ * scheme extension. Dotfiles (`.DS_Store`, hidden schemes) and subdirectories
+ * are not themes. */
+function isSchemeCandidate(entry: Dirent): boolean {
+ if (entry.name.startsWith('.')) return false;
+ const lower = entry.name.toLowerCase();
+ return SCHEME_EXTENSIONS.some((ext) => lower.endsWith(ext));
+}
+
+function schemeStem(filename: string): string {
+ const lower = filename.toLowerCase();
+ const extension = SCHEME_EXTENSIONS.find((ext) => lower.endsWith(ext));
+ return extension ? filename.slice(0, -extension.length) : parse(filename).name;
+}
+
+/**
+ * Read one candidate into an entry, or `null` when it should drop silently.
+ * Derivation runs first: a name that can't be an id is unusable regardless of
+ * contents, and listing it (without reading) already tells the user what to fix.
+ */
+export function readSavedThemeFile(root: string, filename: string): SavedThemeEntry | null {
+ const derived = deriveSavedThemeId(parse(filename).name);
+ if (!derived.ok) return { ok: false, filename, code: derived.code };
+ if (!SCHEME_EXTENSIONS.some((ext) => filename.endsWith(ext))) {
+ return { ok: false, filename, id: derived.id, code: 'unsupported-extension-case' };
+ }
+
+ const path = join(root, filename);
+ try {
+ const stat = lstatSync(path);
+ if (stat.isSymbolicLink()) {
+ return { ok: false, filename, id: derived.id, code: 'symlink' };
+ }
+ if (!stat.isFile()) {
+ return { ok: false, filename, id: derived.id, code: 'not-regular-file' };
+ }
+ } catch (err) {
+ if (errnoCode(err) === 'ENOENT') return null;
+ log.warn(
+ { root, filename, reason: err instanceof Error ? err.message : String(err) },
+ `failed to inspect saved theme ${filename} — listed as unreadable`,
+ );
+ return { ok: false, filename, id: derived.id, code: 'read-failed' };
+ }
+
+ let fd: number;
+ try {
+ fd = openSync(path, constants.O_RDONLY | constants.O_NOFOLLOW);
+ } catch (err) {
+ const code = errnoCode(err);
+ if (code === 'ENOENT') return null;
+ if (code === 'ELOOP') return { ok: false, filename, id: derived.id, code: 'symlink' };
+ log.warn(
+ { root, filename, reason: err instanceof Error ? err.message : String(err) },
+ `failed to open saved theme ${filename} — listed as unreadable`,
+ );
+ return { ok: false, filename, id: derived.id, code: 'read-failed' };
+ }
+
+ let raw: string;
+ try {
+ const stat = fstatSync(fd);
+ if (!stat.isFile()) {
+ return { ok: false, filename, id: derived.id, code: 'not-regular-file' };
+ }
+ if (stat.size > SAVED_THEME_FILE_BYTE_LIMIT) {
+ return { ok: false, filename, id: derived.id, code: 'file-too-large' };
+ }
+
+ const buffer = Buffer.alloc(SAVED_THEME_FILE_BYTE_LIMIT + 1);
+ let bytesRead = 0;
+ while (bytesRead < buffer.length) {
+ const count = readSync(fd, buffer, bytesRead, buffer.length - bytesRead, null);
+ if (count === 0) break;
+ bytesRead += count;
+ }
+ if (bytesRead > SAVED_THEME_FILE_BYTE_LIMIT) {
+ return { ok: false, filename, id: derived.id, code: 'file-too-large' };
+ }
+ raw = buffer.subarray(0, bytesRead).toString('utf-8');
+ } catch (err) {
+ log.warn(
+ { root, filename, reason: err instanceof Error ? err.message : String(err) },
+ `failed to read saved theme ${filename} — listed as unreadable`,
+ );
+ return { ok: false, filename, id: derived.id, code: 'read-failed' };
+ } finally {
+ try {
+ closeSync(fd);
+ } catch {
+ // The read result is already determined; close failure must not make the
+ // total scanner throw and hide every other theme.
+ }
+ }
+
+ recordSavedThemeParseAttempt();
+ const parsed = parseBase16Scheme(raw);
+ if (!parsed.ok) {
+ recordSavedThemeParseFailure();
+ return { ok: false, filename, id: derived.id, code: parsed.error.kind };
+ }
+ return { ok: true, id: derived.id, filename, scheme: parsed.scheme };
+}
diff --git a/packages/server/src/saved-themes-telemetry.test.ts b/packages/server/src/saved-themes-telemetry.test.ts
new file mode 100644
index 000000000..937aab0eb
--- /dev/null
+++ b/packages/server/src/saved-themes-telemetry.test.ts
@@ -0,0 +1,126 @@
+import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs';
+import { tmpdir } from 'node:os';
+import { join } from 'node:path';
+import { BASE16_SLOTS, type Base16Scheme } from '@inkeep/open-knowledge-core';
+import { metrics } from '@opentelemetry/api';
+import {
+ AggregationTemporality,
+ InMemoryMetricExporter,
+ MeterProvider,
+ PeriodicExportingMetricReader,
+} from '@opentelemetry/sdk-metrics';
+import { afterAll, beforeAll, describe, expect, test } from 'vitest';
+import { savedThemesDir, scanSavedThemes } from './saved-themes-store.ts';
+import { __resetSavedThemesTelemetryForTests } from './saved-themes-telemetry.ts';
+import { deleteSavedTheme, saveSavedTheme } from './saved-themes-write.ts';
+
+const SAVE_METRIC = 'ok.saved_themes.save_total';
+const DELETE_METRIC = 'ok.saved_themes.delete_total';
+const SCAN_METRIC = 'ok.saved_themes.scan_total';
+const PARSE_METRIC = 'ok.saved_themes.parse_total';
+const PARSE_FAILURE_METRIC = 'ok.saved_themes.parse_failure_total';
+const USABLE_COUNT_METRIC = 'ok.saved_themes.usable_count';
+
+function scheme(): Base16Scheme {
+ return {
+ name: 'Private metric theme name',
+ variant: 'dark',
+ palette: Object.fromEntries(
+ BASE16_SLOTS.map((slot, index) => {
+ const byte = (index * 16).toString(16).padStart(2, '0');
+ return [slot, `#${byte}${byte}${byte}`];
+ }),
+ ) as Base16Scheme['palette'],
+ };
+}
+
+describe('saved-theme telemetry', () => {
+ let exporter: InMemoryMetricExporter;
+ let reader: PeriodicExportingMetricReader;
+ let provider: MeterProvider;
+
+ beforeAll(() => {
+ exporter = new InMemoryMetricExporter(AggregationTemporality.CUMULATIVE);
+ reader = new PeriodicExportingMetricReader({ exporter, exportIntervalMillis: 60_000 });
+ provider = new MeterProvider({ readers: [reader] });
+ metrics.setGlobalMeterProvider(provider);
+ __resetSavedThemesTelemetryForTests();
+ });
+
+ afterAll(async () => {
+ await provider.shutdown();
+ metrics.disable();
+ __resetSavedThemesTelemetryForTests();
+ });
+
+ test('real save, delete, and parse-failure outcomes emit attribute-free counters', async () => {
+ const home = mkdtempSync(join(tmpdir(), 'ok-saved-theme-telemetry-'));
+ try {
+ const save = await saveSavedTheme({
+ name: 'private-metric-filename',
+ scheme: scheme(),
+ homedirOverride: home,
+ });
+ expect(save.ok).toBe(true);
+
+ const deletion = await deleteSavedTheme({
+ id: 'saved-private-metric-filename',
+ homedirOverride: home,
+ });
+ expect(deletion).toMatchObject({ ok: true, existed: true });
+
+ const store = savedThemesDir(home);
+ mkdirSync(store, { recursive: true });
+ writeFileSync(
+ join(store, 'private-parse-failure.yaml'),
+ 'name: "Private parse failure"\npalette:\n base00: "#123456"\n',
+ );
+ expect(scanSavedThemes({ homedirOverride: home }).entries).toMatchObject([
+ { ok: false, code: 'missing-slots' },
+ ]);
+
+ await reader.forceFlush();
+ const points = exporter.getMetrics().flatMap((resourceMetrics) =>
+ resourceMetrics.scopeMetrics.flatMap((scope) =>
+ scope.metrics.flatMap((metric) =>
+ metric.dataPoints.map((point) => ({
+ name: metric.descriptor.name,
+ attributes: point.attributes,
+ value: point.value,
+ })),
+ ),
+ ),
+ );
+ const savedThemePoints = points
+ .filter(({ name }) =>
+ [
+ SAVE_METRIC,
+ DELETE_METRIC,
+ SCAN_METRIC,
+ PARSE_METRIC,
+ PARSE_FAILURE_METRIC,
+ USABLE_COUNT_METRIC,
+ ].includes(name),
+ )
+ .sort((a, b) => a.name.localeCompare(b.name));
+
+ expect(savedThemePoints).toEqual([
+ { name: DELETE_METRIC, attributes: {}, value: 1 },
+ { name: PARSE_FAILURE_METRIC, attributes: {}, value: 1 },
+ { name: PARSE_METRIC, attributes: {}, value: 2 },
+ { name: SAVE_METRIC, attributes: {}, value: 1 },
+ { name: SCAN_METRIC, attributes: {}, value: 1 },
+ {
+ name: USABLE_COUNT_METRIC,
+ attributes: {},
+ value: expect.objectContaining({ count: 1, sum: 0 }),
+ },
+ ]);
+ expect(JSON.stringify(savedThemePoints)).not.toMatch(
+ /private-metric-filename|Private metric theme name|private-parse-failure|#123456/,
+ );
+ } finally {
+ rmSync(home, { recursive: true, force: true });
+ }
+ });
+});
diff --git a/packages/server/src/saved-themes-telemetry.ts b/packages/server/src/saved-themes-telemetry.ts
new file mode 100644
index 000000000..217aef854
--- /dev/null
+++ b/packages/server/src/saved-themes-telemetry.ts
@@ -0,0 +1,90 @@
+import type { Counter, Histogram } from '@opentelemetry/api';
+import { getMeter } from './telemetry.ts';
+
+let saveCounter: Counter | null = null;
+let deleteCounter: Counter | null = null;
+let scanCounter: Counter | null = null;
+let parseCounter: Counter | null = null;
+let parseFailureCounter: Counter | null = null;
+let usableCountHistogram: Histogram | null = null;
+
+function savedThemeSaveCounter(): Counter {
+ saveCounter ||= getMeter().createCounter('ok.saved_themes.save_total', {
+ description: 'Successful saved-theme file saves. Attribute-free to keep cardinality bounded.',
+ });
+ return saveCounter;
+}
+
+function savedThemeDeleteCounter(): Counter {
+ deleteCounter ||= getMeter().createCounter('ok.saved_themes.delete_total', {
+ description:
+ 'Successful saved-theme file deletions. Attribute-free to keep cardinality bounded.',
+ });
+ return deleteCounter;
+}
+
+function savedThemeParseFailureCounter(): Counter {
+ parseFailureCounter ||= getMeter().createCounter('ok.saved_themes.parse_failure_total', {
+ description: 'Saved-theme scheme parse failures. Attribute-free to keep cardinality bounded.',
+ });
+ return parseFailureCounter;
+}
+
+function savedThemeScanCounter(): Counter {
+ scanCounter ||= getMeter().createCounter('ok.saved_themes.scan_total', {
+ description: 'Saved-theme store scans. Attribute-free to keep cardinality bounded.',
+ });
+ return scanCounter;
+}
+
+function savedThemeParseCounter(): Counter {
+ parseCounter ||= getMeter().createCounter('ok.saved_themes.parse_total', {
+ description: 'Saved-theme scheme parse attempts. Attribute-free to keep cardinality bounded.',
+ });
+ return parseCounter;
+}
+
+function savedThemeUsableCountHistogram(): Histogram {
+ usableCountHistogram ||= getMeter().createHistogram('ok.saved_themes.usable_count', {
+ description:
+ 'Usable saved themes returned by a completed bounded scan. Attribute-free to keep cardinality bounded.',
+ });
+ return usableCountHistogram;
+}
+
+export function recordSavedThemeSave(): void {
+ savedThemeSaveCounter().add(1);
+}
+
+export function recordSavedThemeDelete(): void {
+ savedThemeDeleteCounter().add(1);
+}
+
+export function recordSavedThemeScan(): void {
+ savedThemeScanCounter().add(1);
+}
+
+export function recordSavedThemeParseAttempt(): void {
+ savedThemeParseCounter().add(1);
+}
+
+export function recordSavedThemeParseFailure(): void {
+ savedThemeParseFailureCounter().add(1);
+}
+
+export function recordSavedThemeUsableCount(count: number): void {
+ savedThemeUsableCountHistogram().record(count);
+}
+
+/**
+ * Drop cached lazy-init instruments so tests can bind them to a fresh global
+ * MeterProvider. Production installs its provider once and never calls this.
+ */
+export function __resetSavedThemesTelemetryForTests(): void {
+ saveCounter = null;
+ deleteCounter = null;
+ scanCounter = null;
+ parseCounter = null;
+ parseFailureCounter = null;
+ usableCountHistogram = null;
+}
diff --git a/packages/server/src/saved-themes-write.test.ts b/packages/server/src/saved-themes-write.test.ts
new file mode 100644
index 000000000..b7e61b8a9
--- /dev/null
+++ b/packages/server/src/saved-themes-write.test.ts
@@ -0,0 +1,585 @@
+import { createHash } from 'node:crypto';
+import {
+ existsSync,
+ mkdirSync,
+ mkdtempSync,
+ readdirSync,
+ readFileSync,
+ rmSync,
+ symlinkSync,
+ writeFileSync,
+} from 'node:fs';
+import { tmpdir } from 'node:os';
+import { join, resolve } from 'node:path';
+import { BASE16_SLOTS, type Base16Scheme, base16ToYaml } from '@inkeep/open-knowledge-core';
+import { afterEach, beforeEach, describe, expect, test } from 'vitest';
+import { savedThemesDir, scanSavedThemes } from './saved-themes-store.ts';
+import { deleteSavedTheme, saveSavedTheme, updateSavedTheme } from './saved-themes-write.ts';
+
+let home: string;
+
+beforeEach(() => {
+ home = mkdtempSync(join(tmpdir(), 'ok-saved-themes-write-'));
+});
+
+afterEach(() => {
+ rmSync(home, { recursive: true, force: true });
+});
+
+/** A complete, valid scheme: sixteen distinct `#rrggbb` slots. */
+function scheme(name: string, variant: 'dark' | 'light' = 'dark'): Base16Scheme {
+ const palette = Object.fromEntries(
+ BASE16_SLOTS.map((slot, i) => {
+ const byte = (i * 16).toString(16).padStart(2, '0');
+ return [slot, `#${byte}${byte}${byte}`];
+ }),
+ ) as Base16Scheme['palette'];
+ return { name, variant, palette };
+}
+
+function storeFiles(): string[] {
+ const dir = savedThemesDir(home);
+ return existsSync(dir) ? readdirSync(dir).sort() : [];
+}
+
+function storeLockPath(baseDir: string): string {
+ const rootKey = createHash('sha256')
+ .update(resolve(savedThemesDir(home)))
+ .digest('hex')
+ .slice(0, 24);
+ return join(baseDir, `saved-themes-${rootKey}.lock`);
+}
+
+async function withContendedStoreLock<T>(fn: () => Promise<T>): Promise<T> {
+ const lockDir = join(home, '.ok');
+ mkdirSync(lockDir, { recursive: true });
+ const lockPath = storeLockPath(lockDir);
+ writeFileSync(lockPath, '', { flag: 'wx', mode: 0o600 });
+ try {
+ return await fn();
+ } finally {
+ rmSync(lockPath, { force: true });
+ }
+}
+
+test('the user-owned store lock serializes save, update, and delete', async () => {
+ const dir = savedThemesDir(home);
+ mkdirSync(dir, { recursive: true });
+ const updatePath = join(dir, 'update.yaml');
+ const deletePath = join(dir, 'delete.yaml');
+ const updateBytes = base16ToYaml(scheme('Update original'));
+ const deleteBytes = base16ToYaml(scheme('Delete original'));
+ writeFileSync(updatePath, updateBytes);
+ writeFileSync(deletePath, deleteBytes);
+
+ const results = await withContendedStoreLock(() =>
+ Promise.all([
+ saveSavedTheme({
+ name: 'new-theme',
+ scheme: scheme('New theme'),
+ homedirOverride: home,
+ lockTimeoutMs: 250,
+ }),
+ updateSavedTheme({
+ id: 'saved-update',
+ scheme: scheme('Update revised'),
+ homedirOverride: home,
+ lockTimeoutMs: 250,
+ }),
+ deleteSavedTheme({
+ id: 'saved-delete',
+ homedirOverride: home,
+ lockTimeoutMs: 250,
+ }),
+ ]),
+ );
+
+ expect(results).toEqual([
+ { ok: false, code: 'lock-timeout' },
+ { ok: false, code: 'lock-timeout' },
+ { ok: false, code: 'lock-timeout' },
+ ]);
+ expect(readFileSync(updatePath, 'utf-8')).toBe(updateBytes);
+ expect(readFileSync(deletePath, 'utf-8')).toBe(deleteBytes);
+ expect(storeFiles()).toEqual(['delete.yaml', 'update.yaml']);
+});
+
+test('a preclaimed legacy shared-temp lock cannot block saved-theme writes', async () => {
+ const rootKey = createHash('sha256')
+ .update(resolve(savedThemesDir(home)))
+ .digest('hex')
+ .slice(0, 24);
+ const legacyLockPath = join(tmpdir(), `ok-saved-themes-${rootKey}.lock`);
+ writeFileSync(legacyLockPath, '', { flag: 'wx', mode: 0o600 });
+
+ try {
+ await expect(
+ saveSavedTheme({
+ name: 'not-temp-locked',
+ scheme: scheme('Not temp locked'),
+ homedirOverride: home,
+ lockTimeoutMs: 100,
+ }),
+ ).resolves.toEqual({
+ ok: true,
+ id: 'saved-not-temp-locked',
+ filename: 'not-temp-locked.yaml',
+ });
+ } finally {
+ rmSync(legacyLockPath, { force: true });
+ }
+});
+
+describe('saveSavedTheme', () => {
+ test('writes one scheme file, derives the namespaced id, and creates the store lazily', async () => {
+ expect(existsSync(savedThemesDir(home))).toBe(false);
+
+ const result = await saveSavedTheme({
+ name: 'midnight',
+ scheme: scheme('Midnight'),
+ homedirOverride: home,
+ });
+
+ expect(result).toEqual({ ok: true, id: 'saved-midnight', filename: 'midnight.yaml' });
+ expect(storeFiles()).toEqual(['midnight.yaml']);
+ });
+
+ test('derives storage identity from a human-facing name without changing its display name', async () => {
+ const result = await saveSavedTheme({
+ name: "John's theme",
+ scheme: scheme("John's theme"),
+ homedirOverride: home,
+ });
+
+ expect(result).toEqual({
+ ok: true,
+ id: 'saved-johns-theme',
+ filename: 'johns-theme.yaml',
+ });
+ const [entry] = scanSavedThemes({ homedirOverride: home }).entries;
+ expect(entry).toMatchObject({
+ ok: true,
+ id: 'saved-johns-theme',
+ scheme: { name: "John's theme" },
+ });
+ });
+
+ test('can restore a deleted hand-dropped theme with its original .yml extension', async () => {
+ const result = await saveSavedTheme({
+ name: 'terse',
+ scheme: scheme('Terse'),
+ extension: '.yml',
+ homedirOverride: home,
+ });
+
+ expect(result).toEqual({ ok: true, id: 'saved-terse', filename: 'terse.yml' });
+ expect(storeFiles()).toEqual(['terse.yml']);
+ });
+
+ test('the saved bytes parse back through the read path as a usable entry', async () => {
+ await saveSavedTheme({
+ name: 'aurora',
+ scheme: scheme('Aurora', 'light'),
+ homedirOverride: home,
+ });
+
+ // The write path and the read path agree — a saved theme lists as `ok`.
+ const [entry] = scanSavedThemes({ homedirOverride: home }).entries;
+ expect(entry).toMatchObject({ ok: true, id: 'saved-aurora', filename: 'aurora.yaml' });
+ if (entry?.ok) {
+ expect(entry.scheme.name).toBe('Aurora');
+ expect(entry.scheme.variant).toBe('light');
+ expect(Object.keys(entry.scheme.palette)).toHaveLength(16);
+ }
+ });
+
+ test('refuses a name already taken and writes nothing', async () => {
+ await saveSavedTheme({ name: 'dup', scheme: scheme('First'), homedirOverride: home });
+ const before = readFileSync(join(savedThemesDir(home), 'dup.yaml'), 'utf-8');
+
+ const result = await saveSavedTheme({
+ name: 'dup',
+ scheme: scheme('Second'),
+ homedirOverride: home,
+ });
+
+ expect(result).toEqual({ ok: false, code: 'name-taken' });
+ // The existing file is untouched — a collision never overwrites prior work.
+ expect(readFileSync(join(savedThemesDir(home), 'dup.yaml'), 'utf-8')).toBe(before);
+ expect(storeFiles()).toEqual(['dup.yaml']);
+ });
+
+ test('serializes concurrent saves so exactly one writer claims a name', async () => {
+ const results = await Promise.all([
+ saveSavedTheme({ name: 'race', scheme: scheme('First'), homedirOverride: home }),
+ saveSavedTheme({ name: 'race', scheme: scheme('Second'), homedirOverride: home }),
+ ]);
+
+ expect(results.filter((result) => result.ok)).toHaveLength(1);
+ expect(results.filter((result) => !result.ok)).toEqual([{ ok: false, code: 'name-taken' }]);
+ expect(storeFiles()).toEqual(['race.yaml']);
+ });
+
+ test('a name colliding across extensions (.yml vs .yaml) is still refused', async () => {
+ const dir = savedThemesDir(home);
+ mkdirSync(dir, { recursive: true });
+ // A hand-dropped `.yml` file establishes the identity `saved-terse`.
+ writeFileSync(join(dir, 'terse.yml'), 'placeholder');
+
+ const result = await saveSavedTheme({
+ name: 'terse',
+ scheme: scheme('Terse'),
+ homedirOverride: home,
+ });
+
+ expect(result).toEqual({ ok: false, code: 'name-taken' });
+ expect(storeFiles()).toEqual(['terse.yml']);
+ });
+
+ test('an unsupported extension case still reserves the portable filename identity', async () => {
+ const dir = savedThemesDir(home);
+ mkdirSync(dir, { recursive: true });
+ writeFileSync(join(dir, 'ocean.YAML'), 'user-owned unsupported file');
+
+ const result = await saveSavedTheme({
+ name: 'ocean',
+ scheme: scheme('Ocean'),
+ homedirOverride: home,
+ });
+
+ expect(result).toEqual({ ok: false, code: 'name-taken' });
+ expect(storeFiles()).toEqual(['ocean.YAML']);
+ });
+
+ test('never overwrites an uppercase-stem file when saving its lowercase identity', async () => {
+ const dir = savedThemesDir(home);
+ mkdirSync(dir, { recursive: true });
+ const uppercasePath = join(dir, 'Ocean.yaml');
+ const lowercasePath = join(dir, 'ocean.yaml');
+ const original = base16ToYaml(scheme('Uppercase stem'));
+ writeFileSync(uppercasePath, original);
+ const aliasesOnThisFilesystem = existsSync(lowercasePath);
+
+ const result = await saveSavedTheme({
+ name: 'ocean',
+ scheme: scheme('Lowercase stem'),
+ homedirOverride: home,
+ });
+
+ expect(readFileSync(uppercasePath, 'utf-8')).toBe(original);
+ if (aliasesOnThisFilesystem) {
+ expect(result).toEqual({ ok: false, code: 'name-taken' });
+ expect(storeFiles()).toEqual(['Ocean.yaml']);
+ } else {
+ expect(result).toEqual({ ok: true, id: 'saved-ocean', filename: 'ocean.yaml' });
+ expect(storeFiles()).toEqual(['Ocean.yaml', 'ocean.yaml']);
+ }
+ });
+
+ test('a dangling symlink still claims its filename and is never overwritten', async () => {
+ const dir = savedThemesDir(home);
+ mkdirSync(dir, { recursive: true });
+ symlinkSync(join(dir, 'missing-target'), join(dir, 'linked.yaml'));
+
+ const result = await saveSavedTheme({
+ name: 'linked',
+ scheme: scheme('Linked'),
+ homedirOverride: home,
+ });
+
+ expect(result).toEqual({ ok: false, code: 'name-taken' });
+ expect(storeFiles()).toEqual(['linked.yaml']);
+ });
+
+ test('refuses an over-length explicit restore stem with a distinct code', async () => {
+ // `saved-` (6) leaves 26 for the stem; 27 overflows the 32-char id budget.
+ const result = await saveSavedTheme({
+ name: 'a'.repeat(27),
+ stem: 'a'.repeat(27),
+ scheme: scheme('X'),
+ homedirOverride: home,
+ });
+ expect(result).toEqual({ ok: false, code: 'too-long' });
+ expect(storeFiles()).toEqual([]);
+ });
+
+ test('refuses an explicit restore stem outside the grammar', async () => {
+ for (const stem of ['My Theme', 'sub/dir', 'UPPER']) {
+ const result = await saveSavedTheme({
+ name: 'Restored theme',
+ stem,
+ scheme: scheme('X'),
+ homedirOverride: home,
+ });
+ expect(result).toEqual({ ok: false, code: 'invalid-chars' });
+ }
+ expect(storeFiles()).toEqual([]);
+ });
+
+ test('refuses an empty name', async () => {
+ const result = await saveSavedTheme({ name: '', scheme: scheme('X'), homedirOverride: home });
+ expect(result).toEqual({ ok: false, code: 'empty' });
+ expect(storeFiles()).toEqual([]);
+ });
+
+ test('persists only the standard scheme fields — no author unless supplied', async () => {
+ await saveSavedTheme({ name: 'plain', scheme: scheme('Plain'), homedirOverride: home });
+ const raw = readFileSync(join(savedThemesDir(home), 'plain.yaml'), 'utf-8');
+ // The file the user owns carries nothing proprietary, and no identity is
+ // written for them — `author` is absent when the scheme carried none.
+ expect(raw).not.toMatch(/author:/);
+ expect(raw).not.toMatch(/okVersion|provenance|source:|lock/i);
+ });
+});
+
+describe('updateSavedTheme', () => {
+ test('replaces the existing scheme in place without creating a second file', async () => {
+ await saveSavedTheme({ name: 'midnight', scheme: scheme('Midnight'), homedirOverride: home });
+ const replacement = scheme('Midnight revised', 'light');
+ replacement.palette.base00 = '#123456';
+
+ const result = await updateSavedTheme({
+ id: 'saved-midnight',
+ scheme: replacement,
+ homedirOverride: home,
+ });
+
+ expect(result).toEqual({ ok: true, id: 'saved-midnight', filename: 'midnight.yaml' });
+ expect(storeFiles()).toEqual(['midnight.yaml']);
+ const [entry] = scanSavedThemes({ homedirOverride: home }).entries;
+ expect(entry).toMatchObject({
+ ok: true,
+ id: 'saved-midnight',
+ filename: 'midnight.yaml',
+ scheme: { name: 'Midnight revised', variant: 'light', palette: { base00: '#123456' } },
+ });
+ });
+
+ test('preserves the extension of a hand-dropped .yml theme', async () => {
+ const dir = savedThemesDir(home);
+ mkdirSync(dir, { recursive: true });
+ writeFileSync(join(dir, 'terse.yml'), 'name: "Terse"\n');
+
+ const result = await updateSavedTheme({
+ id: 'saved-terse',
+ scheme: scheme('Terse revised'),
+ homedirOverride: home,
+ });
+
+ expect(result).toEqual({ ok: true, id: 'saved-terse', filename: 'terse.yml' });
+ expect(storeFiles()).toEqual(['terse.yml']);
+ });
+
+ test('refuses an ambiguous update when both supported extensions claim the id', async () => {
+ const dir = savedThemesDir(home);
+ mkdirSync(dir, { recursive: true });
+ writeFileSync(join(dir, 'conflict.yaml'), 'original yaml');
+ writeFileSync(join(dir, 'conflict.yml'), 'original yml');
+
+ const result = await updateSavedTheme({
+ id: 'saved-conflict',
+ scheme: scheme('Revised'),
+ homedirOverride: home,
+ });
+
+ expect(result).toEqual({ ok: false, code: 'ambiguous-id' });
+ expect(readFileSync(join(dir, 'conflict.yaml'), 'utf-8')).toBe('original yaml');
+ expect(readFileSync(join(dir, 'conflict.yml'), 'utf-8')).toBe('original yml');
+ });
+
+ test('does not overwrite a case-variant extension through update', async () => {
+ const dir = savedThemesDir(home);
+ mkdirSync(dir, { recursive: true });
+ writeFileSync(join(dir, 'ocean.YAML'), 'user-owned unsupported file');
+
+ expect(
+ await updateSavedTheme({
+ id: 'saved-ocean',
+ scheme: scheme('Ocean revised'),
+ homedirOverride: home,
+ }),
+ ).toEqual({ ok: false, code: 'unsafe-target' });
+ expect(readFileSync(join(dir, 'ocean.YAML'), 'utf-8')).toBe('user-owned unsupported file');
+ });
+
+ test('does not treat an uppercase stem as the lowercase update identity', async () => {
+ const dir = savedThemesDir(home);
+ mkdirSync(dir, { recursive: true });
+ const path = join(dir, 'Ocean.yaml');
+ const original = base16ToYaml(scheme('Uppercase stem'));
+ writeFileSync(path, original);
+
+ expect(
+ await updateSavedTheme({
+ id: 'saved-ocean',
+ scheme: scheme('Lowercase revision'),
+ homedirOverride: home,
+ }),
+ ).toEqual({ ok: false, code: 'not-found' });
+ expect(readFileSync(path, 'utf-8')).toBe(original);
+ });
+
+ test('updates only the exact lowercase stem when a mixed-case pair exists', async () => {
+ const dir = savedThemesDir(home);
+ mkdirSync(dir, { recursive: true });
+ const uppercasePath = join(dir, 'Ocean.yaml');
+ const lowercasePath = join(dir, 'ocean.yaml');
+ const uppercase = base16ToYaml(scheme('Uppercase stem'));
+ writeFileSync(uppercasePath, uppercase);
+ if (existsSync(lowercasePath)) return;
+ writeFileSync(lowercasePath, base16ToYaml(scheme('Lowercase stem')));
+
+ expect(
+ await updateSavedTheme({
+ id: 'saved-ocean',
+ scheme: scheme('Lowercase revision'),
+ homedirOverride: home,
+ }),
+ ).toEqual({ ok: true, id: 'saved-ocean', filename: 'ocean.yaml' });
+ expect(readFileSync(uppercasePath, 'utf-8')).toBe(uppercase);
+ expect(readFileSync(lowercasePath, 'utf-8')).toContain('name: "Lowercase revision"');
+ });
+
+ test('refuses an absent or malformed id instead of turning update into create', async () => {
+ expect(
+ await updateSavedTheme({
+ id: 'saved-absent',
+ scheme: scheme('Absent'),
+ homedirOverride: home,
+ }),
+ ).toEqual({ ok: false, code: 'not-found' });
+ expect(
+ await updateSavedTheme({ id: '../escape', scheme: scheme('Escape'), homedirOverride: home }),
+ ).toEqual({ ok: false, code: 'invalid-id' });
+ expect(storeFiles()).toEqual([]);
+ });
+
+ test('a concurrent update cannot resurrect a theme after delete', async () => {
+ await saveSavedTheme({ name: 'race', scheme: scheme('Original'), homedirOverride: home });
+
+ await Promise.all([
+ updateSavedTheme({ id: 'saved-race', scheme: scheme('Revised'), homedirOverride: home }),
+ deleteSavedTheme({ id: 'saved-race', homedirOverride: home }),
+ ]);
+
+ expect(storeFiles()).toEqual([]);
+ });
+});
+
+describe('deleteSavedTheme', () => {
+ test('removes the scheme file and leaves no copy anywhere', async () => {
+ await saveSavedTheme({ name: 'gone', scheme: scheme('Gone'), homedirOverride: home });
+ expect(storeFiles()).toEqual(['gone.yaml']);
+
+ const result = await deleteSavedTheme({ id: 'saved-gone', homedirOverride: home });
+
+ expect(result).toEqual({
+ ok: true,
+ existed: true,
+ filename: 'gone.yaml',
+ scheme: scheme('Gone'),
+ });
+ // Nothing left in the store, and no sibling backup / trash directory minted.
+ expect(storeFiles()).toEqual([]);
+ expect(readdirSync(join(home, '.ok'))).toEqual(['themes']);
+ });
+
+ test('resolves and removes a hand-dropped .yml file', async () => {
+ const dir = savedThemesDir(home);
+ mkdirSync(dir, { recursive: true });
+ writeFileSync(join(dir, 'terse.yml'), base16ToYaml(scheme('Terse')));
+
+ const result = await deleteSavedTheme({ id: 'saved-terse', homedirOverride: home });
+
+ expect(result).toEqual({
+ ok: true,
+ existed: true,
+ filename: 'terse.yml',
+ scheme: scheme('Terse'),
+ });
+ expect(storeFiles()).toEqual([]);
+ });
+
+ test('refuses an ambiguous delete when both supported extensions claim the id', async () => {
+ const dir = savedThemesDir(home);
+ mkdirSync(dir, { recursive: true });
+ writeFileSync(join(dir, 'conflict.yaml'), 'original yaml');
+ writeFileSync(join(dir, 'conflict.yml'), 'original yml');
+
+ const result = await deleteSavedTheme({ id: 'saved-conflict', homedirOverride: home });
+
+ expect(result).toEqual({ ok: false, code: 'ambiguous-id' });
+ expect(storeFiles()).toEqual(['conflict.yaml', 'conflict.yml']);
+ });
+
+ test('does not delete a case-variant extension through the canonical id', async () => {
+ const dir = savedThemesDir(home);
+ mkdirSync(dir, { recursive: true });
+ writeFileSync(join(dir, 'ocean.YAML'), base16ToYaml(scheme('Ocean')));
+
+ expect(await deleteSavedTheme({ id: 'saved-ocean', homedirOverride: home })).toEqual({
+ ok: false,
+ code: 'unusable-theme',
+ });
+ expect(storeFiles()).toEqual(['ocean.YAML']);
+ });
+
+ test('does not treat an uppercase stem as the lowercase delete identity', async () => {
+ const dir = savedThemesDir(home);
+ mkdirSync(dir, { recursive: true });
+ const path = join(dir, 'Ocean.yaml');
+ const original = base16ToYaml(scheme('Uppercase stem'));
+ writeFileSync(path, original);
+
+ expect(await deleteSavedTheme({ id: 'saved-ocean', homedirOverride: home })).toEqual({
+ ok: true,
+ existed: false,
+ });
+ expect(readFileSync(path, 'utf-8')).toBe(original);
+ });
+
+ test('deletes only the exact lowercase stem when a mixed-case pair exists', async () => {
+ const dir = savedThemesDir(home);
+ mkdirSync(dir, { recursive: true });
+ const uppercasePath = join(dir, 'Ocean.yaml');
+ const lowercasePath = join(dir, 'ocean.yaml');
+ const uppercase = base16ToYaml(scheme('Uppercase stem'));
+ writeFileSync(uppercasePath, uppercase);
+ if (existsSync(lowercasePath)) return;
+ writeFileSync(lowercasePath, base16ToYaml(scheme('Lowercase stem')));
+
+ expect(await deleteSavedTheme({ id: 'saved-ocean', homedirOverride: home })).toEqual({
+ ok: true,
+ existed: true,
+ filename: 'ocean.yaml',
+ scheme: scheme('Lowercase stem'),
+ });
+ expect(existsSync(lowercasePath)).toBe(false);
+ expect(readFileSync(uppercasePath, 'utf-8')).toBe(uppercase);
+ });
+
+ test('deleting an id that names no file is an idempotent no-op, not an error', async () => {
+ expect(existsSync(savedThemesDir(home))).toBe(false);
+
+ const result = await deleteSavedTheme({ id: 'saved-absent', homedirOverride: home });
+
+ expect(result).toEqual({ ok: true, existed: false });
+ expect(existsSync(savedThemesDir(home))).toBe(false);
+ expect(readdirSync(join(home, '.ok'))).toEqual([]);
+ });
+
+ test('a malformed id is refused with a distinct code', async () => {
+ for (const id of ['dracula', 'saved-', 'saved-Bad Name', '']) {
+ expect(await deleteSavedTheme({ id, homedirOverride: home })).toEqual({
+ ok: false,
+ code: 'invalid-id',
+ });
+ }
+ });
+
+ test('save then delete returns the store to empty', async () => {
+ await saveSavedTheme({ name: 'ephemeral', scheme: scheme('Ephemeral'), homedirOverride: home });
+ await deleteSavedTheme({ id: 'saved-ephemeral', homedirOverride: home });
+ expect(scanSavedThemes({ homedirOverride: home }).entries).toEqual([]);
+ });
+});
diff --git a/packages/server/src/saved-themes-write.ts b/packages/server/src/saved-themes-write.ts
new file mode 100644
index 000000000..e9dcd046a
--- /dev/null
+++ b/packages/server/src/saved-themes-write.ts
@@ -0,0 +1,286 @@
+/**
+ * The saved-theme store's write path — the strict, coded half of the store's
+ * two-bar split (`saved-themes-store.ts` is the permissive total read).
+ *
+ * Save refuses a name that can't become a palette id, and refuses one already
+ * taken by a file in the store, before writing anything — a name collision never
+ * overwrites prior work. Delete removes the one scheme file outright and retains
+ * no copy anywhere (no backup dir, no trash): the reversibility a user gets is
+ * the UI's time-boxed undo, not a file OK keeps behind their back.
+ *
+ * All operations write through the traced-fs wrappers so every disk mutation
+ * lands an `fs.*` span; the store folder is created lazily on the first save
+ * (the read path never creates it).
+ */
+
+import { createHash } from 'node:crypto';
+import { lstatSync, opendirSync } from 'node:fs';
+import { homedir } from 'node:os';
+import { join, resolve } from 'node:path';
+import {
+ type Base16Scheme,
+ base16ToYaml,
+ deriveSavedThemeId,
+ deriveSavedThemeName,
+ OK_DIR,
+ parseSavedThemeId,
+ type SavedThemeIdError,
+} from '@inkeep/open-knowledge-core';
+import {
+ atomicWriteFile,
+ FileLockTimeoutError,
+ withFileLock,
+} from '@inkeep/open-knowledge-core/server';
+import { tracedAtomicFs, tracedMkdir, tracedUnlinkSync } from './fs-traced.ts';
+import {
+ readSavedThemeFile,
+ SAVED_THEME_DIRECTORY_ENTRY_CAP,
+ SCHEME_EXTENSIONS,
+ savedThemesDir,
+} from './saved-themes-store.ts';
+import { recordSavedThemeDelete, recordSavedThemeSave } from './saved-themes-telemetry.ts';
+
+/** The canonical extension the save path writes. A theme is saved as `.yaml`
+ * even if a hand-dropped sibling used `.yml`; both are recognized on read and
+ * on collision/delete resolution. */
+const SAVE_EXTENSION = '.yaml';
+
+/** Locate the store root once for an operation: an explicit `root` wins,
+ * otherwise resolve it under the (possibly overridden) home directory. */
+interface SavedThemeWriteOptions {
+ /** Absolute path to the store folder, used verbatim when given. */
+ root?: string;
+ /** Test seam: resolve the store under this home instead of `os.homedir()`. */
+ homedirOverride?: string;
+ /** Maximum time to wait for another process writing the same store. */
+ lockTimeoutMs?: number;
+}
+
+/** Retryable refusal when another process holds the user-global store mutex. */
+type SavedThemeLockTimeoutResult = { ok: false; code: 'lock-timeout' };
+
+async function withSavedThemeWriteLock<T>(
+ root: string,
+ home: string,
+ fn: () => Promise<T>,
+ timeoutMs?: number,
+): Promise<T | SavedThemeLockTimeoutResult> {
+ // The user-owned store remains scheme-files-only. Keep its hashed mutex in the
+ // user-owned OK directory so another OS user cannot preclaim the predictable
+ // name in a shared temp directory and wedge every saved-theme writer.
+ const lockDir = resolve(home, OK_DIR);
+ await tracedMkdir(lockDir, { recursive: true });
+ const rootKey = createHash('sha256').update(resolve(root)).digest('hex').slice(0, 24);
+ try {
+ return await withFileLock(join(lockDir, `saved-themes-${rootKey}.lock`), fn, {
+ timeoutMs,
+ });
+ } catch (error) {
+ if (error instanceof FileLockTimeoutError) return { ok: false, code: 'lock-timeout' };
+ throw error;
+ }
+}
+
+function targetState(path: string): 'missing' | 'regular' | 'unsafe' {
+ try {
+ return lstatSync(path).isFile() ? 'regular' : 'unsafe';
+ } catch (err) {
+ if ((err as NodeJS.ErrnoException).code === 'ENOENT') return 'missing';
+ throw err;
+ }
+}
+
+/**
+ * Find every directory entry that claims a stem under a supported extension,
+ * including extension-case variants. Stem matching stays exact so a malformed
+ * uppercase stem can never be reached through a valid lowercase id. Only the
+ * extension is case-folded because its portable filename identity is reserved.
+ * An overlarge directory fails closed rather than risking a hidden collision.
+ */
+function findClaimingFilenames(
+ root: string,
+ stem: string,
+): { complete: boolean; filenames: string[] } {
+ const filenames: string[] = [];
+ let dir: ReturnType<typeof opendirSync>;
+ try {
+ dir = opendirSync(root);
+ } catch (err) {
+ if ((err as NodeJS.ErrnoException).code === 'ENOENT') return { complete: true, filenames };
+ throw err;
+ }
+
+ try {
+ for (let observed = 0; observed < SAVED_THEME_DIRECTORY_ENTRY_CAP; observed += 1) {
+ const entry = dir.readSync();
+ if (entry === null) return { complete: true, filenames: filenames.sort() };
+ const lowerName = entry.name.toLowerCase();
+ const extension = SCHEME_EXTENSIONS.find((candidate) => lowerName.endsWith(candidate));
+ if (extension && entry.name.slice(0, -extension.length) === stem) {
+ filenames.push(entry.name);
+ }
+ }
+ return { complete: dir.readSync() === null, filenames: filenames.sort() };
+ } finally {
+ try {
+ dir.closeSync();
+ } catch {
+ // Reading through end-of-directory may auto-close the handle.
+ }
+ }
+}
+
+export type SavedThemeSaveResult =
+ | { ok: true; id: string; filename: string }
+ /** `name-taken`: the stem already names a file in the store. Otherwise one of
+ * the id-grammar failures (`empty` / `too-long` / `invalid-chars`). */
+ | { ok: false; code: 'name-taken' | SavedThemeIdError }
+ | SavedThemeLockTimeoutResult;
+
+/**
+ * Save a palette under `name` as a scheme file in the store. `name` is the
+ * theme's identity — its filename stem and, namespaced, its palette id — so it
+ * must fit the id grammar; a name that doesn't, or one already taken, is refused
+ * with a distinguishing code and nothing is written. On success the file is
+ * written atomically (tmp + rename) so a concurrent scan never sees a half-file.
+ */
+export async function saveSavedTheme(
+ params: {
+ name: string;
+ /** Exact filename stem for restoring a deleted file. New saves derive it from `name`. */
+ stem?: string;
+ scheme: Base16Scheme;
+ extension?: (typeof SCHEME_EXTENSIONS)[number];
+ } & SavedThemeWriteOptions,
+): Promise<SavedThemeSaveResult> {
+ const identity =
+ params.stem !== undefined
+ ? (() => {
+ const derived = deriveSavedThemeId(params.stem);
+ return derived.ok ? { ...derived, stem: params.stem } : derived;
+ })()
+ : deriveSavedThemeName(params.name);
+ const derived = identity;
+ if (!derived.ok) return { ok: false, code: derived.code };
+
+ const home = params.homedirOverride ?? homedir();
+ const root = params.root ?? savedThemesDir(home);
+ return withSavedThemeWriteLock(
+ root,
+ home,
+ async () => {
+ // Collision is by filename identity: a stem already present under EITHER
+ // recognized extension maps to the same id, so writing would shadow it.
+ const claims = findClaimingFilenames(root, derived.stem);
+ if (!claims.complete || claims.filenames.length > 0) return { ok: false, code: 'name-taken' };
+
+ const filename = `${derived.stem}${params.extension ?? SAVE_EXTENSION}`;
+ // On a case-insensitive filesystem an invalid `Ocean.yaml` aliases the
+ // canonical `ocean.yaml` path even though its stem is not a valid claimant.
+ // Refuse that filesystem-level collision instead of overwriting the file.
+ if (targetState(join(root, filename)) !== 'missing') {
+ return { ok: false, code: 'name-taken' };
+ }
+ await tracedMkdir(root, { recursive: true });
+ await atomicWriteFile(join(root, filename), base16ToYaml(params.scheme), {
+ fs: tracedAtomicFs,
+ sweepStaleTmps: false,
+ });
+ recordSavedThemeSave();
+ return { ok: true, id: derived.id, filename };
+ },
+ params.lockTimeoutMs,
+ );
+}
+
+export type SavedThemeUpdateResult =
+ | { ok: true; id: string; filename: string }
+ | { ok: false; code: 'ambiguous-id' | 'invalid-id' | 'not-found' | 'unsafe-target' }
+ | SavedThemeLockTimeoutResult;
+
+/**
+ * Replace the scheme file an existing saved-theme id names. The same filename
+ * and extension are retained, so this is a true in-place update; a missing id
+ * is refused instead of becoming an accidental create/upsert.
+ */
+export async function updateSavedTheme(
+ params: { id: string; scheme: Base16Scheme } & SavedThemeWriteOptions,
+): Promise<SavedThemeUpdateResult> {
+ const parsed = parseSavedThemeId(params.id);
+ if (!parsed.ok) return { ok: false, code: 'invalid-id' };
+
+ const home = params.homedirOverride ?? homedir();
+ const root = params.root ?? savedThemesDir(home);
+ return withSavedThemeWriteLock(
+ root,
+ home,
+ async () => {
+ const claims = findClaimingFilenames(root, parsed.stem);
+ if (!claims.complete) return { ok: false, code: 'ambiguous-id' };
+ const { filenames } = claims;
+ if (filenames.length === 0) return { ok: false, code: 'not-found' };
+ if (filenames.length > 1) return { ok: false, code: 'ambiguous-id' };
+
+ const filename = filenames[0];
+ if (!filename) return { ok: false, code: 'not-found' };
+ if (!SCHEME_EXTENSIONS.some((ext) => filename.endsWith(ext))) {
+ return { ok: false, code: 'unsafe-target' };
+ }
+ if (targetState(join(root, filename)) !== 'regular') {
+ return { ok: false, code: 'unsafe-target' };
+ }
+ await atomicWriteFile(join(root, filename), base16ToYaml(params.scheme), {
+ fs: tracedAtomicFs,
+ sweepStaleTmps: false,
+ });
+ return { ok: true, id: params.id, filename };
+ },
+ params.lockTimeoutMs,
+ );
+}
+
+export type SavedThemeDeleteResult =
+ | { ok: true; existed: false }
+ | { ok: true; existed: true; filename: string; scheme: Base16Scheme }
+ /** The id is not a well-formed saved-theme id (a client-shape bug). */
+ | { ok: false; code: 'ambiguous-id' | 'invalid-id' | 'unusable-theme' }
+ | SavedThemeLockTimeoutResult;
+
+/**
+ * Delete the scheme file a saved-theme id names. Idempotent: an id that names no
+ * file is `{ existed: false }`, not an error. The stem recovered from the id is
+ * `[a-z0-9-]+` by construction (that is what `parseSavedThemeId` guarantees), so
+ * it can't traverse out of the store — no path-containment guard is needed. No
+ * copy of the file is written anywhere before it is removed.
+ */
+export async function deleteSavedTheme(
+ params: { id: string } & SavedThemeWriteOptions,
+): Promise<SavedThemeDeleteResult> {
+ const parsed = parseSavedThemeId(params.id);
+ if (!parsed.ok) return { ok: false, code: 'invalid-id' };
+
+ const home = params.homedirOverride ?? homedir();
+ const root = params.root ?? savedThemesDir(home);
+ return withSavedThemeWriteLock(
+ root,
+ home,
+ async () => {
+ const claims = findClaimingFilenames(root, parsed.stem);
+ if (!claims.complete) return { ok: false, code: 'ambiguous-id' };
+ const { filenames } = claims;
+ if (filenames.length === 0) return { ok: true, existed: false };
+ if (filenames.length > 1) return { ok: false, code: 'ambiguous-id' };
+
+ const filename = filenames[0];
+ if (!filename) return { ok: true, existed: false };
+ const entry = readSavedThemeFile(root, filename);
+ if (entry === null) return { ok: true, existed: false };
+ if (!entry.ok) return { ok: false, code: 'unusable-theme' };
+
+ tracedUnlinkSync(join(root, filename));
+ recordSavedThemeDelete();
+ return { ok: true, existed: true, filename, scheme: entry.scheme };
+ },
+ params.lockTimeoutMs,
+ );
+}