diff --git a/src-tauri/capabilities/default.json b/src-tauri/capabilities/default.json index 2a4a5a2..16791aa 100644 --- a/src-tauri/capabilities/default.json +++ b/src-tauri/capabilities/default.json @@ -1,11 +1,12 @@ { "identifier": "default", - "description": "Default capabilities for YTDescGen. File access goes through the app's own name-only commands and native dialogs run from Rust, so the webview gets no dialog, fs or shell permissions.", + "description": "Default capabilities for YTDescGen. File access goes through the app's own name-only commands and native dialogs run from Rust, so the webview gets no dialog, fs or shell permissions. set-webview-zoom backs the Ctrl/Cmd +/- zoom polyfill Tauri injects on macOS and Linux (zoomHotkeysEnabled).", "windows": [ "main" ], "permissions": [ "core:default", + "core:webview:allow-set-webview-zoom", "opener:default" ] } diff --git a/src-tauri/gen/schemas/capabilities.json b/src-tauri/gen/schemas/capabilities.json index cba61e3..dad9ac8 100644 --- a/src-tauri/gen/schemas/capabilities.json +++ b/src-tauri/gen/schemas/capabilities.json @@ -1 +1 @@ -{"default":{"identifier":"default","description":"Default capabilities for YTDescGen. File access goes through the app's own name-only commands and native dialogs run from Rust, so the webview gets no dialog, fs or shell permissions.","local":true,"windows":["main"],"permissions":["core:default","opener:default"]}} \ No newline at end of file +{"default":{"identifier":"default","description":"Default capabilities for YTDescGen. File access goes through the app's own name-only commands and native dialogs run from Rust, so the webview gets no dialog, fs or shell permissions. set-webview-zoom backs the Ctrl/Cmd +/- zoom polyfill Tauri injects on macOS and Linux (zoomHotkeysEnabled).","local":true,"windows":["main"],"permissions":["core:default","core:webview:allow-set-webview-zoom","opener:default"]}} \ No newline at end of file diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 217de6b..12b7750 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -20,7 +20,8 @@ "resizable": true, "maximizable": true, "fullscreen": false, - "center": true + "center": true, + "zoomHotkeysEnabled": true } ], "security": { diff --git a/src/components/editor/EndingsEditor.tsx b/src/components/editor/EndingsEditor.tsx index f2f6e4c..259dc5d 100644 --- a/src/components/editor/EndingsEditor.tsx +++ b/src/components/editor/EndingsEditor.tsx @@ -265,6 +265,7 @@ export function EndingsEditor() { type="number" min={1} max={MAX_ENDINGS} + aria-label={t("editor.endings.rowNumberAria", { row: i + 1 })} value={entry.number?.toString() ?? ""} onChange={(e) => { const v = e.target.value.trim(); @@ -275,6 +276,7 @@ export function EndingsEditor() {
+
{output.title}
) : ( @@ -82,7 +83,10 @@ export function LivePreview({
+
{output.description}
) : (
@@ -91,7 +95,7 @@ export function LivePreview({
+
{entry.description}
s.showCharCount);
const compactTagDisplay = useSettingsStore((s) => s.compactTagDisplay);
+ const draftLanguage = useEditorStore((s) => s.language);
const output = outputProp ?? defaultOutput;
+ // The cards' headings are interface text; only the generated text itself
+ // carries the output language.
+ const lang = langProp ?? draftLanguage;
return (
@@ -48,7 +56,10 @@ export function OutputPreview({
>
}
>
-
+
{output.title || "…"}
@@ -71,7 +82,9 @@ export function OutputPreview({
>
}
>
- {output.description || "…"}
+
+ {output.description || "…"}
+
{compactTagDisplay ? (
-
+
{output.tagString}
) : (
-
+
{output.tags.map((tag, i) => (
SEARCH_TITLE_CHARS;
const descriptionCut = description.length > FOLD_DESCRIPTION_CHARS;
@@ -51,18 +59,23 @@ export function YouTubePreview({ title, description, channelName, gameName }: Yo
-
+
{title || "…"}
{channel}
- {description}
+
+ {description}
+
{/* Watch page, above "…more" */}
- {fold || "…"}
+ {fold || "…"}
{descriptionCut && (
{" "}
diff --git a/src/components/ui/Banner.tsx b/src/components/ui/Banner.tsx
index a1d4174..da5391a 100644
--- a/src/components/ui/Banner.tsx
+++ b/src/components/ui/Banner.tsx
@@ -58,7 +58,7 @@ export function Banner({
type="button"
onClick={onDismiss}
aria-label={dismissLabel}
- className="-m-1 flex size-6 shrink-0 cursor-pointer items-center justify-center rounded-md opacity-70 hover:opacity-100"
+ className="-m-1 flex size-6 shrink-0 cursor-pointer items-center justify-center rounded-md opacity-70 hover:opacity-100 pointer-coarse:size-9"
>
diff --git a/src/components/ui/Button.tsx b/src/components/ui/Button.tsx
index 30cd0dd..9fe3362 100644
--- a/src/components/ui/Button.tsx
+++ b/src/components/ui/Button.tsx
@@ -17,13 +17,13 @@ export interface ButtonProps extends ComponentProps<"button"> {
}
const VARIANTS: Record = {
- primary: "bg-accent text-accent-fg shadow-sm hover:bg-accent-hover",
+ primary: "bg-accent-solid text-accent-fg shadow-sm hover:bg-accent-solid-hover",
brand: "bg-brand-gradient text-white shadow-sm hover:brightness-110",
secondary:
"border border-border bg-surface-2 text-text-primary hover:border-border-strong hover:bg-surface-3",
outline: "border border-border text-text-primary hover:bg-surface-2",
ghost: "text-text-secondary hover:bg-surface-2 hover:text-text-primary",
- danger: "bg-danger text-white shadow-sm hover:brightness-110",
+ danger: "bg-danger-solid text-white shadow-sm hover:bg-danger-solid-hover",
};
const SIZES: Record = {
diff --git a/src/components/ui/Drawer.tsx b/src/components/ui/Drawer.tsx
index 8a1f8ed..baefaca 100644
--- a/src/components/ui/Drawer.tsx
+++ b/src/components/ui/Drawer.tsx
@@ -63,7 +63,7 @@ export function Drawer({
{title}
diff --git a/src/components/ui/Field.tsx b/src/components/ui/Field.tsx
index a7c996b..560f97f 100644
--- a/src/components/ui/Field.tsx
+++ b/src/components/ui/Field.tsx
@@ -68,7 +68,9 @@ export const controlClasses = (invalid: boolean) =>
clsx(
"w-full min-w-0 rounded-control border bg-surface-1 px-3 text-text-primary",
"placeholder:text-text-muted transition-[border-color,box-shadow] duration-150",
- "focus:outline-none focus-visible:outline-none focus:ring-3 focus:ring-accent/25",
+ // `outline-hidden`, not `outline-none`: Windows High Contrast drops the
+ // ring, and this keeps a transparent outline there that it paints instead.
+ "focus:outline-hidden focus-visible:outline-hidden focus:ring-3 focus:ring-accent/25",
"disabled:cursor-not-allowed disabled:opacity-55",
invalid
? "border-danger focus:border-danger"
diff --git a/src/components/ui/Modal.tsx b/src/components/ui/Modal.tsx
index 0094aa1..4830c26 100644
--- a/src/components/ui/Modal.tsx
+++ b/src/components/ui/Modal.tsx
@@ -80,7 +80,7 @@ export function Modal({
)}
diff --git a/src/components/ui/ShortcutHelpModal.tsx b/src/components/ui/ShortcutHelpModal.tsx
index 938f537..288bb93 100644
--- a/src/components/ui/ShortcutHelpModal.tsx
+++ b/src/components/ui/ShortcutHelpModal.tsx
@@ -1,6 +1,7 @@
import { useMemo, useRef, useState } from "react";
import { useTranslation } from "react-i18next";
import { Search } from "lucide-react";
+import { useSettingsStore } from "@store/settings-store";
import { Modal } from "./Modal";
import { ShortcutKeys, keyName } from "./Badge";
@@ -16,6 +17,8 @@ const SHORTCUTS = [
{ keys: ["mod", "shift", "C"], labelKey: "shortcuts.copyAll" },
{ keys: ["mod", "S"], labelKey: "shortcuts.saveToHistory" },
{ keys: ["mod", "B"], labelKey: "shortcuts.toggleSidebar" },
+ // sonner's hotkey: focuses the notifications while any are on screen.
+ { keys: ["alt", "T"], labelKey: "shortcuts.notifications" },
{ keys: ["mod", "/"], labelKey: "shortcuts.help" },
{ keys: ["?"], labelKey: "shortcuts.help" },
{ keys: ["esc"], labelKey: "shortcuts.close" },
@@ -24,6 +27,7 @@ const SHORTCUTS = [
export function ShortcutHelpModal({ open, onClose }: ShortcutHelpModalProps) {
const { t } = useTranslation("ui");
const [query, setQuery] = useState("");
+ const singleKey = useSettingsStore((s) => s.singleKeyShortcuts);
// The search box gets focus when the modal opens (through Radix, not an
// `autoFocus` attribute).
const searchRef = useRef(null);
@@ -34,14 +38,16 @@ export function ShortcutHelpModal({ open, onClose }: ShortcutHelpModalProps) {
const activeQuery = open ? query : "";
const filtered = useMemo(() => {
+ // The bare `?` row goes when Settings turned single-key shortcuts off.
+ const available = singleKey ? SHORTCUTS : SHORTCUTS.filter((s) => s.keys[0] !== "?");
const trimmed = activeQuery.trim().toLowerCase();
- if (!trimmed) return SHORTCUTS;
- return SHORTCUTS.filter((s) => {
+ if (!trimmed) return available;
+ return available.filter((s) => {
const label = t(s.labelKey).toLowerCase();
const keys = s.keys.map(keyName).join(" ").toLowerCase();
return label.includes(trimmed) || keys.includes(trimmed);
});
- }, [activeQuery, t]);
+ }, [activeQuery, singleKey, t]);
return (
setQuery(e.target.value)}
placeholder={t("shortcuts.searchPlaceholder")}
aria-label={t("shortcuts.searchPlaceholder")}
- className="text-text-primary placeholder:text-text-muted w-full bg-transparent text-sm outline-none"
+ className="text-text-primary placeholder:text-text-muted w-full bg-transparent text-sm outline-hidden"
/>
{filtered.length === 0 ? (
diff --git a/src/components/ui/Toaster.tsx b/src/components/ui/Toaster.tsx
index 5d8b1f8..0e3e3df 100644
--- a/src/components/ui/Toaster.tsx
+++ b/src/components/ui/Toaster.tsx
@@ -1,3 +1,4 @@
+import { useTranslation } from "react-i18next";
import { Toaster as Sonner } from "sonner";
import { useSettingsStore } from "@store/settings-store";
@@ -8,21 +9,25 @@ import { useSettingsStore } from "@store/settings-store";
* floating elements.
*/
export function Toaster() {
+ const { t } = useTranslation("ui");
const theme = useSettingsStore((s) => s.theme);
return (
· YTDescGen"` for the lifetime of the
* component, and restores the previous title on unmount. Per-page titles
@@ -12,6 +19,11 @@ export function useDocumentTitle(title: string): void {
useEffect(() => {
const previous = document.title;
document.title = `${title} · YTDescGen`;
+ // A microtask, so listeners hear it after every effect of this commit has
+ // run — RouteAnnouncer marks the navigation in one of them.
+ queueMicrotask(() => {
+ window.dispatchEvent(new CustomEvent(PAGE_TITLE_EVENT, { detail: title }));
+ });
return () => {
document.title = previous;
};
diff --git a/src/hooks/use-keyboard-shortcuts.ts b/src/hooks/use-keyboard-shortcuts.ts
index 91c0167..32930e2 100644
--- a/src/hooks/use-keyboard-shortcuts.ts
+++ b/src/hooks/use-keyboard-shortcuts.ts
@@ -1,5 +1,6 @@
import { useEffect, useRef } from "react";
import { useNavigate } from "react-router-dom";
+import { useSettingsStore } from "@store/settings-store";
import { useOutputCopy } from "./use-output-copy";
import { useSaveToHistory } from "./use-save-to-history";
@@ -60,9 +61,12 @@ export function useKeyboardShortcuts(handlers: ShortcutHandlers) {
} else if (
// Bare `?` (Shift+/) opens the cheatsheet too. Skip when the
// user is typing into a form field — `?` is a legitimate
- // character in titles, descriptions, and other inputs.
+ // character in titles, descriptions, and other inputs — and when
+ // Settings › Editor turned single-key shortcuts off (WCAG 2.1.4:
+ // speech input says "question mark" and opens a dialog otherwise).
e.key === "?" &&
!mod &&
+ useSettingsStore.getState().singleKeyShortcuts &&
!isEditableTarget(e.target)
) {
e.preventDefault();
diff --git a/src/i18n/locales/_schema.json b/src/i18n/locales/_schema.json
index 0b2e7c1..bca9dae 100644
--- a/src/i18n/locales/_schema.json
+++ b/src/i18n/locales/_schema.json
@@ -318,7 +318,7 @@
"editor.endings": [
"countLabel",
"videoCountLabel",
- "videoLabel",
+ "videoLabel", "fromLabel", "toLabel", "rowNumberAria", "rowNameAria", "rangeFromAria", "rangeToAria",
"numberLabel",
"nameLabel",
"namePlaceholder",
@@ -740,7 +740,7 @@
"scrollToTop",
"exported",
"exportFailed",
- "close",
+ "close", "notificationsRegion", "closeNotification",
"edit",
"loading"
],
@@ -967,7 +967,7 @@
"genrePlaylistsBadge",
"numberRange",
"themeDark",
- "themeLight", "titleOrder", "titleOrderGameFirst", "titleOrderTypeFirst", "copyAllIncludesTags", "copyAllIncludesTagsHint", "hideScrollbars", "hideScrollbarsHint"
+ "themeLight", "titleOrder", "titleOrderGameFirst", "titleOrderTypeFirst", "copyAllIncludesTags", "copyAllIncludesTagsHint", "hideScrollbars", "hideScrollbarsHint", "singleKeyShortcuts", "singleKeyShortcutsHint"
],
"batch": [
"title",
@@ -1005,7 +1005,7 @@
"help",
"close",
"searchPlaceholder",
- "noResults", "saveToHistory"
+ "noResults", "saveToHistory", "notifications"
],
"validation": [
"emailInvalid",
diff --git a/src/i18n/locales/en/ui.json b/src/i18n/locales/en/ui.json
index a53bf43..377b80a 100644
--- a/src/i18n/locales/en/ui.json
+++ b/src/i18n/locales/en/ui.json
@@ -670,6 +670,12 @@
"countLabel": "Number of endings",
"videoCountLabel": "Number of videos",
"videoLabel": "Video",
+ "fromLabel": "From",
+ "toLabel": "To",
+ "rowNumberAria": "Ending {{row}}: number",
+ "rowNameAria": "Ending {{row}}: name",
+ "rangeFromAria": "Video {{video}}: from ending",
+ "rangeToAria": "Video {{video}}: to ending",
"numberLabel": "Number",
"nameLabel": "Name",
"namePlaceholder": "e.g. Best Ending",
@@ -880,6 +886,8 @@
"exported": "Exported",
"exportFailed": "Export failed",
"close": "Close",
+ "notificationsRegion": "Notifications (Alt+T)",
+ "closeNotification": "Close notification",
"edit": "Edit",
"loading": "Loading…"
},
@@ -1179,7 +1187,9 @@
"copyAllIncludesTags": "Copy All includes the tags",
"copyAllIncludesTagsHint": "Title, description, then the tags — for pasting everything into a notes app in one go.",
"hideScrollbars": "Hide scrollbars",
- "hideScrollbarsHint": "Removes every scrollbar in the app — the mouse wheel, touchpad, touch and keyboard still scroll."
+ "hideScrollbarsHint": "Removes every scrollbar in the app — the mouse wheel, touchpad, touch and keyboard still scroll.",
+ "singleKeyShortcuts": "Single-key shortcuts",
+ "singleKeyShortcutsHint": "? opens the shortcut list when you're not typing in a field. Turn this off if you use speech input or press keys by accident — Ctrl/⌘ + / still works."
},
"socialPost": {
"title": "Cross-Post Captions",
@@ -1226,7 +1236,8 @@
"close": "Close Modal",
"searchPlaceholder": "Search shortcuts",
"noResults": "No matching shortcuts",
- "saveToHistory": "Save to History"
+ "saveToHistory": "Save to History",
+ "notifications": "Go to notifications"
},
"validation": {
"numberRequired": "Enter a number.",
diff --git a/src/i18n/locales/es/ui.json b/src/i18n/locales/es/ui.json
index 0fc28b6..b77bd02 100644
--- a/src/i18n/locales/es/ui.json
+++ b/src/i18n/locales/es/ui.json
@@ -670,6 +670,12 @@
"countLabel": "Número de finales",
"videoCountLabel": "Número de videos",
"videoLabel": "Video",
+ "fromLabel": "Desde",
+ "toLabel": "Hasta",
+ "rowNumberAria": "Final {{row}}: número",
+ "rowNameAria": "Final {{row}}: nombre",
+ "rangeFromAria": "Video {{video}}: desde el final",
+ "rangeToAria": "Video {{video}}: hasta el final",
"numberLabel": "Número",
"nameLabel": "Nombre",
"namePlaceholder": "ej. Mejor Final",
@@ -880,6 +886,8 @@
"exported": "Exportado",
"exportFailed": "Error al exportar",
"close": "Cerrar",
+ "notificationsRegion": "Notificaciones (Alt+T)",
+ "closeNotification": "Cerrar notificación",
"edit": "Editar",
"loading": "Cargando…"
},
@@ -1179,7 +1187,9 @@
"copyAllIncludesTags": "Copiar todo incluye las etiquetas",
"copyAllIncludesTagsHint": "Título, descripción y luego las etiquetas, para pegarlo todo de una vez en una app de notas.",
"hideScrollbars": "Ocultar barras de desplazamiento",
- "hideScrollbarsHint": "Quita todas las barras de desplazamiento de la app; la rueda del ratón, el touchpad, la pantalla táctil y el teclado siguen desplazando."
+ "hideScrollbarsHint": "Quita todas las barras de desplazamiento de la app; la rueda del ratón, el touchpad, la pantalla táctil y el teclado siguen desplazando.",
+ "singleKeyShortcuts": "Atajos de una tecla",
+ "singleKeyShortcutsHint": "? abre la lista de atajos cuando no estás escribiendo en un campo. Desactívalo si usas entrada por voz o pulsas teclas sin querer; Ctrl/⌘ + / sigue funcionando."
},
"socialPost": {
"title": "Publicaciones multiplataforma",
@@ -1226,7 +1236,8 @@
"close": "Cerrar",
"searchPlaceholder": "Buscar atajos",
"noResults": "No se encontraron atajos",
- "saveToHistory": "Guardar en el historial"
+ "saveToHistory": "Guardar en el historial",
+ "notifications": "Ir a las notificaciones"
},
"validation": {
"numberRequired": "Introduce un número.",
diff --git a/src/i18n/locales/id/ui.json b/src/i18n/locales/id/ui.json
index 48334bb..d815ce7 100644
--- a/src/i18n/locales/id/ui.json
+++ b/src/i18n/locales/id/ui.json
@@ -670,6 +670,12 @@
"countLabel": "Jumlah ending",
"videoCountLabel": "Jumlah video",
"videoLabel": "Video",
+ "fromLabel": "Dari",
+ "toLabel": "Sampai",
+ "rowNumberAria": "Ending {{row}}: nomor",
+ "rowNameAria": "Ending {{row}}: nama",
+ "rangeFromAria": "Video {{video}}: dari ending",
+ "rangeToAria": "Video {{video}}: sampai ending",
"numberLabel": "Nomor",
"nameLabel": "Nama",
"namePlaceholder": "mis. Ending Terbaik",
@@ -880,6 +886,8 @@
"exported": "Diekspor",
"exportFailed": "Ekspor gagal",
"close": "Tutup",
+ "notificationsRegion": "Notifikasi (Alt+T)",
+ "closeNotification": "Tutup notifikasi",
"edit": "Edit",
"loading": "Memuat…"
},
@@ -1179,7 +1187,9 @@
"copyAllIncludesTags": "Salin semua termasuk tag",
"copyAllIncludesTagsHint": "Judul, deskripsi, lalu tag — untuk menempel semuanya sekaligus ke aplikasi catatan.",
"hideScrollbars": "Sembunyikan scrollbar",
- "hideScrollbarsHint": "Menyembunyikan semua scrollbar di aplikasi — roda mouse, touchpad, sentuhan, dan keyboard tetap bisa menggulir."
+ "hideScrollbarsHint": "Menyembunyikan semua scrollbar di aplikasi — roda mouse, touchpad, sentuhan, dan keyboard tetap bisa menggulir.",
+ "singleKeyShortcuts": "Pintasan satu tombol",
+ "singleKeyShortcutsHint": "? membuka daftar pintasan saat Anda tidak sedang mengetik di kolom. Matikan jika Anda memakai input suara atau sering salah tekan — Ctrl/⌘ + / tetap berfungsi."
},
"socialPost": {
"title": "Caption Lintas Platform",
@@ -1226,7 +1236,8 @@
"close": "Tutup Modal",
"searchPlaceholder": "Cari pintasan",
"noResults": "Tidak ada pintasan yang cocok",
- "saveToHistory": "Simpan ke Riwayat"
+ "saveToHistory": "Simpan ke Riwayat",
+ "notifications": "Ke notifikasi"
},
"validation": {
"numberRequired": "Masukkan angka.",
diff --git a/src/i18n/locales/ja/ui.json b/src/i18n/locales/ja/ui.json
index c4ba33b..f7a001c 100644
--- a/src/i18n/locales/ja/ui.json
+++ b/src/i18n/locales/ja/ui.json
@@ -670,6 +670,12 @@
"countLabel": "エンディング数",
"videoCountLabel": "動画数",
"videoLabel": "動画",
+ "fromLabel": "開始",
+ "toLabel": "終了",
+ "rowNumberAria": "エンディング {{row}}: 番号",
+ "rowNameAria": "エンディング {{row}}: 名前",
+ "rangeFromAria": "動画 {{video}}: 開始エンディング",
+ "rangeToAria": "動画 {{video}}: 終了エンディング",
"numberLabel": "番号",
"nameLabel": "名前",
"namePlaceholder": "例: ベストエンド",
@@ -880,6 +886,8 @@
"exported": "エクスポートしました",
"exportFailed": "エクスポートに失敗しました",
"close": "閉じる",
+ "notificationsRegion": "通知 (Alt+T)",
+ "closeNotification": "通知を閉じる",
"edit": "編集",
"loading": "読み込み中…"
},
@@ -1179,7 +1187,9 @@
"copyAllIncludesTags": "「すべてコピー」にタグも含める",
"copyAllIncludesTagsHint": "タイトル、説明、タグの順。メモアプリにまとめて貼り付けるときに。",
"hideScrollbars": "スクロールバーを隠す",
- "hideScrollbarsHint": "アプリ内のすべてのスクロールバーを非表示にします。マウスホイール、タッチパッド、タッチ操作、キーボードでのスクロールはそのまま使えます。"
+ "hideScrollbarsHint": "アプリ内のすべてのスクロールバーを非表示にします。マウスホイール、タッチパッド、タッチ操作、キーボードでのスクロールはそのまま使えます。",
+ "singleKeyShortcuts": "1 キーのショートカット",
+ "singleKeyShortcutsHint": "入力欄の外で ? を押すとショートカット一覧が開きます。音声入力を使う場合や誤って押してしまう場合はオフにしてください。Ctrl/⌘ + / は引き続き使えます。"
},
"socialPost": {
"title": "クロス投稿キャプション",
@@ -1226,7 +1236,8 @@
"close": "モーダルを閉じる",
"searchPlaceholder": "ショートカットを検索",
"noResults": "該当するショートカットはありません",
- "saveToHistory": "履歴に保存"
+ "saveToHistory": "履歴に保存",
+ "notifications": "通知へ移動"
},
"validation": {
"numberRequired": "数値を入力してください。",
diff --git a/src/i18n/locales/ko/ui.json b/src/i18n/locales/ko/ui.json
index ce9f3a8..f35d3a9 100644
--- a/src/i18n/locales/ko/ui.json
+++ b/src/i18n/locales/ko/ui.json
@@ -670,6 +670,12 @@
"countLabel": "엔딩 개수",
"videoCountLabel": "영상 개수",
"videoLabel": "영상",
+ "fromLabel": "시작",
+ "toLabel": "끝",
+ "rowNumberAria": "엔딩 {{row}}: 번호",
+ "rowNameAria": "엔딩 {{row}}: 이름",
+ "rangeFromAria": "영상 {{video}}: 시작 엔딩",
+ "rangeToAria": "영상 {{video}}: 끝 엔딩",
"numberLabel": "번호",
"nameLabel": "이름",
"namePlaceholder": "예: 베스트 엔딩",
@@ -880,6 +886,8 @@
"exported": "내보냈습니다",
"exportFailed": "내보내기 실패",
"close": "닫기",
+ "notificationsRegion": "알림 (Alt+T)",
+ "closeNotification": "알림 닫기",
"edit": "편집",
"loading": "불러오는 중…"
},
@@ -1179,7 +1187,9 @@
"copyAllIncludesTags": "모두 복사에 태그 포함",
"copyAllIncludesTagsHint": "제목, 설명, 태그 순서로 — 메모 앱에 한 번에 붙여넣을 때 좋습니다.",
"hideScrollbars": "스크롤바 숨기기",
- "hideScrollbarsHint": "앱의 모든 스크롤바를 숨깁니다. 마우스 휠, 터치패드, 터치, 키보드로는 계속 스크롤할 수 있습니다."
+ "hideScrollbarsHint": "앱의 모든 스크롤바를 숨깁니다. 마우스 휠, 터치패드, 터치, 키보드로는 계속 스크롤할 수 있습니다.",
+ "singleKeyShortcuts": "단일 키 단축키",
+ "singleKeyShortcutsHint": "입력란 밖에서 ?를 누르면 단축키 목록이 열립니다. 음성 입력을 사용하거나 실수로 키를 누르는 경우 끄세요. Ctrl/⌘ + /는 계속 작동합니다."
},
"socialPost": {
"title": "크로스포스트 캡션",
@@ -1226,7 +1236,8 @@
"close": "닫기",
"searchPlaceholder": "단축키 검색",
"noResults": "일치하는 단축키 없음",
- "saveToHistory": "기록에 저장"
+ "saveToHistory": "기록에 저장",
+ "notifications": "알림으로 이동"
},
"validation": {
"numberRequired": "숫자를 입력하세요.",
diff --git a/src/i18n/locales/pt-BR/ui.json b/src/i18n/locales/pt-BR/ui.json
index c61b003..b8dc1a0 100644
--- a/src/i18n/locales/pt-BR/ui.json
+++ b/src/i18n/locales/pt-BR/ui.json
@@ -670,6 +670,12 @@
"countLabel": "Número de finais",
"videoCountLabel": "Número de vídeos",
"videoLabel": "Vídeo",
+ "fromLabel": "De",
+ "toLabel": "Até",
+ "rowNumberAria": "Final {{row}}: número",
+ "rowNameAria": "Final {{row}}: nome",
+ "rangeFromAria": "Vídeo {{video}}: do final",
+ "rangeToAria": "Vídeo {{video}}: até o final",
"numberLabel": "Número",
"nameLabel": "Nome",
"namePlaceholder": "ex.: Melhor final",
@@ -880,6 +886,8 @@
"exported": "Exportado",
"exportFailed": "Falha ao exportar",
"close": "Fechar",
+ "notificationsRegion": "Notificações (Alt+T)",
+ "closeNotification": "Fechar notificação",
"edit": "Editar",
"loading": "Carregando…"
},
@@ -1179,7 +1187,9 @@
"copyAllIncludesTags": "Copiar tudo inclui as tags",
"copyAllIncludesTagsHint": "Título, descrição e depois as tags — para colar tudo de uma vez num app de notas.",
"hideScrollbars": "Ocultar barras de rolagem",
- "hideScrollbarsHint": "Remove todas as barras de rolagem do app — a roda do mouse, o touchpad, o toque e o teclado continuam rolando."
+ "hideScrollbarsHint": "Remove todas as barras de rolagem do app — a roda do mouse, o touchpad, o toque e o teclado continuam rolando.",
+ "singleKeyShortcuts": "Atalhos de uma tecla",
+ "singleKeyShortcutsHint": "? abre a lista de atalhos quando você não está digitando em um campo. Desative se usa entrada por voz ou aperta teclas sem querer — Ctrl/⌘ + / continua funcionando."
},
"socialPost": {
"title": "Legendas para outras redes",
@@ -1226,7 +1236,8 @@
"close": "Fechar modal",
"searchPlaceholder": "Buscar atalhos",
"noResults": "Nenhum atalho encontrado",
- "saveToHistory": "Salvar no histórico"
+ "saveToHistory": "Salvar no histórico",
+ "notifications": "Ir para as notificações"
},
"validation": {
"numberRequired": "Digite um número.",
diff --git a/src/i18n/locales/vi/ui.json b/src/i18n/locales/vi/ui.json
index 74308be..7a2f681 100644
--- a/src/i18n/locales/vi/ui.json
+++ b/src/i18n/locales/vi/ui.json
@@ -670,6 +670,12 @@
"countLabel": "Số lượng ending",
"videoCountLabel": "Số video",
"videoLabel": "Video",
+ "fromLabel": "Từ",
+ "toLabel": "Đến",
+ "rowNumberAria": "Ending {{row}}: số",
+ "rowNameAria": "Ending {{row}}: tên",
+ "rangeFromAria": "Video {{video}}: từ ending",
+ "rangeToAria": "Video {{video}}: đến ending",
"numberLabel": "Số",
"nameLabel": "Tên",
"namePlaceholder": "ví dụ: Best Ending",
@@ -880,6 +886,8 @@
"exported": "Đã xuất",
"exportFailed": "Xuất thất bại",
"close": "Đóng",
+ "notificationsRegion": "Thông báo (Alt+T)",
+ "closeNotification": "Đóng thông báo",
"edit": "Sửa",
"loading": "Đang tải…"
},
@@ -1179,7 +1187,9 @@
"copyAllIncludesTags": "Sao chép tất cả kèm cả tag",
"copyAllIncludesTagsHint": "Tiêu đề, mô tả, rồi đến tag — để dán tất cả vào ứng dụng ghi chú một lần.",
"hideScrollbars": "Ẩn thanh cuộn",
- "hideScrollbarsHint": "Ẩn mọi thanh cuộn trong ứng dụng — vẫn cuộn được bằng con lăn chuột, touchpad, cảm ứng và bàn phím."
+ "hideScrollbarsHint": "Ẩn mọi thanh cuộn trong ứng dụng — vẫn cuộn được bằng con lăn chuột, touchpad, cảm ứng và bàn phím.",
+ "singleKeyShortcuts": "Phím tắt một phím",
+ "singleKeyShortcutsHint": "Phím ? mở danh sách phím tắt khi bạn không gõ trong ô nhập. Tắt đi nếu bạn nhập bằng giọng nói hoặc hay bấm nhầm phím — Ctrl/⌘ + / vẫn hoạt động."
},
"socialPost": {
"title": "Bài đăng đa nền tảng",
@@ -1226,7 +1236,8 @@
"close": "Đóng",
"searchPlaceholder": "Tìm phím tắt",
"noResults": "Không có phím tắt phù hợp",
- "saveToHistory": "Lưu vào lịch sử"
+ "saveToHistory": "Lưu vào lịch sử",
+ "notifications": "Đi tới thông báo"
},
"validation": {
"numberRequired": "Hãy nhập một số.",
diff --git a/src/i18n/locales/zh/ui.json b/src/i18n/locales/zh/ui.json
index 543b990..e947252 100644
--- a/src/i18n/locales/zh/ui.json
+++ b/src/i18n/locales/zh/ui.json
@@ -670,6 +670,12 @@
"countLabel": "结局数量",
"videoCountLabel": "视频数量",
"videoLabel": "视频",
+ "fromLabel": "从",
+ "toLabel": "到",
+ "rowNumberAria": "结局 {{row}}:编号",
+ "rowNameAria": "结局 {{row}}:名称",
+ "rangeFromAria": "视频 {{video}}:起始结局",
+ "rangeToAria": "视频 {{video}}:结束结局",
"numberLabel": "编号",
"nameLabel": "名称",
"namePlaceholder": "如:最佳结局",
@@ -880,6 +886,8 @@
"exported": "已导出",
"exportFailed": "导出失败",
"close": "关闭",
+ "notificationsRegion": "通知 (Alt+T)",
+ "closeNotification": "关闭通知",
"edit": "编辑",
"loading": "加载中…"
},
@@ -1179,7 +1187,9 @@
"copyAllIncludesTags": "“全部复制”包含标签",
"copyAllIncludesTagsHint": "依次为标题、描述、标签 —— 方便一次性粘贴到笔记应用。",
"hideScrollbars": "隐藏滚动条",
- "hideScrollbarsHint": "隐藏应用中的所有滚动条 —— 鼠标滚轮、触控板、触摸和键盘仍可滚动。"
+ "hideScrollbarsHint": "隐藏应用中的所有滚动条 —— 鼠标滚轮、触控板、触摸和键盘仍可滚动。",
+ "singleKeyShortcuts": "单键快捷键",
+ "singleKeyShortcutsHint": "不在输入框中输入时,按 ? 打开快捷键列表。如果使用语音输入或容易误触按键,请关闭此项;Ctrl/⌘ + / 仍然可用。"
},
"socialPost": {
"title": "跨平台文案",
@@ -1226,7 +1236,8 @@
"close": "关闭",
"searchPlaceholder": "搜索快捷键",
"noResults": "未找到快捷键",
- "saveToHistory": "保存到历史"
+ "saveToHistory": "保存到历史",
+ "notifications": "跳转到通知"
},
"validation": {
"numberRequired": "请输入一个数字。",
diff --git a/src/pages/BatchPage.tsx b/src/pages/BatchPage.tsx
index e439838..c530d86 100644
--- a/src/pages/BatchPage.tsx
+++ b/src/pages/BatchPage.tsx
@@ -279,10 +279,16 @@ export function BatchPage() {
/>
-
+
{lang.output.title}
-
+
{lang.output.description}
{/* Batch showed a counter for the title only, so a row
diff --git a/src/pages/OutputPage.tsx b/src/pages/OutputPage.tsx
index ffd73bb..20660b3 100644
--- a/src/pages/OutputPage.tsx
+++ b/src/pages/OutputPage.tsx
@@ -244,6 +244,7 @@ export function OutputPage() {
{multilangOutputs[lang] && (
@@ -258,6 +259,7 @@ export function OutputPage() {
diff --git a/src/pages/PlaylistPage.tsx b/src/pages/PlaylistPage.tsx
index f6bf3d9..92ceb61 100644
--- a/src/pages/PlaylistPage.tsx
+++ b/src/pages/PlaylistPage.tsx
@@ -80,11 +80,14 @@ function OutputBlock({
text,
copyLabel,
multiline,
+ lang,
}: {
label: string;
text: string;
copyLabel: string;
multiline?: boolean;
+ /** Language the text was generated in. */
+ lang: string;
}) {
return (
@@ -93,11 +96,16 @@ function OutputBlock({
{multiline ? (
-
+
{text || "…"}
) : (
- {text || "…"}
+
+ {text || "…"}
+
)}
);
@@ -270,18 +278,21 @@ export function PlaylistPage() {
label={t("output.title")}
text={output.title}
copyLabel={t("output.copyTitle")}
+ lang={language}
/>