Compare commits

...
13 Commits
Author SHA1 Message Date
poli0981 e4ba053951 Merge pull request #75 from poli0981/claude/sharp-keller-e87985
v0.21.0: +12 death-method warnings, video-vs-game copyright disclaimer, game-credit toggle, VI censoring sweep
2026-05-27 23:02:50 +07:00
poli0981andClaude Opus 4.7 58fce6d8d2 feat(v0.21.0): +12 death-method warnings, video-vs-game copyright disclaimer, game-credit toggle, VI censoring sweep
Reduces YouTube auto-flag risk on Vietnamese descriptions, adds twelve method-specific
death/violence warnings, rewords the channel copyright line to disambiguate video
content from game IP, and adds an opt-in toggle for crediting the game's studio/publisher
in the description.

- F1: VI censoring sweep — 2-tier policy (asterisk + euphemism) applied consistently
  across warning labels/templates; fixes malformed `b* ng*y h*i` and uncensored `Bạo lực`.
- F2: +12 warnings (hanging_depiction, drowning_depiction, burning_alive, ...,
  defenestration) extend group `sensitive` (49→61). Total 175→187 across 9 groups.
- F3: Channel copyright reworded 1 line → 2-3 sentence disclaimer in all 6 locales.
  JA/KO/ZH now ship proper translations (no more EN fallback).
- F4: New `showGameCopyright` setting (default off) renders `© {publisher}` line right
  after store links. `pubDevName` promoted to first-class field in GameInfoForm,
  persists in GamePreset, decoupled from publisher store URL.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-27 23:00:21 +07:00
poli0981 7b99f516ae Merge pull request #73 from poli0981/claude/gifted-goldberg-c7ade7
v0.20.0 — +50 content warnings (social/political/weather) + tag comma fix
2026-05-23 09:07:48 +07:00
poli0981andClaude Opus 4.7 b415d14f8b feat(v0.20.0): +50 content warnings (social/political/weather) + tag comma fix
Bundles two changes for the v0.20.0 release:

- Content warnings: +50 IDs across three thematic axes. The phobias
  group gains 10 weather-related fears (homichlophobia/fog,
  lilapsophobia/tornadoes, ombrophobia/rain, nephophobia/clouds,
  ancraophobia/wind, cryophobia/cold, heliophobia/sun, cymophobia/waves,
  limnophobia/lakes, potamophobia/rivers); 41 -> 51. The sensitive
  group gains 20 political/religion/war themes (political_extremism,
  religious_extremism, genocide, holy_war, holocaust_themes, civil_war,
  mass_shooting, colonialism, propaganda, dystopian_state,
  conspiracy_theories, censorship_themes, ethnic_conflict,
  refugee_crisis, revolution_themes, assassination, coup_themes,
  inquisition, forced_labor, ultranationalism); 29 -> 49. A new
  social_phenomena group carries 20 psychological-social IDs that
  don't fit clinical mental-health framing (autism_themes,
  adhd_themes, hikikomori, neet_themes, social_anxiety_themes,
  social_isolation, schizophrenia_themes, burnout_themes,
  survivor_guilt, abandonment_themes, parasocial_themes,
  gaslighting_themes, stockholm_syndrome, behavioral_addiction,
  existential_crisis, impostor_syndrome, midlife_crisis,
  quarter_life_crisis, workplace_harassment, masculinity_pressure).
  Total content warnings 125 -> 175 across 9 groups (was 8). Fully
  translated across all 6 locales. Purely additive.

- Tag generator: strip comma/semicolon/pipe from game names before
  they enter the tag list. New sanitizeForTag helper applied to
  rawName at generateTags entry and inside tagFriendlyGameName.
  Title/description/hashtag paths still read input.gameName verbatim
  so original punctuation survives for human copy. Fixes the case
  where a game like "Hello, World" produced YouTube-broken composite
  tags ("Hello, World gameplay" split at the comma).

Version bumped 0.19.0 -> 0.20.0 across all five manifests.

Pre-release gates green: lint, typecheck, validate:locales (12/12
files complete), 435 tests (+9 new for the tag fix), knip, build,
npm audit (0 vulnerabilities).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-23 09:06:36 +07:00
poli0981 4650273b43 Merge pull request #71 from poli0981/claude/adoring-maxwell-fd4d70
v0.19.0 — phobia warnings, dead-code sweep, scroll-to-top, audit fix
2026-05-20 20:25:41 +07:00
poli0981andClaude Opus 4.7 e691fc7c58 feat(v0.19.0): phobia warnings, dead-code sweep, scroll-to-top, audit fix
Bundles five changes for the v0.19.0 release:

- Content warnings: +28 IDs (25 clinical phobias in the phobias group,
  3 discrimination terms in the sensitive group); 97 -> 125 total,
  fully translated across all 6 locales. Purely additive.
- Dead-code sweep: add knip tooling (knip.json + npm run knip); remove
  the unused use-debounce.ts hook and ~13 unreferenced exports; tighten
  ~12 symbols to module-private.
- Security: npm audit fix for the brace-expansion moderate DoS
  (transitive dev dependency, 5.0.5 -> 5.0.6).
- UI: scroll-to-top floating button that scrolls the AppShell <main>.
- Docs: accuracy pass across TECH-SPEC, ROADMAP, FEATURES,
  CONTENT-INVENTORY (+ vi mirror), CHANGELOG, README.

Version bumped 0.18.0 -> 0.19.0 across all five manifests.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-20 20:23:26 +07:00
poli0981 753a286706 Merge pull request #69 from poli0981/feat/v0.18.0-vn-banks-persistence-fixes
feat(v0.18.0): Vietnamese bank dropdown + persistence/export fixes
2026-05-15 13:01:42 +07:00
poli0981andClaude Opus 4.7 494c3622ff chore(v0.18.0): bump lockfiles to match manifests
package-lock.json (root + "" packages entry) and src-tauri/Cargo.lock
(yt-desc-gen entry) were left at 0.17.1 in the main release commit.
Bumped to 0.18.0 so tauri-action's same-version check passes and the
binaries it uploads are labelled correctly. Per project-memory note
from v0.13.1 incident — version-bump ritual is six files, not three.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-15 13:01:19 +07:00
poli0981andClaude Opus 4.7 86927eea63 feat(v0.18.0): Vietnamese bank dropdown + persistence/export fixes
Bundles one new feature, two persistence-layer bug fixes, one cleanup,
and a transparency doc:

- feat: Vietnamese bank dropdown in VietnameseDonateEditor when output
  language is `vi`. 30 banks from the SBV 2026 list (Big 4 state-owned
  + top 22 joint-stock + 4 foreign), plus a "Khác (nhập tay)" option
  that reveals a free-form text input for unlisted banks. Persisted
  shape (`vnBankName: string`) is unchanged.
- fix: UI language reverted to English on every app relaunch because
  i18next initialised synchronously while the Zustand persist hydration
  was async and nothing bridged the persisted value back to i18n.
  App.tsx now reads `appLanguage` at mount and subscribes for future
  changes (covers both the synchronous localStorage path and the async
  Tauri settings.json path).
- fix: Settings JSON export was dumping the entire on-disk
  `settings.json` — which contains every Zustand store's data. The new
  exporter writes only the Settings store through the envelope-typed
  flow already used by the Profiles tab. Importer rejects pre-v0.18.0
  multi-store dumps with a friendly toast instead of silently injecting
  profile / template / history rows into the Settings store.
- cleanup: removed the "Open Folder" button from Settings (low usage,
  Tauri-only). The `ensure_dir` Rust command stays for other paths.
- docs: new `docs/CONTENT-INVENTORY.md` + Vietnamese mirror listing
  every video type (20), genre (41), and content warning (96 across 8
  groups) the editor surfaces. Linked from README's Documentation table.

Locale schema +2 keys × 6 locales (vnBankNameSelectPlaceholder,
vnBankNameOther). 720/720 ui keys per locale. 426/426 tests pass.
Bundle 427.46 kB (under 500 kB cap).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-15 12:35:25 +07:00
poli0981 fdeec0e913 Merge pull request #67 from poli0981/feat/v0.17.1-per-video-selector
v0.17.1: per-video Output preview selector
2026-05-15 00:16:36 +07:00
poli0981andClaude Opus 4.7 5df2ef8227 feat(editor): per-video Output preview selector (v0.17.1)
Closes the last deferred piece from the v0.16 ending redesign.
Multi-video ending playthroughs (case C) can now flip between
per-video previews of title / description / tags without leaving
the editor.

Key changes:

* `endingVideoIndex` joins `EditorData` (1-indexed, default 1).
  Stored on the editor so the creator's pick survives navigating
  away and back. Engine already respected the corresponding
  `GeneratorInput.endingVideoIndex` since v0.17.0 — this just
  persists it.

* "Preview video" Select dropdown in EndingsEditor case C.
  Renders `endingVideoCount` options labelled "Video N (X–Y)"
  with the matching ending-range bounds. Changing it pipes the
  index into the engine, which slices `endings[]` for both
  title (buildStructuredEndingLabel) and description
  (sliceEndingsForVideo).

* "Previewing Video X of Y — Endings A–B" banner at the top of
  Output page when in case C. Persistent reminder so a creator
  flipping through videos doesn't forget which slice they're
  looking at.

* `use-current-generator-input` forwards `endingVideoIndex` only
  when `endingVideoCount > 1` — single-video mode passes
  `undefined` so the slice helpers short-circuit to render the
  union. Keeps the input cleaner for tests.

* `EndingsEditor.setVideoCount` clamps `endingVideoIndex` down
  when the creator shrinks `endingVideoCount` (e.g. 6 → 2 with
  index = 4 → snaps to 2) so the preview never targets a
  non-existent video.

* Persist version 12 → 13 additive — `endingVideoIndex`
  back-fills to 1 on first rehydrate; pre-v0.17.1 drafts with a
  stale higher index get clamped to endingVideoCount by
  migrateEditorState.

* 3 new locale keys × 6 locales (editor.endings.videoIndexLabel,
  editor.endings.videoIndexHint, output.previewingVideo).
  718/718 ui per locale.

* 4 new tests for v12→v13 migration (default back-fill, valid
  preserved, clamp above max, clamp below 1). Total 426/426.

Bundle: index 473.91 KB (+3 KB). Under 500 KB cap.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-15 00:15:48 +07:00
poli0981 b8e8e476f5 Merge pull request #66 from poli0981/feat/v0.17.0-logging-and-ending-titles
v0.17.0: structured ending titles + log persistence + session UI
2026-05-14 23:49:08 +07:00
poli0981andClaude Opus 4.7 d0dd6bad12 feat(v0.17.0): structured ending titles + log persistence + session UI
Combined release: the deferred ending-title piece from v0.16.0 lands
alongside a full logging overhaul. Output titles now reflect the
filled-in endings; logs survive app restarts with session-grouped
navigation and JSON/TXT export.

## Structured ending titles

Title-builder reads `endings[]` + `endingVideoIndex` and picks the
video-type label from a four-tier resolver:

  1. Single entry         → formatEndingEntry()
                             ("Ending 3: Best End", "Ending 3", "Best End")
  2. Multi-entry, named   → comma-joined names
                             ("True End, Bad End, Hidden")
  3. Multi-entry, numbers → contiguous range via title.endingLabel.range
                             ("Endings 1–3" / "Kết thúc 1–3")
  4. Mixed / sparse       → title.endingLabel.count ("3 Endings")

Falls back to the legacy locale "Ending" label when no usable entries,
so pre-v0.16 single-ending creators see byte-identical output.

## Logging overhaul

* Persistence: new `src/utils/log-storage.ts`. Tauri writes
  append-only JSONL `{appData}/logs/ytdescgen-YYYYMMDD.jsonl` (daily
  rotation). Web caps localStorage at 5000 FIFO entries. Three new
  Tauri commands: `append_to_file`, `list_dir`, `delete_file`.
* Session grouping: `LogEntry.sessionId` (one per app boot). LogPage
  renders one collapsible block per session — current expanded,
  prior collapsed — with per-session "Clear" action.
* Export JSON (envelope) + TXT (one line per entry, chronological).
* Boot hydration via `hydrateLogStore(retentionDays)` in App.tsx.
* New setting `logRetentionDays` (default 7, clamped [1, 90]).
  Persist-store v9 → v10 additive.

## Locale & test churn

* 12 new locale keys × 6 locales; 715/715 ui, 370/370 templates.
* 14 new tests (408 → 422).

## Bundle

* index 470.51 KB (+7 KB), LogPage 8.37 KB (+3 KB). Under 500 KB cap.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-14 23:46:57 +07:00
78 changed files with 4785 additions and 519 deletions

No files matched your search

+192
View File
@@ -2,6 +2,198 @@
All notable changes to YTDescGen ship as tagged releases on `main`.
## v0.21.0 — 2026-05-27
Reduces YouTube auto-flag risk on Vietnamese descriptions, adds twelve
method-specific death/violence warnings, rewords the channel copyright
line to disambiguate video content from game IP, and adds an opt-in
toggle for crediting the game's studio/publisher in the description.
### Added
- **12 new content warnings** ([src/engine/types.ts](src/engine/types.ts), [src/config/content-warning-groups.ts](src/config/content-warning-groups.ts)). Extends the **Sensitive** group with method-specific death/violence depictions that YouTube's auto-moderation flags harder than the umbrella `blood_gore` / `war_violence` labels: `hanging_depiction`, `drowning_depiction`, `burning_alive`, `asphyxiation_depiction`, `restraint_torture`, `public_execution`, `decapitation`, `impalement`, `mass_casualty_event`, `vehicular_violence`, `overdose_depiction`, `defenestration`. Total content warnings 175 → 187 across the existing 9 groups. Purely additive — engine renders each warning automatically; existing profiles round-trip unchanged. Fully translated across all 6 locales (`ui.json` short labels + `templates.json` description phrases) with `_schema.json` updated. VI labels follow the v0.21.0 censoring policy (see below).
- **Game-copyright toggle** ([src/store/settings-heal.ts](src/store/settings-heal.ts) `showGameCopyright`, [src/engine/description-builder.ts](src/engine/description-builder.ts) section 4.5, [src/pages/SettingsPage.tsx](src/pages/SettingsPage.tsx)). New Settings → Description toggle (default **off**) that, when enabled with a non-empty `pubDevName`, emits a `© {publisher}. All rights reserved.` line right after the Store Links block. Decoupled from the publisher store-URL — the credit renders based on the studio name alone. Used by creators covering games whose dev/publisher contractually requires attribution in the description. New i18n key `description.sections.gameCopyright` across all 6 locales; new UI keys `settings.showGameCopyright` + `settings.showGameCopyrightHint`. Persists in `GamePreset` so a series spanning many episodes hydrates the studio name + toggle together on preset apply.
- **`pubDevName` promoted to first-class field** ([src/components/editor/GameInfoForm.tsx](src/components/editor/GameInfoForm.tsx), [src/store/preset-store.ts](src/store/preset-store.ts) `GamePreset.pubDevName?`). Previously a side-label that only appeared under a non-empty Publisher store URL; now an always-visible "Studio / Publisher" input in Game Info that also drives the game-copyright section. Removed from [StoreLinkEditor.tsx](src/components/editor/StoreLinkEditor.tsx) lines 140–172. Optional in `GamePreset` so older presets hydrate without breaking.
### Changed
- **Channel copyright line reworded across 6 locales** ([src/i18n/locales/*/templates.json](src/i18n/locales/) `description.sections.copyright`). Old: `© {year} {channelName}. All rights reserved.` (one short line, ambiguous about whether the channel claims the game's IP). New: a 2–3 sentence disclaimer making explicit that the copyright applies only to the video recording, and that the game, characters, music, and related IP belong to their respective owners. Same `{{year}}` / `{{channelName}}` placeholders — no engine change. JA/KO/ZH now ship a proper localised translation instead of falling back to English.
- **VI censoring sweep — consistency + euphemism policy** ([src/i18n/locales/vi/ui.json](src/i18n/locales/vi/ui.json), [src/i18n/locales/vi/templates.json](src/i18n/locales/vi/templates.json)). The Vietnamese warning labels previously used asterisk censoring on some terms (`t* tử`, `b*o h*nh`, `g*ết người`) but left others uncensored (`Bạo lực liên quan chiến tranh`, `Bạo lực từ cảnh sát`) and had a malformed `b* ng*y h*i` for `child_harm`. Sweep unifies them under a 2-tier policy: asterisk for graphic verbs with no natural euphemism (`tự` → `t*`, `giết` → `g*ết`, `treo cổ` → `treo c*`, `bạo hành` → `b*o h*nh`), euphemism for words with a natural softer register (`bạo lực` → `tác động vật lý`, `nổ súng` → `khai hỏa`, `xử bắn` → `hành quyết`). Fixes `child_harm` to use the unambiguous euphemism `chịu tác động`. Proper nouns (game titles, character names) untouched. Goal is to reduce YouTube auto-flag risk on Vietnamese descriptions — purely a static i18n edit, no runtime utility.
### Under the hood
- Persist version unchanged — `showGameCopyright` is additive (`healSettings` back-fills via `{ ...initialSettings, ...incoming }`) and `pubDevName` / `showGameCopyright` on `GamePreset` are optional. No migration step needed.
- Description-builder section ordering: Store Links → **Game Copyright (new)** → Video Settings → … → Channel Copyright. The two `©` lines (channel + game) are intentional when both toggles are on; the Settings help text is explicit so creators don't mistake it for a bug.
- Three test fixtures updated for the new wording / censoring / settings shape ([tests/engine/description-builder.test.ts](tests/engine/description-builder.test.ts), [tests/store/settings-heal.test.ts](tests/store/settings-heal.test.ts)). 435 tests still green.
- Five manifests bumped 0.20.0 → 0.21.0 (`package.json`, `src-tauri/Cargo.toml`, `src-tauri/Cargo.lock` `yt-desc-gen` entry, `src-tauri/tauri.conf.json`).
- Pre-release gates run green: lint, typecheck, validate:locales (12/12 files complete, 814 ui + 461 template keys), 435 tests, build.
## v0.20.0 — 2026-05-23
Fifty new content-warning IDs across three thematic axes — political /
religion / war, social-psychological phenomena (autism, hikikomori,
parasocial, etc.), and weather-related phobias — plus a tag-engine fix
for game names containing comma / semicolon / pipe characters.
### Added
- **50 new content warnings** ([src/engine/types.ts](src/engine/types.ts), [src/config/content-warning-groups.ts](src/config/content-warning-groups.ts)). The **Phobias** group gains 10 weather-related fears — `homichlophobia` (fog), `lilapsophobia` (tornadoes / hurricanes), `ombrophobia` (heavy rain), `nephophobia` (clouds), `ancraophobia` (strong wind), `cryophobia` (extreme cold, distinct from `chionophobia`/snow), `heliophobia` (sunlight), `cymophobia` (large waves), `limnophobia` (lakes), `potamophobia` (rivers); 41 → 51. The **Sensitive** group gains 20 political / religious / war themes — `political_extremism`, `religious_extremism`, `genocide`, `holy_war`, `holocaust_themes`, `civil_war`, `mass_shooting`, `colonialism`, `propaganda`, `dystopian_state`, `conspiracy_theories`, `censorship_themes`, `ethnic_conflict`, `refugee_crisis`, `revolution_themes`, `assassination`, `coup_themes`, `inquisition`, `forced_labor`, `ultranationalism`; 29 → 49. A new **Social phenomena** group (inserted between *Mental health* and *Sensitive*) carries 20 psychological-social IDs that don't fit clinical mental-health framing — `autism_themes`, `adhd_themes`, `hikikomori`, `neet_themes`, `social_anxiety_themes`, `social_isolation`, `schizophrenia_themes`, `burnout_themes`, `survivor_guilt`, `abandonment_themes`, `parasocial_themes`, `gaslighting_themes`, `stockholm_syndrome`, `behavioral_addiction`, `existential_crisis`, `impostor_syndrome`, `midlife_crisis`, `quarter_life_crisis`, `workplace_harassment`, `masculinity_pressure`. Total content warnings 125 → 175 across 9 groups (was 8). Purely additive — engine renders each warning automatically; existing profiles / templates round-trip unchanged. Fully translated across all 6 locales (`ui.json` short labels + `templates.json` description phrases) with `_schema.json` updated.
- **1 new locale key × 6 locales**: `editor.contentWarningGroups.social_phenomena` (the new group's heading). Initial-collapse default set in [ContentWarningChecklist.tsx](src/components/editor/ContentWarningChecklist.tsx) so the 20-item group stays scannable until expanded.
### Fixed
- **Tag generator splitting at commas / semicolons / pipes in game names** ([src/engine/tag-generator.ts](src/engine/tag-generator.ts)). YouTube treats `,` as a tag delimiter, so a game title like `Hello, World` previously produced composite tags such as `Hello, World gameplay` that YouTube split into two broken tags (`Hello` + `World gameplay`). New `sanitizeForTag` helper strips `,` `;` `|` from the game name before it enters bare / composite tags and is also called inside `tagFriendlyGameName` (idempotent). Title / description / hashtag paths still read `input.gameName` verbatim — the original punctuation is preserved for human-facing copy, only the tag list is cleaned. Nine new test cases in [tests/engine/tag-generator.test.ts](tests/engine/tag-generator.test.ts) cover the comma / semicolon / pipe paths plus idempotence.
### Under the hood
- **Documentation count sweep.** `README.md` content-warning total bumped 125 → 175 and group count 8 → 9; `docs/CONTENT-INVENTORY.md` heading updated, three group sections regenerated (Phobias 41 → 51, Sensitive 29 → 49, new Social phenomena 20), Vietnamese mirror at `docs/i18n/vi/CONTENT-INVENTORY.md` kept in lock-step.
- Persist version unchanged — this release adds no new persisted fields. Existing `contentWarnings: ContentWarning[]` profiles widen the allowed enum but reject nothing.
- Five manifests bumped 0.19.0 → 0.20.0 (`package.json`, `package-lock.json` root + self-reference, `src-tauri/Cargo.toml`, `src-tauri/Cargo.lock` `yt-desc-gen` entry, `src-tauri/tauri.conf.json`).
- Pre-release gates run green: lint, typecheck, validate:locales (12/12 files complete), 435 tests, knip, build, `npm audit` (zero vulnerabilities).
## v0.19.0 — 2026-05-20
Twenty-eight new content-warning IDs (twenty-five clinical phobias plus
three discrimination themes) + a scroll-to-top button + a moderate-severity
security patch + a dead-code sweep backed by new `knip` tooling + a
documentation accuracy pass.
### Added
- **28 new content warnings** ([src/engine/types.ts](src/engine/types.ts), [src/config/content-warning-groups.ts](src/config/content-warning-groups.ts)). The **Phobias** group gains 25 clinically-recognised fears relevant to gameplay / horror content — automatonophobia (animatronics), megalophobia (giant objects), submechanophobia (submerged man-made objects), necrophobia, spectrophobia, demonophobia, selachophobia (sharks), mysophobia, emetophobia, scopophobia, monophobia, musophobia, chiroptophobia, ornithophobia, ichthyophobia, herpetophobia, katsaridaphobia, apiphobia, astraphobia, agoraphobia, enochlophobia, chionophobia, nosocomephobia, aichmophobia, pnigophobia — 16 → 41. The **Sensitive** group gains 3 bigotry-content warnings — `homophobia`, `transphobia`, `xenophobia` — placed next to `discrimination` / `hate_speech`. These are prejudices, not involuntary fear responses, so they are deliberately kept out of the Phobias group. Total content warnings 97 → 125. Purely additive — the engine auto-renders each warning, no persist migration. Fully translated across all 6 locales (`ui.json` short labels + `templates.json` description phrases) with `_schema.json` updated.
- **Scroll-to-top button** ([src/components/layout/ScrollToTopButton.tsx](src/components/layout/ScrollToTopButton.tsx)). A floating up-arrow fixed to the bottom-right of the viewport that fades in once the page is scrolled past 300 px and smooth-scrolls back on click. The scroll target is the `<main>` element — the app's real scroll container, not `window` — which `AppShell` now passes down as a ref. Honors `prefers-reduced-motion`, uses a 44 px touch target with a focus ring, sits at `z-40` so toasts render above it, and re-checks visibility on route change. New `common.scrollToTop` locale key across all 6 locales.
- **`knip` dead-code tooling** ([knip.json](knip.json) + `npm run knip`). Authoritative cross-file detection of unused files, exports, and dependencies — coverage TypeScript strict mode (in-file only) cannot provide. Configured so `scripts/` and `tests/` are recognised entry points.
### Fixed
- **`brace-expansion` moderate-severity DoS** ([advisory GHSA-jxxr-4gwj-5jf2](https://github.com/advisories/GHSA-jxxr-4gwj-5jf2)). `npm audit fix` bumped the transitive dependency (reached through `@typescript-eslint`) 5.0.5 → 5.0.6. A dev/lint-time dependency only — no effect on shipped web or desktop binaries. `npm audit` now reports zero vulnerabilities.
### Removed
- **Dead-code sweep** (knip-driven). Deleted the unused `use-debounce.ts` hook plus ~13 unreferenced exports across config / engine / store / utils (`findGpuSeries`, `formatSingleEndingForTitle`, `PlaylistOutput`, `loadFile`, `exportToJsonFile`, `importFromJsonFile`, `EnglishTranslationFn`, `PlatformId`, `SocialFieldId`, `SocialCategory`, `VietnameseBank`, `RigFieldId`, `SupportedLanguageId`). A further ~12 symbols were tightened from `export` to module-private and the settings layer's redundant type re-exports were trimmed. No behaviour change — all 426 tests still pass.
### Under the hood
- **Documentation accuracy pass.** `TECH-SPEC.md` package version (`0.1.0` → `0.19.0`) and CI Node version (`20` → `22`); `ROADMAP.md` corrected a never-built `TabBar` component reference to `Sidebar`; `FEATURES.md` video-type / genre / language counts refreshed, with the stale duplicate tables replaced by links to `CONTENT-INVENTORY.md` (the maintained source of truth); `CONTENT-INVENTORY.md` and its Vietnamese mirror updated for the new warning counts; `README.md` content-warning count corrected (91 → 125).
- Persist version unchanged — this release adds no new persisted fields.
- Five dependencies knip flagged as unused are intentionally kept and listed under `knip.json` `ignoreDependencies`: the three Tauri plugin packages cannot be safely verified without a desktop build, and `@testing-library/*` is documented test infrastructure.
## v0.18.0 — 2026-05-15
Vietnamese-bank dropdown for the donate form + two persistence-layer
bug fixes (UI language reverting to English after relaunch, Settings
export bundling unrelated stores) + one cleanup (Open Folder button
removed) + a new content-inventory documentation page (EN + VI).
### Added
- **Vietnamese bank dropdown** in `VietnameseDonateEditor` ([src/components/editor/VietnameseDonateEditor.tsx](src/components/editor/VietnameseDonateEditor.tsx), [src/config/vietnamese-banks.ts](src/config/vietnamese-banks.ts)). When the output language is Vietnamese, the "Bank name" field upgrades from a plain text input to a `<Select>` listing 30 of Vietnam's most-used banks (Big 4 state-owned + top 22 joint-stock commercial banks by retail presence + 4 foreign banks with the strongest Vietnam footprint). Sourced from the State Bank of Vietnam's 2026 register via [bankervn.com](https://bankervn.com/danh-sach-ngan-hang/). Picking "Khác (nhập tay)" reveals an inline text input so unlisted / digital-only / regional banks still work. Persisted shape is unchanged — `vnBankName` stays a plain string — so saved profiles and exports round-trip cleanly. When the output language is not Vietnamese, the field falls back to the legacy text input.
- **`docs/CONTENT-INVENTORY.md`** + **Vietnamese mirror** ([docs/i18n/vi/CONTENT-INVENTORY.md](docs/i18n/vi/CONTENT-INVENTORY.md)). Static, hand-maintained manifest of every video type (20), game genre (41), and content warning (96 across 8 groups) the editor surfaces. Linked from the main `README.md` Documentation table. Transparency aid for anyone evaluating the editor's coverage without reading source.
- **2 new locale keys × 6 locales**: `editor.vnBankNameSelectPlaceholder`, `editor.vnBankNameOther`. Localised for VI; left in English for JA/KO/ZH/ES to match the existing convention for VN-donate fields. Schema (`src/i18n/locales/_schema.json`) updated accordingly.
### Fixed
- **UI language reverts to English after app relaunch** ([src/App.tsx](src/App.tsx)). i18next initialises synchronously with `fallbackLng: "en"` while Zustand's persist middleware rehydrates `appLanguage` either synchronously (localStorage) or asynchronously (Tauri `settings.json`). Neither path bridged the persisted value back to i18n, so the UI rendered English even when the saved setting was Vietnamese / Japanese / etc. App.tsx now reads `appLanguage` at mount and calls `i18n.changeLanguage` once, then subscribes to subsequent store changes so the async Tauri rehydrate (and any future external mutation) propagate to i18n automatically.
- **Settings JSON export was a multi-store dump** ([src/pages/SettingsPage.tsx](src/pages/SettingsPage.tsx)). The pre-v0.18.0 "Export Settings" button copied the whole on-disk `settings.json` — which the storage adapter writes as a gross dump of every Zustand store (settings + profiles + presets + templates + history). The new exporter writes only the Settings data through `exportTypedToJsonFile("settings", …)` — the same envelope-typed flow the Profiles tab already uses. Importer is the matching `importParsedFromJsonFile` + `resolveForType("settings")` chain, with an explicit reject for the legacy multi-store dump (friendly toast instead of silent profile-store pollution). `extractData` was promoted from a private helper in `settings-store` to a named export for this. The IS_TAURI gate stays — surfacing the buttons on the web build is out of scope for this release.
### Removed
- **"Open Folder" button** in Settings → top bar ([src/pages/SettingsPage.tsx](src/pages/SettingsPage.tsx)). Niche utility — most users never opened the app-data folder, and Tauri-only meant web builds never saw it. The `ensure_dir` Tauri command stays in the Rust side for the export/import paths that still rely on it. ~25 LOC removed including the unused `FolderOpen` icon import.
### Under the hood
- `App.tsx` mount effect now subscribes to `useSettingsStore` for `appLanguage` changes — Header and SettingsPage still call `i18n.changeLanguage` directly when the user switches, which is now redundant but harmless. Cleanup deferred to a future PR.
- Persist version unchanged — this release adds no new persisted fields.
- Bundle: under the 500 KB cap. The bank list is a 33-entry static array, negligible weight; the new envelope flow is a net-negative on SettingsPage size (Tauri dialog + ensure_dir + read_from_file paths replaced with one browser-API call).
### Migration notes
- **Pre-v0.18.0 settings export files (multi-store dump)** are rejected with a friendly "Legacy export format from v0.17.x or earlier is no longer supported" toast on import. Re-export from v0.18.0+ to get a clean settings-only envelope file.
- **Profiles, presets, templates, history** export/import flows on the Profiles tab are unchanged. v0.17.x exports of those types still import unmodified.
- **Saved `vnBankName` values** that don't match any of the 30 preset banks auto-detect as "custom" on first render — the dropdown shows "Khác" and the inline text input is pre-filled with the saved value. No persisted data is lost.
## v0.17.1 — 2026-05-15
Per-video Output selector — closes the last deferred piece from the
v0.16 ending redesign. Multi-video ending playthroughs (case C) can
now flip between per-video previews of title / description / tags
without leaving the editor.
### Added
- **`endingVideoIndex` field on `EditorData`** (1-indexed, default 1). Stored on the editor (vs. recomputed per render) so the creator's pick survives navigating away and back. Engine already respected the corresponding `GeneratorInput.endingVideoIndex` since v0.17.0 — this just persists it.
- **"Preview video" Select dropdown** in `EndingsEditor` case C ([src/components/editor/EndingsEditor.tsx](src/components/editor/EndingsEditor.tsx)). Renders `endingVideoCount` options labelled `"Video N (X–Y)"` where X–Y are the matching ending-range bounds. Changing it pipes `endingVideoIndex` into the engine, which slices `endings[]` for both title (via `buildStructuredEndingLabel`) and description (via `sliceEndingsForVideo`).
- **"Previewing Video X of Y — Endings A–B" banner** at the top of the Output page when in case C ([src/pages/OutputPage.tsx](src/pages/OutputPage.tsx)). Persistent reminder so a creator flipping through videos doesn't forget which slice they're looking at.
- **3 new locale keys × 6 locales**: `editor.endings.videoIndexLabel`, `editor.endings.videoIndexHint`, `output.previewingVideo`. All 718/718 ui keys per locale (up from 715).
### Changed
- **`use-current-generator-input`** forwards `endingVideoIndex` only when `endingVideoCount > 1` — single-video mode passes `undefined` so the slice helpers short-circuit to "render the union", keeping the input cleaner for tests.
- **`EndingsEditor.setVideoCount`** now clamps `endingVideoIndex` down when the creator shrinks `endingVideoCount` (e.g. 6 → 2 with index = 4 → snaps to 2), so the preview never targets a non-existent video.
- **Persist version 12 → 13**. Additive — `endingVideoIndex` back-fills to 1 on first rehydrate; pre-v0.17.1 drafts with a stale higher index get clamped to `endingVideoCount` by `migrateEditorState`.
### Tests
- 4 new tests in `editor-store.endings.test.ts` for the v12 → v13 migration (default back-fill, valid value preserved, clamp above max, clamp below 1). Total 426/426 pass.
### Under the hood
- The banner copy is locale-aware and pluralised inline via i18next interpolation (`{{index}} / {{total}} / {{from}} / {{to}}`).
- `OutputPage` selects `endingVideoCount`, `endingVideoIndex`, `endingVideoRanges` as individual store slices so the page only re-renders when those specific fields change — no broader subscription drag.
- Bundle: index 473.91 KB (+3 KB for Select + banner + migration). Under the 500 KB cap.
## v0.17.0 — 2026-05-14
Combined release: logging overhaul + the deferred ending title piece
from v0.16.0. The Output title now reflects the structured endings
the creator filled in (case-A/B/C aware), and the Logs tab persists
entries across app restarts with session-grouped navigation and
JSON/TXT export.
### Added
- **Structured ending titles** ([src/engine/title-builder.ts](src/engine/title-builder.ts)). When `videoType === "ending"` AND `endings[]` is filled, the title's video-type segment swaps from the static `"Ending"` to a context-aware label, picked by a four-tier resolver:
1. Single entry → `formatEndingEntry()` (e.g. `"Ending 3: Best End"`, `"Ending 3"`, or `"Best End"` depending on which fields are filled).
2. Multi-entry, every entry named → comma-joined names (`"True End, Bad End, Hidden"`).
3. Multi-entry, every entry numbered + contiguous run → `title.endingLabel.range` (`"Endings 1–3"` / `"Kết thúc 1–3"`).
4. Mixed / non-contiguous → `title.endingLabel.count` (`"3 Endings"`).
Falls back to the legacy locale label when no usable entries — pre-v0.16 single-ending creators see byte-identical output. Slicing respects `endingVideoIndex` + `endingVideoRanges` so a per-video title renders only that video's slice (foundation for the v0.17.1 per-video Output selector).
- **Persistent log storage** ([src/utils/log-storage.ts](src/utils/log-storage.ts)). Logs now survive app restarts:
- Tauri: append-only JSONL file `{appData}/logs/ytdescgen-YYYYMMDD.jsonl`. Daily rotation; cleanup deletes whole files older than `logRetentionDays` so retention sweeps are O(files) not O(entries). Three new Tauri commands feed this: `append_to_file`, `list_dir`, `delete_file`.
- Web: localStorage key `ytdescgen-logs`, FIFO-capped at 5000 entries.
- Best-effort: persistence failures never throw, so a disk hiccup can't recurse into a log loop.
- **Session-grouped LogPage** ([src/pages/LogPage.tsx](src/pages/LogPage.tsx)). Each entry now carries a `sessionId` (one per app boot). The page renders one collapsible block per session — current session expanded, prior sessions collapsed — with a per-session "Clear this session" affordance. Header shows entry count + error/warning counts + time range per session.
- **Log export buttons**:
- **JSON** — envelope-wrapped via the v0.15 `exportTypedToJsonFile` (currently keyed `_type: "history"`; promote to a dedicated `log` type later when re-import becomes a use case).
- **TXT** — `[ISO time] [LEVEL] [source] message — details` one line per entry, chronological. Pastes cleanly into bug reports.
- **`logRetentionDays` setting** ([src/store/settings-store.ts](src/store/settings-store.ts), [src/store/settings-heal.ts](src/store/settings-heal.ts)). Default 7 days; clamped to `[1, 90]` by `healSettings`. New section in Settings → Logs with inline hint. Persist-store version bumped 9 → 10.
- **Boot-time log hydration** ([src/App.tsx](src/App.tsx)). `hydrateLogStore(retentionDays)` runs in the root `useEffect`, loads recent persisted entries before the UI mounts, then schedules `pruneOldLogs` so the AppData folder stays trim.
- **Locale keys (10 new × 6 locales)**: `title.endingLabel.{range,count}` (2 templates keys), `settings.{logSettings,logRetentionDays,logRetentionHint}` + `logs.{clearPersistedConfirm,clearSession,exportJson,exportTxt,sessionCurrent,sessionLabel,entriesShort}` (10 ui keys). All 715 ui + 370 templates keys per locale.
### Changed
- **`log-store` schema** — `LogEntry` gained a `sessionId` field; in-memory cap raised from 500 → 2000 with persistence in play so a current session can fully populate the accordion without pagination. New actions: `clearAllPersisted` (in-memory + disk), `clearSession(id)`.
- **LogPage "Clear All"** now clears in-memory state AND deletes persisted JSONL files / localStorage. Two-step confirm via `clearPersistedConfirm` toast.
- **File envelope** — `SCHEMA_VERSIONS.settings` bumped 9 → 10 to match the persist version. v0.15+ settings exports still import unchanged via the `healSettings` defensive merge.
### Tests
- 11 new title-builder tests covering all four ending-label tiers + Vietnamese localisation + slice + fallback. 422/422 pass overall.
- 3 new settings-heal tests for the `logRetentionDays` default and `[1, 90]` clamp.
### Under the hood
- Tauri command surface gained 3 entries (`append_to_file`, `list_dir`, `delete_file`). All stdlib — no new crates.
- `pruneOldLogs` runs *after* `loadRecentLogs` at boot, so an entry on the retention edge is read into memory before being deleted from disk (last-chance access).
- Bundle: index 470.51 KB (+7 KB for title-builder ending logic), LogPage chunk 8.37 KB (+3 KB for session accordion + export buttons). Still under the 500 KB cap.
### Migration notes
- **Settings persist version 9 → 10**. Additive — `logRetentionDays` back-fills to 7 on first rehydrate, no user action required.
- **First-run on Tauri**: app creates `%APPDATA%\com.skullmute.ytdescgen\logs\` on the first log entry. The new `append_to_file` command auto-creates the parent dir via `std::fs::create_dir_all`.
- **Web users**: persisted entries live in `localStorage["ytdescgen-logs"]`; nothing to migrate.
- **Pre-v0.16 ending creators**: title behaviour unchanged unless they fill the new structured fields. Filling triggers the new resolver immediately.
## v0.16.0 — 2026-05-14
Structured ending editor + multi-video split. The Playthrough Notes
+2 -1
View File
@@ -24,7 +24,7 @@ Built for the gameplay no-commentary niche — especially horror / scary games
- **20 video types** — Full Gameplay, Part, Boss Fight, Boss No-Hit, Ending, Speedrun, 100%, DLC, NG+, Challenge, Side Quest, Secret, Comparison, Guide, Mods, Collectibles, Livestream, Gacha Quest, Demo, Demo Part.
- **6 UI languages** — English, Vietnamese, Japanese, Spanish, Korean, Chinese. *(VI authored by a native speaker; JA / ES / KO / ZH AI-translated — see [DISCLAIMER.md](./DISCLAIMER.md).)*
- **40+ game genres** — across action, RPG, FPS, horror, soulslike, indie, simulation, fighting, and more.
- **91 content-warning IDs** across 8 groups — phobias, photosensitive, mental health, sensitive themes, horror-specific, playstyle, and gameplay disclosure (mods / cheats / glitches / guide-assisted). Sets viewer expectations before they hit play.
- **187 content-warning IDs** across 9 groups — spoilers, photosensitive, phobias, mental health, social phenomena, sensitive themes (incl. method-specific death/violence), horror-specific, playstyle, and gameplay disclosure (mods / cheats / glitches / guide-assisted). Sets viewer expectations before they hit play.
- **Profile system** — save channel / social / rig info once, reuse across every video.
- **Game presets** — save game name + store links once, reuse across the entire part series.
- **Snapshot templates** — save full-form configurations and recall in one click.
@@ -78,6 +78,7 @@ Architecture overview: [`docs/ARCHITECTURE.md`](./docs/ARCHITECTURE.md).
| [Development Guide](./docs/DEVELOPMENT.md) | Toolchain, IDE setup, build commands, troubleshooting. *(Also: [Vietnamese](./docs/i18n/vi/DEVELOPMENT.md).)* |
| [Architecture](./docs/ARCHITECTURE.md) | Layer model, data flow, engine design. |
| [Features](./docs/FEATURES.md) | Full feature matrix. |
| [Content Inventory](./docs/CONTENT-INVENTORY.md) | Every video type, genre, and content warning the editor surfaces. *(Also: [Vietnamese](./docs/i18n/vi/CONTENT-INVENTORY.md).)* |
| [Roadmap](./docs/ROADMAP.md) | Development phases. |
| [Tech Spec](./docs/TECH-SPEC.md) | Implementation details and configs. |
| [i18n Guide](./docs/I18N.md) | Adding new locales. |
+149
View File
@@ -0,0 +1,149 @@
# Content Inventory
A static manifest of every video type, game genre, and content warning surfaced in YTDescGen's editor. Maintained manually — when adding a new option to one of the source files below, **add a row here too** in the same PR.
This file exists for **transparency** — anyone curious about what the editor can describe (without installing the app or reading the source) can scan it in one minute.
**Vietnamese mirror:** [`docs/i18n/vi/CONTENT-INVENTORY.md`](./i18n/vi/CONTENT-INVENTORY.md).
**Source of truth:**
- Video types: [`src/config/video-types.ts`](../src/config/video-types.ts)
- Game genres: [`src/config/genres.ts`](../src/config/genres.ts)
- Content warnings: [`src/config/content-warning-groups.ts`](../src/config/content-warning-groups.ts)
---
## 1. Video types (20)
Each video type drives a dedicated description template + title structure + tag bias. The "Extra fields" column lists fields the editor reveals when this type is selected.
| Icon | Type | Extra fields |
|---|---|---|
| 🎮 | Full Gameplay | — |
| 📂 | Gameplay Part | Part Number |
| 🎬 | Full Demo | — |
| 🎞 | Demo Part | Part Number |
| 👹 | Boss Fight | Boss Name |
| 💀 | Boss No Hit | Boss Name |
| 🏁 | Ending / All Endings | — |
| ⚡ | Speedrun | — |
| 💯 | 100% Completion | — |
| 📦 | DLC Content | DLC Name |
| 🔄 | New Game+ | — |
| 🏆 | Challenge Run | Challenge Name |
| 📌 | Side Quests | — |
| 🔍 | Secrets / Hidden | — |
| ⚖️ | Graphics Comparison | — |
| 📘 | Silent Guide | — |
| 🧩 | Modded Gameplay | Mod Name |
| ⭐ | All Collectibles | — |
| 🔴 | Livestream | Live URL, Scheduled Time |
| 🎴 | Gacha Quest | Quest Type, Chapter Name, Quest Name, Part Number |
---
## 2. Game genres (41)
Selected genres feed the title format, the tag pool, and (when configured in Settings → Genre Playlists) the pinned-comment recommendation.
Bulk-select groups available in the editor: **All RPGs** (rpg + jrpg + action_rpg + crpg), **All Shooters** (fps + arena_shooter + tactical_fps + boomer_shooter + extraction_shooter + shmup), **All Horror** (horror + survival_horror + psychological_horror).
| Icon | Genre |
|---|---|
| ⚔️ | Action / Adventure |
| 🗡 | Hack & Slash |
| 👊 | Beat 'em Up |
| 🦘 | Platformer |
| 👻 | Horror / Survival |
| 🧟 | Survival Horror |
| 🧠 | Psychological Horror |
| 🛡 | RPG |
| 🎎 | JRPG |
| 🏹 | Action RPG |
| 📜 | CRPG / Isometric |
| 🔫 | FPS / Shooter |
| 🎯 | Arena Shooter |
| 🎖 | Tactical FPS |
| 💥 | Boomer Shooter |
| 🎒 | Extraction Shooter |
| 🛸 | SHMUP / Bullet Hell |
| 🌍 | Open World / Sandbox |
| 🕹 | Indie |
| 💀 | Souls-like |
| 🏎 | Racing / Sports |
| 📖 | Story / Narrative |
| 🏗 | Simulation / Strategy |
| 🏙 | City Builder |
| 🥊 | Fighting |
| 🥷 | Stealth / Espionage |
| ⛏ | Survival / Crafting |
| 🎲 | Roguelike / Roguelite |
| 🗺 | Metroidvania |
| 🌐 | MMO / Online |
| 🎵 | Rhythm / Music |
| 🧩 | Puzzle |
| 🏰 | Tower Defense |
| 🃏 | Card Game |
| 🎴 | Deck Builder |
| 🤖 | Auto Battler |
| 🏆 | Battle Royale |
| ♟ | Tactical / Turn-based |
| 🚀 | Space / Sci-Fi |
| 🌾 | Farming / Life Sim |
| 🎬 | FMV / Interactive Movie |
| 💬 | Visual Novel |
---
## 3. Content warnings (187, grouped)
Selected warnings are appended to a `⚠ CONTENT WARNINGS` block in the description, ahead of timestamps. Each group is collapsible in the editor; warnings render in description order = user's selection order.
### Spoilers (6)
Story / ending spoilers · Ending spoilers · True-ending spoilers · Post-game / NG+ spoilers · Secret-ending spoilers · DLC story spoilers
### Photosensitive / Health (6)
Flashing lights · Motion sickness · Migraine trigger · Loud / sudden sounds · Strobe lighting · Heavy screen shake
### Phobias (51)
Jumpscares · Heights (acrophobia) · Holes / clusters (trypophobia) · Deep water (thalassophobia) · Confined spaces (claustrophobia) · Spiders (arachnophobia) · Insects (entomophobia) · Snakes (ophidiophobia) · Dogs (cynophobia) · Darkness (nyctophobia) · Fire (pyrophobia) · Dolls (pediophobia) · Blood (hemophobia) · Clowns (coulrophobia) · Drowning / water immersion (ablutophobia) · Live burial (taphophobia) · Animatronics / mannequins (automatonophobia) · Large objects (megalophobia) · Submerged man-made objects (submechanophobia) · Corpses (necrophobia) · Ghosts (spectrophobia) · Demons (demonophobia) · Sharks (selachophobia) · Germs / contamination (mysophobia) · Vomiting (emetophobia) · Being watched (scopophobia) · Isolation (monophobia) · Mice / rats (musophobia) · Bats (chiroptophobia) · Birds (ornithophobia) · Fish (ichthyophobia) · Reptiles (herpetophobia) · Cockroaches (katsaridaphobia) · Bees / wasps (apiphobia) · Thunder / lightning (astraphobia) · Open spaces (agoraphobia) · Crowds (enochlophobia) · Snow / extreme cold (chionophobia) · Hospitals (nosocomephobia) · Sharp objects (aichmophobia) · Choking / suffocation (pnigophobia) · Fog / mist (homichlophobia) · Tornadoes / hurricanes (lilapsophobia) · Heavy rain (ombrophobia) · Clouds (nephophobia) · Strong wind (ancraophobia) · Extreme cold (cryophobia) · Sunlight (heliophobia) · Large waves (cymophobia) · Lakes / still water (limnophobia) · Rivers / currents (potamophobia)
### Mental health (17)
Anxiety-inducing scenes · Depression themes · Eating disorders · Substance use · Self-harm / suicide · PTSD content · Needles · Body fluids · Pregnancy / birth horror · Illness / infection · Bipolar themes · OCD themes · Panic attacks · Dissociation · Paranoia · Intrusive thoughts · Medical horror
### Social phenomena (20)
Autism / neurodivergence themes · ADHD / executive dysfunction · Hikikomori / social withdrawal · NEET themes · Social anxiety themes · Social isolation / loneliness · Schizophrenia / psychosis · Burnout / overwork · Survivor guilt · Abandonment themes · Parasocial relationships · Gaslighting · Stockholm syndrome · Gaming / gambling addiction · Existential / nihilistic themes · Impostor syndrome · Midlife crisis · Quarter-life crisis · Workplace harassment · Gender-role pressure
### Mature / Sensitive content (61)
Blood and gore · Mature 18+ · Disturbing imagery · Animal cruelty · Violence against minors · Domestic violence · Sexual assault references · Torture · Religious themes · War violence · Discrimination · State / police violence · Smoking / drinking · Detailed killing · Cult / occult · Psychological manipulation · Loss / grief · Kidnapping · Hate speech · Historical atrocities · Slavery themes · Terrorism themes · Bullying themes · Human experimentation · Cannibalism · Nuclear / radiation · Homophobia / anti-LGBTQ+ · Transphobia / anti-trans · Xenophobia / anti-foreigner · Political extremism · Religious extremism / fundamentalism · Genocide / ethnic cleansing · Holy war / sectarian conflict · Holocaust themes · Civil war · Mass / school shootings · Colonialism / imperialism · State propaganda · Surveillance / dystopian state · Conspiracy theories · Censorship themes · Ethnic / racial conflict · Refugee crisis · Revolution / uprising · Political assassination · Coup d'état · Inquisition / religious persecution · Forced labor · Ultranationalism · Hanging / strangulation · Drowning scene · Burning alive / immolation · Asphyxiation / suffocation · Bound / restrained victim · Public execution · Decapitation · Impalement · Mass-casualty event · Vehicular violence · Overdose scene · Falling from height (intentional)
### Heavy horror (12)
Eyes / eyeball clusters · Body horror (flesh distortion) · Distorted / mutilated faces · Cosmic / eldritch horror · Extreme gore / dismemberment · Decay, rot, maggots · Mutilation / amputation · Liminal spaces · Analog horror / VHS · Unreality / distortion · Pursuit / chase · Entity / SCP horror
### Playstyle disclosures (10)
Blind playthrough · No spoilers in chat · Casual / story mode · Hardcore / max difficulty · Permadeath / Iron Man · Speedrun attempt · 100% completionist · Still learning mechanics · First time playing · Returning / NG+
### Gameplay disclosure (4)
Mods used · Cheats / debug · Glitches used · Guide-assisted
---
## 4. Maintenance
When adding a new item to any of the source files:
1. **Video types** → append to [`src/config/video-types.ts`](../src/config/video-types.ts) AND add a row in section 1 above.
2. **Genres** → append to [`src/config/genres.ts`](../src/config/genres.ts) AND add a row in section 2.
3. **Content warnings** → append to the relevant group in [`src/config/content-warning-groups.ts`](../src/config/content-warning-groups.ts) AND add the label to the right group in section 3 — keep the group count in the heading accurate.
4. Update the Vietnamese mirror at [`docs/i18n/vi/CONTENT-INVENTORY.md`](./i18n/vi/CONTENT-INVENTORY.md) in the same PR.
Mismatch between this file and the source files is treated as a documentation bug — open an issue or PR.
+22 -66
View File
@@ -4,84 +4,40 @@
---
## 🎬 Video Types (14 types)
## 🎬 Video Types (20 types)
| ID | Label (EN) | Label (VI) | Label (JA) | Extra Fields |
|----|-----------|------------|------------|--------------|
| `full` | Full Gameplay | Full Gameplay | フルゲームプレイ | — |
| `part` | Gameplay Part | Gameplay Phần | ゲームプレイ パート | `partNumber` |
| `boss` | Boss Fight | Boss Fight | ボス戦 | `bossName` |
| `boss_nohit` | Boss No Hit | Boss No Hit | ボス ノーヒット | `bossName` |
| `ending` | Ending / All Endings | Kết thúc | エンディング | — |
| `speedrun` | Speedrun | Speedrun | スピードラン | — |
| `100percent` | 100% Completion | 100% Completion | 100%クリア | — |
| `dlc` | DLC Content | Nội dung DLC | DLCコンテンツ | `dlcName` |
| `newgame_plus` | New Game+ | New Game+ | 強くてニューゲーム | — |
| `challenge` | Challenge Run | Challenge Run | チャレンジラン | `challengeName` |
| `side_quest` | Side Quests | Nhiệm vụ phụ | サブクエスト | — |
| `secret` | Secrets / Hidden | Bí mật | 隠し要素 | — |
| `comparison` | Graphics Comparison | So sánh đồ họa | グラフィック比較 | — |
| `guide` | Silent Guide | Hướng dẫn | 攻略ガイド | — |
Twenty video types, each driving a dedicated description template, title
structure, and tag bias. The complete table — every type with its icon and
the extra fields the editor reveals — is in
[Content Inventory](./CONTENT-INVENTORY.md).
## 🌐 Languages (12 languages)
## 🌐 Languages (6 shipped)
All six locales ship today — UI strings and description templates fully
translated and parity-validated by `npm run validate:locales`.
### Launch (Phase 1)
| Code | Language | Native Name | Status |
|------|----------|-------------|--------|
| `en` | English | English | ✅ Ready |
| `vi` | Vietnamese | Tiếng Việt | ✅ Ready |
| `ja` | Japanese | 日本語 | ✅ Ready |
| `en` | English | English | ✅ Shipped |
| `vi` | Vietnamese | Tiếng Việt | ✅ Shipped |
| `ja` | Japanese | 日本語 | ✅ Shipped |
| `es` | Spanish | Español | ✅ Shipped |
| `ko` | Korean | 한국어 | ✅ Shipped |
| `zh` | Chinese (Simplified) | 简体中文 | ✅ Shipped |
### Phase 2
| Code | Language | Native Name |
|------|----------|-------------|
| `es` | Spanish | Español |
| `ko` | Korean | 한국어 |
| `zh` | Chinese (Simplified) | 简体中文 |
### Phase 3+
| Code | Language | Native Name |
|------|----------|-------------|
| `fr` | French | Français |
| `de` | German | Deutsch |
| `pt` | Portuguese | Português |
| `ru` | Russian | Русский |
| `th` | Thai | ภาษาไทย |
| `ar` | Arabic | العربية |
Further locales (French, German, Portuguese, Russian, Thai, Arabic) are
tracked in [Roadmap § 5.3](./ROADMAP.md).
Each language requires:
- `ui.json` — UI labels, buttons, placeholders, error messages
- `templates.json` — Title patterns, description sections, CTA text
## 🎮 Game Genres (25 genres)
## 🎮 Game Genres (41 genres)
| ID | Label | Icon | Tag Keywords (sample) |
|----|-------|------|-----------------------|
| `action` | Action / Adventure | ⚔️ | action game, hack and slash, action adventure |
| `horror` | Horror / Survival | 👻 | horror game, survival horror, scary game, psychological horror |
| `rpg` | RPG / JRPG | 🛡 | RPG, JRPG, action RPG, turn based RPG |
| `fps` | FPS / Shooter | 🔫 | FPS, shooter, tactical shooter, third person shooter |
| `openworld` | Open World / Sandbox | 🌍 | open world, sandbox, free roam, exploration |
| `indie` | Indie / Platformer | 🕹 | indie game, platformer, pixel art |
| `soulslike` | Souls-like | 💀 | souls like, soulsborne, boss fight, no death run |
| `racing` | Racing / Sports | 🏎 | racing game, driving sim, sports game |
| `story` | Story / Visual Novel | 📖 | story game, visual novel, narrative game, interactive drama |
| `simulation` | Simulation / Strategy | 🏗 | simulation, city builder, management, tycoon |
| `fighting` | Fighting | 🥊 | fighting game, combo, versus, arcade |
| `stealth` | Stealth / Espionage | 🥷 | stealth game, stealth gameplay, infiltration |
| `survival_craft` | Survival / Crafting | 🏕 | survival game, crafting, base building |
| `mmo` | MMO / Online | 🌐 | MMO, MMORPG, online game, multiplayer |
| `rhythm` | Rhythm / Music | 🎵 | rhythm game, music game, beat game |
| `puzzle` | Puzzle | 🧩 | puzzle game, brain teaser, logic game |
| `roguelike` | Roguelike / Roguelite | 🎲 | roguelike, roguelite, procedural, permadeath |
| `metroidvania` | Metroidvania | 🗺 | metroidvania, exploration, ability unlock |
| `tower_defense` | Tower Defense | 🏰 | tower defense, TD game, strategy |
| `card_game` | Card / Deck Builder | 🃏 | card game, deck builder, TCG |
| `battle_royale` | Battle Royale | 🏆 | battle royale, last man standing, BR |
| `crpg` | CRPG / Isometric | 📜 | CRPG, isometric RPG, classic RPG |
| `tactical` | Tactical / Turn-based | ♟ | tactical, turn based strategy, XCOM-like |
| `space` | Space / Sci-Fi | 🚀 | space game, sci-fi, space exploration |
| `farming` | Farming / Life Sim | 🌾 | farming sim, life sim, cozy game |
Forty-one genres feed the title format, the tag pool, and (when configured
in Settings → Genre Playlists) the pinned-comment playlist recommendation.
The complete list — with icons and bulk-select groups — is in
[Content Inventory](./CONTENT-INVENTORY.md).
## 🛒 Store Platforms (9 platforms)
+1 -1
View File
@@ -51,7 +51,7 @@
- [x] editor/ components: StoreLinkEditor, RigEditor, SocialEditor, WarningToggles
- [x] editor/ components: QuickPreview
- [x] output/ components: OutputPreview, CopyButton, CharCounter, CopyAllBar
- [x] layout/ components: AppShell, Header, TabBar
- [x] layout/ components: AppShell, Header, Sidebar
1.7 Pages
- [x] EditorPage (form + quick preview)
+3 -3
View File
@@ -11,7 +11,7 @@
```jsonc
{
"name": "yt-desc-gen",
"version": "0.1.0",
"version": "0.20.0",
"private": true,
"type": "module",
"scripts": {
@@ -320,7 +320,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: npm
- run: npm ci
- run: npm run typecheck
@@ -353,7 +353,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: npm
- run: npm ci
- run: npm run build
+149
View File
@@ -0,0 +1,149 @@
# Danh mục Nội dung
Bản kê khai tĩnh cho mọi loại video, thể loại game, và cảnh báo nội dung trong editor của YTDescGen. Cập nhật thủ công — khi thêm mục mới vào một trong các file nguồn dưới đây, **thêm dòng tương ứng vào đây** trong cùng PR.
File này tồn tại để **minh bạch** — bất kỳ ai tò mò về việc editor có thể mô tả được gì (mà không cần cài app hay đọc source) đều có thể quét trong một phút.
**Bản gốc tiếng Anh:** [`docs/CONTENT-INVENTORY.md`](../../CONTENT-INVENTORY.md).
**Nguồn tham chiếu (source of truth):**
- Loại video: [`src/config/video-types.ts`](../../../src/config/video-types.ts)
- Thể loại game: [`src/config/genres.ts`](../../../src/config/genres.ts)
- Cảnh báo nội dung: [`src/config/content-warning-groups.ts`](../../../src/config/content-warning-groups.ts)
---
## 1. Loại video (20)
Mỗi loại video kéo theo một template description, cấu trúc title, và tag bias riêng. Cột "Trường bổ sung" liệt kê các trường editor sẽ hiển thị khi chọn loại video tương ứng.
| Icon | Loại | Trường bổ sung |
|---|---|---|
| 🎮 | Gameplay đầy đủ | — |
| 📂 | Gameplay theo phần | Số phần |
| 🎬 | Demo đầy đủ | — |
| 🎞 | Demo theo phần | Số phần |
| 👹 | Đấu trùm | Tên trùm |
| 💀 | Đấu trùm không trúng đòn | Tên trùm |
| 🏁 | Kết thúc / Toàn bộ Ending | — |
| ⚡ | Speedrun | — |
| 💯 | Hoàn thành 100% | — |
| 📦 | Nội dung DLC | Tên DLC |
| 🔄 | New Game+ | — |
| 🏆 | Thử thách | Tên thử thách |
| 📌 | Nhiệm vụ phụ | — |
| 🔍 | Bí mật / Ẩn | — |
| ⚖️ | So sánh đồ họa | — |
| 📘 | Hướng dẫn không lời | — |
| 🧩 | Chơi với Mod | Tên Mod |
| ⭐ | Toàn bộ vật phẩm sưu tầm | — |
| 🔴 | Livestream | URL Live, Thời gian dự kiến |
| 🎴 | Nhiệm vụ Gacha | Loại nhiệm vụ, Tên chapter, Tên quest, Số phần |
---
## 2. Thể loại game (41)
Thể loại được chọn ảnh hưởng đến định dạng title, tag pool, và (khi cấu hình ở Settings → Genre Playlists) gợi ý playlist trong pinned comment.
Các nhóm bulk-select trong editor: **All RPGs** (rpg + jrpg + action_rpg + crpg), **All Shooters** (fps + arena_shooter + tactical_fps + boomer_shooter + extraction_shooter + shmup), **All Horror** (horror + survival_horror + psychological_horror).
| Icon | Thể loại |
|---|---|
| ⚔️ | Hành động / Phiêu lưu |
| 🗡 | Hack & Slash |
| 👊 | Beat 'em Up |
| 🦘 | Platformer |
| 👻 | Kinh dị / Sinh tồn |
| 🧟 | Kinh dị Sinh tồn |
| 🧠 | Kinh dị Tâm lý |
| 🛡 | RPG |
| 🎎 | JRPG |
| 🏹 | Action RPG |
| 📜 | CRPG / Góc nhìn từ trên |
| 🔫 | FPS / Bắn súng |
| 🎯 | Bắn súng Arena |
| 🎖 | Bắn súng Chiến thuật |
| 💥 | Boomer Shooter |
| 🎒 | Extraction Shooter |
| 🛸 | SHMUP / Bullet Hell |
| 🌍 | Thế giới mở / Sandbox |
| 🕹 | Indie |
| 💀 | Souls-like |
| 🏎 | Đua xe / Thể thao |
| 📖 | Cốt truyện |
| 🏗 | Mô phỏng / Chiến thuật |
| 🏙 | Xây thành |
| 🥊 | Đối kháng |
| 🥷 | Lén lút / Gián điệp |
| ⛏ | Sinh tồn / Chế tạo |
| 🎲 | Roguelike / Roguelite |
| 🗺 | Metroidvania |
| 🌐 | MMO / Trực tuyến |
| 🎵 | Âm nhạc / Nhịp điệu |
| 🧩 | Giải đố |
| 🏰 | Tower Defense |
| 🃏 | Bài / Card |
| 🎴 | Deck Builder |
| 🤖 | Auto Battler |
| 🏆 | Battle Royale |
| ♟ | Chiến thuật theo lượt |
| 🚀 | Không gian / Sci-Fi |
| 🌾 | Nông trại / Life Sim |
| 🎬 | FMV / Phim tương tác |
| 💬 | Visual Novel |
---
## 3. Cảnh báo nội dung (187, chia nhóm)
Cảnh báo được chọn sẽ thêm vào khối `⚠ CONTENT WARNINGS` trong description, trước phần timestamp. Mỗi nhóm có thể thu gọn trong editor; cảnh báo hiển thị theo thứ tự người dùng chọn.
### Spoiler (6)
Spoiler cốt truyện / ending · Spoiler ending · Spoiler ending thật · Spoiler hậu game / NG+ · Spoiler ending bí mật · Spoiler cốt truyện DLC
### Sức khỏe / Quang nhạy (6)
Đèn nháy · Say tàu xe · Kích thích migraine · Âm thanh lớn / đột ngột · Hiệu ứng strobe · Rung hình mạnh
### Ám ảnh / Phobia (51)
Jumpscare · Sợ độ cao (acrophobia) · Sợ lỗ / cụm (trypophobia) · Sợ nước sâu (thalassophobia) · Sợ không gian kín (claustrophobia) · Sợ nhện (arachnophobia) · Sợ côn trùng (entomophobia) · Sợ rắn (ophidiophobia) · Sợ chó (cynophobia) · Sợ bóng tối (nyctophobia) · Sợ lửa (pyrophobia) · Sợ búp bê (pediophobia) · Sợ máu (hemophobia) · Sợ chú hề (coulrophobia) · Sợ chết đuối (ablutophobia) · Sợ bị chôn sống (taphophobia) · Hình nhân máy (automatonophobia) · Vật thể khổng lồ (megalophobia) · Vật nhân tạo dưới nước (submechanophobia) · Xác chết (necrophobia) · Ma quỷ (spectrophobia) · Quỷ dữ (demonophobia) · Cá mập (selachophobia) · Vi trùng / ô nhiễm (mysophobia) · Nôn mửa (emetophobia) · Bị nhìn chằm chằm (scopophobia) · Cô lập (monophobia) · Chuột (musophobia) · Dơi (chiroptophobia) · Chim (ornithophobia) · Cá (ichthyophobia) · Bò sát (herpetophobia) · Gián (katsaridaphobia) · Ong (apiphobia) · Sấm sét (astraphobia) · Không gian rộng (agoraphobia) · Đám đông (enochlophobia) · Tuyết / giá lạnh (chionophobia) · Bệnh viện (nosocomephobia) · Vật sắc nhọn (aichmophobia) · Nghẹt thở (pnigophobia) · Sương mù (homichlophobia) · Lốc xoáy / bão (lilapsophobia) · Mưa lớn (ombrophobia) · Mây / trời u ám (nephophobia) · Gió mạnh (ancraophobia) · Cực lạnh (cryophobia) · Ánh nắng gay gắt (heliophobia) · Sóng lớn (cymophobia) · Hồ / nước tĩnh (limnophobia) · Sông / dòng chảy (potamophobia)
### Sức khỏe tâm thần (17)
Cảnh gây lo âu · Trầm cảm · Rối loạn ăn uống · Sử dụng chất kích thích · Tự hại / tự tử · PTSD · Kim tiêm · Dịch cơ thể · Mang thai / sinh nở kinh dị · Bệnh tật / nhiễm trùng · Lưỡng cực · OCD · Hoảng loạn · Phân ly · Hoang tưởng · Suy nghĩ xâm nhập · Y khoa kinh dị
### Hiện tượng tâm lý — xã hội (20)
Tự kỷ / thần kinh đa dạng · ADHD / rối loạn tập trung · Hikikomori / ẩn dật xã hội · NEET (không học không làm) · Lo âu xã hội · Cô lập xã hội / cô đơn · Tâm thần phân liệt / loạn thần · Burnout / kiệt sức · Mặc cảm sống sót · Bị bỏ rơi / sang chấn · Quan hệ parasocial · Gaslighting / thao túng · Hội chứng Stockholm · Nghiện game / cờ bạc · Khủng hoảng hiện sinh · Hội chứng kẻ mạo danh · Khủng hoảng tuổi trung niên · Khủng hoảng tuổi 1/4 · Quấy rối nơi làm việc · Áp lực vai trò giới
### Nội dung nhạy cảm / 18+ (61)
Máu me · 18+ · Hình ảnh gây khó chịu · B*o h*nh động vật · Trẻ em chịu tác động · B*o h*nh gia đình · Tham chiếu x*m h*i t*nh d*c · Tra tấn · Tôn giáo · Tác động vật lý chiến tranh · Phân biệt đối xử · Tác động vật lý từ chính quyền · Hút thuốc / uống rượu · G*ết người chi tiết · Tà giáo / huyền bí · Thao túng tâm lý · Mất mát / đau buồn · Bắt cóc · Phát ngôn thù hận · Tội ác lịch sử · Nô lệ · Khủng bố · Bắt nạt · Thử nghiệm trên người · Ăn thịt người · Hạt nhân / phóng xạ · Kỳ thị người đồng tính / LGBTQ+ (homophobia) · Kỳ thị người chuyển giới (transphobia) · Bài ngoại (xenophobia) · Cực đoan chính trị · Cực đoan tôn giáo / cuồng tín · Diệt chủng / thanh trừng sắc tộc · Thánh chiến / xung đột tôn giáo · Đại nạn Holocaust · Nội chiến · Xả súng hàng loạt / xả súng trường học · Chủ nghĩa thực dân / đế quốc · Tuyên truyền nhà nước · Nhà nước giám sát / dystopia · Thuyết âm mưu · Kiểm duyệt / cấm phát ngôn · Xung đột sắc tộc / chủng tộc · Khủng hoảng tị nạn · Cách mạng / nổi dậy · Ám sát chính trị · Đảo chính · Toà án dị giáo / săn phù thủy · Lao động cưỡng bức · Chủ nghĩa dân tộc cực đoan · Treo c* / siết c* · Cảnh ch*t đuối · Cảnh thiêu s*ng · Cảnh ngạt th* · Bị trói / cầm tù tra tấn · Cảnh hành quyết công khai · Cảnh chặt đầu · Cảnh đâm xuyên cơ thể · Thương vong hàng loạt · Tác động vật lý bằng phương tiện · Cảnh sử dụng quá liều · Ngã / nhảy từ trên cao
### Kinh dị nặng (12)
Mắt / cụm mắt · Body horror (biến dạng cơ thể) · Mặt biến dạng / cắt xén · Kinh dị vũ trụ · Máu me / phân thây cực độ · Phân hủy, thối rữa, dòi bọ · Cắt xẻo / cụt chi · Liminal space · Analog horror / VHS · Phi thực tế / méo mó · Truy đuổi · Thực thể / SCP
### Thông tin về playstyle (10)
Lần đầu chơi (blind) · Không spoiler trong chat · Chế độ easy / story · Chế độ khó cao · Permadeath / Iron Man · Thử speedrun · 100% completionist · Đang học cơ chế · Chơi lần đầu · Chơi lại / NG+
### Thông tin về gameplay (4)
Dùng mod · Bật cheat / debug · Dùng glitch · Có guide hỗ trợ
---
## 4. Bảo trì
Khi thêm mục mới vào bất kỳ file nguồn nào:
1. **Loại video** → thêm vào [`src/config/video-types.ts`](../../../src/config/video-types.ts) VÀ thêm dòng vào mục 1 ở trên.
2. **Thể loại** → thêm vào [`src/config/genres.ts`](../../../src/config/genres.ts) VÀ thêm dòng vào mục 2.
3. **Cảnh báo nội dung** → thêm vào nhóm phù hợp ở [`src/config/content-warning-groups.ts`](../../../src/config/content-warning-groups.ts) VÀ thêm label vào đúng nhóm ở mục 3 — giữ số đếm trong tiêu đề chính xác.
4. Cập nhật cả bản gốc EN tại [`docs/CONTENT-INVENTORY.md`](../../CONTENT-INVENTORY.md) trong cùng PR.
Sai lệch giữa file này và file nguồn được xem là lỗi tài liệu — mở issue hoặc PR.
+14
View File
@@ -0,0 +1,14 @@
{
"$schema": "https://unpkg.com/knip@6/schema.json",
"entry": ["scripts/*.ts", "tests/**/*.test.ts"],
"project": ["src/**/*.{ts,tsx}", "scripts/**/*.ts", "tests/**/*.ts"],
"ignoreExportsUsedInFile": true,
"ignoreDependencies": [
"@tauri-apps/plugin-fs",
"@tauri-apps/plugin-opener",
"@tauri-apps/plugin-shell",
"@testing-library/jest-dom",
"@testing-library/react"
],
"ignoreBinaries": ["tauri"]
}
+1027 -12
View File
File diff suppressed because it is too large. Load diff
+3 -1
View File
@@ -1,6 +1,6 @@
{
"name": "yt-desc-gen",
"version": "0.16.0",
"version": "0.21.0",
"private": true,
"license": "Apache-2.0",
"type": "module",
@@ -13,6 +13,7 @@
"test:coverage": "vitest run --coverage",
"lint": "eslint src/",
"lint:fix": "eslint src/ --fix",
"knip": "knip",
"typecheck": "tsc --noEmit",
"format": "prettier --write \"src/**/*.{ts,tsx,json,css}\"",
"validate:locales": "tsx scripts/validate-locales.ts",
@@ -47,6 +48,7 @@
"autoprefixer": "^10.4.0",
"eslint": "^9.0.0",
"eslint-plugin-react-hooks": "^5.0.0",
"knip": "^6.14.1",
"postcss": "^8.5.14",
"prettier": "^3.3.0",
"prettier-plugin-tailwindcss": "^0.6.0",
+1 -1
View File
@@ -5535,7 +5535,7 @@ dependencies = [
[[package]]
name = "yt-desc-gen"
version = "0.16.0"
version = "0.21.0"
dependencies = [
"serde",
"serde_json",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "yt-desc-gen"
version = "0.16.0"
version = "0.21.0"
description = "YouTube Gameplay Description Generator"
authors = ["poli0981"]
edition = "2021"
+64 -1
View File
@@ -33,6 +33,62 @@ fn ensure_dir(path: String) -> Result<(), String> {
std::fs::create_dir_all(&path).map_err(|e| e.to_string())
}
/// Append `content` to the file at `path`, creating the file (and any
/// missing parent directories) if necessary. Used by the v0.17.0 log
/// persistence pipeline to write JSONL entries one line at a time,
/// rather than rewriting the whole file on every log call. Cheap
/// enough that we can call it on every `addEntry` without batching.
/// The caller is responsible for newline termination — this is a raw
/// byte append, not a line writer.
#[tauri::command]
fn append_to_file(path: String, content: String) -> Result<(), String> {
use std::fs::OpenOptions;
use std::io::Write;
if let Some(parent) = std::path::Path::new(&path).parent() {
std::fs::create_dir_all(parent).map_err(|e| e.to_string())?;
}
let mut file = OpenOptions::new()
.append(true)
.create(true)
.open(&path)
.map_err(|e| e.to_string())?;
file.write_all(content.as_bytes()).map_err(|e| e.to_string())
}
/// List entries in a directory, returning their file names (not full
/// paths). Used by the v0.17.0 log retention sweep to find
/// `ytdescgen-*.jsonl` files older than the configured retention
/// window. Returns an empty vec if the directory doesn't exist
/// (i.e. no logs have been written yet) — first-run safe.
#[tauri::command]
fn list_dir(path: String) -> Result<Vec<String>, String> {
let dir = std::path::Path::new(&path);
if !dir.exists() {
return Ok(Vec::new());
}
let entries = std::fs::read_dir(dir).map_err(|e| e.to_string())?;
let mut names = Vec::new();
for entry in entries.flatten() {
if let Some(name) = entry.file_name().to_str() {
names.push(name.to_string());
}
}
Ok(names)
}
/// Delete a file at `path` if it exists. No-op when the file is
/// missing (used by log retention sweep — racing with another sweep
/// or a manual cleanup shouldn't error). Returns the OS error string
/// on permission failures.
#[tauri::command]
fn delete_file(path: String) -> Result<(), String> {
let p = std::path::Path::new(&path);
if !p.exists() {
return Ok(());
}
std::fs::remove_file(p).map_err(|e| e.to_string())
}
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
// Flag that signals the user has requested a full quit (via tray menu).
@@ -112,7 +168,14 @@ pub fn run() {
}
}
})
.invoke_handler(tauri::generate_handler![save_to_file, read_from_file, ensure_dir])
.invoke_handler(tauri::generate_handler![
save_to_file,
read_from_file,
ensure_dir,
append_to_file,
list_dir,
delete_file
])
.build(tauri::generate_context!())
.expect("error while building tauri application")
.run(move |_app_handle, event| {
+1 -1
View File
@@ -1,7 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/tauri-apps/tauri/dev/crates/tauri-cli/schema.json",
"productName": "YTDescGen",
"version": "0.16.0",
"version": "0.21.0",
"identifier": "com.skullmute.ytdescgen",
"build": {
"beforeBuildCommand": "npm run build",
+40 -1
View File
@@ -7,7 +7,9 @@ import { ErrorBoundary } from "@components/ErrorBoundary";
import { EditorPage } from "@pages/EditorPage";
import { OutputPage } from "@pages/OutputPage";
import { checkDataFileHealth } from "@utils/storage-adapter";
import "@i18n/index";
import { hydrateLogStore } from "@store/log-store";
import { useSettingsStore } from "@store/settings-store";
import i18n from "@i18n/index";
const ProfilesPage = lazy(() =>
import("@pages/ProfilesPage").then((m) => ({ default: m.ProfilesPage })),
@@ -57,6 +59,43 @@ export default function App() {
checkDataFileHealth().then((msg) => {
if (msg) toast(msg, { icon: "⚠️", duration: 5000 });
});
// v0.17.0: hydrate the log store from persisted JSONL files /
// localStorage so prior-session entries surface in the Logs tab
// accordion. Uses the current `logRetentionDays` setting — read
// directly off the store at mount time so we don't rerun on
// every settings tweak.
const retentionDays = useSettingsStore.getState().logRetentionDays;
void hydrateLogStore(retentionDays);
}, []);
// v0.18.0: bridge the persisted `appLanguage` setting back to i18next.
//
// i18n is initialised synchronously at module load with `fallbackLng:
// "en"` and no `lng` field — so on a fresh app boot the UI renders in
// English even when localStorage / settings.json contain a non-English
// preference. Zustand's persist middleware rehydrates the store
// synchronously from localStorage *before* React mounts, and the
// storage-adapter then *asynchronously* reads the Tauri `settings.json`
// and may overwrite the value again. We cover both paths:
//
// 1. Read the current `appLanguage` at mount time and push it into
// i18n — handles the synchronous localStorage hydrate.
// 2. Subscribe to subsequent changes so the async Tauri rehydrate
// (and any future user-driven switch via Header / SettingsPage)
// also propagates. The Header/SettingsPage callsites still call
// `i18n.changeLanguage` directly, which is now redundant but
// harmless — the subscribe is the single source of truth.
useEffect(() => {
const initialLang = useSettingsStore.getState().appLanguage;
if (initialLang && i18n.language !== initialLang) {
void i18n.changeLanguage(initialLang);
}
const unsub = useSettingsStore.subscribe((state, prev) => {
if (state.appLanguage !== prev.appLanguage) {
void i18n.changeLanguage(state.appLanguage);
}
});
return () => unsub();
}, []);
return (
@@ -31,6 +31,7 @@ export function ContentWarningChecklist() {
photosensitive: false,
phobias: false,
mental_health: false,
social_phenomena: false,
sensitive: false,
horror_specific: false,
}));
+27 -2
View File
@@ -3,6 +3,7 @@ import { useTranslation } from "react-i18next";
import { Plus, Minus, AlertTriangle } from "lucide-react";
import { Input } from "@components/ui/Input";
import { Button } from "@components/ui/Button";
import { Select } from "@components/ui/Select";
import {
useEditorStore,
computeContiguousRanges,
@@ -50,6 +51,7 @@ export function EndingsEditor() {
const endings = useEditorStore((s) => s.endings);
const endingVideoCount = useEditorStore((s) => s.endingVideoCount);
const endingVideoRanges = useEditorStore((s) => s.endingVideoRanges);
const endingVideoIndex = useEditorStore((s) => s.endingVideoIndex);
const timestamps = useEditorStore((s) => s.timestamps);
const set = useEditorStore((s) => s.set);
@@ -99,12 +101,17 @@ export function EndingsEditor() {
/** Update the multi-video count (case C). Recomputes default ranges
* on change unless the creator has already customised them — we
* always reset on count change because a manual override at the old
* count is unlikely to make sense at the new one. */
* count is unlikely to make sense at the new one. Also clamps
* `endingVideoIndex` so a shrink doesn't leave us previewing a
* video that no longer exists. */
const setVideoCount = (next: number) => {
if (count === 0) return;
const clamped = Math.max(1, Math.min(count, Math.floor(next)));
set("endingVideoCount", clamped);
set("endingVideoRanges", computeContiguousRanges(count, clamped));
if (endingVideoIndex > clamped) {
set("endingVideoIndex", clamped);
}
};
/** Update one video's `from` / `to` bound (case C). Doesn't enforce
@@ -369,8 +376,26 @@ export function EndingsEditor() {
))}
</ul>
)}
{/* v0.17.1: preview-video selector. Lets the creator
* pick which video's slice the Output renders. Engine
* already respects `endingVideoIndex` for both title +
* description; this just exposes the knob. */}
<Select
label={t("editor.endings.videoIndexLabel")}
options={Array.from({ length: endingVideoCount }, (_, i) => {
const r = endingVideoRanges[i];
const rangeLabel = r ? ` (${r.from}–${r.to})` : "";
return {
value: String(i + 1),
label: `${t("editor.endings.videoLabel")} ${i + 1}${rangeLabel}`,
};
})}
value={String(Math.min(endingVideoIndex, endingVideoCount))}
onChange={(v) => set("endingVideoIndex", Number(v) || 1)}
/>
<p className="text-xs text-text-muted">
{t("editor.endings.multiVideoOutputNote")}
{t("editor.endings.videoIndexHint")}
</p>
</>
)}
+15
View File
@@ -39,6 +39,21 @@ export function GameInfoForm() {
value={store.platform}
onChange={(v) => store.set("platform", v)}
/>
{/*
* Dev/publisher name. v0.21.0 promoted this from a side-label
* under the Publisher store link to a first-class field — it now
* drives the optional `© {publisher}` description line (Settings →
* "Show game studio copyright") and persists in GamePresets,
* which is the common case for series where the publisher
* requires credit across many episodes.
*/}
<Input
label={t("editor.pubDevName")}
placeholder={t("editor.pubDevNamePlaceholder")}
value={store.pubDevName ?? ""}
onChange={(e) => store.set("pubDevName", e.target.value)}
autoComplete="off"
/>
</div>
);
}
+5 -20
View File
@@ -2,7 +2,6 @@ import { useMemo, useState } from "react";
import type { ClipboardEvent } from "react";
import { useTranslation } from "react-i18next";
import toast from "react-hot-toast";
import { Input } from "@components/ui/Input";
import { ValidatedInput } from "@components/ui/ValidatedInput";
import { Select } from "@components/ui/Select";
import { PLATFORMS } from "@config/platforms";
@@ -27,7 +26,6 @@ export function StoreLinkEditor() {
const storeLinks = useEditorStore((s) => s.storeLinks);
const storeLinkTypes = useEditorStore((s) => s.storeLinkTypes);
const gameName = useEditorStore((s) => s.gameName);
const pubDevName = useEditorStore((s) => s.pubDevName);
const setField = useEditorStore((s) => s.set);
const setNested = useEditorStore((s) => s.setNested);
const setStoreLinkType = useEditorStore((s) => s.setStoreLinkType);
@@ -131,14 +129,11 @@ export function StoreLinkEditor() {
{PLATFORMS.map((platform) => {
const currentType = storeLinkTypes[platform.id] ?? "paid";
const url = storeLinks[platform.id] ?? "";
// Publisher / Developer site is the only platform that pairs
// with a free-text name field (rendered below the URL once the
// URL is non-empty). The name becomes a YouTube tag — see
// tag-generator.ts. Keeping the input in this same grid (via
// `col-span-2`) preserves vertical rhythm with the rest of
// the platform rows.
const showPubDevName =
platform.id === "publisher" && url.trim().length > 0;
// v0.21.0: the inline `pubDevName` input that previously
// appeared under the Publisher store link has been promoted
// to a first-class field in `GameInfoForm`, so it can drive
// the optional game-copyright description line independently
// of whether the publisher URL is filled.
return (
<div
key={platform.id}
@@ -161,16 +156,6 @@ export function StoreLinkEditor() {
options={typeOptions}
onChange={(v) => setStoreLinkType(platform.id, v as StoreLinkType)}
/>
{showPubDevName && (
<div className="col-span-2">
<Input
label={t("editor.pubDevName")}
placeholder={t("editor.pubDevNamePlaceholder")}
value={pubDevName ?? ""}
onChange={(e) => setField("pubDevName", e.target.value)}
/>
</div>
)}
</div>
);
})}
@@ -1,6 +1,13 @@
import { useState } from "react";
import { useTranslation } from "react-i18next";
import { Input } from "@components/ui/Input";
import { Select } from "@components/ui/Select";
import { useEditorStore } from "@store/editor-store";
import {
VIETNAMESE_BANKS,
VIETNAMESE_BANK_OTHER,
isCustomVietnameseBank,
} from "@config/vietnamese-banks";
/**
* Vietnam-specific donate fields — bank transfer + e-wallets. The
@@ -13,10 +20,45 @@ import { useEditorStore } from "@store/editor-store";
* output language — we don't want creators to have to flip language
* just to fill in their bank info, and the data is preserved in the
* draft either way.
*
* v0.18.0: when the output language is Vietnamese, the bank-name field
* upgrades to a dropdown sourced from
* {@link VIETNAMESE_BANKS}. Picking "Khác" (Other) reveals an inline
* text input so the field still accepts unlisted / digital-only / less
* common banks. The persisted shape is unchanged — `vnBankName` is
* still a `string` — so saved profiles and exports keep round-tripping.
*/
export function VietnameseDonateEditor() {
const { t } = useTranslation("ui");
const store = useEditorStore();
const language = useEditorStore((s) => s.language);
const vnBankName = useEditorStore((s) => s.vnBankName);
const isVi = language === "vi";
// Sticky flag for the "user explicitly chose Other from the dropdown"
// case. We can't derive it purely from `vnBankName` because the user
// might pick "Other" with the field still empty — at that point the
// value is `""`, which the auto-detector would treat as "use the
// dropdown placeholder". The initial value still uses the auto-detect
// (any non-preset saved name lights up custom mode on mount), so a
// reload of e.g. "Citibank Vietnam" renders correctly without the
// sticky flag needing to be hydrated.
const [otherSticky, setOtherSticky] = useState(
() => isVi && isCustomVietnameseBank(vnBankName ?? ""),
);
const customMode =
isVi && (otherSticky || isCustomVietnameseBank(vnBankName ?? ""));
const selectValue = customMode
? VIETNAMESE_BANK_OTHER
: (vnBankName ?? "");
const bankOptions = [
{ value: "", label: t("editor.vnBankNameSelectPlaceholder") },
...VIETNAMESE_BANKS.map((b) => ({ value: b, label: b })),
{ value: VIETNAMESE_BANK_OTHER, label: t("editor.vnBankNameOther") },
];
return (
<div className="flex flex-col gap-3">
@@ -28,12 +70,39 @@ export function VietnameseDonateEditor() {
</div>
<div className="grid grid-cols-2 gap-3">
<Input
label={t("editor.vnBankName")}
placeholder={t("editor.vnBankNamePlaceholder")}
value={store.vnBankName ?? ""}
onChange={(e) => store.set("vnBankName", e.target.value)}
/>
{isVi ? (
<div className="flex flex-col gap-2">
<Select
label={t("editor.vnBankName")}
options={bankOptions}
value={selectValue}
onChange={(v) => {
if (v === VIETNAMESE_BANK_OTHER) {
// Keep any value the creator already had — pre-existing
// free-form names should survive a Khác re-selection.
setOtherSticky(true);
} else {
setOtherSticky(false);
store.set("vnBankName", v);
}
}}
/>
{customMode && (
<Input
placeholder={t("editor.vnBankNamePlaceholder")}
value={vnBankName ?? ""}
onChange={(e) => store.set("vnBankName", e.target.value)}
/>
)}
</div>
) : (
<Input
label={t("editor.vnBankName")}
placeholder={t("editor.vnBankNamePlaceholder")}
value={vnBankName ?? ""}
onChange={(e) => store.set("vnBankName", e.target.value)}
/>
)}
<Input
label={t("editor.vnBankAccount")}
placeholder={t("editor.vnBankAccountPlaceholder")}
+5 -2
View File
@@ -1,7 +1,8 @@
import { useState } from "react";
import { useRef, useState } from "react";
import { Outlet } from "react-router-dom";
import { Header } from "./Header";
import { Sidebar, SidebarNavList } from "./Sidebar";
import { ScrollToTopButton } from "./ScrollToTopButton";
import { Drawer } from "@components/ui/Drawer";
import { ShortcutHelpModal } from "@components/ui/ShortcutHelpModal";
import { useKeyboardShortcuts } from "@hooks/use-keyboard-shortcuts";
@@ -11,6 +12,7 @@ import { useSettingsStore } from "@store/settings-store";
export function AppShell() {
const [showShortcuts, setShowShortcuts] = useState(false);
const [mobileNavOpen, setMobileNavOpen] = useState(false);
const mainRef = useRef<HTMLElement>(null);
const setSetting = useSettingsStore((s) => s.setSetting);
const collapsed = useSettingsStore((s) => s.sidebarCollapsed);
@@ -25,7 +27,7 @@ export function AppShell() {
<Sidebar />
<div className="flex min-w-0 flex-1 flex-col">
<Header onOpenMobileNav={() => setMobileNavOpen(true)} />
<main className="min-h-0 flex-1 overflow-y-auto">
<main ref={mainRef} className="min-h-0 flex-1 overflow-y-auto">
<Outlet />
</main>
</div>
@@ -38,6 +40,7 @@ export function AppShell() {
<SidebarNavList collapsed={false} onItemClick={() => setMobileNavOpen(false)} />
</Drawer>
<ShortcutHelpModal open={showShortcuts} onClose={() => setShowShortcuts(false)} />
<ScrollToTopButton scrollRef={mainRef} />
</div>
);
}
@@ -0,0 +1,77 @@
import { useEffect, useState, type RefObject } from "react";
import { useLocation } from "react-router-dom";
import { useTranslation } from "react-i18next";
import { ArrowUp } from "lucide-react";
import clsx from "clsx";
interface ScrollToTopButtonProps {
/** The scrollable container to watch and scroll back to the top. */
scrollRef: RefObject<HTMLElement>;
}
/** Scroll distance (px) past which the button fades in. */
const SHOW_AFTER_PX = 300;
/**
* Floating "back to top" button, fixed to the bottom-right of the
* viewport. Fades in once the app's scroll container is scrolled past
* {@link SHOW_AFTER_PX} and smooth-scrolls back on click.
*
* The scroll container is the `<main>` element (see AppShell), not the
* window — so the listener and `scrollTo` both target the passed ref.
*/
export function ScrollToTopButton({ scrollRef }: ScrollToTopButtonProps) {
const { t } = useTranslation("ui");
const location = useLocation();
const [visible, setVisible] = useState(false);
useEffect(() => {
const el = scrollRef.current;
if (!el) return;
let ticking = false;
const update = () => {
setVisible(el.scrollTop > SHOW_AFTER_PX);
ticking = false;
};
const onScroll = () => {
if (ticking) return;
ticking = true;
requestAnimationFrame(update);
};
// Re-evaluate on mount and whenever the route changes — the same
// <main> persists across tabs, so scrollTop does not reset itself.
update();
el.addEventListener("scroll", onScroll, { passive: true });
return () => el.removeEventListener("scroll", onScroll);
}, [scrollRef, location.pathname]);
function scrollToTop() {
const el = scrollRef.current;
if (!el) return;
const reduceMotion = window.matchMedia(
"(prefers-reduced-motion: reduce)",
).matches;
el.scrollTo({ top: 0, behavior: reduceMotion ? "auto" : "smooth" });
}
return (
<button
type="button"
onClick={scrollToTop}
aria-label={t("common.scrollToTop")}
aria-hidden={!visible}
tabIndex={visible ? 0 : -1}
className={clsx(
"fixed bottom-6 right-6 z-40 flex h-touch w-touch items-center justify-center",
"rounded-full border border-border bg-surface-1 text-text-primary shadow-lg",
"transition-opacity duration-200 hover:bg-surface-2",
"focus:outline-none focus-visible:ring-2 focus-visible:ring-accent",
visible ? "opacity-100" : "pointer-events-none opacity-0",
)}
>
<ArrowUp className="h-5 w-5" />
</button>
);
}
+9
View File
@@ -4,6 +4,7 @@ import { Upload, Pencil, Trash2 } from "lucide-react";
import { Button } from "@components/ui/Button";
import { ConfirmDialog } from "@components/ui/ConfirmDialog";
import { useEditorStore } from "@store/editor-store";
import { useSettingsStore } from "@store/settings-store";
import { usePresetStore, type GamePreset } from "@store/preset-store";
import { GENRES } from "@config/genres";
import { PresetSaveForm } from "./PresetSaveForm";
@@ -15,6 +16,7 @@ interface PresetCardProps {
export function PresetCard({ preset }: PresetCardProps) {
const { t } = useTranslation("ui");
const loadPreset = useEditorStore((s) => s.loadPreset);
const setSetting = useSettingsStore((s) => s.setSetting);
const deletePreset = usePresetStore((s) => s.deletePreset);
const [showDelete, setShowDelete] = useState(false);
const [showEdit, setShowEdit] = useState(false);
@@ -28,7 +30,14 @@ export function PresetCard({ preset }: PresetCardProps) {
storeLinks: { ...preset.storeLinks },
spoilerWarning: preset.spoilerWarning,
matureWarning: preset.matureWarning,
pubDevName: preset.pubDevName ?? "",
});
// v0.21.0: same pattern as PresetSelector — only flip the setting
// when the preset explicitly carries it, so older presets don't
// silently reset a user's preference on first load.
if (preset.showGameCopyright !== undefined) {
setSetting("showGameCopyright", preset.showGameCopyright);
}
};
const genreDefs = preset.genres
@@ -4,6 +4,7 @@ import { Modal } from "@components/ui/Modal";
import { Button } from "@components/ui/Button";
import { Input } from "@components/ui/Input";
import { useEditorStore } from "@store/editor-store";
import { useSettingsStore } from "@store/settings-store";
import { usePresetStore, type GamePreset } from "@store/preset-store";
interface PresetSaveFormProps {
@@ -15,6 +16,7 @@ interface PresetSaveFormProps {
export function PresetSaveForm({ open, onClose, editPreset }: PresetSaveFormProps) {
const { t } = useTranslation("ui");
const editor = useEditorStore();
const showGameCopyrightSetting = useSettingsStore((s) => s.showGameCopyright);
const { addPreset, updatePreset } = usePresetStore();
const [gameName, setGameName] = useState(editPreset?.gameName ?? editor.gameName);
@@ -28,6 +30,8 @@ export function PresetSaveForm({ open, onClose, editPreset }: PresetSaveFormProp
storeLinks: editPreset?.storeLinks ?? { ...editor.storeLinks },
spoilerWarning: editPreset?.spoilerWarning ?? editor.spoilerWarning,
matureWarning: editPreset?.matureWarning ?? editor.matureWarning,
pubDevName: editPreset?.pubDevName ?? editor.pubDevName,
showGameCopyright: editPreset?.showGameCopyright ?? showGameCopyrightSetting,
};
if (editPreset) {
+10
View File
@@ -2,11 +2,13 @@ import { useTranslation } from "react-i18next";
import { Select } from "@components/ui/Select";
import { usePresetStore } from "@store/preset-store";
import { useEditorStore } from "@store/editor-store";
import { useSettingsStore } from "@store/settings-store";
export function PresetSelector() {
const { t } = useTranslation("ui");
const presets = usePresetStore((s) => s.presets);
const loadPreset = useEditorStore((s) => s.loadPreset);
const setSetting = useSettingsStore((s) => s.setSetting);
if (presets.length === 0) return null;
@@ -27,7 +29,15 @@ export function PresetSelector() {
storeLinks: { ...preset.storeLinks },
spoilerWarning: preset.spoilerWarning,
matureWarning: preset.matureWarning,
pubDevName: preset.pubDevName ?? "",
});
// v0.21.0: pull the per-preset toggle into the global setting so the
// description re-renders with the right credit obligation. Missing
// means "leave the user's setting alone" — older presets don't carry
// this field.
if (preset.showGameCopyright !== undefined) {
setSetting("showGameCopyright", preset.showGameCopyright);
}
};
return <Select label={t("presets.selectPreset")} options={options} value="" onChange={handleSelect} />;
+96
View File
@@ -64,6 +64,41 @@ export const CONTENT_WARNING_GROUPS: readonly ContentWarningGroup[] = [
"coulrophobia",
"ablutophobia",
"taphophobia",
"automatonophobia",
"megalophobia",
"submechanophobia",
"necrophobia",
"spectrophobia",
"demonophobia",
"selachophobia",
"mysophobia",
"emetophobia",
"scopophobia",
"monophobia",
"musophobia",
"chiroptophobia",
"ornithophobia",
"ichthyophobia",
"herpetophobia",
"katsaridaphobia",
"apiphobia",
"astraphobia",
"agoraphobia",
"enochlophobia",
"chionophobia",
"nosocomephobia",
"aichmophobia",
"pnigophobia",
"homichlophobia",
"lilapsophobia",
"ombrophobia",
"nephophobia",
"ancraophobia",
"cryophobia",
"heliophobia",
"cymophobia",
"limnophobia",
"potamophobia",
],
},
{
@@ -89,6 +124,32 @@ export const CONTENT_WARNING_GROUPS: readonly ContentWarningGroup[] = [
"medical_horror",
],
},
{
id: "social_phenomena",
labelKey: "editor.contentWarningGroups.social_phenomena",
items: [
"autism_themes",
"adhd_themes",
"hikikomori",
"neet_themes",
"social_anxiety_themes",
"social_isolation",
"schizophrenia_themes",
"burnout_themes",
"survivor_guilt",
"abandonment_themes",
"parasocial_themes",
"gaslighting_themes",
"stockholm_syndrome",
"behavioral_addiction",
"existential_crisis",
"impostor_syndrome",
"midlife_crisis",
"quarter_life_crisis",
"workplace_harassment",
"masculinity_pressure",
],
},
{
id: "sensitive",
labelKey: "editor.contentWarningGroups.sensitive",
@@ -119,6 +180,41 @@ export const CONTENT_WARNING_GROUPS: readonly ContentWarningGroup[] = [
"human_experimentation",
"cannibalism",
"nuclear_themes",
"homophobia",
"transphobia",
"xenophobia",
"political_extremism",
"religious_extremism",
"genocide",
"holy_war",
"holocaust_themes",
"civil_war",
"mass_shooting",
"colonialism",
"propaganda",
"dystopian_state",
"conspiracy_theories",
"censorship_themes",
"ethnic_conflict",
"refugee_crisis",
"revolution_themes",
"assassination",
"coup_themes",
"inquisition",
"forced_labor",
"ultranationalism",
"hanging_depiction",
"drowning_depiction",
"burning_alive",
"asphyxiation_depiction",
"restraint_torture",
"public_execution",
"decapitation",
"impalement",
"mass_casualty_event",
"vehicular_violence",
"overdose_depiction",
"defenestration",
],
},
{
+3
View File
@@ -104,6 +104,8 @@ export interface EditorDefaults {
endingVideoCount: number;
/** Per-video ending range (v0.16.0). */
endingVideoRanges: EndingVideoRange[];
/** Which per-video slice the Output previews (v0.17.1). */
endingVideoIndex: number;
/** Language-patch enum for Playthrough Notes section (v0.12). */
languagePatch: LanguagePatch;
/** Free-form label when `languagePatch` is `"official_other"` or `"custom"`. */
@@ -187,6 +189,7 @@ export const DEFAULTS = {
endings: [],
endingVideoCount: 1,
endingVideoRanges: [],
endingVideoIndex: 1,
languagePatch: "none",
languagePatchCustom: "",
gameVersion: "full_release",
+2 -11
View File
@@ -24,7 +24,7 @@
* "gaming GPUs" in the discrete-card sense.
*/
export interface GpuSeries {
interface GpuSeries {
/** Stable id used in the storage tuple (`<brandId>|<seriesId>|<model>`). */
readonly id: string;
readonly label: string;
@@ -253,13 +253,4 @@ export const GPU_CUSTOM_BRAND_ID = "custom";
*/
export function findGpuBrand(brandId: string): GpuBrand | undefined {
return GPU_CATALOG.find((b) => b.id === brandId);
}
/**
* Lookup a series within a known brand. Returns `undefined` for both
* unknown brand and unknown series; the caller decides whether to clear
* the downstream model selection or preserve it.
*/
export function findGpuSeries(brandId: string, seriesId: string): GpuSeries | undefined {
return findGpuBrand(brandId)?.series.find((s) => s.id === seriesId);
}
}
-2
View File
@@ -99,5 +99,3 @@ export const PLATFORMS: readonly PlatformConfig[] = [
urlPattern: /^https:\/\/[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+(?:\/[^\s]*)?$/i,
},
] as const;
export type PlatformId = (typeof PLATFORMS)[number]["id"];
+6 -8
View File
@@ -25,13 +25,13 @@ import {
* may opt into a free-text "Custom" override; the stored format is
* pipe-delimited in the order parts are declared.
*/
export type RigFieldType =
type RigFieldType =
| "text"
| "dropdown_with_version"
| "cascading_dropdown"
| "composite_dropdown";
export interface RigFieldOption {
interface RigFieldOption {
readonly value: string;
/** Display label (not translated — software names are brand-preserved). */
readonly label: string;
@@ -50,7 +50,7 @@ export interface CompositePart {
readonly customPlaceholder?: string;
}
export interface CompositeFieldSpec {
interface CompositeFieldSpec {
readonly parts: readonly CompositePart[];
/**
* Format the stored parts into the description-output string. Receives
@@ -79,7 +79,7 @@ export interface RigField {
* Order loosely reflects popularity among no-commentary gameplay
* creators. Add new entries here — the UI picks them up automatically.
*/
export const VIDEO_EDITOR_OPTIONS: readonly RigFieldOption[] = [
const VIDEO_EDITOR_OPTIONS: readonly RigFieldOption[] = [
{ value: "", label: "—" },
{ value: "davinci_resolve", label: "DaVinci Resolve" },
{ value: "davinci_resolve_studio", label: "DaVinci Resolve Studio" },
@@ -95,7 +95,7 @@ export const VIDEO_EDITOR_OPTIONS: readonly RigFieldOption[] = [
];
/** RAM size options in GB. `custom` opens a numeric free-text input. */
export const RAM_SIZE_OPTIONS: readonly RigFieldOption[] = [
const RAM_SIZE_OPTIONS: readonly RigFieldOption[] = [
{ value: "", label: "—" },
{ value: "4", label: "4 GB" },
{ value: "6", label: "6 GB" },
@@ -112,7 +112,7 @@ export const RAM_SIZE_OPTIONS: readonly RigFieldOption[] = [
/** DDR generation. DDR1 stays in the list for legacy gear; users with
* unusual rigs (DDR6/DDR7) can pick early-spec options. */
export const RAM_DDR_OPTIONS: readonly RigFieldOption[] = [
const RAM_DDR_OPTIONS: readonly RigFieldOption[] = [
{ value: "", label: "—" },
{ value: "DDR1", label: "DDR1" },
{ value: "DDR2", label: "DDR2" },
@@ -175,8 +175,6 @@ export const RIG_FIELDS: readonly RigField[] = [
},
];
export type RigFieldId = (typeof RIG_FIELDS)[number]["id"];
/**
* Parse a cascading-dropdown stored value into its three segments.
* Empty segments stay as empty strings. Pipeless legacy values are
-3
View File
@@ -19,6 +19,3 @@ export const SOCIAL_FIELDS = [
{ id: "fb_group", label: "Facebook Group", labelKey: "social.fb_group", urlPrefix: "https://facebook.com/groups/", category: "social" },
{ id: "website", label: "Website", labelKey: "social.website", urlPrefix: "", category: "social" },
] as const;
export type SocialFieldId = (typeof SOCIAL_FIELDS)[number]["id"];
export type SocialCategory = "donate" | "social";
+77
View File
@@ -0,0 +1,77 @@
/**
* Vietnamese banks dropdown options for the donate / Vietnam-specific
* bank field. Sourced from the State Bank of Vietnam's published list
* (sbv.gov.vn) of operating credit institutions as of 2026: Big 4
* state-owned commercial banks, top 22 joint-stock commercial banks
* (TMCP) by retail presence, and the four most-recognised 100%
* foreign-owned banks operating in Vietnam.
*
* Order is intentional, not alphabetical: Big 4 first (highest brand
* recognition for retail transfers), then the dominant private TMCP
* banks roughly by retail footprint, then the foreign banks. A
* sentinel `__other__` option is appended by the editor component
* itself so the renderer can surface a fall-through text input for
* banks the creator's audience uses that aren't on the list (e.g.
* regional / digital-only banks).
*
* Values double as labels — the bank's common Vietnamese display name
* is what gets persisted into the editor draft and rendered into the
* Vietnamese donate block. Keep the string spellings stable: changing
* one would silently turn a previously-saved profile into a "custom"
* entry on next render. If a bank rebrands (e.g. LienVietPostBank →
* LPBank in 2024), add the new name and keep the old as an alias in
* a separate constant rather than mutating in place.
*/
export const VIETNAMESE_BANKS = [
// Big 4 state-owned commercial banks
"Vietcombank",
"BIDV",
"VietinBank",
"Agribank",
// Top joint-stock commercial banks (TMCP), roughly by retail presence
"Techcombank",
"MB Bank",
"ACB",
"VPBank",
"TPBank",
"Sacombank",
"HDBank",
"VIB",
"SHB",
"Eximbank",
"OCB",
"MSB",
"LPBank",
"SeABank",
"ABBank",
"BAC A Bank",
"PVcomBank",
"NCB",
"Nam A Bank",
"KienlongBank",
"Saigonbank",
"VietABank",
"Vietbank",
"BVBank",
// 100% foreign-owned banks with the strongest retail presence in VN
"HSBC Vietnam",
"Standard Chartered",
"Shinhan Bank",
"UOB Vietnam",
] as const;
/** Sentinel select-option value the editor uses to surface a fall-through
* text input. Kept as a non-bank-name string so a real bank could
* never collide with it. */
export const VIETNAMESE_BANK_OTHER = "__other__" as const;
/**
* True when `value` is a non-empty string that doesn't match any preset
* bank — i.e. the editor should render the custom text input below the
* select. Pure helper so the conditional logic in
* `VietnameseDonateEditor` stays declarative.
*/
export function isCustomVietnameseBank(value: string): boolean {
if (!value) return false;
return !(VIETNAMESE_BANKS as readonly string[]).includes(value);
}
+21
View File
@@ -188,6 +188,13 @@ export interface BuildDescriptionOptions {
/** When true, appends a localised usage-policy block after the
* copyright line. */
showUsagePolicy?: boolean;
/** When true and `input.pubDevName` is non-empty, emits a single-line
* `© {publisher}. All rights reserved.` block right after the Store
* Links section. Used when the game's dev/publisher contractually
* requires a copyright credit in the description (v0.21.0). Decoupled
* from `storeLinks.publisher` — renders even if the publisher URL is
* blank, since the obligation is to credit the IP holder by name. */
showGameCopyright?: boolean;
/** When true and both `sponsorName` and `sponsorPlatform` are set,
* emits a "🎁 Thanks to …" credit line above the music section. */
showSponsorCredit?: boolean;
@@ -212,6 +219,7 @@ export function buildDescription(
showUsagePolicy = false,
showSponsorCredit = false,
showThirdPartyAds = false,
showGameCopyright = false,
tEn,
} = options;
const sections: string[] = [];
@@ -327,6 +335,19 @@ export function buildDescription(
}
}
// 4.5 Game copyright — opt-in line crediting the dev/publisher right
// under the store links (v0.21.0). Decoupled from any specific
// store-link URL: as long as `pubDevName` is set AND the toggle is
// on, the credit renders. Used by creators who cover games whose
// publishers contractually require attribution in the description.
if (showGameCopyright && input.pubDevName && input.pubDevName.trim()) {
sections.push(
t("description.sections.gameCopyright", {
publisher: input.pubDevName.trim(),
}),
);
}
// 5. Video Settings — skipped entirely for 2D / pixel-art / no-in-game-
// settings games (the user toggles that explicitly; v0.8 phase 2 also
// auto-suggests it on certain genres but the toggle is the source of
+1 -17
View File
@@ -14,9 +14,7 @@ import type { EndingEntry, EndingVideoRange, GeneratorInput } from "./types";
* require routing through i18next from a pure module. Templates can
* still override the surrounding bullet label via
* `description.playthroughNotes.labels.endings` — only the per-entry
* "Ending N" prefix stays in English. (Title interpolation runs in
* the same module via {@link formatSingleEndingForTitle} for the same
* reason.)
* "Ending N" prefix stays in English.
*
* Pure — exported for unit tests + direct use from React components.
*/
@@ -76,17 +74,3 @@ export function clampRange(
const to = Math.max(from, Math.min(range.to, length));
return { from, to };
}
/**
* Return a single string suitable for interpolation into a video
* title's `{{endingLabel}}` slot. Currently identical to
* {@link formatEndingEntry} for a single entry; defined separately so
* future per-locale title-formatting tweaks (e.g. Vietnamese "Kết thúc
* 3" instead of "Ending 3") have a single chokepoint.
*
* Returns `null` when no usable label can be produced — callers
* should fall back to the unbranded ending title in that case.
*/
export function formatSingleEndingForTitle(entry: EndingEntry): string | null {
return formatEndingEntry(entry);
}
-5
View File
@@ -23,11 +23,6 @@ export interface PlaylistInput {
playlistNote?: string;
}
export interface PlaylistOutput {
title: string;
description: string;
}
export function buildPlaylistTitle(input: PlaylistInput, t: TranslationFn): string {
const statusText = t(`playlist.status.${input.status}`);
return t("playlist.titleFormat", {
+25 -6
View File
@@ -14,18 +14,35 @@ const COMPOSITE_NAME_BUDGET = YT_LIMITS.SINGLE_TAG_MAX - 9;
const QUALIFIER_SUFFIX_RE =
/[:\s]+(?:Definitive|Complete|Collector'?s?|Deluxe|Game\s+of\s+the\s+Year|GOTY|Ultimate|Special|Anniversary|Remastered|Remake|Enhanced|HD)(?:\s+(?:Edition|Cut|Version))?\s*$/i;
/**
* Strips characters that YouTube treats as tag delimiters (`,` `;` `|`) plus
* trademark marks, then collapses whitespace. Game names containing these
* delimiters (e.g. "Hello, World") would otherwise produce composite tags
* like "Hello, World gameplay" that YouTube splits at the comma.
*
* Pure — exported for testing.
*/
export function sanitizeForTag(name: string): string {
return name
.replace(/[™®©]/g, "")
.replace(/[,;|]/g, " ")
.replace(/\s+/g, " ")
.trim();
}
/**
* Returns a shortened, tag-friendly form of `name` whose length is ≤ `budget`.
*
* Strips trademark marks, then iteratively peels off common edition
* qualifiers ("Definitive Edition", "Remastered", "GOTY", …). If the result
* is still over budget, drops everything after the first colon. Falls back
* to picking leading whole words that fit.
* Sanitizes via {@link sanitizeForTag} (trademark + tag-delimiter strip),
* then iteratively peels off common edition qualifiers ("Definitive Edition",
* "Remastered", "GOTY", …). If the result is still over budget, drops
* everything after the first colon. Falls back to picking leading whole
* words that fit.
*
* Pure — exported for testing.
*/
export function tagFriendlyGameName(name: string, budget: number): string {
let n = name.replace(/[™®©]/g, "").trim();
let n = sanitizeForTag(name);
let prev: string;
do {
prev = n;
@@ -355,7 +372,9 @@ export interface TagOptions {
export function generateTags(input: GeneratorInput, options?: TagOptions): string[] {
const { includeMultilingualTags = true, includeTrendingTags = true } = options ?? {};
const rawName = input.gameNameLocalized?.[input.language] ?? input.gameName;
const rawName = sanitizeForTag(
input.gameNameLocalized?.[input.language] ?? input.gameName,
);
// Two friendly forms of the game name:
// • bareNameTag — fits the per-tag 30-char limit; always added so the
+8
View File
@@ -47,6 +47,13 @@ export interface RenderOptions extends TagOptions {
* music section (v0.11).
*/
showThirdPartyAds?: boolean;
/**
* When true and the editor's `pubDevName` is non-empty, the description
* emits a `© {publisher}. All rights reserved.` line right after the
* Store Links block (v0.21.0). Opt-in — meant for games whose
* dev/publisher contractually requires attribution in the description.
*/
showGameCopyright?: boolean;
/**
* Optional English-fixed translation function. Used by the v0.11
* unified content-warnings block to render bilingual lines
@@ -73,6 +80,7 @@ export function renderAll(
showUsagePolicy: options?.showUsagePolicy,
showSponsorCredit: options?.showSponsorCredit,
showThirdPartyAds: options?.showThirdPartyAds,
showGameCopyright: options?.showGameCopyright,
tEn: options?.tEn,
});
const tags = generateTags(input, options);
+1 -1
View File
@@ -4,7 +4,7 @@ import type { SupportedLanguage, TranslationFn } from "./types";
* Canonical keyword IDs recognized by the parser. Each corresponds to a
* translation key under `timeline.keywords.*` in templates.json.
*/
export type TimelineKeyword =
type TimelineKeyword =
| "chapter"
| "part"
| "boss"
+106 -7
View File
@@ -12,6 +12,8 @@ import {
GACHA_PART_SUFFIX_STYLES,
type GachaQuestType,
} from "@config/gacha-quest-types";
import { formatEndingEntry, sliceEndingsForVideo } from "./endings-format";
import type { EndingEntry } from "./types";
/**
* Compact "[2K 60FPS]" badge appended to the video-type segment when the
@@ -169,6 +171,91 @@ export function buildGachaPartSuffix(
return resolved && resolved !== key ? resolved : "";
}
/**
* Build the video-type segment of the title when `videoType === "ending"`
* AND the creator has filled at least one structured {@link EndingEntry}
* (v0.17.0). Three tiers, picked by what's available:
*
* 1. Single entry → `formatEndingEntry()` (e.g. `"Ending 3: Best End"`,
* `"Ending 3"`, or `"Best End"`).
* 2. Multiple entries, every entry has a non-empty `name` → comma-join
* the names. Plays well with multi-route VN-style endings where
* the creator cares more about the named routes than the ordinals.
* 3. Multiple entries, every entry has a `number` AND they form a
* contiguous run → `"Endings {from}–{to}"` via locale key
* `title.endingLabel.range`. Tightest visible label for batched
* ending playthroughs ("Endings 1–3" / "Kết thúc 1–3").
* 4. Mixed / non-contiguous fallback → `"{count} Endings"` via
* `title.endingLabel.count`.
*
* Returns `null` when no structured data is usable, signalling the
* caller to fall back to the legacy locale-string label
* (`title.videoType.ending` = "Ending"). This keeps existing single-
* ending creators byte-identical post-migration.
*
* Slicing: respects `endingVideoIndex` + `endingVideoRanges` so a
* per-video title for case C renders only that video's slice of
* endings. The Output page passes the index when looping over
* `endingVideoCount`; bare generation (no index) sees the union.
*/
function buildStructuredEndingLabel(
input: GeneratorInput,
t: TranslationFn,
): string | null {
const endings: EndingEntry[] = input.endings ?? [];
if (endings.length === 0) return null;
const sliced = sliceEndingsForVideo(endings, input);
// Drop entries that have neither number nor a non-empty name — they
// produce no visible label and would dilute the comma-join / count.
const usable = sliced.filter((e) => {
const hasNumber =
typeof e.number === "number" && Number.isFinite(e.number);
const hasName = (e.name ?? "").trim().length > 0;
return hasNumber || hasName;
});
if (usable.length === 0) return null;
if (usable.length === 1) {
const only = usable[0];
return only ? formatEndingEntry(only) : null;
}
// Multi-entry: prefer named comma-join when every entry has a name.
const allHaveNames = usable.every((e) => (e.name ?? "").trim().length > 0);
if (allHaveNames) {
return usable.map((e) => e.name.trim()).join(", ");
}
// Numbered + contiguous → range form. Sort + scan adjacent diffs to
// detect contiguity so an out-of-order entry list ([3, 1, 2]) still
// collapses to "Endings 1–3".
const numbers = usable
.map((e) => e.number)
.filter((n): n is number => typeof n === "number" && Number.isFinite(n));
if (numbers.length === usable.length) {
const sorted = [...numbers].sort((a, b) => a - b);
const isContiguous = sorted.every(
(n, i) => i === 0 || n === (sorted[i - 1] as number) + 1,
);
if (isContiguous) {
const from = sorted[0] as number;
const to = sorted[sorted.length - 1] as number;
const key = "title.endingLabel.range";
const resolved = t(key, { from: String(from), to: String(to) });
if (resolved && resolved !== key) return resolved;
// Fallback if the locale hasn't migrated yet — keep behaviour sane.
return `Endings ${from}–${to}`;
}
}
// Mixed / non-contiguous: report count.
const key = "title.endingLabel.count";
const resolved = t(key, { count: String(usable.length) });
if (resolved && resolved !== key) return resolved;
return `${usable.length} Endings`;
}
export function buildTitle(
input: GeneratorInput,
t: TranslationFn,
@@ -220,13 +307,25 @@ export function buildTitle(
});
}
const videoTypeLabel = t(`title.videoType.${input.videoType}`, {
partNumber: input.partNumber ?? "",
bossName: input.bossName ?? "",
dlcName: input.dlcName ?? "",
challengeName: input.challengeName ?? "",
modName: input.modName ?? "",
});
// v0.17.0: when the creator has filled structured endings, replace
// the static "Ending" label with a context-aware one (single entry
// surfaces the ending's name, multi-entry collapses to a name list /
// contiguous range / count). Falls back to the locale string when no
// structured data is usable, so the legacy single-ending creators
// who haven't migrated see byte-identical output.
let videoTypeLabel: string;
if (input.videoType === "ending") {
const structured = buildStructuredEndingLabel(input, t);
videoTypeLabel = structured ?? t("title.videoType.ending");
} else {
videoTypeLabel = t(`title.videoType.${input.videoType}`, {
partNumber: input.partNumber ?? "",
bossName: input.bossName ?? "",
dlcName: input.dlcName ?? "",
challengeName: input.challengeName ?? "",
modName: input.modName ?? "",
});
}
return composeTitle({
gameName,
+1 -1
View File
@@ -1,7 +1,7 @@
import type { GeneratorInput, TranslationFn } from "./types";
import { buildQualityBadge } from "./title-builder";
export type TitleVariantId = "default" | "typeFirst" | "qualityFirst";
type TitleVariantId = "default" | "typeFirst" | "qualityFirst";
export interface TitleVariant {
id: TitleVariantId;
+99 -9
View File
@@ -285,6 +285,43 @@ export const CONTENT_WARNINGS = [
"coulrophobia",
"ablutophobia",
"taphophobia",
// Phobias — extended (v0.19.0)
"automatonophobia",
"megalophobia",
"submechanophobia",
"necrophobia",
"spectrophobia",
"demonophobia",
"selachophobia",
"mysophobia",
"emetophobia",
"scopophobia",
"monophobia",
"musophobia",
"chiroptophobia",
"ornithophobia",
"ichthyophobia",
"herpetophobia",
"katsaridaphobia",
"apiphobia",
"astraphobia",
"agoraphobia",
"enochlophobia",
"chionophobia",
"nosocomephobia",
"aichmophobia",
"pnigophobia",
// Phobias — weather (v0.20.0)
"homichlophobia",
"lilapsophobia",
"ombrophobia",
"nephophobia",
"ancraophobia",
"cryophobia",
"heliophobia",
"cymophobia",
"limnophobia",
"potamophobia",
// Mental health
"anxiety_inducing",
"depression_themes",
@@ -303,6 +340,27 @@ export const CONTENT_WARNINGS = [
"paranoia_themes",
"intrusive_thoughts",
"medical_horror",
// Social phenomena (v0.20.0)
"autism_themes",
"adhd_themes",
"hikikomori",
"neet_themes",
"social_anxiety_themes",
"social_isolation",
"schizophrenia_themes",
"burnout_themes",
"survivor_guilt",
"abandonment_themes",
"parasocial_themes",
"gaslighting_themes",
"stockholm_syndrome",
"behavioral_addiction",
"existential_crisis",
"impostor_syndrome",
"midlife_crisis",
"quarter_life_crisis",
"workplace_harassment",
"masculinity_pressure",
// Mature / sensitive
"blood_gore",
"mature_18plus",
@@ -330,6 +388,47 @@ export const CONTENT_WARNINGS = [
"human_experimentation",
"cannibalism",
"nuclear_themes",
// Discrimination / bigotry (v0.19.0)
"homophobia",
"transphobia",
"xenophobia",
// Sensitive — political / religion / war (v0.20.0)
"political_extremism",
"religious_extremism",
"genocide",
"holy_war",
"holocaust_themes",
"civil_war",
"mass_shooting",
"colonialism",
"propaganda",
"dystopian_state",
"conspiracy_theories",
"censorship_themes",
"ethnic_conflict",
"refugee_crisis",
"revolution_themes",
"assassination",
"coup_themes",
"inquisition",
"forced_labor",
"ultranationalism",
// Sensitive — method-specific death/violence depictions (v0.21.0).
// YouTube auto-moderation is harsher on these specific scenes than on
// generic "blood / gore" or "violence" labels, so they get their own
// toggles for accurate creator-side disclosure.
"hanging_depiction",
"drowning_depiction",
"burning_alive",
"asphyxiation_depiction",
"restraint_torture",
"public_execution",
"decapitation",
"impalement",
"mass_casualty_event",
"vehicular_violence",
"overdose_depiction",
"defenestration",
// Heavy-horror specific (v0.13.1)
"eye_horror",
"body_horror",
@@ -663,15 +762,6 @@ export interface TranslationFn {
(key: string, options?: Record<string, string>): string;
}
/**
* Optional second translation function, fixed to English. Used by the
* description-builder to render the bilingual content-warning block
* (v0.11): each line becomes `{EN} · {output-language}`. The engine
* stays framework-agnostic — the caller (use-generated-output) builds it
* via i18next's `getFixedT("en", "templates")` and passes it in.
*/
export type EnglishTranslationFn = TranslationFn;
/**
* Where the quality-badge ("[2K]") sits relative to the other title segments:
* - "middle" → attached to the video-type segment (v0.6 behavior)
+1 -1
View File
@@ -3,7 +3,7 @@ import toast from "react-hot-toast";
import { useTranslation } from "react-i18next";
import { logger } from "@utils/logger";
export interface CopyOptions {
interface CopyOptions {
limit?: number;
fieldLabel?: string;
}
+7
View File
@@ -71,6 +71,13 @@ export function buildGeneratorInputFromEditor(
endings: state.endings,
endingVideoCount: state.endingVideoCount,
endingVideoRanges: state.endingVideoRanges,
// v0.17.1: only forward the index when the playthrough is
// actually split across multiple videos. Single-video mode
// means the engine should see the union (the slice helpers
// already short-circuit on `videoCount <= 1`, but skipping the
// pass-through here keeps the input cleaner for tests).
endingVideoIndex:
state.endingVideoCount > 1 ? state.endingVideoIndex : undefined,
languagePatch: state.languagePatch,
languagePatchCustom: state.languagePatchCustom,
gameVersion: state.gameVersion,
-12
View File
@@ -1,12 +0,0 @@
import { useState, useEffect } from "react";
export function useDebounce<T>(value: T, delay: number): T {
const [debouncedValue, setDebouncedValue] = useState(value);
useEffect(() => {
const timer = setTimeout(() => setDebouncedValue(value), delay);
return () => clearTimeout(timer);
}, [value, delay]);
return debouncedValue;
}
+3
View File
@@ -15,6 +15,7 @@ export function useGeneratedOutput(): GeneratorOutput {
showCopyright,
showUsagePolicy,
showSponsorCredit,
showGameCopyright,
showThirdPartyAds,
titleFormat,
} = useSettingsStore();
@@ -35,6 +36,7 @@ export function useGeneratedOutput(): GeneratorOutput {
showCopyright,
showUsagePolicy,
showSponsorCredit,
showGameCopyright,
showThirdPartyAds,
titleFormat,
tEn,
@@ -50,6 +52,7 @@ export function useGeneratedOutput(): GeneratorOutput {
showCopyright,
showUsagePolicy,
showSponsorCredit,
showGameCopyright,
showThirdPartyAds,
titleFormat,
],
+3
View File
@@ -17,6 +17,7 @@ export function useMultilangOutput(
showCopyright,
showUsagePolicy,
showSponsorCredit,
showGameCopyright,
titleFormat,
} = useSettingsStore();
@@ -33,6 +34,7 @@ export function useMultilangOutput(
showCopyright,
showUsagePolicy,
showSponsorCredit,
showGameCopyright,
titleFormat,
});
}
@@ -47,6 +49,7 @@ export function useMultilangOutput(
showCopyright,
showUsagePolicy,
showSponsorCredit,
showGameCopyright,
titleFormat,
]);
}
-2
View File
@@ -23,8 +23,6 @@ export const SUPPORTED_LANGUAGES = [
{ id: "zh", label: "Chinese", flag: "🇨🇳", nativeName: "简体中文" },
] as const;
export type SupportedLanguageId = (typeof SUPPORTED_LANGUAGES)[number]["id"];
i18n.use(initReactI18next).init({
resources: {
en: { ui: enUI, templates: enTemplates },
+23 -8
View File
@@ -32,7 +32,7 @@
"gpu_brand", "gpu_series", "gpu_model", "gpu_custom",
"ram_size", "ram_ddr",
"vnDonate", "vnDonateHelp",
"vnBankName", "vnBankNamePlaceholder",
"vnBankName", "vnBankNamePlaceholder", "vnBankNameSelectPlaceholder", "vnBankNameOther",
"vnBankAccount", "vnBankAccountPlaceholder",
"vnBankHolder", "vnBankHolderPlaceholder",
"vnMomo", "vnMomoPlaceholder",
@@ -96,7 +96,8 @@
"numberLabel", "nameLabel", "namePlaceholder",
"previewLabel", "previewEmpty",
"emptyHint", "addOne", "removeLast",
"videoRangeHint", "multiVideoOutputNote"
"videoRangeHint", "multiVideoOutputNote",
"videoIndexLabel", "videoIndexHint"
],
"editor.endings.warnings": [
"singleEmpty", "timelineShort",
@@ -110,16 +111,22 @@
"not_no_hit_run", "not_clean_walkthrough", "casual_no_commentary", "many_deaths_patience", "slow_exploration", "puzzle_stuck_possible", "grinding_cut", "not_speedrun_relaxed",
"exploration_focus_skip_combat", "edited_for_pacing", "support_developers", "online_connectivity_issues"
],
"editor.contentWarningGroups": ["spoilers", "photosensitive", "phobias", "mental_health", "sensitive", "playstyle", "horror_specific", "gameplay_disclosure"],
"editor.contentWarningGroups": ["spoilers", "photosensitive", "phobias", "mental_health", "social_phenomena", "sensitive", "playstyle", "horror_specific", "gameplay_disclosure"],
"editor.contentWarningOptions": [
"spoiler_story", "spoiler_ending", "spoiler_true_ending", "spoiler_post_game", "spoiler_secret_ending", "spoiler_dlc",
"flashing_lights", "motion_sickness", "migraine_trigger", "loud_noises", "strobe_effects", "screen_shake_intense",
"jump_scares", "acrophobia", "trypophobia", "thalassophobia", "claustrophobia", "arachnophobia", "entomophobia", "ophidiophobia",
"cynophobia", "nyctophobia", "pyrophobia", "pediophobia", "hemophobia", "coulrophobia", "ablutophobia", "taphophobia",
"automatonophobia", "megalophobia", "submechanophobia", "necrophobia", "spectrophobia", "demonophobia", "selachophobia", "mysophobia", "emetophobia", "scopophobia", "monophobia", "musophobia", "chiroptophobia", "ornithophobia", "ichthyophobia", "herpetophobia", "katsaridaphobia", "apiphobia", "astraphobia", "agoraphobia", "enochlophobia", "chionophobia", "nosocomephobia", "aichmophobia", "pnigophobia",
"homichlophobia", "lilapsophobia", "ombrophobia", "nephophobia", "ancraophobia", "cryophobia", "heliophobia", "cymophobia", "limnophobia", "potamophobia",
"anxiety_inducing", "depression_themes", "eating_disorders", "substance_use", "self_harm", "ptsd_themes", "needles", "body_fluids", "pregnancy_horror", "illness_themes",
"bipolar_themes", "ocd_themes", "panic_attacks", "dissociation", "paranoia_themes", "intrusive_thoughts", "medical_horror",
"autism_themes", "adhd_themes", "hikikomori", "neet_themes", "social_anxiety_themes", "social_isolation", "schizophrenia_themes", "burnout_themes", "survivor_guilt", "abandonment_themes", "parasocial_themes", "gaslighting_themes", "stockholm_syndrome", "behavioral_addiction", "existential_crisis", "impostor_syndrome", "midlife_crisis", "quarter_life_crisis", "workplace_harassment", "masculinity_pressure",
"blood_gore", "mature_18plus", "disturbing_imagery", "animal_abuse", "child_harm", "domestic_violence", "sexual_assault", "torture", "religion_themes", "war_violence", "discrimination", "police_violence", "smoking_drinking", "detailed_killing", "cult_occult", "psychological_manipulation", "grief_loss", "kidnapping",
"hate_speech", "historical_atrocity", "slavery_themes", "terrorism_themes", "bullying_themes", "human_experimentation", "cannibalism", "nuclear_themes",
"homophobia", "transphobia", "xenophobia",
"political_extremism", "religious_extremism", "genocide", "holy_war", "holocaust_themes", "civil_war", "mass_shooting", "colonialism", "propaganda", "dystopian_state", "conspiracy_theories", "censorship_themes", "ethnic_conflict", "refugee_crisis", "revolution_themes", "assassination", "coup_themes", "inquisition", "forced_labor", "ultranationalism",
"hanging_depiction", "drowning_depiction", "burning_alive", "asphyxiation_depiction", "restraint_torture", "public_execution", "decapitation", "impalement", "mass_casualty_event", "vehicular_violence", "overdose_depiction", "defenestration",
"blind_playthrough", "no_spoilers_chat", "casual_difficulty", "hardcore_difficulty", "permadeath_run", "speedrun_attempt", "completionist_run", "learning_mechanics", "first_time_playing", "returning_player",
"eye_horror", "body_horror", "face_horror", "cosmic_horror", "extreme_gore", "decay_rot", "mutilation", "liminal_spaces", "analog_horror", "unreality_themes", "pursuit_chase", "entity_horror",
"mods_used", "cheats_enabled", "glitch_exploits", "assisted_run"
@@ -140,11 +147,12 @@
"thumbnailText", "copyThumbnailText",
"pinnedComment", "copyPinnedComment",
"pinnedCommentTemplate", "copyPinnedCommentTemplate",
"generateAlternatives", "saveAsTemplate"
"generateAlternatives", "saveAsTemplate",
"previewingVideo"
],
"output.variants": ["default", "typeFirst", "qualityFirst"],
"output.copy": ["overLimit", "fieldGeneric", "failed"],
"common": ["save", "cancel", "delete", "confirm", "export", "import", "reset", "search", "generate", "undo", "dismiss"],
"common": ["save", "cancel", "delete", "confirm", "export", "import", "reset", "search", "generate", "undo", "dismiss", "scrollToTop"],
"videoTypes": ["full", "part", "full_demo", "demo_part", "boss", "boss_nohit", "ending", "speedrun", "100percent", "dlc", "newgame_plus", "challenge", "side_quest", "secret", "comparison", "guide", "mods", "collectibles", "livestream", "gacha_quest"],
"genres": ["action", "hack_slash", "beatemup", "platformer", "horror", "survival_horror", "psychological_horror", "rpg", "jrpg", "action_rpg", "crpg", "fps", "arena_shooter", "tactical_fps", "boomer_shooter", "extraction_shooter", "shmup", "openworld", "indie", "soulslike", "racing", "story", "simulation", "city_builder", "fighting", "stealth", "survival_craft", "roguelike", "metroidvania", "mmo", "rhythm", "puzzle", "tower_defense", "card_game", "deck_builder", "auto_battler", "battle_royale", "tactical", "space", "farming", "fmv", "visual_novel"],
"rig": ["cpu", "gpu", "ram", "storage", "monitor", "capture", "motherboard", "controller", "video_editor"],
@@ -155,17 +163,18 @@
"presets": ["title", "createNew", "editPreset", "loadPreset", "deleteConfirm", "emptyState", "selectPreset", "noPresets", "exportPresets", "importPresets"],
"templates": ["title", "createNew", "saveAsTemplate", "templateName", "templateNamePlaceholder", "loadTemplate", "deleteConfirm", "emptyState", "saveHint", "savedAs", "appliedToast", "exportTemplates", "importTemplates"],
"history": ["title", "emptyState", "clearAll", "clearConfirm", "searchPlaceholder"],
"settings": ["title", "appearance", "defaults", "editorSettings", "tagSettings", "historySettings", "theme", "appLanguage", "defaultOutputLanguage", "defaultGenre", "showCharCount", "compactTagDisplay", "historyLimit", "multilingualTags", "trendingTags", "hashtagCount", "showQualityBadge", "showCopyright", "showUsagePolicy", "showSponsorCredit", "showThirdPartyAds", "thirdPartyAdsHint", "titleFormatTitle", "descriptionSettingsTitle", "badgePosition", "badgePositionPrefix", "badgePositionMiddle", "badgePositionSuffix", "titleSeparator", "titleSeparatorEmDash", "titleSeparatorHyphen", "titleSeparatorColon", "titleSeparatorPipe", "badgeCase", "badgeCaseUpper", "badgeCaseLower", "showPinnedCommentTemplate", "pinnedCommentIncludeAskNextGame", "pinnedCommentIncludeGenrePlaylist", "genrePlaylistsTitle", "genrePlaylistsHelp", "genrePlaylistsEmptyHint"],
"settings": ["title", "appearance", "defaults", "editorSettings", "tagSettings", "historySettings", "theme", "appLanguage", "defaultOutputLanguage", "defaultGenre", "showCharCount", "compactTagDisplay", "historyLimit", "multilingualTags", "trendingTags", "hashtagCount", "showQualityBadge", "showCopyright", "showGameCopyright", "showGameCopyrightHint", "showUsagePolicy", "showSponsorCredit", "showThirdPartyAds", "thirdPartyAdsHint", "titleFormatTitle", "descriptionSettingsTitle", "badgePosition", "badgePositionPrefix", "badgePositionMiddle", "badgePositionSuffix", "titleSeparator", "titleSeparatorEmDash", "titleSeparatorHyphen", "titleSeparatorColon", "titleSeparatorPipe", "badgeCase", "badgeCaseUpper", "badgeCaseLower", "showPinnedCommentTemplate", "pinnedCommentIncludeAskNextGame", "pinnedCommentIncludeGenrePlaylist", "genrePlaylistsTitle", "genrePlaylistsHelp", "genrePlaylistsEmptyHint", "logSettings", "logRetentionDays", "logRetentionHint"],
"batch": ["title", "startPart", "endPart", "generateBatch", "copyAllBatch", "emptyState"],
"shortcuts": ["title", "generate", "copyAll", "saveDraft", "toggleSidebar", "help", "close", "searchPlaceholder", "noResults"],
"validation": ["emailInvalid", "emailMaxExceeded", "urlInvalid", "urlPrefixMismatch", "playlistUrlInvalid"],
"logs": ["title", "emptyState", "clearAll", "clearConfirm", "searchPlaceholder"],
"logs": ["title", "emptyState", "clearAll", "clearConfirm", "clearPersistedConfirm", "clearSession", "searchPlaceholder", "exportJson", "exportTxt", "sessionCurrent", "sessionLabel", "entriesShort"],
"playlist": ["title", "status", "contentType", "totalVideos", "customNote", "generatePlaylist"]
},
"templates": {
"title": ["separator", "suffix"],
"title.separators": ["emDash", "hyphen", "colon", "pipe"],
"title.videoType": ["full", "part", "full_demo", "demo_part", "boss", "boss_nohit", "ending", "speedrun", "100percent", "dlc", "newgame_plus", "challenge", "side_quest", "secret", "comparison", "guide", "mods", "collectibles", "livestream", "gacha_quest"],
"title.endingLabel": ["range", "count"],
"title.gachaQuestType": [
"main_story", "world_quest", "side_quest", "spinoff_quest", "companion_quest", "bond_quest",
"event", "anniversary", "crossover", "dating_event",
@@ -185,7 +194,7 @@
],
"description": ["noCommentaryLine"],
"description.sections": [
"timestamps", "storeLinksBuy", "storeLinksDownload", "videoSettings", "rig",
"timestamps", "storeLinksBuy", "storeLinksDownload", "gameCopyright", "videoSettings", "rig",
"modList", "vnDonate",
"sponsorCredit", "thirdPartyAds", "music", "donate", "social",
"playlist", "contact", "cta",
@@ -211,10 +220,16 @@
"flashing_lights", "motion_sickness", "migraine_trigger", "loud_noises", "strobe_effects", "screen_shake_intense",
"jump_scares", "acrophobia", "trypophobia", "thalassophobia", "claustrophobia", "arachnophobia", "entomophobia", "ophidiophobia",
"cynophobia", "nyctophobia", "pyrophobia", "pediophobia", "hemophobia", "coulrophobia", "ablutophobia", "taphophobia",
"automatonophobia", "megalophobia", "submechanophobia", "necrophobia", "spectrophobia", "demonophobia", "selachophobia", "mysophobia", "emetophobia", "scopophobia", "monophobia", "musophobia", "chiroptophobia", "ornithophobia", "ichthyophobia", "herpetophobia", "katsaridaphobia", "apiphobia", "astraphobia", "agoraphobia", "enochlophobia", "chionophobia", "nosocomephobia", "aichmophobia", "pnigophobia",
"homichlophobia", "lilapsophobia", "ombrophobia", "nephophobia", "ancraophobia", "cryophobia", "heliophobia", "cymophobia", "limnophobia", "potamophobia",
"anxiety_inducing", "depression_themes", "eating_disorders", "substance_use", "self_harm", "ptsd_themes", "needles", "body_fluids", "pregnancy_horror", "illness_themes",
"bipolar_themes", "ocd_themes", "panic_attacks", "dissociation", "paranoia_themes", "intrusive_thoughts", "medical_horror",
"autism_themes", "adhd_themes", "hikikomori", "neet_themes", "social_anxiety_themes", "social_isolation", "schizophrenia_themes", "burnout_themes", "survivor_guilt", "abandonment_themes", "parasocial_themes", "gaslighting_themes", "stockholm_syndrome", "behavioral_addiction", "existential_crisis", "impostor_syndrome", "midlife_crisis", "quarter_life_crisis", "workplace_harassment", "masculinity_pressure",
"blood_gore", "mature_18plus", "disturbing_imagery", "animal_abuse", "child_harm", "domestic_violence", "sexual_assault", "torture", "religion_themes", "war_violence", "discrimination", "police_violence", "smoking_drinking", "detailed_killing", "cult_occult", "psychological_manipulation", "grief_loss", "kidnapping",
"hate_speech", "historical_atrocity", "slavery_themes", "terrorism_themes", "bullying_themes", "human_experimentation", "cannibalism", "nuclear_themes",
"homophobia", "transphobia", "xenophobia",
"political_extremism", "religious_extremism", "genocide", "holy_war", "holocaust_themes", "civil_war", "mass_shooting", "colonialism", "propaganda", "dystopian_state", "conspiracy_theories", "censorship_themes", "ethnic_conflict", "refugee_crisis", "revolution_themes", "assassination", "coup_themes", "inquisition", "forced_labor", "ultranationalism",
"hanging_depiction", "drowning_depiction", "burning_alive", "asphyxiation_depiction", "restraint_torture", "public_execution", "decapitation", "impalement", "mass_casualty_event", "vehicular_violence", "overdose_depiction", "defenestration",
"blind_playthrough", "no_spoilers_chat", "casual_difficulty", "hardcore_difficulty", "permadeath_run", "speedrun_attempt", "completionist_run", "learning_mechanics", "first_time_playing", "returning_player",
"eye_horror", "body_horror", "face_horror", "cosmic_horror", "extreme_gore", "decay_rot", "mutilation", "liminal_spaces", "analog_horror", "unreality_themes", "pursuit_chase", "entity_horror",
"mods_used", "cheats_enabled", "glitch_exploits", "assisted_run"
+97 -2
View File
@@ -30,6 +30,10 @@
"livestream": "🔴 LIVE",
"gacha_quest": ""
},
"endingLabel": {
"range": "Endings {{from}}–{{to}}",
"count": "{{count}} Endings"
},
"gachaQuestType": {
"main_story": "{{gameName}} — {{chapterName}}{{partSuffix}}",
"world_quest": "{{gameName}} — World Quest: {{questName}}",
@@ -104,6 +108,7 @@
"timestamps": "⏱ TIMESTAMPS",
"storeLinksBuy": "🎮 GET THE GAME (if you want to buy)",
"storeLinksDownload": "⬇️ DOWNLOAD THE GAME (if you want to play)",
"gameCopyright": "© {{publisher}}. All rights reserved. Game and all related intellectual property belong to {{publisher}}.",
"videoSettings": "🖥 VIDEO SETTINGS",
"rig": "💻 MY RIG",
"modList": "🧩 MOD LIST",
@@ -116,7 +121,7 @@
"playlist": "▶️ Watch the full series: {{link}}",
"contact": "📧 Business inquiries: {{email}}",
"cta": "👍 Like | 🔔 Subscribe | ↗️ Share",
"copyright": "© {{year}} {{channelName}}. All rights reserved.",
"copyright": "© {{year}} {{channelName}} — Video content only. Game, characters, music, and all related intellectual property belong to their respective owners. All rights reserved on this recording.",
"usagePolicyHeader": "📋 USAGE POLICY",
"usagePolicy": "• Always credit with a link to the original video AND channel (at minimum in the description).\n• Don't re-upload the full video or large portions as your own content.\n• Don't monetize footage without explicit consent.\n• Don't edit footage to misrepresent the original content or creator.\n• Compilation, review, commentary, and reaction videos are OK — as long as you credit.\nIf in doubt, reach out via the social links or email in the description."
},
@@ -272,6 +277,34 @@
"coulrophobia": "Clowns / clown-like figures",
"ablutophobia": "Drowning / extended water immersion",
"taphophobia": "Live burial / coffin / tomb confinement",
"automatonophobia": "Animatronics, mannequins, lifelike human figures",
"megalophobia": "Large objects / colossal structures / giant entities",
"submechanophobia": "Submerged man-made objects — sunken ships, underwater machinery",
"necrophobia": "Corpses, dead bodies, the undead",
"spectrophobia": "Ghosts, apparitions, mirror scares",
"demonophobia": "Demons / evil spirits / the occult",
"selachophobia": "Sharks / shark attacks",
"mysophobia": "Germs, contamination, infection imagery",
"emetophobia": "Vomiting / depicted nausea",
"scopophobia": "Being watched / stared at by entities",
"monophobia": "Isolation / being completely alone",
"musophobia": "Mice and rats",
"chiroptophobia": "Bats / bat swarms",
"ornithophobia": "Birds / bird swarms",
"ichthyophobia": "Fish / deep-sea creatures",
"herpetophobia": "Reptiles — lizards and crawling creatures",
"katsaridaphobia": "Cockroaches / swarming insects",
"apiphobia": "Bees, wasps, and stinging insects",
"astraphobia": "Thunder, lightning, and storms",
"agoraphobia": "Open, exposed, or inescapable spaces",
"enochlophobia": "Dense crowds",
"chionophobia": "Snow / extreme cold environments",
"nosocomephobia": "Hospitals and medical facilities",
"aichmophobia": "Sharp objects — blades, knives, needles",
"pnigophobia": "Choking / suffocation / smothering",
"homophobia": "Homophobia / anti-LGBTQ+ themes or slurs",
"transphobia": "Transphobia / anti-transgender themes or slurs",
"xenophobia": "Xenophobia / anti-foreigner or anti-immigrant themes",
"paranoia_themes": "Paranoia / surveillance themes",
"intrusive_thoughts": "Intrusive-thought sequences",
"medical_horror": "Medical / surgical procedure horror",
@@ -288,7 +321,69 @@
"mods_used": "Gameplay mods enabled",
"cheats_enabled": "Cheats / debug commands used",
"glitch_exploits": "Intentional glitch usage / sequence-breaking",
"assisted_run": "Guide-assisted — not a blind run"
"assisted_run": "Guide-assisted — not a blind run",
"homichlophobia": "Fog / mist / low-visibility weather",
"lilapsophobia": "Tornadoes / hurricanes / severe storms",
"ombrophobia": "Heavy rain / downpour scenes",
"nephophobia": "Ominous clouds / overcast skies",
"ancraophobia": "Strong wind / gale-force conditions",
"cryophobia": "Extreme cold / sub-zero environments",
"heliophobia": "Bright sunlight / intense sun exposure",
"cymophobia": "Large waves / rough seas",
"limnophobia": "Lakes and still bodies of water",
"potamophobia": "Rivers / strong currents",
"autism_themes": "Autism / neurodivergence themes",
"adhd_themes": "ADHD / executive dysfunction depictions",
"hikikomori": "Hikikomori / extreme social withdrawal",
"neet_themes": "NEET / not-in-education-or-employment themes",
"social_anxiety_themes": "Social anxiety depictions",
"social_isolation": "Social isolation / loneliness themes",
"schizophrenia_themes": "Schizophrenia / psychosis depictions",
"burnout_themes": "Burnout / chronic overwork themes",
"survivor_guilt": "Survivor guilt depictions",
"abandonment_themes": "Abandonment / abandonment trauma",
"parasocial_themes": "Parasocial relationships / unhealthy fixation",
"gaslighting_themes": "Gaslighting / psychological abuse",
"stockholm_syndrome": "Stockholm syndrome / captor bonding",
"behavioral_addiction": "Gambling / gaming addiction themes",
"existential_crisis": "Existential crisis / nihilistic themes",
"impostor_syndrome": "Impostor syndrome themes",
"midlife_crisis": "Midlife crisis themes",
"quarter_life_crisis": "Quarter-life crisis themes",
"workplace_harassment": "Workplace harassment / toxic environment",
"masculinity_pressure": "Gender-role and masculinity pressure",
"political_extremism": "Political extremism / radical ideologies",
"religious_extremism": "Religious extremism / fundamentalism",
"genocide": "Genocide / ethnic cleansing",
"holy_war": "Holy war / sectarian religious conflict",
"holocaust_themes": "Holocaust / WWII atrocity themes",
"civil_war": "Civil war / internal armed conflict",
"mass_shooting": "Mass shooting / school shooting depictions",
"colonialism": "Colonialism / imperialism themes",
"propaganda": "State propaganda / media manipulation",
"dystopian_state": "Surveillance / dystopian authoritarian state",
"conspiracy_theories": "Conspiracy theories as plot themes",
"censorship_themes": "Censorship / press suppression themes",
"ethnic_conflict": "Ethnic / racial conflict",
"refugee_crisis": "Refugee crisis / forced displacement",
"revolution_themes": "Revolution / uprising / civil unrest",
"assassination": "Political assassination",
"coup_themes": "Coup d'état / military takeover",
"inquisition": "Inquisition / religious persecution / witch hunts",
"forced_labor": "Forced labor / labor camps",
"ultranationalism": "Ultranationalism / chauvinist themes",
"hanging_depiction": "Hanging / strangulation scene",
"drowning_depiction": "Drowning scene",
"burning_alive": "Burning alive / immolation",
"asphyxiation_depiction": "Asphyxiation / suffocation scene",
"restraint_torture": "Bound or restrained victim during torture",
"public_execution": "Public execution scene",
"decapitation": "Decapitation",
"impalement": "Impalement",
"mass_casualty_event": "Mass-casualty event (attack, disaster)",
"vehicular_violence": "Vehicular violence / intentional ramming",
"overdose_depiction": "Overdose scene",
"defenestration": "Falling from height (intentional)"
}
},
"graphics": {
+114 -5
View File
@@ -144,6 +144,8 @@
"vnDonateHelp": "Only rendered into the description when output language is Vietnamese.",
"vnBankName": "Bank name",
"vnBankNamePlaceholder": "e.g. Vietcombank, MB Bank, Techcombank",
"vnBankNameSelectPlaceholder": "— Select bank —",
"vnBankNameOther": "Other (type manually)",
"vnBankAccount": "Account number",
"vnBankAccountPlaceholder": "e.g. 0123456789",
"vnBankHolder": "Account holder",
@@ -312,6 +314,7 @@
"photosensitive": "Photosensitive / Health",
"phobias": "Phobias",
"mental_health": "Mental health",
"social_phenomena": "Social phenomena",
"sensitive": "Mature / Sensitive content",
"playstyle": "Playstyle disclosures",
"horror_specific": "Heavy horror",
@@ -398,6 +401,34 @@
"coulrophobia": "Clowns (coulrophobia)",
"ablutophobia": "Drowning / water immersion",
"taphophobia": "Live burial",
"automatonophobia": "Animatronics / mannequins",
"megalophobia": "Large objects / colossi",
"submechanophobia": "Submerged man-made objects",
"necrophobia": "Corpses / the dead",
"spectrophobia": "Ghosts / apparitions",
"demonophobia": "Demons / evil spirits",
"selachophobia": "Sharks",
"mysophobia": "Germs / contamination",
"emetophobia": "Vomiting",
"scopophobia": "Being watched / stared at",
"monophobia": "Isolation / being alone",
"musophobia": "Mice / rats",
"chiroptophobia": "Bats",
"ornithophobia": "Birds",
"ichthyophobia": "Fish",
"herpetophobia": "Reptiles",
"katsaridaphobia": "Cockroaches",
"apiphobia": "Bees / wasps",
"astraphobia": "Thunder / lightning",
"agoraphobia": "Open / exposed spaces",
"enochlophobia": "Crowds",
"chionophobia": "Snow / extreme cold",
"nosocomephobia": "Hospitals",
"aichmophobia": "Sharp objects / blades",
"pnigophobia": "Choking / suffocation",
"homophobia": "Homophobia / anti-LGBTQ+ content",
"transphobia": "Transphobia / anti-trans content",
"xenophobia": "Xenophobia / anti-foreigner content",
"paranoia_themes": "Paranoia",
"intrusive_thoughts": "Intrusive thoughts",
"medical_horror": "Medical horror",
@@ -414,7 +445,69 @@
"mods_used": "Mods used",
"cheats_enabled": "Cheats / debug",
"glitch_exploits": "Glitches used",
"assisted_run": "Guide-assisted"
"assisted_run": "Guide-assisted",
"homichlophobia": "Fog / mist",
"lilapsophobia": "Tornadoes / hurricanes",
"ombrophobia": "Heavy rain / storms",
"nephophobia": "Clouds",
"ancraophobia": "Strong wind",
"cryophobia": "Extreme cold",
"heliophobia": "Sunlight / bright sun",
"cymophobia": "Large waves",
"limnophobia": "Lakes / still water",
"potamophobia": "Rivers / currents",
"autism_themes": "Autism / neurodivergence themes",
"adhd_themes": "ADHD / executive dysfunction",
"hikikomori": "Hikikomori / social withdrawal",
"neet_themes": "NEET themes",
"social_anxiety_themes": "Social anxiety themes",
"social_isolation": "Social isolation / loneliness",
"schizophrenia_themes": "Schizophrenia / psychosis",
"burnout_themes": "Burnout / overwork",
"survivor_guilt": "Survivor guilt",
"abandonment_themes": "Abandonment themes",
"parasocial_themes": "Parasocial relationships",
"gaslighting_themes": "Gaslighting",
"stockholm_syndrome": "Stockholm syndrome",
"behavioral_addiction": "Gaming / gambling addiction",
"existential_crisis": "Existential / nihilistic themes",
"impostor_syndrome": "Impostor syndrome",
"midlife_crisis": "Midlife crisis",
"quarter_life_crisis": "Quarter-life crisis",
"workplace_harassment": "Workplace harassment",
"masculinity_pressure": "Gender-role pressure",
"political_extremism": "Political extremism",
"religious_extremism": "Religious extremism / fundamentalism",
"genocide": "Genocide / ethnic cleansing",
"holy_war": "Holy war / sectarian conflict",
"holocaust_themes": "Holocaust themes",
"civil_war": "Civil war",
"mass_shooting": "Mass / school shootings",
"colonialism": "Colonialism / imperialism",
"propaganda": "State propaganda",
"dystopian_state": "Surveillance / dystopian state",
"conspiracy_theories": "Conspiracy theories",
"censorship_themes": "Censorship themes",
"ethnic_conflict": "Ethnic / racial conflict",
"refugee_crisis": "Refugee crisis / displacement",
"revolution_themes": "Revolution / uprising",
"assassination": "Political assassination",
"coup_themes": "Coup d'état",
"inquisition": "Inquisition / religious persecution",
"forced_labor": "Forced labor",
"ultranationalism": "Ultranationalism",
"hanging_depiction": "Hanging / strangulation",
"drowning_depiction": "Drowning scene",
"burning_alive": "Burning alive",
"asphyxiation_depiction": "Asphyxiation / suffocation",
"restraint_torture": "Bound / restrained victim",
"public_execution": "Public execution",
"decapitation": "Decapitation",
"impalement": "Impalement",
"mass_casualty_event": "Mass-casualty event",
"vehicular_violence": "Vehicular violence",
"overdose_depiction": "Overdose scene",
"defenestration": "Falling from height"
},
"playthroughNotes": {
"title": "Playthrough notes",
@@ -459,7 +552,9 @@
"addOne": "Add ending",
"removeLast": "Remove last ending",
"videoRangeHint": "Each video covers a contiguous slice of endings. Default split is balanced; adjust per row to override.",
"multiVideoOutputNote": "Each video's description renders that video's ending slice. Generate from the editor as usual — the Output preview shows video 1 by default.",
"multiVideoOutputNote": "Each video's description renders that video's ending slice. Generate from the editor as usual — switch which video the Output previews using the selector below.",
"videoIndexLabel": "Preview video",
"videoIndexHint": "Output preview, title, and tags update to reflect the selected video's ending slice. Copy each one separately to publish per-video.",
"warnings": {
"singleEmpty": "Fill at least the number or the name — empty entries are dropped from the description.",
"timelineShort": "Timeline needs {{needed}} ending markers; only {{found}} found. Add the missing rows before copying.",
@@ -553,6 +648,7 @@
"copyPinnedCommentTemplate": "Copy pinned comment template",
"generateAlternatives": "Generate Alternatives",
"saveAsTemplate": "Save as Template",
"previewingVideo": "Previewing Video {{index}} of {{total}} — Endings {{from}}–{{to}}",
"variants": {
"default": "Default",
"typeFirst": "Type First",
@@ -575,7 +671,8 @@
"search": "Search",
"generate": "Generate",
"undo": "Undo",
"dismiss": "Dismiss"
"dismiss": "Dismiss",
"scrollToTop": "Scroll to top"
},
"videoTypes": {
"full": "Full Gameplay",
@@ -753,6 +850,8 @@
"hashtagCount": "Hashtag Count",
"showQualityBadge": "Show quality badge in title (e.g. [2K 60FPS])",
"showCopyright": "Append © copyright line to description",
"showGameCopyright": "Append © game studio credit (right after store links)",
"showGameCopyrightHint": "Adds a “© [publisher]. All rights reserved.” line crediting the game's developer or publisher right under the store links. Use this when the dev/publisher contractually requires attribution in the description. Reads the studio name from the “Studio / Publisher” field in Game Info — leaves the line out if that field is empty.",
"showUsagePolicy": "Append usage policy block to description",
"showSponsorCredit": "Show sponsor credit line in description (thanks for the key)",
"showThirdPartyAds": "Show third-party advertising block in description",
@@ -776,7 +875,10 @@
"pinnedCommentIncludeGenrePlaylist": "Include genre-playlist suggestion in pinned comment",
"genrePlaylistsTitle": "Genre Playlists",
"genrePlaylistsHelp": "Configure a YouTube playlist URL per genre. The pinned-comment template will auto-suggest the matching playlist when the video's primary genre is selected.",
"genrePlaylistsEmptyHint": "Leave empty to skip a genre."
"genrePlaylistsEmptyHint": "Leave empty to skip a genre.",
"logSettings": "Logs",
"logRetentionDays": "Log retention (days)",
"logRetentionHint": "Logs older than this are deleted at app start. Range: 1–90 days."
},
"batch": {
"title": "Batch Mode",
@@ -822,6 +924,13 @@
"emptyState": "No log entries yet.",
"clearAll": "Clear All",
"clearConfirm": "Are you sure you want to clear all logs?",
"searchPlaceholder": "Search logs..."
"clearPersistedConfirm": "Clear all logs from memory AND delete persisted log files? This cannot be undone.",
"clearSession": "Clear this session",
"searchPlaceholder": "Search logs...",
"exportJson": "Export JSON",
"exportTxt": "Export TXT",
"sessionCurrent": "Current session",
"sessionLabel": "Session {{n}}",
"entriesShort": "entries"
}
}
+97 -2
View File
@@ -30,6 +30,10 @@
"livestream": "🔴 EN VIVO",
"gacha_quest": ""
},
"endingLabel": {
"range": "Finales {{from}}–{{to}}",
"count": "{{count}} Finales"
},
"gachaQuestType": {
"main_story": "{{gameName}} — {{chapterName}}{{partSuffix}}",
"world_quest": "{{gameName}} — World Quest: {{questName}}",
@@ -104,6 +108,7 @@
"timestamps": "⏱ MARCAS DE TIEMPO",
"storeLinksBuy": "🎮 CONSIGUE EL JUEGO (si quieres comprarlo)",
"storeLinksDownload": "⬇️ DESCARGA EL JUEGO (si quieres jugar)",
"gameCopyright": "© {{publisher}}. Todos los derechos reservados. El juego y toda la propiedad intelectual relacionada pertenecen a {{publisher}}.",
"videoSettings": "🖥 AJUSTES DE VIDEO",
"rig": "💻 MI EQUIPO",
"modList": "🧩 LISTA DE MODS",
@@ -116,7 +121,7 @@
"playlist": "▶️ Ver la serie completa: {{link}}",
"contact": "📧 Consultas comerciales: {{email}}",
"cta": "👍 Me gusta | 🔔 Suscríbete | ↗️ Comparte",
"copyright": "© {{year}} {{channelName}}. Todos los derechos reservados.",
"copyright": "© {{year}} {{channelName}} — Solo el contenido del vídeo. El juego, los personajes, la música y toda la propiedad intelectual relacionada pertenecen a sus respectivos propietarios. Todos los derechos reservados sobre esta grabación.",
"usagePolicyHeader": "📋 POLÍTICA DE USO",
"usagePolicy": "• Siempre acredita con un enlace al vídeo original Y al canal (al menos en la descripción).\n• No reuploadees el vídeo completo ni porciones grandes como contenido propio.\n• No monetices el material sin consentimiento explícito.\n• No edites el material de forma que tergiverse el contenido original o al creador.\n• Compilaciones, reseñas, comentarios y reacciones están OK — siempre que acredites.\nSi tienes dudas, contáctame por las redes sociales o el email de la descripción."
},
@@ -272,6 +277,34 @@
"coulrophobia": "Payasos — coulrofobia",
"ablutophobia": "Ahogamiento / inmersión prolongada en agua",
"taphophobia": "Enterramiento en vida / confinamiento en ataúd o tumba",
"automatonophobia": "Animatrónicos, maniquíes y figuras humanas realistas",
"megalophobia": "Objetos enormes / estructuras colosales / entidades gigantes",
"submechanophobia": "Objetos artificiales sumergidos — barcos hundidos, maquinaria submarina",
"necrophobia": "Cadáveres, cuerpos sin vida, muertos vivientes",
"spectrophobia": "Fantasmas, espectros y sustos con espejos",
"demonophobia": "Demonios / espíritus malignos / lo oculto",
"selachophobia": "Tiburones / ataques de tiburón",
"mysophobia": "Gérmenes, contaminación e imágenes de infección",
"emetophobia": "Vómito / náuseas representadas",
"scopophobia": "Ser observado / vigilado por entidades",
"monophobia": "Aislamiento / estar completamente solo",
"musophobia": "Ratones y ratas",
"chiroptophobia": "Murciélagos / enjambres de murciélagos",
"ornithophobia": "Pájaros / bandadas de aves",
"ichthyophobia": "Peces / criaturas de las profundidades",
"herpetophobia": "Reptiles — lagartos y criaturas reptantes",
"katsaridaphobia": "Cucarachas / insectos en enjambre",
"apiphobia": "Abejas, avispas e insectos con aguijón",
"astraphobia": "Truenos, relámpagos y tormentas",
"agoraphobia": "Espacios abiertos, expuestos o sin escapatoria",
"enochlophobia": "Multitudes densas",
"chionophobia": "Nieve / entornos de frío extremo",
"nosocomephobia": "Hospitales y centros médicos",
"aichmophobia": "Objetos punzantes — hojas, cuchillos, agujas",
"pnigophobia": "Asfixia / ahogo / sofocación",
"homophobia": "Homofobia / temas o insultos contra el colectivo LGBTQ+",
"transphobia": "Transfobia / temas o insultos contra personas trans",
"xenophobia": "Xenofobia / temas contra extranjeros o inmigrantes",
"paranoia_themes": "Paranoia / temas de vigilancia",
"intrusive_thoughts": "Secuencias de pensamientos intrusivos",
"medical_horror": "Terror médico / quirúrgico",
@@ -288,7 +321,69 @@
"mods_used": "Mods de juego activos",
"cheats_enabled": "Trucos / comandos de depuración usados",
"glitch_exploits": "Uso intencional de glitches / sequence-breaking",
"assisted_run": "Con guía — no es partida a ciegas"
"assisted_run": "Con guía — no es partida a ciegas",
"homichlophobia": "Niebla / bruma / clima de baja visibilidad",
"lilapsophobia": "Tornados / huracanes / tormentas severas",
"ombrophobia": "Escenas de lluvia intensa",
"nephophobia": "Nubes amenazantes / cielo encapotado",
"ancraophobia": "Viento fuerte / vendavales",
"cryophobia": "Frío extremo / entornos bajo cero",
"heliophobia": "Luz solar intensa / sol directo",
"cymophobia": "Olas grandes / mar agitado",
"limnophobia": "Lagos y aguas estancadas",
"potamophobia": "Ríos / corrientes fuertes",
"autism_themes": "Temas de autismo / neurodivergencia",
"adhd_themes": "TDAH / disfunción ejecutiva",
"hikikomori": "Hikikomori / aislamiento social extremo",
"neet_themes": "NEET / fuera del sistema educativo y laboral",
"social_anxiety_themes": "Ansiedad social",
"social_isolation": "Aislamiento social / soledad",
"schizophrenia_themes": "Esquizofrenia / psicosis",
"burnout_themes": "Burnout / agotamiento crónico",
"survivor_guilt": "Culpa del superviviente",
"abandonment_themes": "Abandono / trauma de abandono",
"parasocial_themes": "Relaciones parasociales / fijación no saludable",
"gaslighting_themes": "Gaslighting / abuso psicológico",
"stockholm_syndrome": "Síndrome de Estocolmo",
"behavioral_addiction": "Adicción al juego o a las apuestas",
"existential_crisis": "Crisis existencial / nihilismo",
"impostor_syndrome": "Síndrome del impostor",
"midlife_crisis": "Crisis de la mediana edad",
"quarter_life_crisis": "Crisis del cuarto de vida",
"workplace_harassment": "Acoso laboral / entorno tóxico",
"masculinity_pressure": "Presión sobre roles de género y masculinidad",
"political_extremism": "Extremismo político / ideologías radicales",
"religious_extremism": "Extremismo religioso / fundamentalismo",
"genocide": "Genocidio / limpieza étnica",
"holy_war": "Guerra santa / conflicto religioso sectario",
"holocaust_themes": "Holocausto / atrocidades de la Segunda Guerra Mundial",
"civil_war": "Guerra civil / conflicto armado interno",
"mass_shooting": "Tiroteo masivo / escolar",
"colonialism": "Colonialismo / imperialismo",
"propaganda": "Propaganda estatal / manipulación mediática",
"dystopian_state": "Vigilancia / estado distópico autoritario",
"conspiracy_theories": "Teorías conspirativas como tema",
"censorship_themes": "Censura / represión a la prensa",
"ethnic_conflict": "Conflicto étnico / racial",
"refugee_crisis": "Crisis de refugiados / desplazamiento forzado",
"revolution_themes": "Revolución / levantamiento / disturbios civiles",
"assassination": "Asesinato político",
"coup_themes": "Golpe de estado / asalto militar",
"inquisition": "Inquisición / persecución religiosa / caza de brujas",
"forced_labor": "Trabajo forzado / campos de trabajo",
"ultranationalism": "Ultranacionalismo / chovinismo",
"hanging_depiction": "Escena de ahorcamiento / estrangulación",
"drowning_depiction": "Escena de ahogamiento",
"burning_alive": "Quemado vivo / inmolación",
"asphyxiation_depiction": "Escena de asfixia / sofocación",
"restraint_torture": "Víctima atada o sujeta durante tortura",
"public_execution": "Escena de ejecución pública",
"decapitation": "Decapitación",
"impalement": "Empalamiento",
"mass_casualty_event": "Evento de víctimas masivas (ataque, desastre)",
"vehicular_violence": "Violencia vehicular / embestida intencional",
"overdose_depiction": "Escena de sobredosis",
"defenestration": "Caída desde altura (intencional)"
}
},
"graphics": {
+114 -5
View File
@@ -144,6 +144,8 @@
"vnDonateHelp": "Only rendered into the description when output language is Vietnamese.",
"vnBankName": "Bank name",
"vnBankNamePlaceholder": "e.g. Vietcombank, MB Bank, Techcombank",
"vnBankNameSelectPlaceholder": "— Select bank —",
"vnBankNameOther": "Other (type manually)",
"vnBankAccount": "Account number",
"vnBankAccountPlaceholder": "e.g. 0123456789",
"vnBankHolder": "Account holder",
@@ -312,6 +314,7 @@
"photosensitive": "Fotosensibilidad / Salud",
"phobias": "Fobias",
"mental_health": "Salud mental",
"social_phenomena": "Fenómenos sociales",
"sensitive": "Adulto / Sensible",
"playstyle": "Notas de juego",
"horror_specific": "Horror intenso",
@@ -398,6 +401,34 @@
"coulrophobia": "Payasos",
"ablutophobia": "Ahogamiento",
"taphophobia": "Enterrado vivo",
"automatonophobia": "Animatrónicos / maniquíes",
"megalophobia": "Objetos enormes",
"submechanophobia": "Objetos sumergidos artificiales",
"necrophobia": "Cadáveres / muertos",
"spectrophobia": "Fantasmas / espectros",
"demonophobia": "Demonios / espíritus malignos",
"selachophobia": "Tiburones",
"mysophobia": "Gérmenes / contaminación",
"emetophobia": "Vómito",
"scopophobia": "Sentirse observado",
"monophobia": "Aislamiento / soledad",
"musophobia": "Ratones / ratas",
"chiroptophobia": "Murciélagos",
"ornithophobia": "Pájaros",
"ichthyophobia": "Peces",
"herpetophobia": "Reptiles",
"katsaridaphobia": "Cucarachas",
"apiphobia": "Abejas / avispas",
"astraphobia": "Truenos / relámpagos",
"agoraphobia": "Espacios abiertos",
"enochlophobia": "Multitudes",
"chionophobia": "Nieve / frío extremo",
"nosocomephobia": "Hospitales",
"aichmophobia": "Objetos punzantes / hojas",
"pnigophobia": "Asfixia / ahogo",
"homophobia": "Homofobia / contenido anti-LGBTQ+",
"transphobia": "Transfobia / contenido anti-trans",
"xenophobia": "Xenofobia / contenido contra extranjeros",
"paranoia_themes": "Paranoia",
"intrusive_thoughts": "Pensamientos intrusivos",
"medical_horror": "Terror médico",
@@ -414,7 +445,69 @@
"mods_used": "Mods usados",
"cheats_enabled": "Trucos / debug",
"glitch_exploits": "Glitches usados",
"assisted_run": "Con guía"
"assisted_run": "Con guía",
"homichlophobia": "Niebla / bruma",
"lilapsophobia": "Tornados / huracanes",
"ombrophobia": "Lluvia intensa / tormentas",
"nephophobia": "Nubes / cielo nublado",
"ancraophobia": "Viento fuerte",
"cryophobia": "Frío extremo",
"heliophobia": "Luz solar intensa",
"cymophobia": "Olas grandes",
"limnophobia": "Lagos / aguas estancadas",
"potamophobia": "Ríos / corrientes",
"autism_themes": "Autismo / neurodivergencia",
"adhd_themes": "TDAH / disfunción ejecutiva",
"hikikomori": "Hikikomori / aislamiento social",
"neet_themes": "NEET (ni estudia ni trabaja)",
"social_anxiety_themes": "Ansiedad social",
"social_isolation": "Aislamiento social / soledad",
"schizophrenia_themes": "Esquizofrenia / psicosis",
"burnout_themes": "Burnout / agotamiento",
"survivor_guilt": "Culpa del superviviente",
"abandonment_themes": "Abandono / trauma",
"parasocial_themes": "Relaciones parasociales",
"gaslighting_themes": "Gaslighting / manipulación",
"stockholm_syndrome": "Síndrome de Estocolmo",
"behavioral_addiction": "Adicción al juego / ludopatía",
"existential_crisis": "Crisis existencial / nihilismo",
"impostor_syndrome": "Síndrome del impostor",
"midlife_crisis": "Crisis de la mediana edad",
"quarter_life_crisis": "Crisis del cuarto de vida",
"workplace_harassment": "Acoso laboral",
"masculinity_pressure": "Presión de roles de género",
"political_extremism": "Extremismo político",
"religious_extremism": "Extremismo religioso / fundamentalismo",
"genocide": "Genocidio / limpieza étnica",
"holy_war": "Guerra santa / conflicto sectario",
"holocaust_themes": "Holocausto",
"civil_war": "Guerra civil",
"mass_shooting": "Tiroteo masivo / escolar",
"colonialism": "Colonialismo / imperialismo",
"propaganda": "Propaganda estatal",
"dystopian_state": "Estado de vigilancia / distopía",
"conspiracy_theories": "Teorías conspirativas",
"censorship_themes": "Censura / represión informativa",
"ethnic_conflict": "Conflicto étnico / racial",
"refugee_crisis": "Crisis de refugiados",
"revolution_themes": "Revolución / levantamiento",
"assassination": "Asesinato político",
"coup_themes": "Golpe de estado",
"inquisition": "Inquisición / caza de brujas",
"forced_labor": "Trabajo forzado",
"ultranationalism": "Ultranacionalismo",
"hanging_depiction": "Ahorcamiento / estrangulación",
"drowning_depiction": "Escena de ahogamiento",
"burning_alive": "Quemado vivo",
"asphyxiation_depiction": "Asfixia / sofocación",
"restraint_torture": "Víctima atada / sujeta",
"public_execution": "Ejecución pública",
"decapitation": "Decapitación",
"impalement": "Empalamiento",
"mass_casualty_event": "Víctimas masivas",
"vehicular_violence": "Violencia vehicular",
"overdose_depiction": "Escena de sobredosis",
"defenestration": "Caída desde altura"
},
"playthroughNotes": {
"title": "Notas de la partida",
@@ -459,7 +552,9 @@
"addOne": "Añadir final",
"removeLast": "Eliminar último",
"videoRangeHint": "Cada video cubre un tramo contiguo de finales. La división por defecto es equilibrada; ajusta por fila para sobrescribir.",
"multiVideoOutputNote": "La descripción de cada video renderiza su tramo. Genera desde el editor como siempre — la vista previa muestra el video 1 por defecto.",
"multiVideoOutputNote": "La descripción de cada video renderiza su tramo. Genera desde el editor como siempre — cambia el video previsualizado con el selector de abajo.",
"videoIndexLabel": "Video de previsualización",
"videoIndexHint": "La vista previa de Output, el título y las etiquetas se actualizan según el tramo del video seleccionado. Copia cada uno por separado para publicar por video.",
"warnings": {
"singleEmpty": "Completa al menos número o nombre — las entradas vacías se omiten de la descripción.",
"timelineShort": "La línea de tiempo necesita {{needed}} marcadores de final; solo se encontraron {{found}}. Añade los faltantes antes de copiar.",
@@ -553,6 +648,7 @@
"copyPinnedCommentTemplate": "Copiar plantilla de comentario fijado",
"generateAlternatives": "Generar Alternativas",
"saveAsTemplate": "Guardar como Plantilla",
"previewingVideo": "Vista previa: Video {{index}} de {{total}} — Finales {{from}}–{{to}}",
"variants": {
"default": "Predeterminado",
"typeFirst": "Tipo Primero",
@@ -575,7 +671,8 @@
"search": "Buscar",
"generate": "Generar",
"undo": "Deshacer",
"dismiss": "Descartar"
"dismiss": "Descartar",
"scrollToTop": "Volver arriba"
},
"videoTypes": {
"full": "Gameplay Completo",
@@ -753,6 +850,8 @@
"hashtagCount": "Cantidad de Hashtags",
"showQualityBadge": "Mostrar insignia de calidad en el título (ej. [2K 60FPS])",
"showCopyright": "Agregar línea de © copyright a la descripción",
"showGameCopyright": "Agregar crédito © del estudio (justo bajo los enlaces de tienda)",
"showGameCopyrightHint": "Añade una línea “© [editor]. Todos los derechos reservados.” acreditando al desarrollador o editor del juego justo debajo de los enlaces de tienda. Úsalo cuando el dev/editor exige atribución contractual en la descripción. Toma el nombre del estudio del campo “Estudio / Editor” en Game Info; si está vacío, la línea no aparece.",
"showUsagePolicy": "Agregar bloque de política de uso a la descripción",
"showSponsorCredit": "Mostrar línea de agradecimiento al patrocinador (clave) en la descripción",
"showThirdPartyAds": "Mostrar bloque de anuncios de terceros en la descripción",
@@ -776,7 +875,10 @@
"pinnedCommentIncludeGenrePlaylist": "Include genre-playlist suggestion in pinned comment",
"genrePlaylistsTitle": "Genre Playlists",
"genrePlaylistsHelp": "Configure a YouTube playlist URL per genre. The pinned-comment template will auto-suggest the matching playlist when the video's primary genre is selected.",
"genrePlaylistsEmptyHint": "Leave empty to skip a genre."
"genrePlaylistsEmptyHint": "Leave empty to skip a genre.",
"logSettings": "Registros",
"logRetentionDays": "Retención de logs (días)",
"logRetentionHint": "Los logs más antiguos se eliminan al iniciar. Rango: 1–90 días."
},
"batch": {
"title": "Generación por Lote",
@@ -822,6 +924,13 @@
"emptyState": "No hay registros.",
"clearAll": "Borrar Todo",
"clearConfirm": "¿Estás seguro de borrar todos los registros?",
"searchPlaceholder": "Buscar registros..."
"clearPersistedConfirm": "¿Borrar logs en memoria Y eliminar archivos persistidos? No se puede deshacer.",
"clearSession": "Borrar esta sesión",
"searchPlaceholder": "Buscar registros...",
"exportJson": "Exportar JSON",
"exportTxt": "Exportar TXT",
"sessionCurrent": "Sesión actual",
"sessionLabel": "Sesión {{n}}",
"entriesShort": "entradas"
}
}
+97 -2
View File
@@ -30,6 +30,10 @@
"livestream": "🔴 LIVE",
"gacha_quest": ""
},
"endingLabel": {
"range": "エンディング {{from}}–{{to}}",
"count": "エンディング {{count}}個"
},
"gachaQuestType": {
"main_story": "{{gameName}} — {{chapterName}}{{partSuffix}}",
"world_quest": "{{gameName}} — World Quest: {{questName}}",
@@ -104,6 +108,7 @@
"timestamps": "⏱ タイムスタンプ",
"storeLinksBuy": "🎮 ゲームを購入 (応援したい方へ)",
"storeLinksDownload": "⬇️ ゲームをダウンロード (遊びたい方へ)",
"gameCopyright": "© {{publisher}}. 全権利を保有。ゲームおよび関連する知的財産はすべて {{publisher}} に帰属します。",
"videoSettings": "🖥 動画設定",
"rig": "💻 PC構成",
"modList": "🧩 MODリスト",
@@ -116,7 +121,7 @@
"playlist": "▶️ シリーズ全体を見る:{{link}}",
"contact": "📧 お仕事の依頼:{{email}}",
"cta": "👍 いいね | 🔔 チャンネル登録 | ↗️ シェア",
"copyright": "© {{year}} {{channelName}}. All rights reserved.",
"copyright": "© {{year}} {{channelName}} — 動画コンテンツのみ。ゲーム、キャラクター、音楽、関連する知的財産はすべて各権利者に帰属します。本録画物の全権利は留保されます。",
"usagePolicyHeader": "📋 動画利用ポリシー",
"usagePolicy": "• 元動画のリンクとチャンネル名を必ずクレジットしてください(最低でも説明欄に)。\n• 動画全体または大部分の再アップロードは禁止です。\n• 明示的な許可なしに収益化しないでください。\n• 元の内容や制作者を歪曲するような編集は禁止です。\n• クレジットを明記すれば、コンピレーション、レビュー、解説、リアクション動画はOKです。\n不明な点があれば、説明欄のソーシャルアカウントまたはメールでご連絡ください。"
},
@@ -272,6 +277,34 @@
"coulrophobia": "ピエロ — クラウン恐怖症",
"ablutophobia": "溺水 / 長時間の水没シーン",
"taphophobia": "生き埋め / 棺・墓所への閉じ込め",
"automatonophobia": "アニマトロニクス・マネキン・人間そっくりの人形",
"megalophobia": "巨大な物体 / 巨大建造物 / 巨大な存在",
"submechanophobia": "水没した人工物 — 沈没船、水中の機械",
"necrophobia": "死体・遺体・アンデッド",
"spectrophobia": "幽霊・亡霊・鏡を使った驚かし",
"demonophobia": "悪魔 / 悪霊 / オカルト",
"selachophobia": "サメ / サメの襲撃",
"mysophobia": "細菌・汚染・感染の描写",
"emetophobia": "嘔吐 / 吐き気の描写",
"scopophobia": "存在に見られる・凝視される",
"monophobia": "孤立 / 完全な孤独",
"musophobia": "ネズミ(マウス・ラット)",
"chiroptophobia": "コウモリ / コウモリの群れ",
"ornithophobia": "鳥 / 鳥の群れ",
"ichthyophobia": "魚 / 深海生物",
"herpetophobia": "爬虫類 — トカゲや這う生き物",
"katsaridaphobia": "ゴキブリ / 群がる虫",
"apiphobia": "ハチ・刺す虫",
"astraphobia": "雷・稲妻・嵐",
"agoraphobia": "広く開けた、逃げ場のない空間",
"enochlophobia": "密集した群衆",
"chionophobia": "雪 / 極寒の環境",
"nosocomephobia": "病院・医療施設",
"aichmophobia": "鋭利な物 — 刃物、ナイフ、針",
"pnigophobia": "窒息 / 息苦しさ",
"homophobia": "同性愛者・LGBTQ+への差別的な内容や中傷",
"transphobia": "トランスジェンダーへの差別的な内容や中傷",
"xenophobia": "外国人・移民への排斥的な内容",
"paranoia_themes": "パラノイア / 監視テーマ",
"intrusive_thoughts": "侵入思考の描写",
"medical_horror": "医療・手術ホラー",
@@ -288,7 +321,69 @@
"mods_used": "Mod使用あり",
"cheats_enabled": "チート・デバッグコマンド使用",
"glitch_exploits": "意図的なバグ利用 / 順序破壊",
"assisted_run": "攻略参照あり — ブラインドではない"
"assisted_run": "攻略参照あり — ブラインドではない",
"homichlophobia": "霧 / 視界不良の天候",
"lilapsophobia": "竜巻 / ハリケーン / 激しい嵐",
"ombrophobia": "豪雨 / 土砂降りの場面",
"nephophobia": "不気味な雲 / 曇天",
"ancraophobia": "強風 / 暴風条件",
"cryophobia": "極寒 / 氷点下の環境",
"heliophobia": "強い日差し / 直射日光",
"cymophobia": "大波 / 荒れた海",
"limnophobia": "湖や静水",
"potamophobia": "川 / 急流",
"autism_themes": "自閉スペクトラム / 神経多様性をテーマに",
"adhd_themes": "ADHD / 実行機能障害の描写",
"hikikomori": "ひきこもり / 極端な社会的引きこもり",
"neet_themes": "NEET(就学・就労していない)をテーマに",
"social_anxiety_themes": "社交不安の描写",
"social_isolation": "社会的孤立 / 孤独感をテーマに",
"schizophrenia_themes": "統合失調症 / 精神病の描写",
"burnout_themes": "燃え尽き症候群 / 過労",
"survivor_guilt": "サバイバーズギルトの描写",
"abandonment_themes": "見捨てられ / 見捨てられトラウマ",
"parasocial_themes": "パラソーシャル関係 / 不健康な執着",
"gaslighting_themes": "ガスライティング / 心理的虐待",
"stockholm_syndrome": "ストックホルム症候群",
"behavioral_addiction": "ギャンブル / ゲーム依存症テーマ",
"existential_crisis": "実存的危機 / ニヒリズムのテーマ",
"impostor_syndrome": "インポスター症候群テーマ",
"midlife_crisis": "中年の危機テーマ",
"quarter_life_crisis": "クォーターライフ・クライシス",
"workplace_harassment": "職場ハラスメント / 有害環境",
"masculinity_pressure": "性役割や男性性のプレッシャー",
"political_extremism": "政治的過激主義 / 過激思想",
"religious_extremism": "宗教的過激主義 / 原理主義",
"genocide": "ジェノサイド / 民族浄化",
"holy_war": "聖戦 / 宗派的宗教紛争",
"holocaust_themes": "ホロコースト / 第二次大戦の残虐行為",
"civil_war": "内戦 / 国内武力紛争",
"mass_shooting": "銃乱射 / 学校銃撃の描写",
"colonialism": "植民地主義 / 帝国主義のテーマ",
"propaganda": "国家プロパガンダ / メディア操作",
"dystopian_state": "監視社会 / 独裁的ディストピア国家",
"conspiracy_theories": "陰謀論を物語のテーマに",
"censorship_themes": "検閲 / 報道抑圧のテーマ",
"ethnic_conflict": "民族 / 人種的紛争",
"refugee_crisis": "難民危機 / 強制避難",
"revolution_themes": "革命 / 蜂起 / 内乱",
"assassination": "政治暗殺",
"coup_themes": "クーデター / 軍事政変",
"inquisition": "異端審問 / 宗教迫害 / 魔女狩り",
"forced_labor": "強制労働 / 強制収容所",
"ultranationalism": "極端な国家主義 / ショーヴィニズム",
"hanging_depiction": "首吊り / 絞殺シーン",
"drowning_depiction": "溺死シーン",
"burning_alive": "焼殺 / 焼身",
"asphyxiation_depiction": "窒息 / 息ができないシーン",
"restraint_torture": "拘束された被害者への拷問",
"public_execution": "公開処刑シーン",
"decapitation": "斬首シーン",
"impalement": "串刺しシーン",
"mass_casualty_event": "大量死傷事件(襲撃・災害)",
"vehicular_violence": "車両による暴力 / 故意の衝突",
"overdose_depiction": "薬物過剰摂取シーン",
"defenestration": "高所からの転落(意図的)"
}
},
"graphics": {
+114 -5
View File
@@ -144,6 +144,8 @@
"vnDonateHelp": "Only rendered into the description when output language is Vietnamese.",
"vnBankName": "Bank name",
"vnBankNamePlaceholder": "e.g. Vietcombank, MB Bank, Techcombank",
"vnBankNameSelectPlaceholder": "— Select bank —",
"vnBankNameOther": "Other (type manually)",
"vnBankAccount": "Account number",
"vnBankAccountPlaceholder": "e.g. 0123456789",
"vnBankHolder": "Account holder",
@@ -312,6 +314,7 @@
"photosensitive": "光感受性 / 健康",
"phobias": "恐怖症",
"mental_health": "メンタルヘルス",
"social_phenomena": "社会・心理現象",
"sensitive": "成人向け / センシティブ",
"playstyle": "プレイ情報",
"horror_specific": "ヘビーホラー",
@@ -398,6 +401,34 @@
"coulrophobia": "ピエロ",
"ablutophobia": "溺水",
"taphophobia": "生き埋め",
"automatonophobia": "アニマトロニクス / マネキン",
"megalophobia": "巨大な物体",
"submechanophobia": "水没した人工物",
"necrophobia": "死体 / 遺体",
"spectrophobia": "幽霊 / 亡霊",
"demonophobia": "悪魔 / 悪霊",
"selachophobia": "サメ",
"mysophobia": "細菌 / 汚染",
"emetophobia": "嘔吐",
"scopophobia": "視線・凝視される",
"monophobia": "孤立 / 一人きり",
"musophobia": "ネズミ",
"chiroptophobia": "コウモリ",
"ornithophobia": "鳥",
"ichthyophobia": "魚",
"herpetophobia": "爬虫類",
"katsaridaphobia": "ゴキブリ",
"apiphobia": "ハチ",
"astraphobia": "雷",
"agoraphobia": "広い場所・開けた空間",
"enochlophobia": "群衆",
"chionophobia": "雪 / 極寒",
"nosocomephobia": "病院",
"aichmophobia": "鋭利な物・刃物",
"pnigophobia": "窒息",
"homophobia": "同性愛者・LGBTQ+への差別",
"transphobia": "トランスジェンダーへの差別",
"xenophobia": "外国人排斥・排外主義",
"paranoia_themes": "パラノイア",
"intrusive_thoughts": "侵入思考",
"medical_horror": "医療ホラー",
@@ -414,7 +445,69 @@
"mods_used": "Mod使用",
"cheats_enabled": "チート使用",
"glitch_exploits": "バグ利用",
"assisted_run": "攻略参照"
"assisted_run": "攻略参照",
"homichlophobia": "霧",
"lilapsophobia": "竜巻 / ハリケーン",
"ombrophobia": "豪雨 / 嵐",
"nephophobia": "雲 / 曇天",
"ancraophobia": "強風",
"cryophobia": "極寒",
"heliophobia": "強い日差し",
"cymophobia": "大波",
"limnophobia": "湖 / 静水",
"potamophobia": "川 / 急流",
"autism_themes": "自閉スペクトラム / 神経多様性",
"adhd_themes": "ADHD / 実行機能障害",
"hikikomori": "ひきこもり",
"neet_themes": "NEET",
"social_anxiety_themes": "社交不安",
"social_isolation": "社会的孤立 / 孤独",
"schizophrenia_themes": "統合失調症 / 精神病",
"burnout_themes": "燃え尽き症候群",
"survivor_guilt": "サバイバーズギルト",
"abandonment_themes": "見捨てられトラウマ",
"parasocial_themes": "パラソーシャル関係",
"gaslighting_themes": "ガスライティング",
"stockholm_syndrome": "ストックホルム症候群",
"behavioral_addiction": "ゲーム / ギャンブル依存",
"existential_crisis": "実存的危機 / ニヒリズム",
"impostor_syndrome": "インポスター症候群",
"midlife_crisis": "中年の危機",
"quarter_life_crisis": "クォーターライフ・クライシス",
"workplace_harassment": "職場ハラスメント",
"masculinity_pressure": "性役割・男性性の圧力",
"political_extremism": "政治的過激主義",
"religious_extremism": "宗教的過激主義 / 原理主義",
"genocide": "ジェノサイド / 民族浄化",
"holy_war": "聖戦 / 宗派紛争",
"holocaust_themes": "ホロコースト",
"civil_war": "内戦",
"mass_shooting": "銃乱射 / 学校銃撃",
"colonialism": "植民地主義 / 帝国主義",
"propaganda": "国家プロパガンダ",
"dystopian_state": "監視社会 / ディストピア",
"conspiracy_theories": "陰謀論",
"censorship_themes": "検閲 / 言論統制",
"ethnic_conflict": "民族 / 人種紛争",
"refugee_crisis": "難民危機",
"revolution_themes": "革命 / 蜂起",
"assassination": "政治暗殺",
"coup_themes": "クーデター",
"inquisition": "異端審問 / 魔女狩り",
"forced_labor": "強制労働",
"ultranationalism": "極端な国家主義",
"hanging_depiction": "首吊り / 絞殺",
"drowning_depiction": "溺死シーン",
"burning_alive": "焼殺",
"asphyxiation_depiction": "窒息 / 息ができない",
"restraint_torture": "拘束された被害者",
"public_execution": "公開処刑",
"decapitation": "斬首",
"impalement": "串刺し",
"mass_casualty_event": "大量死傷事件",
"vehicular_violence": "車両による暴力",
"overdose_depiction": "薬物過剰摂取シーン",
"defenestration": "高所からの転落"
},
"playthroughNotes": {
"title": "プレイ情報",
@@ -459,7 +552,9 @@
"addOne": "エンディング追加",
"removeLast": "最後を削除",
"videoRangeHint": "各動画はエンディングの連続したスライスを担当します。デフォルトでは均等に分割されますが、行ごとに上書きできます。",
"multiVideoOutputNote": "各動画の説明はそのスライスを描画します。通常どおりエディタから生成 — プレビューはデフォルトで動画 1 を表示します。",
"multiVideoOutputNote": "各動画の説明はそのスライスを描画します。通常どおりエディタから生成 — 下のセレクタでプレビューする動画を切り替えできます。",
"videoIndexLabel": "プレビュー動画",
"videoIndexHint": "選択した動画のエンディングスライスに合わせて Output プレビュー・タイトル・タグが更新されます。動画ごとに個別にコピーして公開してください。",
"warnings": {
"singleEmpty": "番号か名前のいずれかを入力してください — 空欄のエントリは説明から除外されます。",
"timelineShort": "タイムラインに {{needed}} 件のエンディングマーカーが必要ですが、{{found}} 件のみ。コピー前に不足分を追加してください。",
@@ -553,6 +648,7 @@
"copyPinnedCommentTemplate": "固定コメントのテンプレートをコピー",
"generateAlternatives": "タイトル案を生成",
"saveAsTemplate": "テンプレートとして保存",
"previewingVideo": "プレビュー中: 動画 {{index}}/{{total}} — エンディング {{from}}–{{to}}",
"variants": {
"default": "デフォルト",
"typeFirst": "タイプ優先",
@@ -575,7 +671,8 @@
"search": "検索",
"generate": "生成",
"undo": "元に戻す",
"dismiss": "閉じる"
"dismiss": "閉じる",
"scrollToTop": "トップへ戻る"
},
"videoTypes": {
"full": "フルゲームプレイ",
@@ -753,6 +850,8 @@
"hashtagCount": "ハッシュタグ数",
"showQualityBadge": "タイトルに画質バッジを表示 (例: [2K 60FPS])",
"showCopyright": "説明欄に © 著作権行を追加",
"showGameCopyright": "説明欄に © ゲームスタジオのクレジットを追加(ストアリンクの直下)",
"showGameCopyrightHint": "ストアリンクの直下に「© [パブリッシャー]. All rights reserved.」というクレジット行を追加します。デベロッパー/パブリッシャーが説明欄でのクレジット表記を契約で求めている場合に使用してください。ゲーム情報の「スタジオ/パブリッシャー」欄からスタジオ名を取得します。空欄の場合は行は表示されません。",
"showUsagePolicy": "説明欄に動画利用ポリシーを追加",
"showSponsorCredit": "説明欄にスポンサーへの感謝行を追加 (キー提供)",
"showThirdPartyAds": "説明欄にサードパーティ広告ブロックを表示",
@@ -776,7 +875,10 @@
"pinnedCommentIncludeGenrePlaylist": "Include genre-playlist suggestion in pinned comment",
"genrePlaylistsTitle": "Genre Playlists",
"genrePlaylistsHelp": "Configure a YouTube playlist URL per genre. The pinned-comment template will auto-suggest the matching playlist when the video's primary genre is selected.",
"genrePlaylistsEmptyHint": "Leave empty to skip a genre."
"genrePlaylistsEmptyHint": "Leave empty to skip a genre.",
"logSettings": "ログ",
"logRetentionDays": "ログ保持期間 (日)",
"logRetentionHint": "この日数より古いログは起動時に削除されます。範囲: 1–90 日。"
},
"batch": {
"title": "一括モード",
@@ -822,6 +924,13 @@
"emptyState": "ログはありません。",
"clearAll": "すべて削除",
"clearConfirm": "すべてのログを削除しますか?",
"searchPlaceholder": "ログを検索..."
"clearPersistedConfirm": "メモリ上のログ AND 保存済みログファイルを削除しますか?取り消せません。",
"clearSession": "このセッションを削除",
"searchPlaceholder": "ログを検索...",
"exportJson": "JSON でエクスポート",
"exportTxt": "TXT でエクスポート",
"sessionCurrent": "現在のセッション",
"sessionLabel": "セッション {{n}}",
"entriesShort": "件"
}
}
+97 -2
View File
@@ -30,6 +30,10 @@
"livestream": "🔴 LIVE",
"gacha_quest": ""
},
"endingLabel": {
"range": "엔딩 {{from}}–{{to}}",
"count": "엔딩 {{count}}개"
},
"gachaQuestType": {
"main_story": "{{gameName}} — {{chapterName}}{{partSuffix}}",
"world_quest": "{{gameName}} — World Quest: {{questName}}",
@@ -104,6 +108,7 @@
"timestamps": "⏱ 타임스탬프",
"storeLinksBuy": "🎮 게임 구매 (구매하고 싶다면)",
"storeLinksDownload": "⬇️ 게임 다운로드 (플레이하고 싶다면)",
"gameCopyright": "© {{publisher}}. 모든 권리 보유. 게임 및 관련 지식재산권은 {{publisher}}에 귀속됩니다.",
"videoSettings": "🖥 영상 설정",
"rig": "💻 내 장비",
"modList": "🧩 모드 목록",
@@ -116,7 +121,7 @@
"playlist": "▶️ 전체 시리즈 보기: {{link}}",
"contact": "📧 비즈니스 문의: {{email}}",
"cta": "👍 좋아요 | 🔔 구독 | ↗️ 공유",
"copyright": "© {{year}} {{channelName}}. All rights reserved.",
"copyright": "© {{year}} {{channelName}} — 영상 콘텐츠에 한함. 게임, 캐릭터, 음악 및 관련 지식재산권은 각 권리자에게 귀속됩니다. 본 녹화물의 모든 권리를 보유합니다.",
"usagePolicyHeader": "📋 영상 사용 정책",
"usagePolicy": "• 원본 영상 링크와 채널을 반드시 크레딧해주세요 (최소한 설명란에).\n• 전체 영상 또는 상당 부분을 본인 콘텐츠로 재업로드하지 마세요.\n• 명시적 동의 없이 수익화하지 마세요.\n• 원본 내용이나 제작자를 왜곡하는 방식으로 편집하지 마세요.\n• 컴필레이션, 리뷰, 해설, 리액션 영상은 크레딧만 하면 OK입니다.\n불확실한 경우 설명란의 소셜 계정이나 이메일로 연락주세요."
},
@@ -272,6 +277,34 @@
"coulrophobia": "광대 공포증",
"ablutophobia": "익사 / 장시간 물에 잠긴 장면",
"taphophobia": "생매장 / 관·무덤 갇힘",
"automatonophobia": "애니매트로닉스, 마네킹, 사람을 닮은 인형",
"megalophobia": "거대한 물체 / 거대 구조물 / 거대한 존재",
"submechanophobia": "물에 잠긴 인공물 — 침몰선, 수중 기계",
"necrophobia": "시체, 사체, 언데드",
"spectrophobia": "유령, 귀신, 거울을 이용한 놀람 연출",
"demonophobia": "악마 / 악령 / 오컬트",
"selachophobia": "상어 / 상어의 습격",
"mysophobia": "세균, 오염, 감염 묘사",
"emetophobia": "구토 / 메스꺼움 묘사",
"scopophobia": "존재에게 응시당함 / 감시당함",
"monophobia": "고립 / 완전히 혼자임",
"musophobia": "생쥐와 쥐",
"chiroptophobia": "박쥐 / 박쥐 떼",
"ornithophobia": "새 / 새 떼",
"ichthyophobia": "물고기 / 심해 생물",
"herpetophobia": "파충류 — 도마뱀과 기어다니는 생물",
"katsaridaphobia": "바퀴벌레 / 떼지어 다니는 벌레",
"apiphobia": "벌과 침을 쏘는 곤충",
"astraphobia": "천둥, 번개, 폭풍",
"agoraphobia": "넓고 개방되거나 탈출할 수 없는 공간",
"enochlophobia": "빽빽한 군중",
"chionophobia": "눈 / 극한의 추위 환경",
"nosocomephobia": "병원과 의료 시설",
"aichmophobia": "날카로운 물건 — 칼날, 칼, 바늘",
"pnigophobia": "질식 / 숨막힘",
"homophobia": "동성애자·LGBTQ+ 혐오적 내용이나 비방",
"transphobia": "트랜스젠더 혐오적 내용이나 비방",
"xenophobia": "외국인·이민자 배척 내용",
"paranoia_themes": "편집증 / 감시 테마",
"intrusive_thoughts": "침투적 사고 묘사",
"medical_horror": "의료·수술 호러",
@@ -288,7 +321,69 @@
"mods_used": "게임 모드 사용",
"cheats_enabled": "치트 / 디버그 명령어 사용",
"glitch_exploits": "의도적 글리치 사용 / 시퀀스 브레이크",
"assisted_run": "공략 참조 — 블라인드 아님"
"assisted_run": "공략 참조 — 블라인드 아님",
"homichlophobia": "안개 / 시야 불량 날씨",
"lilapsophobia": "토네이도 / 허리케인 / 심한 폭풍",
"ombrophobia": "폭우 / 호우 장면",
"nephophobia": "위협적인 구름 / 흐린 하늘",
"ancraophobia": "강풍 / 폭풍급 바람",
"cryophobia": "극한 추위 / 영하 환경",
"heliophobia": "강한 햇빛 / 직사광",
"cymophobia": "큰 파도 / 거친 바다",
"limnophobia": "호수와 고인 물",
"potamophobia": "강 / 강한 물살",
"autism_themes": "자폐 / 신경다양성 주제",
"adhd_themes": "ADHD / 실행 기능 장애 묘사",
"hikikomori": "히키코모리 / 극단적 사회적 은둔",
"neet_themes": "NEET / 교육·취업 비참여 주제",
"social_anxiety_themes": "사회 불안 묘사",
"social_isolation": "사회적 고립 / 외로움 주제",
"schizophrenia_themes": "조현병 / 정신증 묘사",
"burnout_themes": "번아웃 / 만성 과로",
"survivor_guilt": "생존자 죄책감 묘사",
"abandonment_themes": "유기 / 유기 트라우마",
"parasocial_themes": "파라소셜 관계 / 불건전한 집착",
"gaslighting_themes": "가스라이팅 / 심리적 학대",
"stockholm_syndrome": "스톡홀름 증후군 / 인질 유대",
"behavioral_addiction": "도박 / 게임 중독 주제",
"existential_crisis": "실존적 위기 / 허무주의 주제",
"impostor_syndrome": "사기꾼 증후군 주제",
"midlife_crisis": "중년의 위기 주제",
"quarter_life_crisis": "쿼터라이프 위기",
"workplace_harassment": "직장 내 괴롭힘 / 유해 환경",
"masculinity_pressure": "성역할 및 남성성 압박",
"political_extremism": "정치적 극단주의 / 급진 이념",
"religious_extremism": "종교 극단주의 / 근본주의",
"genocide": "제노사이드 / 인종 청소",
"holy_war": "성전 / 종파 종교 분쟁",
"holocaust_themes": "홀로코스트 / 2차 대전 잔혹사",
"civil_war": "내전 / 국내 무력 분쟁",
"mass_shooting": "총기 난사 / 학교 총격 묘사",
"colonialism": "식민주의 / 제국주의 주제",
"propaganda": "국가 선전 / 미디어 조작",
"dystopian_state": "감시 / 권위주의 디스토피아 국가",
"conspiracy_theories": "음모론을 줄거리로",
"censorship_themes": "검열 / 언론 탄압 주제",
"ethnic_conflict": "민족 / 인종 갈등",
"refugee_crisis": "난민 위기 / 강제 이주",
"revolution_themes": "혁명 / 봉기 / 시민 소요",
"assassination": "정치 암살",
"coup_themes": "쿠데타 / 군사 정변",
"inquisition": "종교 재판 / 종교 박해 / 마녀사냥",
"forced_labor": "강제 노동 / 노동 수용소",
"ultranationalism": "극단적 민족주의 / 쇼비니즘",
"hanging_depiction": "교수형 / 교살 장면",
"drowning_depiction": "익사 장면",
"burning_alive": "분신 / 화형 장면",
"asphyxiation_depiction": "질식 / 호흡 곤란 장면",
"restraint_torture": "결박된 피해자가 고문당하는 장면",
"public_execution": "공개 처형 장면",
"decapitation": "참수 장면",
"impalement": "관통 장면",
"mass_casualty_event": "대규모 인명피해 사건 (공격·재난)",
"vehicular_violence": "차량을 이용한 폭력 / 고의적 충돌",
"overdose_depiction": "약물 과다 복용 장면",
"defenestration": "고의적 추락 / 투신"
}
},
"graphics": {
+114 -5
View File
@@ -144,6 +144,8 @@
"vnDonateHelp": "Only rendered into the description when output language is Vietnamese.",
"vnBankName": "Bank name",
"vnBankNamePlaceholder": "e.g. Vietcombank, MB Bank, Techcombank",
"vnBankNameSelectPlaceholder": "— Select bank —",
"vnBankNameOther": "Other (type manually)",
"vnBankAccount": "Account number",
"vnBankAccountPlaceholder": "e.g. 0123456789",
"vnBankHolder": "Account holder",
@@ -312,6 +314,7 @@
"photosensitive": "광과민 / 건강",
"phobias": "공포증",
"mental_health": "정신 건강",
"social_phenomena": "사회·심리 현상",
"sensitive": "성인 / 민감",
"playstyle": "플레이 안내",
"horror_specific": "중증 호러",
@@ -398,6 +401,34 @@
"coulrophobia": "광대",
"ablutophobia": "익사",
"taphophobia": "생매장",
"automatonophobia": "애니매트로닉스 / 마네킹",
"megalophobia": "거대한 물체",
"submechanophobia": "물에 잠긴 인공물",
"necrophobia": "시체 / 사체",
"spectrophobia": "유령 / 귀신",
"demonophobia": "악마 / 악령",
"selachophobia": "상어",
"mysophobia": "세균 / 오염",
"emetophobia": "구토",
"scopophobia": "응시당함 / 시선",
"monophobia": "고립 / 혼자 있음",
"musophobia": "쥐",
"chiroptophobia": "박쥐",
"ornithophobia": "새",
"ichthyophobia": "물고기",
"herpetophobia": "파충류",
"katsaridaphobia": "바퀴벌레",
"apiphobia": "벌",
"astraphobia": "천둥 / 번개",
"agoraphobia": "넓고 개방된 공간",
"enochlophobia": "군중",
"chionophobia": "눈 / 극한의 추위",
"nosocomephobia": "병원",
"aichmophobia": "날카로운 물건 / 칼날",
"pnigophobia": "질식",
"homophobia": "동성애자·LGBTQ+ 혐오",
"transphobia": "트랜스젠더 혐오",
"xenophobia": "외국인 혐오 / 제노포비아",
"paranoia_themes": "편집증",
"intrusive_thoughts": "침투적 사고",
"medical_horror": "의료 호러",
@@ -414,7 +445,69 @@
"mods_used": "모드 사용",
"cheats_enabled": "치트 / 디버그",
"glitch_exploits": "글리치 사용",
"assisted_run": "공략 참조"
"assisted_run": "공략 참조",
"homichlophobia": "안개",
"lilapsophobia": "토네이도 / 허리케인",
"ombrophobia": "폭우 / 폭풍",
"nephophobia": "구름 / 흐린 하늘",
"ancraophobia": "강풍",
"cryophobia": "극심한 추위",
"heliophobia": "강한 햇빛",
"cymophobia": "큰 파도",
"limnophobia": "호수 / 고인 물",
"potamophobia": "강 / 급류",
"autism_themes": "자폐 / 신경다양성",
"adhd_themes": "ADHD / 실행 기능 장애",
"hikikomori": "히키코모리 / 사회적 은둔",
"neet_themes": "NEET 주제",
"social_anxiety_themes": "사회 불안",
"social_isolation": "사회적 고립 / 외로움",
"schizophrenia_themes": "조현병 / 정신증",
"burnout_themes": "번아웃",
"survivor_guilt": "생존자 죄책감",
"abandonment_themes": "유기 / 유기 트라우마",
"parasocial_themes": "파라소셜 관계",
"gaslighting_themes": "가스라이팅",
"stockholm_syndrome": "스톡홀름 증후군",
"behavioral_addiction": "게임 / 도박 중독",
"existential_crisis": "실존적 위기 / 허무주의",
"impostor_syndrome": "사기꾼 증후군",
"midlife_crisis": "중년의 위기",
"quarter_life_crisis": "쿼터라이프 위기",
"workplace_harassment": "직장 내 괴롭힘",
"masculinity_pressure": "성역할 압박",
"political_extremism": "정치적 극단주의",
"religious_extremism": "종교 극단주의 / 근본주의",
"genocide": "제노사이드 / 인종 청소",
"holy_war": "성전 / 종파 분쟁",
"holocaust_themes": "홀로코스트",
"civil_war": "내전",
"mass_shooting": "총기 난사 / 학교 총격",
"colonialism": "식민주의 / 제국주의",
"propaganda": "국가 선전",
"dystopian_state": "감시 국가 / 디스토피아",
"conspiracy_theories": "음모론",
"censorship_themes": "검열 / 언론 탄압",
"ethnic_conflict": "민족 / 인종 갈등",
"refugee_crisis": "난민 위기",
"revolution_themes": "혁명 / 봉기",
"assassination": "정치 암살",
"coup_themes": "쿠데타",
"inquisition": "종교 재판 / 마녀사냥",
"forced_labor": "강제 노동",
"ultranationalism": "극단적 민족주의",
"hanging_depiction": "교수형 / 교살",
"drowning_depiction": "익사 장면",
"burning_alive": "분신 / 화형",
"asphyxiation_depiction": "질식 / 호흡 곤란",
"restraint_torture": "결박된 피해자",
"public_execution": "공개 처형",
"decapitation": "참수",
"impalement": "관통",
"mass_casualty_event": "대규모 인명피해",
"vehicular_violence": "차량을 이용한 폭력",
"overdose_depiction": "약물 과다 복용 장면",
"defenestration": "추락 / 투신"
},
"playthroughNotes": {
"title": "플레이 노트",
@@ -459,7 +552,9 @@
"addOne": "엔딩 추가",
"removeLast": "마지막 항목 삭제",
"videoRangeHint": "각 영상은 연속된 엔딩 구간을 담당합니다. 기본은 균등 분할이며 행 단위로 수정 가능합니다.",
"multiVideoOutputNote": "각 영상의 설명은 해당 구간을 렌더링합니다. 평소대로 생성 — 미리보기는 기본적으로 영상 1을 표시합니다.",
"multiVideoOutputNote": "각 영상의 설명은 해당 구간을 렌더링합니다. 평소대로 생성 — 아래 셀렉터에서 미리보기 영상을 전환하세요.",
"videoIndexLabel": "미리보기 영상",
"videoIndexHint": "선택한 영상의 엔딩 구간에 맞춰 Output 미리보기, 제목, 태그가 업데이트됩니다. 영상별로 각각 복사하여 게시하세요.",
"warnings": {
"singleEmpty": "번호 또는 이름 중 하나는 입력해야 합니다 — 빈 항목은 설명에서 제외됩니다.",
"timelineShort": "타임라인에 엔딩 마커가 {{needed}}개 필요하지만 {{found}}개만 있습니다. 복사 전에 누락분을 추가하세요.",
@@ -553,6 +648,7 @@
"copyPinnedCommentTemplate": "고정 댓글 템플릿 복사",
"generateAlternatives": "제목 대안 생성",
"saveAsTemplate": "템플릿으로 저장",
"previewingVideo": "미리보기: 영상 {{index}}/{{total}} — 엔딩 {{from}}–{{to}}",
"variants": {
"default": "기본",
"typeFirst": "유형 우선",
@@ -575,7 +671,8 @@
"search": "검색",
"generate": "생성",
"undo": "되돌리기",
"dismiss": "닫기"
"dismiss": "닫기",
"scrollToTop": "맨 위로"
},
"videoTypes": {
"full": "전체 게임플레이",
@@ -753,6 +850,8 @@
"hashtagCount": "해시태그 수",
"showQualityBadge": "제목에 화질 배지 표시 (예: [2K 60FPS])",
"showCopyright": "설명란에 © 저작권 줄 추가",
"showGameCopyright": "설명란에 © 게임 스튜디오 크레딧 추가 (스토어 링크 바로 아래)",
"showGameCopyrightHint": "스토어 링크 바로 아래에 “© [퍼블리셔]. 모든 권리 보유.” 형식의 크레딧 줄을 추가합니다. 개발사/퍼블리셔가 설명란 표기를 계약상 요구하는 경우 사용하세요. 게임 정보의 “스튜디오 / 퍼블리셔” 항목에서 스튜디오 이름을 가져오며, 비어 있으면 줄은 표시되지 않습니다.",
"showUsagePolicy": "설명란에 영상 사용 정책 블록 추가",
"showSponsorCredit": "설명란에 스폰서 감사 문구 추가 (키 제공)",
"showThirdPartyAds": "설명란에 써드파티 광고 블록 표시",
@@ -776,7 +875,10 @@
"pinnedCommentIncludeGenrePlaylist": "Include genre-playlist suggestion in pinned comment",
"genrePlaylistsTitle": "Genre Playlists",
"genrePlaylistsHelp": "Configure a YouTube playlist URL per genre. The pinned-comment template will auto-suggest the matching playlist when the video's primary genre is selected.",
"genrePlaylistsEmptyHint": "Leave empty to skip a genre."
"genrePlaylistsEmptyHint": "Leave empty to skip a genre.",
"logSettings": "로그",
"logRetentionDays": "로그 보관 기간 (일)",
"logRetentionHint": "이 일수보다 오래된 로그는 앱 시작 시 삭제됩니다. 범위: 1–90일."
},
"batch": {
"title": "일괄 생성",
@@ -822,6 +924,13 @@
"emptyState": "로그가 없습니다.",
"clearAll": "모두 삭제",
"clearConfirm": "모든 로그를 삭제하시겠습니까?",
"searchPlaceholder": "로그 검색..."
"clearPersistedConfirm": "메모리 내 로그와 저장된 로그 파일을 모두 삭제하시겠습니까? 되돌릴 수 없습니다.",
"clearSession": "이 세션 삭제",
"searchPlaceholder": "로그 검색...",
"exportJson": "JSON 내보내기",
"exportTxt": "TXT 내보내기",
"sessionCurrent": "현재 세션",
"sessionLabel": "세션 {{n}}",
"entriesShort": "건"
}
}
+101 -6
View File
@@ -30,6 +30,10 @@
"livestream": "🔴 LIVE",
"gacha_quest": ""
},
"endingLabel": {
"range": "Kết thúc {{from}}–{{to}}",
"count": "{{count}} Kết thúc"
},
"gachaQuestType": {
"main_story": "{{gameName}} — {{chapterName}}{{partSuffix}}",
"world_quest": "{{gameName}} — Nhiệm vụ thế giới: {{questName}}",
@@ -104,6 +108,7 @@
"timestamps": "⏱ MỐC THỜI GIAN",
"storeLinksBuy": "🎮 MUA GAME (nếu bạn muốn ủng hộ)",
"storeLinksDownload": "⬇️ TẢI GAME (nếu bạn muốn chơi)",
"gameCopyright": "© {{publisher}}. Mọi quyền được bảo lưu. Game và toàn bộ tài sản trí tuệ liên quan thuộc về {{publisher}}.",
"videoSettings": "🖥 CÀI ĐẶT VIDEO",
"rig": "💻 CẤU HÌNH MÁY",
"modList": "🧩 DANH SÁCH MOD",
@@ -116,7 +121,7 @@
"playlist": "▶️ Xem toàn bộ series: {{link}}",
"contact": "📧 Liên hệ hợp tác: {{email}}",
"cta": "👍 Like | 🔔 Đăng ký | ↗️ Chia sẻ",
"copyright": "© {{year}} {{channelName}}. Đã đăng ký bản quyền.",
"copyright": "© {{year}} {{channelName}} — Bản quyền chỉ áp dụng cho nội dung video. Game, nhân vật, âm nhạc và mọi tài sản trí tuệ liên quan thuộc về chủ sở hữu tương ứng. Mọi quyền được bảo lưu với bản ghi này.",
"usagePolicyHeader": "📋 ĐIỀU KIỆN DÙNG VIDEO",
"usagePolicy": "• Luôn luôn ghi credit kèm link video gốc VÀ kênh (tối thiểu trong phần mô tả).\n• Không re-upload toàn bộ video hoặc phần lớn nội dung dưới dạng content của bạn.\n• Không kiếm tiền từ footage mà chưa có sự đồng ý rõ ràng.\n• Không chỉnh sửa footage theo cách xuyên tạc nội dung gốc hoặc người tạo.\n• Compilation, review, commentary, reaction video đều OK miễn là có credit.\nNếu không chắc, liên hệ qua các kênh social hoặc email ở phần mô tả."
},
@@ -233,14 +238,14 @@
"mature_18plus": "Chủ đề người lớn — 18+",
"disturbing_imagery": "Hình ảnh gây ám ảnh",
"animal_abuse": "Có cảnh b*o h*nh động vật",
"child_harm": "Chủ đề trẻ em b* ng*y h*i",
"child_harm": "Chủ đề trẻ em chịu tác động",
"domestic_violence": "Chủ đề b*o h*nh gia đình",
"sexual_assault": "Có đề cập đến x*m h*i t*nh d*c",
"torture": "Có cảnh tra tấn",
"religion_themes": "Chủ đề tôn giáo — cân nhắc",
"war_violence": "Bạo lực liên quan chiến tranh",
"war_violence": "Tác động vật lý liên quan chiến tranh",
"discrimination": "Có yếu tố phân biệt trong cốt truyện",
"police_violence": "Bạo lực từ cảnh sát / chính quyền",
"police_violence": "Tác động vật lý từ cảnh sát / chính quyền",
"smoking_drinking": "Có cảnh hút thuốc / uống rượu",
"detailed_killing": "Cảnh g*ết người chi tiết",
"cult_occult": "Chủ đề giáo phái / huyền bí",
@@ -251,7 +256,7 @@
"historical_atrocity": "Tái hiện tội ác lịch sử",
"slavery_themes": "Chủ đề nô lệ / nô dịch",
"terrorism_themes": "Chủ đề khủng bố",
"bullying_themes": "Chủ đề bắt nạt / bạo lực học đường",
"bullying_themes": "Chủ đề bắt nạt / tác động vật lý học đường",
"blind_playthrough": "Chơi blind — lần đầu chạm tay",
"no_spoilers_chat": "Mong mọi người đừng spoil trong chat",
"casual_difficulty": "Chơi ở độ khó dễ / chế độ cốt truyện",
@@ -272,6 +277,34 @@
"coulrophobia": "Hề — nỗi sợ hề",
"ablutophobia": "Đuối nước / cảnh chìm dưới nước kéo dài",
"taphophobia": "Bị chôn sống / nhốt trong quan tài / hầm mộ",
"automatonophobia": "Hình nhân máy, ma-nơ-canh, hình nộm giống người",
"megalophobia": "Vật thể khổng lồ / công trình đồ sộ / thực thể to lớn",
"submechanophobia": "Vật nhân tạo chìm dưới nước — tàu đắm, máy móc dưới nước",
"necrophobia": "Xác chết, tử thi, người chết sống lại",
"spectrophobia": "Ma, hồn ma, cảnh hù qua gương",
"demonophobia": "Quỷ dữ / ác linh / huyền bí",
"selachophobia": "Cá mập / cảnh cá mập tấn công",
"mysophobia": "Vi trùng, ô nhiễm, hình ảnh lây nhiễm",
"emetophobia": "Nôn mửa / cảnh buồn nôn",
"scopophobia": "Bị thực thể nhìn chằm chằm / theo dõi",
"monophobia": "Cô lập / hoàn toàn một mình",
"musophobia": "Chuột nhắt và chuột cống",
"chiroptophobia": "Dơi / bầy dơi",
"ornithophobia": "Chim / bầy chim",
"ichthyophobia": "Cá / sinh vật biển sâu",
"herpetophobia": "Bò sát — thằn lằn và sinh vật bò",
"katsaridaphobia": "Gián / côn trùng bu bầy",
"apiphobia": "Ong và côn trùng có nọc",
"astraphobia": "Sấm, sét và giông bão",
"agoraphobia": "Không gian rộng, trống trải hoặc không lối thoát",
"enochlophobia": "Đám đông chen chúc",
"chionophobia": "Tuyết / môi trường giá lạnh khắc nghiệt",
"nosocomephobia": "Bệnh viện và cơ sở y tế",
"aichmophobia": "Vật sắc nhọn — dao, kéo, kim",
"pnigophobia": "Nghẹt thở / ngạt thở",
"homophobia": "Chủ đề hoặc lời lẽ kỳ thị người đồng tính, LGBTQ+",
"transphobia": "Chủ đề hoặc lời lẽ kỳ thị người chuyển giới",
"xenophobia": "Chủ đề bài ngoại, kỳ thị người nhập cư",
"paranoia_themes": "Hoang tưởng / chủ đề bị giám sát",
"intrusive_thoughts": "Cảnh suy nghĩ xâm nhập",
"medical_horror": "Kinh dị y khoa / phẫu thuật",
@@ -288,7 +321,69 @@
"mods_used": "Có dùng mod gameplay",
"cheats_enabled": "Có dùng cheat / lệnh debug",
"glitch_exploits": "Cố ý dùng lỗi game / phá thứ tự",
"assisted_run": "Có tham khảo guide — không phải blind"
"assisted_run": "Có tham khảo guide — không phải blind",
"homichlophobia": "Sương mù / thời tiết tầm nhìn kém",
"lilapsophobia": "Lốc xoáy / bão / cuồng phong",
"ombrophobia": "Cảnh mưa lớn / mưa xối xả",
"nephophobia": "Mây u ám / bầu trời đe doạ",
"ancraophobia": "Gió mạnh / điều kiện gió giật",
"cryophobia": "Cực lạnh / môi trường âm độ",
"heliophobia": "Ánh nắng gay gắt / phơi nắng dữ",
"cymophobia": "Sóng lớn / biển động",
"limnophobia": "Hồ và mặt nước tĩnh",
"potamophobia": "Sông / dòng chảy mạnh",
"autism_themes": "Chủ đề về tự kỷ / thần kinh đa dạng",
"adhd_themes": "Chủ đề ADHD / rối loạn chức năng điều hành",
"hikikomori": "Hikikomori / ẩn dật xã hội nặng",
"neet_themes": "Chủ đề NEET / không học không làm",
"social_anxiety_themes": "Mô tả lo âu xã hội",
"social_isolation": "Cô lập xã hội / cô đơn",
"schizophrenia_themes": "Mô tả tâm thần phân liệt / loạn thần",
"burnout_themes": "Burnout / kiệt sức kéo dài",
"survivor_guilt": "Mô tả mặc cảm của người sống sót",
"abandonment_themes": "Bị bỏ rơi / sang chấn bị bỏ rơi",
"parasocial_themes": "Quan hệ parasocial / si mê không lành mạnh",
"gaslighting_themes": "Gaslighting / lạm dụng tâm lý",
"stockholm_syndrome": "Hội chứng Stockholm / gắn bó với kẻ bắt giữ",
"behavioral_addiction": "Chủ đề nghiện cờ bạc / nghiện game",
"existential_crisis": "Khủng hoảng hiện sinh / chủ đề hư vô",
"impostor_syndrome": "Chủ đề hội chứng kẻ mạo danh",
"midlife_crisis": "Khủng hoảng tuổi trung niên",
"quarter_life_crisis": "Khủng hoảng tuổi 1/4 cuộc đời",
"workplace_harassment": "Quấy rối nơi làm việc / môi trường độc hại",
"masculinity_pressure": "Áp lực vai trò giới và nam tính",
"political_extremism": "Cực đoan chính trị / hệ tư tưởng cực đoan",
"religious_extremism": "Cực đoan tôn giáo / cuồng tín",
"genocide": "Diệt chủng / thanh trừng sắc tộc",
"holy_war": "Thánh chiến / xung đột tôn giáo bè phái",
"holocaust_themes": "Chủ đề Holocaust / tội ác Thế chiến II",
"civil_war": "Nội chiến / xung đột vũ trang nội bộ",
"mass_shooting": "Mô tả xả súng hàng loạt / xả súng trường học",
"colonialism": "Chủ đề chủ nghĩa thực dân / đế quốc",
"propaganda": "Tuyên truyền nhà nước / thao túng truyền thông",
"dystopian_state": "Nhà nước giám sát / dystopia độc tài",
"conspiracy_theories": "Thuyết âm mưu làm chủ đề cốt truyện",
"censorship_themes": "Chủ đề kiểm duyệt / đàn áp báo chí",
"ethnic_conflict": "Xung đột sắc tộc / chủng tộc",
"refugee_crisis": "Khủng hoảng tị nạn / di tản cưỡng bức",
"revolution_themes": "Cách mạng / nổi dậy / bất ổn dân sự",
"assassination": "Ám sát chính trị",
"coup_themes": "Đảo chính / chính biến quân sự",
"inquisition": "Toà án dị giáo / đàn áp tôn giáo / săn phù thủy",
"forced_labor": "Lao động cưỡng bức / trại lao động",
"ultranationalism": "Chủ nghĩa dân tộc cực đoan / sô vanh",
"hanging_depiction": "Có cảnh treo c* / siết c*",
"drowning_depiction": "Có cảnh ch*t đuối",
"burning_alive": "Có cảnh thiêu s*ng",
"asphyxiation_depiction": "Có cảnh ngạt th* / che mũi miệng",
"restraint_torture": "Có cảnh nạn nhân bị trói / cầm tù khi bị tra tấn",
"public_execution": "Có cảnh hành quyết công khai",
"decapitation": "Có cảnh chặt đầu",
"impalement": "Có cảnh đâm xuyên cơ thể",
"mass_casualty_event": "Có sự kiện thương vong hàng loạt (tấn công, thảm họa)",
"vehicular_violence": "Tác động vật lý bằng phương tiện / lao xe có chủ đích",
"overdose_depiction": "Có cảnh sử dụng quá liều",
"defenestration": "Có cảnh ngã / nhảy từ trên cao có chủ đích"
}
},
"graphics": {
+117 -8
View File
@@ -144,6 +144,8 @@
"vnDonateHelp": "Chỉ hiển thị trong description khi ngôn ngữ đầu ra là Tiếng Việt.",
"vnBankName": "Tên ngân hàng",
"vnBankNamePlaceholder": "vd: Vietcombank, MB Bank, Techcombank",
"vnBankNameSelectPlaceholder": "— Chọn ngân hàng —",
"vnBankNameOther": "Khác (nhập tay)",
"vnBankAccount": "Số tài khoản",
"vnBankAccountPlaceholder": "vd: 0123456789",
"vnBankHolder": "Chủ tài khoản",
@@ -312,6 +314,7 @@
"photosensitive": "Sức khoẻ / nhạy sáng",
"phobias": "Hội chứng sợ",
"mental_health": "Sức khoẻ tinh thần",
"social_phenomena": "Hiện tượng tâm lý — xã hội",
"sensitive": "Nội dung nhạy cảm / 18+",
"playstyle": "Chú thích lối chơi",
"horror_specific": "Kinh dị nặng đô",
@@ -359,14 +362,14 @@
"mature_18plus": "Người lớn 18+",
"disturbing_imagery": "Hình ảnh ám ảnh",
"animal_abuse": "B*o h*nh động vật",
"child_harm": "Trẻ em b* ng*y h*i",
"child_harm": "Trẻ em chịu tác động",
"domestic_violence": "B*o h*nh gia đình",
"sexual_assault": "X*m h*i t*nh d*c",
"torture": "Tra tấn",
"religion_themes": "Chủ đề tôn giáo",
"war_violence": "Bạo lực chiến tranh",
"war_violence": "Tác động vật lý chiến tranh",
"discrimination": "Phân biệt đối xử",
"police_violence": "Bạo lực chính quyền",
"police_violence": "Tác động vật lý từ chính quyền",
"smoking_drinking": "Hút thuốc / uống rượu",
"detailed_killing": "G*ết người chi tiết",
"cult_occult": "Giáo phái / huyền bí",
@@ -398,6 +401,34 @@
"coulrophobia": "Hề",
"ablutophobia": "Đuối nước",
"taphophobia": "Bị chôn sống",
"automatonophobia": "Hình nhân máy / ma-nơ-canh",
"megalophobia": "Vật thể khổng lồ",
"submechanophobia": "Vật nhân tạo chìm dưới nước",
"necrophobia": "Xác chết / tử thi",
"spectrophobia": "Ma / hồn ma",
"demonophobia": "Quỷ dữ / ác linh",
"selachophobia": "Cá mập",
"mysophobia": "Vi trùng / ô nhiễm",
"emetophobia": "Nôn mửa",
"scopophobia": "Bị nhìn chằm chằm",
"monophobia": "Cô lập / ở một mình",
"musophobia": "Chuột",
"chiroptophobia": "Dơi",
"ornithophobia": "Chim",
"ichthyophobia": "Cá",
"herpetophobia": "Bò sát",
"katsaridaphobia": "Gián",
"apiphobia": "Ong",
"astraphobia": "Sấm sét",
"agoraphobia": "Không gian rộng / trống trải",
"enochlophobia": "Đám đông",
"chionophobia": "Tuyết / giá lạnh",
"nosocomephobia": "Bệnh viện",
"aichmophobia": "Vật sắc nhọn / dao kéo",
"pnigophobia": "Nghẹt thở / ngạt",
"homophobia": "Kỳ thị người đồng tính / LGBTQ+",
"transphobia": "Kỳ thị người chuyển giới",
"xenophobia": "Bài ngoại / kỳ thị người nước ngoài",
"paranoia_themes": "Hoang tưởng",
"intrusive_thoughts": "Suy nghĩ xâm nhập",
"medical_horror": "Kinh dị y khoa",
@@ -414,7 +445,69 @@
"mods_used": "Có dùng mod",
"cheats_enabled": "Có cheat / debug",
"glitch_exploits": "Lợi dụng lỗi game",
"assisted_run": "Tham khảo guide"
"assisted_run": "Tham khảo guide",
"homichlophobia": "Sương mù",
"lilapsophobia": "Lốc xoáy / bão",
"ombrophobia": "Mưa lớn / bão tố",
"nephophobia": "Mây / trời u ám",
"ancraophobia": "Gió mạnh",
"cryophobia": "Lạnh cực độ",
"heliophobia": "Ánh nắng gay gắt",
"cymophobia": "Sóng lớn",
"limnophobia": "Hồ / nước tĩnh",
"potamophobia": "Sông / dòng chảy mạnh",
"autism_themes": "Tự kỷ / thần kinh đa dạng",
"adhd_themes": "ADHD / rối loạn tập trung",
"hikikomori": "Hikikomori / ẩn dật xã hội",
"neet_themes": "NEET (không học, không làm)",
"social_anxiety_themes": "Lo âu xã hội",
"social_isolation": "Cô lập / cô đơn xã hội",
"schizophrenia_themes": "Tâm thần phân liệt",
"burnout_themes": "Burnout / kiệt sức",
"survivor_guilt": "Mặc cảm sống sót",
"abandonment_themes": "Bị bỏ rơi / sang chấn",
"parasocial_themes": "Quan hệ parasocial",
"gaslighting_themes": "Gaslighting / thao túng",
"stockholm_syndrome": "Hội chứng Stockholm",
"behavioral_addiction": "Nghiện game / cờ bạc",
"existential_crisis": "Khủng hoảng hiện sinh",
"impostor_syndrome": "Hội chứng kẻ mạo danh",
"midlife_crisis": "Khủng hoảng tuổi trung niên",
"quarter_life_crisis": "Khủng hoảng tuổi 1/4",
"workplace_harassment": "Quấy rối nơi làm việc",
"masculinity_pressure": "Áp lực vai trò giới",
"political_extremism": "Cực đoan chính trị",
"religious_extremism": "Cực đoan / cuồng tín tôn giáo",
"genocide": "Diệt chủng / thanh trừng sắc tộc",
"holy_war": "Thánh chiến / xung đột tôn giáo",
"holocaust_themes": "Đại nạn Holocaust",
"civil_war": "Nội chiến",
"mass_shooting": "Xả súng hàng loạt / xả súng trường học",
"colonialism": "Chủ nghĩa thực dân / đế quốc",
"propaganda": "Tuyên truyền của nhà nước",
"dystopian_state": "Nhà nước giám sát / dystopia",
"conspiracy_theories": "Thuyết âm mưu",
"censorship_themes": "Kiểm duyệt / cấm phát ngôn",
"ethnic_conflict": "Xung đột sắc tộc / chủng tộc",
"refugee_crisis": "Khủng hoảng người tị nạn",
"revolution_themes": "Cách mạng / nổi dậy",
"assassination": "Ám sát chính trị",
"coup_themes": "Đảo chính / quân sự chính biến",
"inquisition": "Toà án dị giáo / săn phù thủy",
"forced_labor": "Lao động cưỡng bức",
"ultranationalism": "Chủ nghĩa dân tộc cực đoan",
"hanging_depiction": "Treo c* / siết c*",
"drowning_depiction": "Cảnh ch*t đuối",
"burning_alive": "Cảnh thiêu s*ng",
"asphyxiation_depiction": "Cảnh ngạt th*",
"restraint_torture": "Bị trói / cầm tù tra tấn",
"public_execution": "Cảnh hành quyết công khai",
"decapitation": "Cảnh chặt đầu",
"impalement": "Cảnh đâm xuyên cơ thể",
"mass_casualty_event": "Thương vong hàng loạt",
"vehicular_violence": "Tác động vật lý bằng phương tiện",
"overdose_depiction": "Cảnh sử dụng quá liều",
"defenestration": "Ngã / nhảy từ trên cao"
},
"playthroughNotes": {
"title": "Ghi chú lượt chơi",
@@ -459,7 +552,9 @@
"addOne": "Thêm ending",
"removeLast": "Xoá ending cuối",
"videoRangeHint": "Mỗi video chứa một dải ending liên tiếp. Chia mặc định cân đối; sửa theo hàng để tuỳ chỉnh.",
"multiVideoOutputNote": "Mỗi video xuất một dải ending riêng. Bấm Generate như bình thường — bản preview hiển thị video 1.",
"multiVideoOutputNote": "Mỗi video xuất một dải ending riêng. Bấm Generate như bình thường — chọn video preview bằng dropdown bên dưới.",
"videoIndexLabel": "Video xem trước",
"videoIndexHint": "Output preview, tiêu đề và tag sẽ cập nhật theo dải ending của video đang chọn. Copy từng cái để xuất bản theo từng video.",
"warnings": {
"singleEmpty": "Hãy điền ít nhất số hoặc tên — entry rỗng sẽ bị bỏ khỏi mô tả.",
"timelineShort": "Timeline cần {{needed}} mốc ending; hiện chỉ có {{found}}. Thêm các mốc còn thiếu trước khi copy.",
@@ -553,6 +648,7 @@
"copyPinnedCommentTemplate": "Sao chép mẫu bình luận ghim",
"generateAlternatives": "Tạo biến thể tiêu đề",
"saveAsTemplate": "Lưu thành template",
"previewingVideo": "Đang xem Video {{index}}/{{total}} — Ending {{from}}–{{to}}",
"variants": {
"default": "Mặc định",
"typeFirst": "Loại video trước",
@@ -575,7 +671,8 @@
"search": "Tìm kiếm",
"generate": "Tạo",
"undo": "Hoàn tác",
"dismiss": "Bỏ qua"
"dismiss": "Bỏ qua",
"scrollToTop": "Cuộn lên đầu trang"
},
"videoTypes": {
"full": "Full Gameplay",
@@ -753,6 +850,8 @@
"hashtagCount": "Số hashtag",
"showQualityBadge": "Hiện badge chất lượng trong tiêu đề (vd: [2K 60FPS])",
"showCopyright": "Gắn dòng © copyright vào description",
"showGameCopyright": "Gắn dòng © studio game (ngay dưới link game)",
"showGameCopyrightHint": "Thêm dòng “© [nhà phát hành]. All rights reserved.” ghi nhận developer/publisher của game ngay dưới link store. Dùng khi dev/publisher yêu cầu PHẢI có credit trong phần mô tả. Lấy tên studio từ ô “Studio / Nhà phát hành” trong Game Info — nếu ô đó rỗng thì dòng này sẽ không xuất hiện.",
"showUsagePolicy": "Gắn khối quy định sử dụng video vào description",
"showSponsorCredit": "Hiện dòng cảm ơn sponsor (tặng key) trong description",
"showThirdPartyAds": "Hiện block quảng cáo bên thứ 3 trong description",
@@ -776,7 +875,10 @@
"pinnedCommentIncludeGenrePlaylist": "Kèm gợi ý playlist theo thể loại trong pinned comment",
"genrePlaylistsTitle": "Playlist theo thể loại",
"genrePlaylistsHelp": "Cấu hình URL YouTube playlist cho từng thể loại. Pinned comment sẽ tự động gợi ý playlist phù hợp với thể loại chính của video.",
"genrePlaylistsEmptyHint": "Bỏ trống nếu chưa có playlist cho thể loại đó."
"genrePlaylistsEmptyHint": "Bỏ trống nếu chưa có playlist cho thể loại đó.",
"logSettings": "Nhật ký",
"logRetentionDays": "Giữ log (ngày)",
"logRetentionHint": "Log cũ hơn số ngày này sẽ tự xoá khi mở app. Phạm vi: 1–90 ngày."
},
"batch": {
"title": "Chế độ hàng loạt",
@@ -822,6 +924,13 @@
"emptyState": "Chưa có nhật ký.",
"clearAll": "Xóa tất cả",
"clearConfirm": "Bạn có chắc muốn xóa toàn bộ nhật ký?",
"searchPlaceholder": "Tìm kiếm nhật ký..."
"clearPersistedConfirm": "Xóa nhật ký trong bộ nhớ VÀ xoá file log đã lưu? Hành động này không thể hoàn tác.",
"clearSession": "Xoá phiên này",
"searchPlaceholder": "Tìm kiếm nhật ký...",
"exportJson": "Xuất JSON",
"exportTxt": "Xuất TXT",
"sessionCurrent": "Phiên hiện tại",
"sessionLabel": "Phiên {{n}}",
"entriesShort": "bản ghi"
}
}
+97 -2
View File
@@ -30,6 +30,10 @@
"livestream": "🔴 直播",
"gacha_quest": ""
},
"endingLabel": {
"range": "结局 {{from}}–{{to}}",
"count": "{{count}} 个结局"
},
"gachaQuestType": {
"main_story": "{{gameName}} — {{chapterName}}{{partSuffix}}",
"world_quest": "{{gameName}} — World Quest: {{questName}}",
@@ -104,6 +108,7 @@
"timestamps": "⏱ 时间戳",
"storeLinksBuy": "🎮 获取游戏 (如果你想购买)",
"storeLinksDownload": "⬇️ 下载游戏 (如果你想游玩)",
"gameCopyright": "© {{publisher}}. 保留所有权利。游戏及相关知识产权归 {{publisher}} 所有。",
"videoSettings": "🖥 视频设置",
"rig": "💻 我的配置",
"modList": "🧩 MOD 列表",
@@ -116,7 +121,7 @@
"playlist": "▶️ 观看完整系列:{{link}}",
"contact": "📧 商务合作:{{email}}",
"cta": "👍 点赞 | 🔔 订阅 | ↗️ 分享",
"copyright": "© {{year}} {{channelName}}. 版权所有。",
"copyright": "© {{year}} {{channelName}} — 仅限视频内容。游戏、角色、音乐及相关知识产权归各自所有者所有。保留本录像的所有权利。",
"usagePolicyHeader": "📋 视频使用规则",
"usagePolicy": "• 请务必附上原视频链接和频道的 credit(至少在描述中)。\n• 请勿将完整视频或大部分内容作为自己的内容重新上传。\n• 未经明确同意,请勿对素材进行商业化。\n• 请勿以歪曲原内容或创作者的方式剪辑素材。\n• 合集、评测、解说、反应视频均可 — 只要标明出处。\n如有疑问,请通过描述中的社交账号或邮箱联系我。"
},
@@ -272,6 +277,34 @@
"coulrophobia": "小丑 — 小丑恐惧症",
"ablutophobia": "溺水 / 长时间水下场景",
"taphophobia": "活埋 / 棺材·墓穴禁闭",
"automatonophobia": "电子动画人偶、人体模型、逼真的人形",
"megalophobia": "巨大物体 / 庞大建筑 / 巨型存在",
"submechanophobia": "水下人造物 — 沉船、水下机械",
"necrophobia": "尸体、遗体、不死生物",
"spectrophobia": "鬼魂、幽灵、利用镜子的惊吓",
"demonophobia": "恶魔 / 邪灵 / 神秘学",
"selachophobia": "鲨鱼 / 鲨鱼袭击",
"mysophobia": "细菌、污染、感染画面",
"emetophobia": "呕吐 / 恶心画面",
"scopophobia": "被某种存在注视 / 监视",
"monophobia": "孤立 / 完全独自一人",
"musophobia": "老鼠(小鼠与大鼠)",
"chiroptophobia": "蝙蝠 / 蝙蝠群",
"ornithophobia": "鸟类 / 鸟群",
"ichthyophobia": "鱼类 / 深海生物",
"herpetophobia": "爬行动物 — 蜥蜴及爬行生物",
"katsaridaphobia": "蟑螂 / 成群的虫子",
"apiphobia": "蜜蜂、黄蜂等带刺昆虫",
"astraphobia": "雷声、闪电与暴风雨",
"agoraphobia": "开阔、暴露或无法逃离的空间",
"enochlophobia": "密集人群",
"chionophobia": "雪 / 极寒环境",
"nosocomephobia": "医院与医疗设施",
"aichmophobia": "尖锐物品 — 刀刃、刀具、针",
"pnigophobia": "窒息 / 喘不过气",
"homophobia": "歧视同性恋、反LGBTQ+的主题或辱骂",
"transphobia": "歧视跨性别者的主题或辱骂",
"xenophobia": "排外、歧视移民的主题",
"paranoia_themes": "妄想 / 监视主题",
"intrusive_thoughts": "侵入性思维场景",
"medical_horror": "医疗·手术恐怖",
@@ -288,7 +321,69 @@
"mods_used": "使用游戏 mod",
"cheats_enabled": "使用作弊 / debug 指令",
"glitch_exploits": "故意利用 bug / 跳关",
"assisted_run": "参考攻略 — 非盲玩"
"assisted_run": "参考攻略 — 非盲玩",
"homichlophobia": "雾 / 薄雾 / 低能见度天气",
"lilapsophobia": "龙卷风 / 飓风 / 强烈风暴",
"ombrophobia": "暴雨 / 倾盆大雨场景",
"nephophobia": "压抑乌云 / 阴沉天空",
"ancraophobia": "强风 / 大风条件",
"cryophobia": "极端寒冷 / 零下环境",
"heliophobia": "强烈阳光 / 强日照",
"cymophobia": "巨浪 / 海面汹涌",
"limnophobia": "湖泊与静止水域",
"potamophobia": "河流 / 强劲水流",
"autism_themes": "自闭症 / 神经多样性主题",
"adhd_themes": "ADHD / 执行功能障碍刻画",
"hikikomori": "蛰居族 / 极端社交退缩",
"neet_themes": "NEET / 不在学不在工",
"social_anxiety_themes": "社交焦虑刻画",
"social_isolation": "社交孤立 / 孤独主题",
"schizophrenia_themes": "精神分裂症 / 精神病刻画",
"burnout_themes": "倦怠 / 长期过劳",
"survivor_guilt": "幸存者内疚刻画",
"abandonment_themes": "被遗弃 / 遗弃创伤",
"parasocial_themes": "拟社会关系 / 不健康迷恋",
"gaslighting_themes": "煤气灯效应 / 心理虐待",
"stockholm_syndrome": "斯德哥尔摩综合征",
"behavioral_addiction": "赌博 / 游戏成瘾主题",
"existential_crisis": "存在危机 / 虚无主义主题",
"impostor_syndrome": "冒名顶替综合征主题",
"midlife_crisis": "中年危机主题",
"quarter_life_crisis": "四分之一人生危机",
"workplace_harassment": "职场骚扰 / 有毒环境",
"masculinity_pressure": "性别角色与男性气质压力",
"political_extremism": "政治极端主义 / 激进意识形态",
"religious_extremism": "宗教极端主义 / 原教旨主义",
"genocide": "种族灭绝 / 族群清洗",
"holy_war": "圣战 / 宗派宗教冲突",
"holocaust_themes": "大屠杀 / 二战暴行主题",
"civil_war": "内战 / 内部武装冲突",
"mass_shooting": "大规模枪击 / 校园枪击刻画",
"colonialism": "殖民主义 / 帝国主义主题",
"propaganda": "国家宣传 / 媒体操纵",
"dystopian_state": "监控 / 威权反乌托邦国家",
"conspiracy_theories": "以阴谋论为剧情主题",
"censorship_themes": "审查 / 压制新闻自由",
"ethnic_conflict": "民族 / 种族冲突",
"refugee_crisis": "难民危机 / 强制迁徙",
"revolution_themes": "革命 / 起义 / 民众动乱",
"assassination": "政治暗杀",
"coup_themes": "政变 / 军事夺权",
"inquisition": "宗教审判 / 宗教迫害 / 猎巫",
"forced_labor": "强迫劳动 / 劳改营",
"ultranationalism": "极端民族主义 / 沙文主义",
"hanging_depiction": "上吊 / 勒颈场景",
"drowning_depiction": "溺水场景",
"burning_alive": "活活烧死 / 自焚",
"asphyxiation_depiction": "窒息 / 闷死场景",
"restraint_torture": "被捆绑或控制的受害者遭受酷刑",
"public_execution": "公开处决场景",
"decapitation": "斩首场景",
"impalement": "穿刺场景",
"mass_casualty_event": "大规模伤亡事件(袭击、灾难)",
"vehicular_violence": "车辆暴力 / 蓄意撞击",
"overdose_depiction": "药物过量场景",
"defenestration": "高处坠落(蓄意)"
}
},
"graphics": {
+114 -5
View File
@@ -144,6 +144,8 @@
"vnDonateHelp": "Only rendered into the description when output language is Vietnamese.",
"vnBankName": "Bank name",
"vnBankNamePlaceholder": "e.g. Vietcombank, MB Bank, Techcombank",
"vnBankNameSelectPlaceholder": "— Select bank —",
"vnBankNameOther": "Other (type manually)",
"vnBankAccount": "Account number",
"vnBankAccountPlaceholder": "e.g. 0123456789",
"vnBankHolder": "Account holder",
@@ -312,6 +314,7 @@
"photosensitive": "光敏感 / 健康",
"phobias": "恐惧症",
"mental_health": "心理健康",
"social_phenomena": "社会心理现象",
"sensitive": "成人 / 敏感",
"playstyle": "游玩说明",
"horror_specific": "重度恐怖",
@@ -398,6 +401,34 @@
"coulrophobia": "小丑",
"ablutophobia": "溺水",
"taphophobia": "活埋",
"automatonophobia": "电子动画人偶 / 人体模型",
"megalophobia": "巨大物体",
"submechanophobia": "水下人造物",
"necrophobia": "尸体 / 遗体",
"spectrophobia": "鬼魂 / 幽灵",
"demonophobia": "恶魔 / 邪灵",
"selachophobia": "鲨鱼",
"mysophobia": "细菌 / 污染",
"emetophobia": "呕吐",
"scopophobia": "被注视 / 被盯着",
"monophobia": "孤立 / 独自一人",
"musophobia": "老鼠",
"chiroptophobia": "蝙蝠",
"ornithophobia": "鸟类",
"ichthyophobia": "鱼类",
"herpetophobia": "爬行动物",
"katsaridaphobia": "蟑螂",
"apiphobia": "蜜蜂",
"astraphobia": "雷电",
"agoraphobia": "开阔空间",
"enochlophobia": "人群",
"chionophobia": "雪 / 极寒",
"nosocomephobia": "医院",
"aichmophobia": "尖锐物 / 刀刃",
"pnigophobia": "窒息",
"homophobia": "歧视同性恋 / 反LGBTQ+内容",
"transphobia": "歧视跨性别者",
"xenophobia": "排外 / 仇外内容",
"paranoia_themes": "妄想",
"intrusive_thoughts": "侵入性思维",
"medical_horror": "医疗恐怖",
@@ -414,7 +445,69 @@
"mods_used": "使用 mod",
"cheats_enabled": "使用作弊",
"glitch_exploits": "利用 bug",
"assisted_run": "参考攻略"
"assisted_run": "参考攻略",
"homichlophobia": "雾 / 薄雾",
"lilapsophobia": "龙卷风 / 飓风",
"ombrophobia": "暴雨 / 风暴",
"nephophobia": "云 / 阴天",
"ancraophobia": "强风",
"cryophobia": "极寒",
"heliophobia": "强烈阳光",
"cymophobia": "巨浪",
"limnophobia": "湖 / 静水",
"potamophobia": "河流 / 急流",
"autism_themes": "自闭症 / 神经多样性",
"adhd_themes": "ADHD / 注意力障碍",
"hikikomori": "蛰居族 / 社交退缩",
"neet_themes": "啃老 / NEET",
"social_anxiety_themes": "社交焦虑",
"social_isolation": "社交孤立 / 孤独",
"schizophrenia_themes": "精神分裂 / 精神病",
"burnout_themes": "倦怠 / 过劳",
"survivor_guilt": "幸存者内疚",
"abandonment_themes": "被遗弃 / 创伤",
"parasocial_themes": "拟社会关系",
"gaslighting_themes": "煤气灯效应 / 心理操纵",
"stockholm_syndrome": "斯德哥尔摩综合征",
"behavioral_addiction": "游戏 / 赌博成瘾",
"existential_crisis": "存在危机 / 虚无主义",
"impostor_syndrome": "冒名顶替综合征",
"midlife_crisis": "中年危机",
"quarter_life_crisis": "四分之一人生危机",
"workplace_harassment": "职场骚扰",
"masculinity_pressure": "性别角色压力",
"political_extremism": "政治极端主义",
"religious_extremism": "宗教极端主义 / 原教旨主义",
"genocide": "种族灭绝 / 族群清洗",
"holy_war": "圣战 / 宗派冲突",
"holocaust_themes": "大屠杀 (Holocaust)",
"civil_war": "内战",
"mass_shooting": "大规模 / 校园枪击",
"colonialism": "殖民主义 / 帝国主义",
"propaganda": "国家宣传",
"dystopian_state": "监控 / 反乌托邦国家",
"conspiracy_theories": "阴谋论",
"censorship_themes": "审查 / 言论压制",
"ethnic_conflict": "民族 / 种族冲突",
"refugee_crisis": "难民危机",
"revolution_themes": "革命 / 起义",
"assassination": "政治暗杀",
"coup_themes": "政变",
"inquisition": "宗教审判 / 猎巫",
"forced_labor": "强迫劳动",
"ultranationalism": "极端民族主义",
"hanging_depiction": "上吊 / 勒颈",
"drowning_depiction": "溺水场景",
"burning_alive": "活活烧死",
"asphyxiation_depiction": "窒息 / 闷死",
"restraint_torture": "被捆绑的受害者",
"public_execution": "公开处决",
"decapitation": "斩首",
"impalement": "穿刺",
"mass_casualty_event": "大规模伤亡事件",
"vehicular_violence": "车辆暴力",
"overdose_depiction": "药物过量场景",
"defenestration": "高处坠落"
},
"playthroughNotes": {
"title": "本期游玩说明",
@@ -459,7 +552,9 @@
"addOne": "添加结局",
"removeLast": "删除最后一个",
"videoRangeHint": "每个视频覆盖一段连续的结局。默认均匀分配,可按行覆盖。",
"multiVideoOutputNote": "每个视频的描述渲染对应结局段。从编辑器照常生成 — 预览默认显示视频 1。",
"multiVideoOutputNote": "每个视频的描述渲染对应结局段。从编辑器照常生成 — 使用下方选择器切换预览视频。",
"videoIndexLabel": "预览视频",
"videoIndexHint": "Output 预览、标题、标签会按所选视频的结局段更新。请按视频分别复制后发布。",
"warnings": {
"singleEmpty": "至少填写编号或名称 — 空白条目将从描述中排除。",
"timelineShort": "时间线需要 {{needed}} 个结局标记,但只有 {{found}} 个。复制前请补齐。",
@@ -553,6 +648,7 @@
"copyPinnedCommentTemplate": "复制置顶评论模板",
"generateAlternatives": "生成标题备选",
"saveAsTemplate": "保存为模板",
"previewingVideo": "预览中:视频 {{index}}/{{total}} — 结局 {{from}}–{{to}}",
"variants": {
"default": "默认",
"typeFirst": "类型优先",
@@ -575,7 +671,8 @@
"search": "搜索",
"generate": "生成",
"undo": "撤销",
"dismiss": "关闭"
"dismiss": "关闭",
"scrollToTop": "回到顶部"
},
"videoTypes": {
"full": "完整游戏实况",
@@ -753,6 +850,8 @@
"hashtagCount": "话题标签数量",
"showQualityBadge": "在标题中显示画质标签 (如:[2K 60FPS])",
"showCopyright": "在描述中添加 © 版权行",
"showGameCopyright": "在描述中添加 © 游戏工作室署名(位于商店链接下方)",
"showGameCopyrightHint": "在商店链接正下方添加一行 “© [发行商]. 保留所有权利。” 用于署名游戏的开发商或发行商。当开发商/发行商在合约中要求在描述中署名时使用。工作室名称取自 Game Info 中的“工作室 / 发行商”字段;若该字段为空,则不显示此行。",
"showUsagePolicy": "在描述中添加视频使用规则块",
"showSponsorCredit": "在描述中添加赞助商感谢行(提供激活码)",
"showThirdPartyAds": "在描述中显示第三方广告区块",
@@ -776,7 +875,10 @@
"pinnedCommentIncludeGenrePlaylist": "Include genre-playlist suggestion in pinned comment",
"genrePlaylistsTitle": "Genre Playlists",
"genrePlaylistsHelp": "Configure a YouTube playlist URL per genre. The pinned-comment template will auto-suggest the matching playlist when the video's primary genre is selected.",
"genrePlaylistsEmptyHint": "Leave empty to skip a genre."
"genrePlaylistsEmptyHint": "Leave empty to skip a genre.",
"logSettings": "日志",
"logRetentionDays": "日志保留 (天)",
"logRetentionHint": "早于此天数的日志会在启动时删除。范围:1–90 天。"
},
"batch": {
"title": "批量生成",
@@ -822,6 +924,13 @@
"emptyState": "暂无日志。",
"clearAll": "清除全部",
"clearConfirm": "确定要清除所有日志吗?",
"searchPlaceholder": "搜索日志..."
"clearPersistedConfirm": "清除内存中的日志并删除已保存的日志文件?此操作无法撤销。",
"clearSession": "清除此会话",
"searchPlaceholder": "搜索日志...",
"exportJson": "导出 JSON",
"exportTxt": "导出 TXT",
"sessionCurrent": "当前会话",
"sessionLabel": "会话 {{n}}",
"entriesShort": "条"
}
}
+2
View File
@@ -41,6 +41,7 @@ export function BatchPage() {
showCopyright,
showUsagePolicy,
showSponsorCredit,
showGameCopyright,
showPinnedCommentTemplate,
pinnedCommentIncludeAskNextGame,
titleFormat,
@@ -87,6 +88,7 @@ export function BatchPage() {
showCopyright,
showUsagePolicy,
showSponsorCredit,
showGameCopyright,
titleFormat,
});
const pinnedComment = showPinnedCommentTemplate
+217 -50
View File
@@ -1,12 +1,14 @@
import { useState, useRef, useEffect } from "react";
import { useState, useMemo } from "react";
import { useTranslation } from "react-i18next";
import { useDocumentTitle } from "@hooks/use-document-title";
import { Trash2 } from "lucide-react";
import { Trash2, ChevronDown, ChevronRight, FileJson, FileText } from "lucide-react";
import { Input } from "@components/ui/Input";
import { Button } from "@components/ui/Button";
import { ConfirmDialog } from "@components/ui/ConfirmDialog";
import { LogEntryCard } from "@components/logs/LogEntry";
import { useLogStore, type LogLevel } from "@store/log-store";
import { useLogStore, type LogEntry, type LogLevel } from "@store/log-store";
import { exportTypedToJsonFile } from "@utils/import-export";
import { saveFile } from "@utils/file-ops";
import clsx from "clsx";
const LEVEL_FILTERS: Array<{ value: LogLevel | "all"; label: string; color: string }> = [
@@ -17,37 +19,99 @@ const LEVEL_FILTERS: Array<{ value: LogLevel | "all"; label: string; color: stri
{ value: "debug", label: "Debug", color: "text-gray-400" },
];
/**
* v0.17.0 LogPage. Three new concerns over the v0.16.x version:
*
* 1. **Session-grouped accordion**. The store now tags each entry
* with a `sessionId` (one per app boot). The page collects
* consecutive entries by id and renders one collapsible block
* per session. The *current* session expands by default; prior
* sessions collapse so the page opens fast even after a week of
* persisted history.
*
* 2. **Export buttons**. Two flavours:
* - JSON (envelope-wrapped) — feeds back into the v0.15 import
* pipeline (`_type: "history"` for now; eventually a dedicated
* `log` type when there's a use case to re-import).
* - Plaintext (.txt) — one line per entry, formatted as
* `[ISO time] [LEVEL] [source] message — details`. Most useful
* for pasting into a bug report.
*
* 3. **Session-scoped clear**. The existing `Clear All` confirms
* via the same dialog; a new "Clear this session" inline action
* on each session header lets a creator drop one bad debug run
* without losing prior history.
*/
export function LogPage() {
const { t } = useTranslation("ui");
useDocumentTitle(t("tabs.logs"));
const { entries, clearAll } = useLogStore();
// `clearAll` (in-memory only) intentionally omitted — the page uses
// `clearAllPersisted` so the on-disk JSONL files don't drift out of
// sync with the in-memory tail when the user hits the toolbar trash.
const { entries, currentSessionId, clearSession, clearAllPersisted } = useLogStore();
const [search, setSearch] = useState("");
const [levelFilter, setLevelFilter] = useState<LogLevel | "all">("all");
const [showClearAll, setShowClearAll] = useState(false);
const [autoScroll, setAutoScroll] = useState(true);
const listRef = useRef<HTMLDivElement>(null);
const [collapsedSessions, setCollapsedSessions] = useState<Set<string>>(new Set());
const filtered = entries.filter((e) => {
if (levelFilter !== "all" && e.level !== levelFilter) return false;
if (search) {
const q = search.toLowerCase();
return (
e.message.toLowerCase().includes(q) ||
e.source.toLowerCase().includes(q) ||
(e.details?.toLowerCase().includes(q) ?? false)
);
/** Apply level + search filters before grouping so empty sessions
* (whose only entries got filtered out) disappear entirely. */
const filtered = useMemo<LogEntry[]>(() => {
return entries.filter((e) => {
if (levelFilter !== "all" && e.level !== levelFilter) return false;
if (search) {
const q = search.toLowerCase();
return (
e.message.toLowerCase().includes(q) ||
e.source.toLowerCase().includes(q) ||
(e.details?.toLowerCase().includes(q) ?? false)
);
}
return true;
});
}, [entries, levelFilter, search]);
/** Group filtered entries by sessionId, preserving the descending-time
* order the store maintains. Each session carries summary counts
* rendered in the header. */
const sessions = useMemo(() => {
const map = new Map<string, LogEntry[]>();
for (const entry of filtered) {
const existing = map.get(entry.sessionId);
if (existing) {
existing.push(entry);
} else {
map.set(entry.sessionId, [entry]);
}
}
return true;
});
return Array.from(map.entries()).map(([id, sessionEntries]) => ({
id,
entries: sessionEntries,
isCurrent: id === currentSessionId,
// First entry is newest (entries are prepended); last is oldest
// — used for the time range label.
firstAt: sessionEntries[sessionEntries.length - 1]?.timestamp ?? "",
lastAt: sessionEntries[0]?.timestamp ?? "",
errorCount: sessionEntries.filter((e) => e.level === "error").length,
warnCount: sessionEntries.filter((e) => e.level === "warn").length,
}));
}, [filtered, currentSessionId]);
const errorCount = entries.filter((e) => e.level === "error").length;
const warnCount = entries.filter((e) => e.level === "warn").length;
const totalErrorCount = entries.filter((e) => e.level === "error").length;
const totalWarnCount = entries.filter((e) => e.level === "warn").length;
useEffect(() => {
if (autoScroll && listRef.current) {
listRef.current.scrollTop = 0;
}
}, [entries.length, autoScroll]);
const handleExportJson = () => {
exportTypedToJsonFile("history", entries, `ytdescgen-logs-${todayStamp()}.json`);
};
const handleExportTxt = async () => {
const text = entries
.slice()
.reverse() // chronological order in the export
.map(formatPlaintextLine)
.join("\n");
await saveFile(text, `ytdescgen-logs-${todayStamp()}.txt`);
};
return (
<div className="mx-auto max-w-4xl p-6">
@@ -55,30 +119,31 @@ export function LogPage() {
<div className="flex items-center gap-3">
<h1 className="text-lg font-bold text-text-primary">{t("logs.title")}</h1>
<span className="text-xs text-text-muted">
{entries.length} entries
{errorCount > 0 && (
<span className="ml-1 text-red-400">({errorCount} errors)</span>
{entries.length} entries · {sessions.length} sessions
{totalErrorCount > 0 && (
<span className="ml-1 text-red-400">({totalErrorCount} errors)</span>
)}
{warnCount > 0 && (
<span className="ml-1 text-yellow-400">({warnCount} warnings)</span>
{totalWarnCount > 0 && (
<span className="ml-1 text-yellow-400">({totalWarnCount} warnings)</span>
)}
</span>
</div>
<div className="flex items-center gap-2">
<label className="flex items-center gap-1.5 text-xs text-text-muted">
<input
type="checkbox"
checked={autoScroll}
onChange={(e) => setAutoScroll(e.target.checked)}
className="rounded"
/>
Auto-scroll
</label>
{entries.length > 0 && (
<Button variant="ghost" size="sm" onClick={() => setShowClearAll(true)}>
<Trash2 className="h-3.5 w-3.5" />
{t("logs.clearAll")}
</Button>
<>
<Button variant="ghost" size="sm" onClick={handleExportJson}>
<FileJson className="h-3.5 w-3.5" />
{t("logs.exportJson")}
</Button>
<Button variant="ghost" size="sm" onClick={handleExportTxt}>
<FileText className="h-3.5 w-3.5" />
{t("logs.exportTxt")}
</Button>
<Button variant="ghost" size="sm" onClick={() => setShowClearAll(true)}>
<Trash2 className="h-3.5 w-3.5" />
{t("logs.clearAll")}
</Button>
</>
)}
</div>
</div>
@@ -110,30 +175,132 @@ export function LogPage() {
</div>
</div>
{/* Log entries */}
{filtered.length === 0 ? (
{/* Session-grouped entries */}
{sessions.length === 0 ? (
<p className="rounded-lg border border-dashed border-border py-12 text-center text-sm text-text-muted">
{t("logs.emptyState")}
</p>
) : (
<div ref={listRef} className="flex max-h-[65vh] flex-col gap-1.5 overflow-y-auto">
{filtered.map((entry) => (
<LogEntryCard key={entry.id} entry={entry} />
))}
<div className="flex max-h-[65vh] flex-col gap-2 overflow-y-auto">
{sessions.map((session, idx) => {
const isCollapsed = collapsedSessions.has(session.id);
// Auto-collapse non-current sessions on first render — we
// store the inverse (collapsed-set) so this defaults to
// expanded for the current session.
const effectivelyCollapsed = session.isCurrent
? isCollapsed
: !collapsedSessions.has(`__expanded__${session.id}`);
return (
<div
key={session.id}
className="rounded-lg border border-border bg-surface-1"
>
<div
className="flex cursor-pointer items-center gap-2 px-3 py-2"
onClick={() => {
// Two different toggle keys depending on default
// state — keeps the "current expanded, others
// collapsed" semantic from leaking into the set.
setCollapsedSessions((prev) => {
const next = new Set(prev);
const key = session.isCurrent
? session.id
: `__expanded__${session.id}`;
if (next.has(key)) next.delete(key);
else next.add(key);
return next;
});
}}
>
{effectivelyCollapsed ? (
<ChevronRight className="h-4 w-4 text-text-muted" />
) : (
<ChevronDown className="h-4 w-4 text-text-muted" />
)}
<span className="text-sm font-semibold text-text-primary">
{session.isCurrent
? t("logs.sessionCurrent")
: t("logs.sessionLabel", { n: sessions.length - idx })}
</span>
<span className="text-xs text-text-muted">
{formatRange(session.firstAt, session.lastAt)}
</span>
<span className="text-xs text-text-muted">
· {session.entries.length} {t("logs.entriesShort")}
</span>
{session.errorCount > 0 && (
<span className="text-xs text-red-400">
· {session.errorCount} errors
</span>
)}
{session.warnCount > 0 && (
<span className="text-xs text-yellow-400">
· {session.warnCount} warnings
</span>
)}
<div className="flex-1" />
<button
onClick={(e) => {
e.stopPropagation();
clearSession(session.id);
}}
className="rounded p-1 text-text-muted hover:bg-surface-3 hover:text-danger"
title={t("logs.clearSession")}
>
<Trash2 className="h-3 w-3" />
</button>
</div>
{!effectivelyCollapsed && (
<div className="flex flex-col gap-1 border-t border-border p-2">
{session.entries.map((entry) => (
<LogEntryCard key={entry.id} entry={entry} />
))}
</div>
)}
</div>
);
})}
</div>
)}
<ConfirmDialog
open={showClearAll}
onConfirm={() => {
clearAll();
void clearAllPersisted();
setShowClearAll(false);
}}
onCancel={() => setShowClearAll(false)}
title={t("logs.clearAll")}
message={t("logs.clearConfirm")}
message={t("logs.clearPersistedConfirm")}
variant="danger"
/>
</div>
);
}
/** Format an ISO timestamp pair as `HH:MM:SS → HH:MM:SS`. Falls back
* to a single point when both ends match (single-entry session). */
function formatRange(firstIso: string, lastIso: string): string {
const first = firstIso ? new Date(firstIso).toLocaleTimeString() : "";
const last = lastIso ? new Date(lastIso).toLocaleTimeString() : "";
if (!first) return last;
if (!last || first === last) return first;
return `${first} → ${last}`;
}
/** Build today's date stamp for export filenames. */
function todayStamp(): string {
const now = new Date();
const y = now.getFullYear();
const m = String(now.getMonth() + 1).padStart(2, "0");
const d = String(now.getDate()).padStart(2, "0");
return `${y}${m}${d}`;
}
/** One-line text formatter for the plaintext export. */
function formatPlaintextLine(entry: LogEntry): string {
const time = entry.timestamp;
const head = `[${time}] [${entry.level.toUpperCase()}] [${entry.source}] ${entry.message}`;
return entry.details ? `${head} — ${entry.details}` : head;
}
+25 -1
View File
@@ -1,7 +1,7 @@
import { useEffect, useRef, useState, useMemo } from "react";
import { useTranslation } from "react-i18next";
import { useDocumentTitle } from "@hooks/use-document-title";
import { Shuffle, Bookmark } from "lucide-react";
import { Shuffle, Bookmark, Film } from "lucide-react";
import { Button } from "@components/ui/Button";
import { OutputPreview } from "@components/output/OutputPreview";
import { OutputExtras } from "@components/output/OutputExtras";
@@ -22,6 +22,17 @@ export function OutputPage() {
useDocumentTitle(t("tabs.output"));
const defaultOutput = useGeneratedOutput();
const { gameName, videoType, language, genres } = useEditorStore();
// v0.17.1: surface the per-video preview state so the page can
// render a "Showing: Video N of M" banner — without it, a creator
// who flipped the EndingsEditor selector wouldn't see which video
// they're currently looking at without scrolling back.
const endingVideoCount = useEditorStore((s) => s.endingVideoCount);
const endingVideoIndex = useEditorStore((s) => s.endingVideoIndex);
const endingVideoRanges = useEditorStore((s) => s.endingVideoRanges);
const isMultiVideoEnding = videoType === "ending" && endingVideoCount > 1;
const currentRange = isMultiVideoEnding
? endingVideoRanges[Math.max(0, Math.min(endingVideoCount, endingVideoIndex) - 1)]
: undefined;
const addEntry = useHistoryStore((s) => s.addEntry);
const historyLimit = useSettingsStore((s) => s.historyLimit);
const savedRef = useRef<string>("");
@@ -134,6 +145,19 @@ export function OutputPage() {
</div>
)}
{isMultiVideoEnding && (
<div className="mb-4 flex items-center gap-2 rounded-lg border border-accent/40 bg-accent/10 px-3 py-2 text-xs text-text-secondary">
<Film className="h-3.5 w-3.5 shrink-0 text-accent" />
<span>
{t("output.previewingVideo", {
index: Math.min(endingVideoIndex, endingVideoCount),
total: endingVideoCount,
from: currentRange?.from ?? 1,
to: currentRange?.to ?? 1,
})}
</span>
</div>
)}
{currentOutput && <OutputPreview output={isMultiLang ? currentOutput : undefined} />}
<div className="mt-6">
<OutputExtras />
+151 -108
View File
@@ -1,6 +1,6 @@
import { useTranslation } from "react-i18next";
import { useDocumentTitle } from "@hooks/use-document-title";
import { FolderOpen, Save, Upload } from "lucide-react";
import { Save, Upload } from "lucide-react";
import { Toggle } from "@components/ui/Toggle";
import { Select } from "@components/ui/Select";
import { Input } from "@components/ui/Input";
@@ -9,9 +9,14 @@ import { ChipGroup } from "@components/ui/ChipGroup";
import { ValidatedInput } from "@components/ui/ValidatedInput";
import { SUPPORTED_LANGUAGES } from "@i18n/index";
import { GENRES, type GenreId } from "@config/genres";
import { useSettingsStore, healSettings } from "@store/settings-store";
import { useSettingsStore, healSettings, extractData } from "@store/settings-store";
import { validatePlaylistUrl } from "@utils/validation";
import { IS_TAURI } from "@utils/platform";
import {
exportTypedToJsonFile,
importParsedFromJsonFile,
} from "@utils/import-export";
import { resolveForType } from "@utils/file-schema";
import {
MAX_GENRES,
type SupportedLanguage,
@@ -24,43 +29,36 @@ import { logger } from "@utils/logger";
const SETTINGS_STORE_KEY = "ytdescgen-settings";
async function openSettingsFolder() {
try {
const { appDataDir } = await import("@tauri-apps/api/path");
const { openPath } = await import("@tauri-apps/plugin-opener");
const { invoke } = await import("@tauri-apps/api/core");
const dir = await appDataDir();
// Windows fix (v0.14.0): `appDataDir()` only returns the path string —
// the folder itself is created lazily, on the first call to
// `save_to_file`. On a fresh install where no setting has yet been
// written, the directory doesn't exist, and `openPath()` falls through
// to Explorer which surfaces "Windows cannot find ... com.skullmute
// .ytdescgen". Pre-create the folder so the shell never sees a
// non-existent path.
await invoke("ensure_dir", { path: dir });
await openPath(dir);
} catch (e) {
toast.error("Could not open settings folder");
logger.error("settings", "Failed to open settings folder", String(e));
}
/**
* Identifier-fingerprint check: pre-v0.18.0 exports were a raw dump of
* the entire on-disk `settings.json`, keyed by every store's
* localStorage name (`ytdescgen-settings`, `ytdescgen-profiles`, …).
* v0.18.0 narrowed Export Settings to write only the Settings store,
* wrapped in the typed envelope used by the rest of the Profiles tab.
* Detect the legacy shape so we can refuse the import with a friendly
* message instead of silently injecting profiles / templates / history
* into the Settings store.
*/
function isLegacyMultiStoreDump(parsed: unknown): boolean {
if (!parsed || typeof parsed !== "object") return false;
const asRecord = parsed as Record<string, unknown>;
if ("_type" in asRecord) return false; // already an envelope
return SETTINGS_STORE_KEY in asRecord;
}
async function exportSettingsToFile() {
/**
* Write the Settings store to disk as a typed envelope JSON file.
* v0.18.0 replaced the old "dump the entire on-disk settings.json"
* approach (which leaked Profiles / Templates / History into the
* exported file). The envelope wrapper matches what the Profiles tab
* produces, so users can swap export files between machines without
* worrying about which tab they're using.
*/
function exportSettingsToFile() {
try {
const { save } = await import("@tauri-apps/plugin-dialog");
const { invoke } = await import("@tauri-apps/api/core");
const { appDataDir } = await import("@tauri-apps/api/path");
const dir = await appDataDir();
// Ensure the folder exists — same reason as `openSettingsFolder`.
// On a fresh install nobody may have triggered a settings write yet.
await invoke("ensure_dir", { path: dir });
const srcPath = `${dir}settings.json`;
const content: string = await invoke("read_from_file", { path: srcPath });
const destPath = await save({ defaultPath: "ytdescgen-settings.json" });
if (destPath) {
await invoke("save_to_file", { path: destPath, content });
toast.success("Settings exported!");
}
const data = extractData(useSettingsStore.getState());
exportTypedToJsonFile("settings", data, "ytdescgen-settings.json");
toast.success("Settings exported!");
} catch (e) {
toast.error("Export failed");
logger.error("settings", "Failed to export settings", String(e));
@@ -68,79 +66,101 @@ async function exportSettingsToFile() {
}
/**
* Import settings from a user-picked `.json` file. Accepts either the
* full multi-store dump that {@link exportSettingsToFile} produces
* (object keyed by `ytdescgen-settings` etc.) or a bare `SettingsData`
* payload — the latter so hand-edited / partial files keep working.
* Import settings from a user-picked `.json` file. Accepts the
* v0.18.0 envelope shape (`{ _type: "settings", data: {...} }`) and a
* bare `SettingsData` object (hand-edited / shared partial files).
* Pre-v0.18.0 multi-store dumps are rejected with a friendly toast —
* see {@link isLegacyMultiStoreDump} for the rationale.
*
* All five failure modes from the v0.14 plan are reported as distinct
* toasts (cancel, empty, parse, shape, unknown). `healSettings()` then
* back-fills any missing keys, so a partial import never leaves the
* store in an incomplete state. The healed payload is dispatched via
* `setState`, which both updates React and triggers the persist
* `subscribe` → `saveSettings`, syncing localStorage *and* the on-disk
* `settings.json` (so re-opening the app doesn't undo the import).
* `healSettings()` back-fills any missing keys, so a partial import
* never leaves the store in an incomplete state. The healed payload is
* dispatched via `setState`, which both updates React and triggers the
* persist `subscribe` → `saveSettings`, syncing localStorage *and* the
* on-disk `settings.json` (so re-opening the app doesn't undo the
* import).
*/
async function importSettingsFromFile() {
try {
const { open } = await import("@tauri-apps/plugin-dialog");
const { invoke } = await import("@tauri-apps/api/core");
const path = await open({
filters: [{ name: "JSON", extensions: ["json"] }],
});
if (typeof path !== "string") return; // user cancelled
let content: string;
try {
content = await invoke("read_from_file", { path });
} catch (e) {
toast.error("Could not read file");
logger.error("settings", `read_from_file failed for "${path}"`, String(e));
return;
const read = await importParsedFromJsonFile();
if (!read.ok) {
// `importParsedFromJsonFile` only emits these four failure kinds —
// `wrong-shape` / `newer-schema` come from `importTypedFromJsonFile`
// (which layers `resolveForType` on top). The `default` keeps TS
// happy with the wider `ImportFailure` union without being reachable
// at runtime.
switch (read.failure.kind) {
case "cancelled":
return; // silent
case "read-failed":
toast.error(`Could not read file: ${read.failure.message}`);
logger.error("settings", "read-failed during settings import", read.failure.message);
return;
case "empty":
toast.error("File is empty");
logger.warn("settings", "Import file is empty");
return;
case "parse-error":
toast.error(`Invalid JSON syntax: ${read.failure.message}`);
logger.error("settings", "JSON parse failed during settings import", read.failure.message);
return;
default:
toast.error("Import failed");
logger.error("settings", "Unexpected import failure", JSON.stringify(read.failure));
return;
}
if (!content.trim()) {
toast.error("File is empty");
logger.warn("settings", `Import file is empty: "${path}"`);
return;
}
let parsed: unknown;
try {
parsed = JSON.parse(content);
} catch (e) {
toast.error("Invalid JSON syntax");
logger.error("settings", `JSON parse failed for "${path}"`, String(e));
return;
}
if (!parsed || typeof parsed !== "object") {
toast.error("Invalid settings file");
logger.warn("settings", "Imported JSON is not an object");
return;
}
// Accept both shapes: full multi-store dump (matches the file
// produced by `exportSettingsToFile`) or a bare SettingsData
// object. The latter lets users hand-edit / share partial files.
const asRecord = parsed as Record<string, unknown>;
const raw =
SETTINGS_STORE_KEY in asRecord ? asRecord[SETTINGS_STORE_KEY] : parsed;
const healed = healSettings(raw);
useSettingsStore.setState(healed);
// Re-apply the theme class on <html> — `setTheme` does this in the
// store action, but `setState` bypasses actions, so the class can
// get out of sync if the imported theme differs from the current.
document.documentElement.classList.toggle("dark", healed.theme === "dark");
document.documentElement.classList.toggle("light", healed.theme === "light");
toast.success("Settings imported");
logger.info("settings", `Imported settings from "${path}"`);
} catch (e) {
toast.error("Import failed");
logger.error("settings", "Unexpected error during settings import", String(e));
}
const { shape } = read;
// Pre-v0.18.0 multi-store dump → refuse with a targeted message so
// the user knows to re-export from v0.18.0+ rather than silently
// accept a file that would pollute the settings store with profile /
// template / history data.
if (isLegacyMultiStoreDump(shape.data)) {
toast.error(
"Legacy export format from v0.17.x or earlier is no longer supported. Please re-export from v0.18.0+.",
);
logger.warn("settings", "Refused legacy multi-store dump on import");
return;
}
const resolved = resolveForType(shape, "settings");
if (!resolved.ok) {
switch (resolved.reason.kind) {
case "wrong-type":
toast.error(
`This file looks like a ${resolved.reason.actual} export, not settings.`,
);
logger.warn(
"settings",
`Refused wrong-type file on settings import (got ${resolved.reason.actual})`,
);
return;
case "unknown-shape":
toast.error("File shape is not recognised — choose a YTDescGen settings export.");
logger.warn("settings", "Refused unknown-shape file on settings import");
return;
case "newer-schema":
toast.error(
`File was exported by a newer version (schema v${resolved.reason.actual}; this build supports up to v${resolved.reason.supported}). Update YTDescGen.`,
);
logger.warn(
"settings",
`Refused newer-schema settings file (file=v${resolved.reason.actual} supported=v${resolved.reason.supported})`,
);
return;
}
}
const healed = healSettings(resolved.data);
useSettingsStore.setState(healed);
// Re-apply the theme class on <html> — `setTheme` does this in the
// store action, but `setState` bypasses actions, so the class can
// get out of sync if the imported theme differs from the current.
document.documentElement.classList.toggle("dark", healed.theme === "dark");
document.documentElement.classList.toggle("light", healed.theme === "light");
toast.success("Settings imported");
logger.info("settings", "Imported settings from file");
}
export function SettingsPage() {
@@ -189,10 +209,6 @@ export function SettingsPage() {
<h1 className="text-lg font-bold text-text-primary">{t("settings.title")}</h1>
{IS_TAURI && (
<div className="flex gap-2">
<Button variant="ghost" size="sm" onClick={openSettingsFolder}>
<FolderOpen className="h-3.5 w-3.5" />
Open Folder
</Button>
<Button variant="ghost" size="sm" onClick={importSettingsFromFile}>
<Upload className="h-3.5 w-3.5" />
Import
@@ -305,6 +321,14 @@ export function SettingsPage() {
checked={settings.showCopyright}
onChange={(v) => settings.setSetting("showCopyright", v)}
/>
<Toggle
label={t("settings.showGameCopyright")}
checked={settings.showGameCopyright}
onChange={(v) => settings.setSetting("showGameCopyright", v)}
/>
<p className="-mt-1 ml-14 text-xs text-text-muted">
{t("settings.showGameCopyrightHint")}
</p>
<Toggle
label={t("settings.showUsagePolicy")}
checked={settings.showUsagePolicy}
@@ -425,6 +449,25 @@ export function SettingsPage() {
}}
/>
</section>
{/* 8. Logs — v0.17.0 retention. */}
<section className="flex flex-col gap-3">
<h2 className="text-sm font-semibold text-text-secondary">{t("settings.logSettings")}</h2>
<Input
label={t("settings.logRetentionDays")}
type="number"
min={1}
max={90}
value={String(settings.logRetentionDays)}
onChange={(e) => {
// Same clamp as `healSettings` so the in-memory value
// never goes out of bounds before persistence runs.
const val = Math.max(1, Math.min(90, Number(e.target.value) || 7));
settings.setSetting("logRetentionDays", val);
}}
/>
<p className="text-xs text-text-muted">{t("settings.logRetentionHint")}</p>
</section>
</div>
</div>
);
+28 -1
View File
@@ -124,6 +124,17 @@ export interface EditorData {
* can override.
*/
endingVideoRanges: EndingVideoRange[];
/**
* Which per-video slice the Output page should preview (v0.17.1).
* 1-indexed to match the user-facing "Video 1, Video 2…" labels.
* Only meaningful when `endingVideoCount > 1`; in single-video
* mode the index is ignored and the engine renders the union.
*
* Stored on the editor (vs. derived per-render) so the creator's
* choice survives page navigation — flipping to Profiles and back
* shouldn't reset the preview to video 1.
*/
endingVideoIndex: number;
/** Language-patch enum for Playthrough Notes (v0.12). */
languagePatch: LanguagePatch;
/** Free-form label paired with `languagePatch === "official_other" | "custom"`. */
@@ -307,6 +318,7 @@ const initialState: EditorData = {
endings: [...DEFAULTS.editor.endings] as EndingEntry[],
endingVideoCount: DEFAULTS.editor.endingVideoCount,
endingVideoRanges: [...DEFAULTS.editor.endingVideoRanges] as EndingVideoRange[],
endingVideoIndex: DEFAULTS.editor.endingVideoIndex,
languagePatch: DEFAULTS.editor.languagePatch,
languagePatchCustom: DEFAULTS.editor.languagePatchCustom,
gameVersion: DEFAULTS.editor.gameVersion,
@@ -421,13 +433,18 @@ export const useEditorStore = create<EditorState>()(
// the array first, falls back to the freeform when the
// array is empty) produces identical output for
// existing drafts.
// v12 → v13: v0.17.1. `endingVideoIndex` joined the schema —
// which per-video slice the Output preview renders
// when `endingVideoCount > 1`. Additive — defaults to
// 1; the rehydrate spread of `initialState` covers the
// back-fill for pre-v0.17.1 drafts.
// v10 → v11: v0.13. Gacha-quest gained three new structured fields:
// `characterName` (used for the Showcase quest type, replacing
// chapter/quest in templates), `anniversaryYear` (1–20 number
// used by the Anniversary quest type), and `gachaVersion`
// (free-form game version like "1.2"). All additive — empty
// / null defaults round-trip cleanly.
version: 12,
version: 13,
migrate: (persistedState, version) =>
migrateEditorState(persistedState, version),
partialize: (state) => ({
@@ -482,6 +499,7 @@ export const useEditorStore = create<EditorState>()(
endings: state.endings,
endingVideoCount: state.endingVideoCount,
endingVideoRanges: state.endingVideoRanges,
endingVideoIndex: state.endingVideoIndex,
languagePatch: state.languagePatch,
languagePatchCustom: state.languagePatchCustom,
gameVersion: state.gameVersion,
@@ -702,6 +720,15 @@ export function migrateEditorState(
: computeContiguousRanges(endingsLen, state.endingVideoCount as number);
}
}
if (version < 13) {
// v0.17.1 per-video Output selector. Clamp to [1, videoCount]
// so a stale higher index (e.g. user shrank videoCount before
// upgrade) doesn't slice off-the-end and surface a confusing
// "empty video" preview.
const vc = typeof state.endingVideoCount === "number" ? state.endingVideoCount : 1;
const idx = typeof state.endingVideoIndex === "number" ? state.endingVideoIndex : 1;
state.endingVideoIndex = Math.max(1, Math.min(vc, Math.floor(idx)));
}
return { ...initialState, ...state } as EditorData;
}
+91 -2
View File
@@ -1,5 +1,11 @@
import { create } from "zustand";
import { generateId } from "@utils/uuid";
import {
persistLogEntry,
loadRecentLogs,
pruneOldLogs,
clearAllPersistedLogs,
} from "@utils/log-storage";
export type LogLevel = "error" | "warn" | "info" | "debug";
@@ -10,29 +16,63 @@ export interface LogEntry {
source: string;
message: string;
details?: string;
/**
* Session identifier (v0.17.0). One per app boot, attached to
* every entry the store records during that lifetime. Lets the
* LogPage group entries into per-session accordion sections so
* "what happened since I opened the app" is readable at a glance,
* and prior-session history doesn't smear into the current run.
*/
sessionId: string;
}
interface LogState {
entries: LogEntry[];
addEntry: (data: Omit<LogEntry, "id" | "timestamp">) => void;
/** Session id of the *current* app boot. Stable for the lifetime
* of the store; entries from prior runs carry their own id. */
currentSessionId: string;
addEntry: (data: Omit<LogEntry, "id" | "timestamp" | "sessionId">) => void;
deleteEntry: (id: string) => void;
clearAll: () => void;
/** Clear in-memory state AND wipe persisted log files / localStorage.
* Used by the "Clear all persisted logs" action. */
clearAllPersisted: () => Promise<void>;
/** Clear all entries from a single session (current or historical). */
clearSession: (sessionId: string) => void;
}
const MAX_ENTRIES = 500;
/**
* In-memory cap. The previous limit (500) covered ~a few hours of
* heavy debug logging; raised to 2000 with persistence in play so
* the in-memory tail can fully represent a session for the LogPage
* accordion to render without paging.
*/
const MAX_ENTRIES = 2000;
/**
* Session id for THIS app boot. Module-scoped (not store-scoped) so
* every entry recorded during this process lifetime shares the same
* value regardless of which call site lands first.
*/
const CURRENT_SESSION_ID = generateId();
export const useLogStore = create<LogState>()((set) => ({
entries: [],
currentSessionId: CURRENT_SESSION_ID,
addEntry: (data) => {
const entry: LogEntry = {
...data,
id: generateId(),
timestamp: new Date().toISOString(),
sessionId: CURRENT_SESSION_ID,
};
set((state) => ({
entries: [entry, ...state.entries].slice(0, MAX_ENTRIES),
}));
// Fire-and-forget persistence. `persistLogEntry` swallows failures
// — we don't want a disk hiccup to escalate into a log loop.
void persistLogEntry(entry);
},
deleteEntry: (id) => {
@@ -40,4 +80,53 @@ export const useLogStore = create<LogState>()((set) => ({
},
clearAll: () => set({ entries: [] }),
clearAllPersisted: async () => {
set({ entries: [] });
await clearAllPersistedLogs();
},
clearSession: (sessionId) =>
set((state) => ({
entries: state.entries.filter((e) => e.sessionId !== sessionId),
})),
}));
/**
* Boot-time hydration. Reads recent persisted entries from disk /
* localStorage and folds them into the in-memory store before the
* UI mounts. Idempotent — re-running just produces the same merge
* (entries are deduped by id).
*
* Async and best-effort: if persistence fails or the platform layer
* isn't ready yet, the store just starts empty and accumulates from
* the current session forward. Called once from `App.tsx`.
*/
export async function hydrateLogStore(retentionDays: number): Promise<void> {
try {
const prior = await loadRecentLogs(retentionDays);
if (prior.length === 0) {
// No-op — first run / nothing in the retention window.
} else {
// Sort by timestamp descending so the newest is first
// (matches `addEntry`'s prepend semantics). Filter out anything
// already in memory by id to keep hydration idempotent.
const sorted = [...prior].sort(
(a, b) => Date.parse(b.timestamp) - Date.parse(a.timestamp),
);
useLogStore.setState((state) => {
const existing = new Set(state.entries.map((e) => e.id));
const fresh = sorted.filter((e) => !existing.has(e.id));
// Place fresh prior entries AFTER current session's entries
// (which were added between boot and this call) so the
// accordion still opens with the current session at top.
return { entries: [...state.entries, ...fresh].slice(0, MAX_ENTRIES) };
});
}
// Run retention sweep AFTER hydrate so the load can pick up
// entries that are about to be pruned (last-chance access).
void pruneOldLogs(retentionDays);
} catch {
// Hydration failure → store stays empty + per-session forward.
}
}
+16
View File
@@ -13,6 +13,22 @@ export interface GamePreset {
storeLinks: Record<string, string>;
spoilerWarning: boolean;
matureWarning: boolean;
/**
* Game's dev/publisher name. v0.21.0 lifted this from a side-label on
* the publisher store link to a first-class field so it survives across
* preset reloads — useful when a creator covers a series spanning many
* episodes and doesn't want to re-type the studio name each session.
* Optional so older presets (pre-v0.21) hydrate without breaking.
*/
pubDevName?: string;
/**
* Per-preset toggle that mirrors `settings.showGameCopyright`. v0.21.0
* added this so a preset can carry the credit obligation alongside the
* publisher name — applying the preset hydrates both fields together,
* which is the common case for games whose dev requires attribution in
* the description. Optional; missing means "don't touch the setting".
*/
showGameCopyright?: boolean;
createdAt: string;
}
+32 -8
View File
@@ -1,13 +1,8 @@
import type { GenreId } from "@config/genres";
import type { SupportedLanguage, TitleFormatConfig } from "@engine/types";
// Re-exported so UI + persist layers can import everything from one module.
export type {
TitleBadgeCase,
TitleBadgePosition,
TitleFormatConfig,
TitleSeparatorId,
} from "@engine/types";
// Re-exported so the persist layer can import it alongside the heal helpers.
export type { TitleFormatConfig } from "@engine/types";
/**
* Shape of the settings payload that is persisted to disk + localStorage.
@@ -31,6 +26,15 @@ export interface SettingsData {
showCopyright: boolean;
showUsagePolicy: boolean;
showSponsorCredit: boolean;
/**
* v0.21.0 opt-in toggle. When true and the current editor has a
* non-empty `pubDevName`, the description emits a single
* `© {publisher}. All rights reserved.` line right after the Store
* Links block. Used by creators covering games whose dev/publisher
* contractually requires a copyright credit in the description.
* Default off — see the help text in `settings.showGameCopyright.help`.
*/
showGameCopyright: boolean;
/**
* When true, the description renders a "🤝 SPONSORS & PARTNERS" block
* containing the active profile's `thirdPartyAdText`. Off by default
@@ -79,9 +83,17 @@ export interface SettingsData {
* narrow-screen users don't keep collapsing on every visit.
*/
sidebarCollapsed: boolean;
/**
* How many days of log history to keep on disk / in localStorage
* (v0.17.0). Files older than this are deleted at app boot.
* Default 7 — long enough to investigate week-ago issues, short
* enough to keep the AppData folder small. Clamped to `[1, 90]`
* by `healSettings`.
*/
logRetentionDays: number;
}
export function detectBrowserLanguage(): SupportedLanguage {
function detectBrowserLanguage(): SupportedLanguage {
if (typeof navigator === "undefined") return "en";
const lang = navigator.language.split("-")[0];
const supported: SupportedLanguage[] = ["en", "vi", "ja", "es", "ko", "zh"];
@@ -107,6 +119,7 @@ export const initialSettings: SettingsData = {
showCopyright: true,
showUsagePolicy: false,
showSponsorCredit: false,
showGameCopyright: false,
showThirdPartyAds: false,
showPinnedCommentTemplate: false,
pinnedCommentIncludeAskNextGame: true,
@@ -128,6 +141,7 @@ export const initialSettings: SettingsData = {
storeAndSocial: false,
},
sidebarCollapsed: false,
logRetentionDays: 7,
};
/**
@@ -172,5 +186,15 @@ export function healSettings(raw: unknown): SettingsData {
: {};
incoming.genrePlaylists = { ...initialSettings.genrePlaylists, ...incomingGp };
// v9 → v10: v0.17.0. `logRetentionDays` added (default 7). Clamp
// to [1, 90] so an extreme value can't either spam the disk or
// wipe everything on boot.
if (typeof incoming.logRetentionDays === "number") {
incoming.logRetentionDays = Math.max(
1,
Math.min(90, Math.floor(incoming.logRetentionDays)),
);
}
return { ...initialSettings, ...incoming } as SettingsData;
}
+18 -10
View File
@@ -10,14 +10,8 @@ import {
type TitleFormatConfig,
} from "./settings-heal";
export type {
SettingsData,
TitleFormatConfig,
TitleBadgePosition,
TitleSeparatorId,
TitleBadgeCase,
} from "./settings-heal";
export { healSettings, initialSettings } from "./settings-heal";
export type { SettingsData } from "./settings-heal";
export { healSettings } from "./settings-heal";
interface SettingsState extends SettingsData {
setTheme: (theme: "dark" | "light") => void;
@@ -69,7 +63,9 @@ export const useSettingsStore = create<SettingsState>()(
// explicit per-version migration step is required here.
// v8 → v9: v0.11 added `showThirdPartyAds`. Additive — same back-fill
// path as v8.
version: 9,
// v9 → v10: v0.17.0 added `logRetentionDays`. Additive — defaults to
// 7 days; `healSettings` clamps incoming values to [1, 90].
version: 10,
migrate: (persistedState: unknown): SettingsData => healSettings(persistedState),
partialize: (state) => extractData(state),
onRehydrateStorage: () => {
@@ -88,7 +84,17 @@ export const useSettingsStore = create<SettingsState>()(
),
);
function extractData(state: SettingsData): SettingsData {
/**
* Strip the {@link SettingsState} action functions from a live store
* snapshot, returning only the persisted {@link SettingsData} fields.
* Used by the persist middleware's `partialize` hook and by
* {@link SettingsPage}'s typed export so a JSON file written from the
* Settings tab carries only data — not the actions that would otherwise
* leak into the file as `null` values.
*
* Pure — safe to call from anywhere, no side effects.
*/
export function extractData(state: SettingsData): SettingsData {
return {
appLanguage: state.appLanguage,
defaultOutputLanguage: state.defaultOutputLanguage,
@@ -104,6 +110,7 @@ function extractData(state: SettingsData): SettingsData {
showCopyright: state.showCopyright,
showUsagePolicy: state.showUsagePolicy,
showSponsorCredit: state.showSponsorCredit,
showGameCopyright: state.showGameCopyright,
showThirdPartyAds: state.showThirdPartyAds,
showPinnedCommentTemplate: state.showPinnedCommentTemplate,
pinnedCommentIncludeAskNextGame: state.pinnedCommentIncludeAskNextGame,
@@ -112,6 +119,7 @@ function extractData(state: SettingsData): SettingsData {
titleFormat: { ...state.titleFormat },
editorAccordionState: state.editorAccordionState,
sidebarCollapsed: state.sidebarCollapsed,
logRetentionDays: state.logRetentionDays,
};
}
-26
View File
@@ -16,29 +16,3 @@ export async function saveFile(content: string, filename: string): Promise<void>
URL.revokeObjectURL(url);
}
}
export async function loadFile(): Promise<string | null> {
if (IS_TAURI) {
const { open } = await import("@tauri-apps/plugin-dialog");
const { invoke } = await import("@tauri-apps/api/core");
const path = await open({
filters: [{ name: "JSON", extensions: ["json"] }],
});
if (typeof path === "string") {
return invoke<string>("read_from_file", { path });
}
return null;
} else {
return new Promise((resolve) => {
const input = document.createElement("input");
input.type = "file";
input.accept = ".json";
input.onchange = async () => {
const file = input.files?.[0];
if (file) resolve(await file.text());
else resolve(null);
};
input.click();
});
}
}
+1 -1
View File
@@ -60,7 +60,7 @@ export const SCHEMA_VERSIONS: Record<ExportType, number> = {
profile: 1, // v0.11 added `thirdPartyAdText`
preset: 2, // v0.5 added `genres[]` (was `genre`)
template: 1, // v0.11 vendor-coercion
settings: 9, // matches settings-store persist version
settings: 10, // matches settings-store persist version
history: 2, // v0.5 added `genres[]` to HistoryEntry
};
+1 -46
View File
@@ -42,9 +42,7 @@ export type ImportResult<T> =
/**
* Write `data` to a download as a typed envelope JSON file. The
* envelope marker lets a later import auto-detect the file's type
* (see {@link importTypedFromJsonFile}). Existing pre-v0.15 export
* call sites still work via {@link exportToJsonFile} below, which
* forwards here with no `type`.
* (see {@link importTypedFromJsonFile}).
*/
export function exportTypedToJsonFile<T>(
type: ExportType,
@@ -56,16 +54,6 @@ export function exportTypedToJsonFile<T>(
triggerDownload(json, filename);
}
/**
* Legacy: untyped export (bare value, no envelope). Kept for the few
* call sites that aren't ready to migrate — anything new should use
* {@link exportTypedToJsonFile} so the import side gets auto-detect.
*/
export function exportToJsonFile(data: unknown, filename: string): void {
const json = JSON.stringify(data, null, 2);
triggerDownload(json, filename);
}
function triggerDownload(content: string, filename: string): void {
const blob = new Blob([content], { type: "application/json" });
const url = URL.createObjectURL(blob);
@@ -202,36 +190,3 @@ export async function importTypedFromJsonFile(
}
return { ok: true, data: resolved.data, sourceVersion: resolved.sourceVersion };
}
/**
* Legacy: bare-value JSON import. Some call sites still need this
* (LogPage's eventual log-import, ad-hoc tooling). Throws on parse /
* empty errors — the new contract is {@link importTypedFromJsonFile}
* for everything user-facing.
*/
export function importFromJsonFile<T>(): Promise<T> {
return new Promise((resolve, reject) => {
const input = document.createElement("input");
input.type = "file";
input.accept = ".json";
input.onchange = () => {
const file = input.files?.[0];
if (!file) {
reject(new Error("No file selected"));
return;
}
const reader = new FileReader();
reader.onload = () => {
try {
const data = JSON.parse(reader.result as string) as T;
resolve(data);
} catch {
reject(new Error("Invalid JSON file"));
}
};
reader.onerror = () => reject(new Error("Failed to read file"));
reader.readAsText(file);
};
input.click();
});
}
+222
View File
@@ -0,0 +1,222 @@
import { IS_TAURI } from "./platform";
import type { LogEntry } from "@store/log-store";
/**
* Log persistence (v0.17.0). Bridges the in-memory log store to
* disk (Tauri JSONL files) / localStorage (web) so creators get a
* persistent trail across app restarts.
*
* Design choices:
*
* - **JSONL on disk**, one entry per line. Lets us append on every
* `addEntry` without re-serialising the whole tail, and a corrupt
* line never breaks the rest of the file (parse failures are
* filtered, not propagated).
* - **Daily file rotation** (`ytdescgen-YYYYMMDD.jsonl`). Cleanup
* sweeps just delete whole files older than `logRetentionDays`,
* which is dramatically faster than scanning every line.
* - **localStorage cap on web** (5000 entries). When the cap is
* exceeded, oldest entries drop. Roughly matches a week of
* moderate use; users who need more should use the desktop build.
* - **Best-effort writes**: persistence failures never throw — the
* in-memory store stays the source of truth even if disk writes
* fail. Errors get logged to the *previous* log entry's source so
* we don't recurse into an infinite write loop.
*/
const LOG_DIR_SUBPATH = "logs";
const FILE_PREFIX = "ytdescgen-";
const FILE_SUFFIX = ".jsonl";
const WEB_STORAGE_KEY = "ytdescgen-logs";
const WEB_MAX_ENTRIES = 5000;
/** Build today's log file name (`ytdescgen-YYYYMMDD.jsonl`). */
function todayFileName(now = new Date()): string {
const y = now.getFullYear();
const m = String(now.getMonth() + 1).padStart(2, "0");
const d = String(now.getDate()).padStart(2, "0");
return `${FILE_PREFIX}${y}${m}${d}${FILE_SUFFIX}`;
}
/** Extract the YYYYMMDD date from a log file name. Returns null when
* the name doesn't match the prefix/suffix shape — defensive against
* hand-edited files in the same directory. */
function parseFileDate(name: string): Date | null {
if (!name.startsWith(FILE_PREFIX) || !name.endsWith(FILE_SUFFIX)) {
return null;
}
const datePart = name.slice(FILE_PREFIX.length, name.length - FILE_SUFFIX.length);
if (!/^\d{8}$/.test(datePart)) return null;
const y = parseInt(datePart.slice(0, 4), 10);
const m = parseInt(datePart.slice(4, 6), 10) - 1;
const d = parseInt(datePart.slice(6, 8), 10);
return new Date(y, m, d);
}
/** Compute the absolute path to today's log file on the Tauri side. */
async function getTodayLogPath(): Promise<string> {
const { appDataDir } = await import("@tauri-apps/api/path");
const dir = await appDataDir();
return `${dir}${LOG_DIR_SUBPATH}/${todayFileName()}`;
}
async function getLogDirPath(): Promise<string> {
const { appDataDir } = await import("@tauri-apps/api/path");
const dir = await appDataDir();
return `${dir}${LOG_DIR_SUBPATH}`;
}
/**
* Append a single {@link LogEntry} to durable storage. On Tauri this
* writes one JSONL line to the daily file; on web it appends to the
* `ytdescgen-logs` localStorage key (with FIFO eviction when the cap
* is hit). Failures are swallowed — the in-memory store remains the
* canonical view.
*/
export async function persistLogEntry(entry: LogEntry): Promise<void> {
try {
if (IS_TAURI) {
const { invoke } = await import("@tauri-apps/api/core");
const path = await getTodayLogPath();
const line = `${JSON.stringify(entry)}\n`;
await invoke("append_to_file", { path, content: line });
} else {
const raw = localStorage.getItem(WEB_STORAGE_KEY);
const existing: LogEntry[] = raw ? safeParseArray(raw) : [];
existing.push(entry);
const trimmed =
existing.length > WEB_MAX_ENTRIES
? existing.slice(existing.length - WEB_MAX_ENTRIES)
: existing;
localStorage.setItem(WEB_STORAGE_KEY, JSON.stringify(trimmed));
}
} catch {
// Swallow — see top-of-file comment. We can't even log the failure
// because that would recurse here. The in-memory store still has
// the entry, so the user sees it for the current session.
}
}
/**
* Load persisted log entries from durable storage, filtered to the
* last `maxAgeDays` days. Used at app boot to seed the in-memory
* store with prior-session history.
*
* Web: one localStorage read + filter by `timestamp`.
*
* Tauri: lists files in `{appData}/logs/`, picks each `ytdescgen-*.jsonl`
* with a parsed date within the retention window, reads + parses
* JSONL line-by-line. Corrupt lines are skipped silently so a single
* bad write can't poison the whole tail.
*/
export async function loadRecentLogs(maxAgeDays: number): Promise<LogEntry[]> {
const cutoff = Date.now() - maxAgeDays * 24 * 60 * 60 * 1000;
try {
if (IS_TAURI) {
return await loadRecentTauriLogs(cutoff);
}
const raw = localStorage.getItem(WEB_STORAGE_KEY);
if (!raw) return [];
return safeParseArray(raw).filter((e) => Date.parse(e.timestamp) >= cutoff);
} catch {
return [];
}
}
async function loadRecentTauriLogs(cutoffMs: number): Promise<LogEntry[]> {
const { invoke } = await import("@tauri-apps/api/core");
const dirPath = await getLogDirPath();
const names = await invoke<string[]>("list_dir", { path: dirPath });
// Only consider files whose parsed date is within the window. Saves
// a full read of files we'd just throw away.
const candidates = names
.map((name) => ({ name, date: parseFileDate(name) }))
.filter(
(x): x is { name: string; date: Date } =>
x.date !== null && x.date.getTime() >= cutoffMs - 24 * 60 * 60 * 1000,
);
const entries: LogEntry[] = [];
for (const { name } of candidates) {
try {
const content: string = await invoke("read_from_file", {
path: `${dirPath}/${name}`,
});
for (const line of content.split("\n")) {
if (!line.trim()) continue;
try {
const parsed = JSON.parse(line) as LogEntry;
if (Date.parse(parsed.timestamp) >= cutoffMs) {
entries.push(parsed);
}
} catch {
// Corrupt line — skip without failing the whole sweep.
}
}
} catch {
// Couldn't read this file — skip it.
}
}
return entries;
}
/**
* Delete log files older than `maxAgeDays`. Runs at app boot after
* `loadRecentLogs` so a long-idle install doesn't keep months of old
* JSONL around. Web path is a no-op — the localStorage cap already
* handles eviction by FIFO.
*/
export async function pruneOldLogs(maxAgeDays: number): Promise<void> {
if (!IS_TAURI) return;
const cutoff = Date.now() - maxAgeDays * 24 * 60 * 60 * 1000;
try {
const { invoke } = await import("@tauri-apps/api/core");
const dirPath = await getLogDirPath();
const names = await invoke<string[]>("list_dir", { path: dirPath });
for (const name of names) {
const date = parseFileDate(name);
if (date && date.getTime() < cutoff) {
try {
await invoke("delete_file", { path: `${dirPath}/${name}` });
} catch {
// Permission denied / already gone → skip.
}
}
}
} catch {
// Directory listing failed — non-fatal.
}
}
/**
* Hard-clear ALL persisted logs (Tauri files + web localStorage).
* Used by the LogPage "Clear all persisted logs" action. The
* in-memory store is reset separately by the caller.
*/
export async function clearAllPersistedLogs(): Promise<void> {
try {
if (IS_TAURI) {
const { invoke } = await import("@tauri-apps/api/core");
const dirPath = await getLogDirPath();
const names = await invoke<string[]>("list_dir", { path: dirPath });
for (const name of names) {
if (name.startsWith(FILE_PREFIX) && name.endsWith(FILE_SUFFIX)) {
await invoke("delete_file", { path: `${dirPath}/${name}` });
}
}
} else {
localStorage.removeItem(WEB_STORAGE_KEY);
}
} catch {
// Best-effort; caller already cleared the in-memory store.
}
}
/** Parse a JSON array string safely; returns [] on any failure. */
function safeParseArray(raw: string): LogEntry[] {
try {
const parsed = JSON.parse(raw);
return Array.isArray(parsed) ? (parsed as LogEntry[]) : [];
} catch {
return [];
}
}
+26 -5
View File
@@ -653,7 +653,13 @@ describe("buildDescription", () => {
const t = createMockT("en");
const result = buildDescription(makeInput(), t, { showCopyright: true });
const year = new Date().getFullYear();
expect(result).toContain(`© ${year} TestChannel. All rights reserved.`);
// v0.21.0 reworded the line to disambiguate the channel's video
// copyright from the game's IP. The header still leads with the
// same `© YYYY ChannelName` and the line still contains "All rights
// reserved on this recording" so the downstream checks (lines
// 664/670/694) keep working.
expect(result).toContain(`© ${year} TestChannel — Video content only.`);
expect(result).toContain("All rights reserved on this recording.");
});
it("skips copyright when channelName is blank even if toggle is on", () => {
@@ -1204,26 +1210,41 @@ describe("buildDescription — v0.7 content fields (legacy)", () => {
expect(result).toContain("• Có jumpscare");
});
it("censors YouTube-flag-prone Vietnamese terms with asterisks (v0.11)", () => {
it("censors YouTube-flag-prone Vietnamese terms with asterisks + euphemisms (v0.11 / v0.21.0)", () => {
const t = createMockT("vi");
const tEn = createMockT("en");
const result = buildDescription(
makeInput({
language: "vi",
contentWarnings: ["sexual_assault", "self_harm", "detailed_killing", "child_harm"],
contentWarnings: [
"sexual_assault",
"self_harm",
"detailed_killing",
"child_harm",
"war_violence",
"police_violence",
],
}),
t,
{ tEn },
);
// Asterisk-masked terms ARE present
// Asterisk-masked terms ARE present (kept from v0.11 baseline)
expect(result).toContain("x*m h*i");
expect(result).toContain("t* tử");
expect(result).toContain("g*ết người");
expect(result).toContain("ng*y h*i");
// v0.21.0: `child_harm` switched from the malformed asterisk pattern
// (`b* ng*y h*i`) to an unambiguous euphemism (`chịu tác động`).
expect(result).toContain("chịu tác động");
// v0.21.0: `bạo lực` → `tác động vật lý` (euphemism) across
// `war_violence`, `police_violence`, `bullying_themes`.
expect(result).toContain("Tác động vật lý liên quan chiến tranh");
expect(result).toContain("Tác động vật lý từ cảnh sát / chính quyền");
// Uncensored terms are NOT present
expect(result).not.toContain("xâm hại");
expect(result).not.toContain("tự tử");
expect(result).not.toContain("giết người");
expect(result).not.toContain("Bạo lực liên quan chiến tranh");
expect(result).not.toContain("Bạo lực từ cảnh sát");
// EN side stays clinical (no censoring needed)
expect(result).toContain("Sexual assault references");
expect(result).toContain("Self-harm / suicide themes");
+58
View File
@@ -3,6 +3,7 @@ import {
generateTags,
formatTagString,
tagFriendlyGameName,
sanitizeForTag,
} from "@engine/tag-generator";
import type { GeneratorInput } from "@engine/types";
@@ -262,3 +263,60 @@ describe("generateTags — long game names (regression for v0.7 silent drop)", (
expect(tags.some((t) => t.startsWith("Platinum"))).toBe(true);
});
});
describe("sanitizeForTag — comma/semicolon/pipe stripping (v0.20.0)", () => {
it("strips a comma between words and collapses the resulting whitespace", () => {
expect(sanitizeForTag("Hello, World")).toBe("Hello World");
});
it("strips semicolons", () => {
expect(sanitizeForTag("Game; Title")).toBe("Game Title");
});
it("strips pipes", () => {
expect(sanitizeForTag("Game | DLC")).toBe("Game DLC");
});
it("is idempotent", () => {
const once = sanitizeForTag("Hello, World");
expect(sanitizeForTag(once)).toBe(once);
});
});
describe("generateTags — game names with tag-delimiter punctuation (v0.20.0)", () => {
it("emits the bare name with comma stripped and no comma-bearing tags", () => {
const tags = generateTags(makeInput({ gameName: "Hello, World" }));
expect(tags).toContain("Hello World");
expect(tags).not.toContain("Hello, World");
expect(tags.every((t) => !t.includes(","))).toBe(true);
});
it("emits clean composite tags for comma-bearing names", () => {
const tags = generateTags(
makeInput({ gameName: "Hello, World", genres: ["action"] }),
);
expect(tags).toContain("Hello World gameplay");
expect(tags.some((t) => t === "Hello World action")).toBe(true);
});
it("strips semicolons inside the game name path", () => {
const tags = generateTags(
makeInput({ gameName: "Crypt of the NecroDancer; Reaper Edition" }),
);
// Semicolon stripped, edition qualifier still peeled off, no semicolon in any tag.
expect(tags.every((t) => !t.includes(";"))).toBe(true);
expect(tags.some((t) => t.toLowerCase().includes("necrodancer"))).toBe(true);
});
it("strips pipes inside the game name path", () => {
const tags = generateTags(makeInput({ gameName: "Game | DLC" }));
expect(tags.every((t) => !t.includes("|"))).toBe(true);
expect(tags).toContain("Game DLC");
});
});
describe("tagFriendlyGameName — punctuation sanitization (v0.20.0)", () => {
it("strips a comma in addition to truncating", () => {
expect(tagFriendlyGameName("Hello, World", 30)).toBe("Hello World");
});
});
+172
View File
@@ -68,6 +68,178 @@ describe("buildTitle", () => {
expect(result).toBe("Elden Ring — Ending — Gameplay No Commentary");
});
// v0.17.0: when the creator fills structured endings, the title's
// video-type segment swaps from the static "Ending" to a label
// built off the entries themselves.
it("renders a single structured ending with both number + name (v0.17.0)", () => {
const t = createMockT("en");
const result = buildTitle(
makeInput({
videoType: "ending",
endings: [{ number: 3, name: "Best End" }],
}),
t,
);
expect(result).toBe(
"Elden Ring — Ending 3: Best End — Gameplay No Commentary",
);
});
it("renders a single structured ending with number only (v0.17.0)", () => {
const t = createMockT("en");
const result = buildTitle(
makeInput({
videoType: "ending",
endings: [{ number: 7, name: "" }],
}),
t,
);
expect(result).toBe("Elden Ring — Ending 7 — Gameplay No Commentary");
});
it("renders a single structured ending with name only (v0.17.0)", () => {
const t = createMockT("en");
const result = buildTitle(
makeInput({
videoType: "ending",
endings: [{ number: null, name: "True End" }],
}),
t,
);
expect(result).toBe("Elden Ring — True End — Gameplay No Commentary");
});
it("collapses multi-ending to comma-joined names when all named (v0.17.0)", () => {
const t = createMockT("en");
const result = buildTitle(
makeInput({
videoType: "ending",
endings: [
{ number: 1, name: "True End" },
{ number: 2, name: "Bad End" },
{ number: 3, name: "Hidden" },
],
}),
t,
);
expect(result).toBe(
"Elden Ring — True End, Bad End, Hidden — Gameplay No Commentary",
);
});
it("renders contiguous numbered endings as a range (v0.17.0)", () => {
const t = createMockT("en");
const result = buildTitle(
makeInput({
videoType: "ending",
// Numbers only, contiguous.
endings: [
{ number: 1, name: "" },
{ number: 2, name: "" },
{ number: 3, name: "" },
],
}),
t,
);
expect(result).toBe(
"Elden Ring — Endings 1–3 — Gameplay No Commentary",
);
});
it("handles out-of-order numbered endings by sorting for the range (v0.17.0)", () => {
const t = createMockT("en");
const result = buildTitle(
makeInput({
videoType: "ending",
endings: [
{ number: 3, name: "" },
{ number: 1, name: "" },
{ number: 2, name: "" },
],
}),
t,
);
expect(result).toBe("Elden Ring — Endings 1–3 — Gameplay No Commentary");
});
it("falls back to count form when non-contiguous numbers (v0.17.0)", () => {
const t = createMockT("en");
const result = buildTitle(
makeInput({
videoType: "ending",
endings: [
{ number: 1, name: "" },
{ number: 4, name: "" }, // gap → non-contiguous
],
}),
t,
);
expect(result).toBe("Elden Ring — 2 Endings — Gameplay No Commentary");
});
it("respects endingVideoIndex when slicing for per-video title (v0.17.0)", () => {
const t = createMockT("en");
const result = buildTitle(
makeInput({
videoType: "ending",
endings: [
{ number: 1, name: "True" },
{ number: 2, name: "Bad" },
{ number: 3, name: "Best" },
{ number: 4, name: "Hidden" },
],
endingVideoCount: 2,
endingVideoIndex: 2,
endingVideoRanges: [
{ from: 1, to: 2 },
{ from: 3, to: 4 },
],
}),
t,
);
// Video 2 covers endings 3 & 4 — joined names.
expect(result).toBe("Elden Ring — Best, Hidden — Gameplay No Commentary");
});
it("falls back to the legacy 'Ending' label when no usable entries (v0.17.0)", () => {
const t = createMockT("en");
// All entries empty → drop signal → fall back.
const result = buildTitle(
makeInput({
videoType: "ending",
endings: [{ number: null, name: "" }],
}),
t,
);
expect(result).toBe("Elden Ring — Ending — Gameplay No Commentary");
});
it("falls back when endings array is undefined (legacy creator)", () => {
const t = createMockT("en");
const result = buildTitle(
makeInput({ videoType: "ending", endings: undefined }),
t,
);
expect(result).toBe("Elden Ring — Ending — Gameplay No Commentary");
});
it("renders Vietnamese ending range with localised label (v0.17.0)", () => {
const t = createMockT("vi");
const result = buildTitle(
makeInput({
videoType: "ending",
language: "vi",
gameName: "Elden Ring",
endings: [
{ number: 1, name: "" },
{ number: 2, name: "" },
],
}),
t,
);
expect(result).toContain("Kết thúc 1–2");
});
it("generates speedrun title", () => {
const t = createMockT("en");
const result = buildTitle(makeInput({ videoType: "speedrun" }), t);
+58
View File
@@ -145,3 +145,61 @@ describe("migrateEditorState v11 → v12 (endings)", () => {
]);
});
});
describe("migrateEditorState v12 → v13 (endingVideoIndex)", () => {
it("defaults endingVideoIndex to 1 when absent", () => {
const result = migrateEditorState(
{ endings: [{ number: 1, name: "A" }], endingVideoCount: 1 },
12,
);
expect(result.endingVideoIndex).toBe(1);
});
it("preserves a valid endingVideoIndex within bounds", () => {
const result = migrateEditorState(
{
endings: [
{ number: 1, name: "A" },
{ number: 2, name: "B" },
],
endingVideoCount: 2,
endingVideoIndex: 2,
endingVideoRanges: [
{ from: 1, to: 1 },
{ from: 2, to: 2 },
],
},
12,
);
expect(result.endingVideoIndex).toBe(2);
});
it("clamps endingVideoIndex above endingVideoCount", () => {
// Pretend the creator shrank videoCount before upgrade — stale
// index 5 should clamp to the new max 2.
const result = migrateEditorState(
{
endings: [
{ number: 1, name: "A" },
{ number: 2, name: "B" },
],
endingVideoCount: 2,
endingVideoIndex: 5,
endingVideoRanges: [
{ from: 1, to: 1 },
{ from: 2, to: 2 },
],
},
12,
);
expect(result.endingVideoIndex).toBe(2);
});
it("clamps below 1 to 1", () => {
const result = migrateEditorState(
{ endingVideoCount: 3, endingVideoIndex: -2 },
12,
);
expect(result.endingVideoIndex).toBe(1);
});
});
+14
View File
@@ -83,6 +83,7 @@ describe("healSettings", () => {
hashtagCount: 2,
showQualityBadge: false,
showCopyright: false,
showGameCopyright: false,
showUsagePolicy: true,
showSponsorCredit: true,
showThirdPartyAds: false,
@@ -97,11 +98,24 @@ describe("healSettings", () => {
genrePlaylists: { horror: "https://www.youtube.com/playlist?list=abc" },
editorAccordionState: { gameInfo: false, videoSettings: true },
sidebarCollapsed: true,
logRetentionDays: 14,
};
const healed = healSettings(complete);
expect(healed).toEqual(complete);
});
it("back-fills logRetentionDays to 7 when absent (pre-v0.17 payload)", () => {
const healed = healSettings({ theme: "dark" as const });
expect(healed.logRetentionDays).toBe(7);
});
it("clamps logRetentionDays to [1, 90]", () => {
expect(healSettings({ logRetentionDays: 0 } as unknown).logRetentionDays).toBe(1);
expect(healSettings({ logRetentionDays: -5 } as unknown).logRetentionDays).toBe(1);
expect(healSettings({ logRetentionDays: 1000 } as unknown).logRetentionDays).toBe(90);
expect(healSettings({ logRetentionDays: 30.7 } as unknown).logRetentionDays).toBe(30);
});
it("back-fills showSponsorCredit default when the key is absent (v3 → v4 payload)", () => {
// Simulates a settings file written in v0.6 phase 1 where the new
// sponsor toggle hadn't been introduced yet.