feat(v0.22.0): +12 audio warnings, video-style era toggle, OS rig field, drop Default Genre + Dev Env

Group A — Warnings expansion + UX cleanup:
- New "audio" content-warning group (12 IDs: ear_piercing,
  jumpscare_audio, sudden_volume_changes, distorted_audio,
  screeching_metallic, persistent_high_pitch, audio_glitches,
  heavy_bass_rumble, screaming_audio, glass_breaking_audio,
  microphone_pops, white_noise_static). `loud_noises` migrated from
  photosensitive into this dedicated group. Total warnings 175 → 187.
- Remove "Default Genre" from Settings (UI + state + legacy v1→v2
  migration + migration tests). `healSettings` now strips both
  `defaultGenre` and `defaultGenres` from persisted blobs.
- Remove "Dev Environment" block from About (locked hardcoded specs
  that drift on every box upgrade; their wiki link survives in repo).

Group B — Editor additions:
- Video Style era toggle (12 eras: 1980s/90s/00s/10s/20s + modern,
  cinematic, retro, vhs, film_noir, anime_mv, documentary). Combines
  with `rig.video_editor` to emit a one-line credit like
  "Edited in 1990s VHS style using DaVinci Resolve". Renders even
  when `skipGraphicsSettings` is on (2D/pixel-art creators still
  edit footage). New `src/config/video-styles.ts`; editor-store
  persist version bumped 13 → 14 (additive, defensive coercion).
- OS field in My Rig — composite_dropdown following the RAM pattern
  (name + version + edition → "Windows 11 Pro"). Windows 10/11 +
  Home/Pro/Enterprise/Education/IoT for now; macOS/Linux can be
  added later by extending the option arrays.
- `rig.os` locale key added across 6 locales (the rig.* namespace
  itself already existed — only the new field's label is new).

Locale stats (per locale): ui.json 816 → 835 keys (+19),
templates.json 473 → 487 keys (+14). 6 locales updated in parallel
(en/vi/ja/es/ko/zh).

Tests: 416 → 445 passing (+29 — audio warnings touch no test, but
new OS composite tests + new video style line tests + reworked
default-genre migration test).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
poli0981andClaude Opus 4.7 committed 2026-05-28 01:14:35 +07:00
1 parent e4ba053951
commit 6ba2acfd7e
34 files changed
+745 -189

No files matched your search

+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "yt-desc-gen",
"version": "0.21.0",
"version": "0.22.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "yt-desc-gen",
"version": "0.21.0",
"version": "0.22.0",
"license": "Apache-2.0",
"dependencies": {
"@tauri-apps/api": "^2.11.0",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "yt-desc-gen",
"version": "0.21.0",
"version": "0.22.0",
"private": true,
"license": "Apache-2.0",
"type": "module",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "yt-desc-gen"
version = "0.21.0"
version = "0.22.0"
description = "YouTube Gameplay Description Generator"
authors = ["poli0981"]
edition = "2021"
+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.21.0",
"version": "0.22.0",
"identifier": "com.skullmute.ytdescgen",
"build": {
"beforeBuildCommand": "npm run build",
@@ -22,6 +22,7 @@ import {
coerceUpscaleQuality,
coerceFrameGenMultiplier,
} from "@engine/graphics-vendor";
import { VIDEO_STYLE_ERA_IDS, type VideoStyleEra } from "@config/video-styles";
const RESOLUTION_OPTIONS = [
{ value: "720p", label: "720p" },
@@ -56,6 +57,18 @@ export function VideoSettingsForm() {
label: t(`editor.frameGenVendorOptions.${v}`),
}));
// v0.22.0 — video-style era opt-in. Renders independently of
// `skipGraphicsSettings`, so we wire it above the toggle: 2D / pixel-art
// creators still edit their footage and may want the style credit even
// when the in-game graphics block is suppressed.
const videoStyleOptions = [
{ value: "", label: t("editor.videoStyleOff") },
...VIDEO_STYLE_ERA_IDS.map((id) => ({
value: id,
label: t(`editor.videoStyleOptions.${id}`),
})),
];
// v0.11: vendor-filtered option lists. NVIDIA exposes DLAA + 4 quality
// tiers, AMD exposes FSR Native AA + 4, Intel exposes XeSS Native AA +
// Ultra Quality + 4. None falls back to the vendor-agnostic ladder so
@@ -130,6 +143,14 @@ export function VideoSettingsForm() {
/>
)}
<Select
label={t("editor.videoStyle")}
options={videoStyleOptions}
value={store.videoStyleEra}
onChange={(v) => store.set("videoStyleEra", v as VideoStyleEra)}
/>
<p className="-mt-1 text-xs text-text-muted">{t("editor.videoStyleHelp")}</p>
<Toggle
label={t("editor.skipGraphicsSettings")}
checked={store.skipGraphicsSettings}
-6
View File
@@ -20,12 +20,6 @@ export const ABOUT = {
discussionsUrl: "https://github.com/poli0981/youtube-generator/discussions",
licenseUrl: "https://github.com/poli0981/youtube-generator/blob/main/LICENSE",
githubAuthor: "https://github.com/poli0981",
// v0.14: pc_spec.md + dev_env.md merged into DEVELOPMENT.md.
// The two URL fields are kept for backwards compatibility with the About
// page layout — `pcSpecDocUrl` now points to the EN guide, `devEnvDocUrl`
// to the VI mirror.
pcSpecDocUrl: "https://github.com/poli0981/youtube-generator/blob/main/docs/DEVELOPMENT.md",
devEnvDocUrl: "https://github.com/poli0981/youtube-generator/blob/main/docs/i18n/vi/DEVELOPMENT.md",
socials: {
youtube: "https://www.youtube.com/@SkullMute",
x: "https://x.com/SkullMute0011",
+19 -1
View File
@@ -39,11 +39,29 @@ export const CONTENT_WARNING_GROUPS: readonly ContentWarningGroup[] = [
"flashing_lights",
"motion_sickness",
"migraine_trigger",
"loud_noises",
"strobe_effects",
"screen_shake_intense",
],
},
{
id: "audio",
labelKey: "editor.contentWarningGroups.audio",
items: [
"loud_noises",
"ear_piercing",
"jumpscare_audio",
"sudden_volume_changes",
"distorted_audio",
"screeching_metallic",
"persistent_high_pitch",
"audio_glitches",
"heavy_bass_rumble",
"screaming_audio",
"glass_breaking_audio",
"microphone_pops",
"white_noise_static",
],
},
{
id: "phobias",
labelKey: "editor.contentWarningGroups.phobias",
+4 -2
View File
@@ -8,6 +8,7 @@ import type {
UpscaleQuality,
ArtStyle,
} from "./graphics-settings";
import type { VideoStyleEra } from "./video-styles";
import { DEFAULT_GACHA_QUEST_TYPE, type GachaQuestType } from "./gacha-quest-types";
import type {
SupportedLanguage,
@@ -63,6 +64,8 @@ export interface EditorDefaults {
frameGenMultiplier: FrameGenMultiplier;
upscaleQuality: UpscaleQuality;
artStyle: ArtStyle;
/** v0.22.0 opt-in. Empty string = no style line in the description. */
videoStyleEra: VideoStyleEra;
versionInfo: string;
timestamps: string;
playlistLink: string;
@@ -133,7 +136,6 @@ export interface EditorDefaults {
export interface SettingsDefaults {
theme: "dark" | "light";
defaultLanguage: string;
defaultGenres: GenreId[];
}
export const DEFAULTS = {
@@ -169,6 +171,7 @@ export const DEFAULTS = {
frameGenMultiplier: "none",
upscaleQuality: "none",
artStyle: "none",
videoStyleEra: "" satisfies VideoStyleEra,
versionInfo: "",
timestamps: "",
playlistLink: "",
@@ -210,6 +213,5 @@ export const DEFAULTS = {
settings: {
theme: "dark",
defaultLanguage: "en",
defaultGenres: ["action"],
} satisfies SettingsDefaults,
} as const;
+38
View File
@@ -147,7 +147,45 @@ const RAM_COMPOSITE: CompositeFieldSpec = {
},
};
/**
* OS composite (v0.22.0). Three dropdowns combined into one logical
* field — OS name → version → edition. Stored pipe-delimited as
* `"windows|11|pro"` → renders as `"Windows 11 Pro"`. Edition is
* optional, so `"windows|11|"` → `"Windows 11"`. Only Windows 10/11 is
* surfaced for now; macOS / Linux can be added later by extending the
* option arrays without changing storage or format logic.
*/
const OS_NAME_OPTIONS: readonly RigFieldOption[] = [
{ value: "", label: "—" },
{ value: "windows", label: "Windows" },
];
const OS_VERSION_OPTIONS: readonly RigFieldOption[] = [
{ value: "", label: "—" },
{ value: "10", label: "10" },
{ value: "11", label: "11" },
];
const OS_EDITION_OPTIONS: readonly RigFieldOption[] = [
{ value: "", label: "—" },
{ value: "home", label: "Home" },
{ value: "pro", label: "Pro" },
{ value: "enterprise", label: "Enterprise" },
{ value: "education", label: "Education" },
{ value: "iot", label: "IoT Enterprise" },
];
const OS_COMPOSITE: CompositeFieldSpec = {
parts: [
{ id: "name", labelKey: "editor.os_name", options: OS_NAME_OPTIONS },
{ id: "version", labelKey: "editor.os_version", options: OS_VERSION_OPTIONS },
{ id: "edition", labelKey: "editor.os_edition", options: OS_EDITION_OPTIONS },
],
format: (parts) => parts.filter((p) => p.trim() !== "").join(" "),
};
export const RIG_FIELDS: readonly RigField[] = [
{ id: "os", labelKey: "rig.os", type: "composite_dropdown", composite: OS_COMPOSITE },
{ id: "cpu", labelKey: "rig.cpu", type: "text", placeholder: "Intel i9-14900K / AMD Ryzen 9 7950X" },
{
id: "gpu",
+49
View File
@@ -0,0 +1,49 @@
/**
* Video-style era options (v0.22.0). When the user picks an era from the
* editor's Video Style dropdown, the description renderer emits a single
* line composed from the chosen era label and the user's `rig.video_editor`
* field — e.g. `"Edited in 1990s VHS style using DaVinci Resolve 19.1"`.
*
* Empty string `""` is the sentinel for "off" — no parallel boolean toggle.
* This mirrors the existing per-video opt-in shape used by `artStyle`,
* `playthroughStatus`, `difficulty`, etc.
*
* Adding a new era: append the id below, add the editor short label to
* `editor.videoStyleOptions.{id}` in all 6 locales, and the description
* long label to `description.videoSettings.eraOptions.{id}` in
* `templates.json`. The engine + form pick the new entry up automatically.
*/
export const VIDEO_STYLE_ERAS = [
"",
"1980s",
"1990s",
"2000s",
"2010s",
"2020s",
"modern",
"cinematic",
"retro",
"vhs",
"film_noir",
"anime_mv",
"documentary",
] as const;
export type VideoStyleEra = (typeof VIDEO_STYLE_ERAS)[number];
/** Subset minus the empty sentinel — used by the form to render options. */
export const VIDEO_STYLE_ERA_IDS = VIDEO_STYLE_ERAS.filter(
(id) => id !== "",
) as ReadonlyArray<Exclude<VideoStyleEra, "">>;
/**
* Type guard so the engine + migration can coerce unrecognised values
* (hand-edited blob, downgrade from a future version that added more
* eras) back to the empty sentinel without crashing.
*/
export function isVideoStyleEra(value: unknown): value is VideoStyleEra {
return (
typeof value === "string" &&
(VIDEO_STYLE_ERAS as readonly string[]).includes(value)
);
}
+49
View File
@@ -180,6 +180,38 @@ function composeGraphicsPart(input: GeneratorInput, t: TranslationFn): string {
return `${presetLabel}${middle}${rtClause}`;
}
/**
* Compose the v0.22.0 "Video Style" line — combines the chosen era from
* `input.videoStyleEra` with the rig's `video_editor` field to produce a
* single line like `"Edited in 1990s VHS style using DaVinci Resolve 19.1"`.
*
* Returns an empty string when:
* - `videoStyleEra` is empty / unrecognised
* - The era's i18n label can't be resolved (defensive — locale missing
* the key shouldn't leak the snake_case id into the description)
*
* Picks one of two templates depending on whether the rig's video editor
* is filled in. The two-template approach keeps localisations natural —
* each locale can phrase the with/without-editor variants differently.
*/
function composeVideoStyleLine(input: GeneratorInput, t: TranslationFn): string {
const era = (input.videoStyleEra ?? "").trim();
if (!era) return "";
const eraKey = `description.videoSettings.eraOptions.${era}`;
const eraLabel = t(eraKey);
if (!eraLabel || eraLabel === eraKey) return "";
const editor = formatRigValue(
"video_editor",
input.rig?.video_editor ?? "",
).trim();
if (editor) {
return t("description.videoSettings.styleLine", { era: eraLabel, editor });
}
return t("description.videoSettings.styleLineNoEditor", { era: eraLabel });
}
export interface BuildDescriptionOptions {
hashtagCount?: number;
/** When true and channelName is non-empty, appends an auto-generated
@@ -358,6 +390,14 @@ export function buildDescription(
// the key-value-per-line shape of the rig and timestamps blocks.
// Lines with no value are dropped; if every line is dropped, the
// whole section is dropped.
//
// v0.22.0 polish: the optional Video Style line (era + video_editor)
// renders inside this section when `skipGraphicsSettings` is off, AND
// as a tiny standalone section when it's on — 2D / pixel-art creators
// still edit their footage, so the style credit shouldn't disappear
// with the graphics block.
const styleLine = composeVideoStyleLine(input, t);
if (!input.skipGraphicsSettings) {
const lines: string[] = [];
@@ -389,9 +429,18 @@ export function buildDescription(
lines.push(`${t("description.graphics.versionLabel")}: ${input.versionInfo.trim()}`);
}
// v0.22.0 video-style era line — appended last so it reads like a
// production credit after the technical fields.
if (styleLine) lines.push(styleLine);
if (lines.length > 0) {
sections.push(`${t("description.sections.videoSettings")}\n${lines.join("\n")}`);
}
} else if (styleLine) {
// 2D / pixel-art path: the graphics block is suppressed but the
// creator still set a style era, so emit a single-line standalone
// section under the same header.
sections.push(`${t("description.sections.videoSettings")}\n${styleLine}`);
}
// 5.5 Difficulty — moved into the unified Playthrough Notes block
+25 -1
View File
@@ -265,9 +265,25 @@ export const CONTENT_WARNINGS = [
"flashing_lights",
"motion_sickness",
"migraine_trigger",
"loud_noises",
"strobe_effects",
"screen_shake_intense",
// Audio / sensory (v0.22.0). `loud_noises` migrated here from the
// photosensitive block where it never quite fit — sudden volume changes
// and high-pitched tones affect a different (audio-sensitive) audience
// than strobe / motion triggers, so they group cleaner on their own.
"loud_noises",
"ear_piercing",
"jumpscare_audio",
"sudden_volume_changes",
"distorted_audio",
"screeching_metallic",
"persistent_high_pitch",
"audio_glitches",
"heavy_bass_rumble",
"screaming_audio",
"glass_breaking_audio",
"microphone_pops",
"white_noise_static",
// Phobias
"jump_scares",
"acrophobia",
@@ -554,6 +570,14 @@ export interface GeneratorInput {
upscaleQuality?: UpscaleQuality;
/** High-level art-style descriptor — surfaces a separate line. */
artStyle?: ArtStyle;
/**
* Video-style era opt-in (v0.22.0). When set to a non-empty era id,
* the renderer emits a single "Edited in {era} style using {editor}"
* credit at the end of the Video Settings section. Combines with
* {@link rig.video_editor}. Renders even when
* {@link skipGraphicsSettings} is true.
*/
videoStyleEra?: string;
/**
* Free-form short string for driver / game version, e.g.
* "GeForce 565.90 | Game v1.4". Surfaces as the trailing token of the
+1
View File
@@ -53,6 +53,7 @@ export function buildGeneratorInputFromEditor(
frameGenMultiplier: state.frameGenMultiplier,
upscaleQuality: state.upscaleQuality,
artStyle: state.artStyle,
videoStyleEra: state.videoStyleEra,
versionInfo: state.versionInfo,
timestamps: state.timestamps,
playlistLink: state.playlistLink,
+18 -8
View File
@@ -9,11 +9,9 @@
"repoHeading", "repoLabel", "issuesLabel", "reportBugLabel", "discussionsLabel", "authorLabel", "licenseLabel",
"donateHeading", "donateHelp",
"connectHeading",
"devEnvHeading", "devEnvHelp",
"thirdPartyHeading", "thirdPartyHelp"
],
"about.donate": ["githubSponsors", "kofi", "buyMeACoffee", "patreon", "paypal"],
"about.devEnv": ["os", "cpu", "gpu", "ram", "ide", "toolchains", "fullSpecLink", "fullDevEnvLink"],
"about.socials": ["youtube", "x", "bluesky", "mastodon", "discord", "discordGame", "steam", "telegramBot", "telegramUser", "email"],
"editor.sections": ["gameInfo", "videoSettings", "contentDetails", "attribution", "rig", "storeAndSocial"],
"editor": [
@@ -31,6 +29,7 @@
"gachaVersion", "gachaVersionPlaceholder",
"gpu_brand", "gpu_series", "gpu_model", "gpu_custom",
"ram_size", "ram_ddr",
"os_name", "os_version", "os_edition",
"vnDonate", "vnDonateHelp",
"vnBankName", "vnBankNamePlaceholder", "vnBankNameSelectPlaceholder", "vnBankNameOther",
"vnBankAccount", "vnBankAccountPlaceholder",
@@ -41,7 +40,7 @@
"graphicsPresetCustom", "graphicsPresetCustomPlaceholder",
"skipGraphicsSettings", "skipGraphicsSettingsHelp",
"rayTracing", "frameGenVendor", "frameGenMultiplier", "upscaleQuality",
"artStyle", "versionInfo", "versionInfoPlaceholder",
"artStyle", "videoStyle", "videoStyleHelp", "videoStyleOff", "versionInfo", "versionInfoPlaceholder",
"liveUrl", "liveUrlPlaceholder", "scheduledTime",
"skipGraphicsHintLabel", "skipGraphicsHintHide", "skipGraphicsHintKeep",
"timestamps", "timestampsPlaceholder",
@@ -111,10 +110,11 @@
"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", "social_phenomena", "sensitive", "playstyle", "horror_specific", "gameplay_disclosure"],
"editor.contentWarningGroups": ["spoilers", "photosensitive", "audio", "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",
"flashing_lights", "motion_sickness", "migraine_trigger", "strobe_effects", "screen_shake_intense",
"loud_noises", "ear_piercing", "jumpscare_audio", "sudden_volume_changes", "distorted_audio", "screeching_metallic", "persistent_high_pitch", "audio_glitches", "heavy_bass_rumble", "screaming_audio", "glass_breaking_audio", "microphone_pops", "white_noise_static",
"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",
@@ -131,6 +131,10 @@
"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"
],
"editor.videoStyleOptions": [
"1980s", "1990s", "2000s", "2010s", "2020s",
"modern", "cinematic", "retro", "vhs", "film_noir", "anime_mv", "documentary"
],
"editor.gachaQuestTypeOptions": [
"main_story", "world_quest", "side_quest", "spinoff_quest", "companion_quest", "bond_quest",
"event", "anniversary", "crossover", "dating_event",
@@ -155,7 +159,7 @@
"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"],
"rig": ["os", "cpu", "gpu", "ram", "storage", "monitor", "capture", "motherboard", "controller", "video_editor"],
"social": ["kofi", "patreon", "buymeacoffee", "paypal", "github", "twitter", "discord", "website", "twitch", "tiktok", "instagram", "streamlabs", "bluesky", "mastodon", "facebook", "fb_page", "fb_group"],
"resolutions": ["720p", "1080p", "1440p", "4K"],
"fpsOptions": ["30", "60", "120", "144"],
@@ -163,7 +167,7 @@
"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", "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"],
"settings": ["title", "appearance", "defaults", "editorSettings", "tagSettings", "historySettings", "theme", "appLanguage", "defaultOutputLanguage", "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"],
@@ -200,6 +204,11 @@
"playlist", "contact", "cta",
"copyright", "usagePolicyHeader", "usagePolicy"
],
"description.videoSettings": ["styleLine", "styleLineNoEditor"],
"description.videoSettings.eraOptions": [
"1980s", "1990s", "2000s", "2010s", "2020s",
"modern", "cinematic", "retro", "vhs", "film_noir", "anime_mv", "documentary"
],
"description.playthrough": ["blind", "replay", "newgame_plus", "postgame"],
"description.difficulty": ["easy", "normal", "hard", "nightmare"],
"description.playthroughNotes": ["header", "intro"],
@@ -217,7 +226,8 @@
"description.contentWarnings": ["header", "intro"],
"description.contentWarnings.items": [
"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",
"flashing_lights", "motion_sickness", "migraine_trigger", "strobe_effects", "screen_shake_intense",
"loud_noises", "ear_piercing", "jumpscare_audio", "sudden_volume_changes", "distorted_audio", "screeching_metallic", "persistent_high_pitch", "audio_glitches", "heavy_bass_rumble", "screaming_audio", "glass_breaking_audio", "microphone_pops", "white_noise_static",
"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",
+30
View File
@@ -207,6 +207,18 @@
"motion_sickness": "Motion sickness — fast camera / FPS movement",
"migraine_trigger": "Possible migraine trigger",
"loud_noises": "Loud / sudden sounds",
"ear_piercing": "Ear-piercing / high-pitched frequencies",
"jumpscare_audio": "Audio jumpscares — sudden loud stings",
"sudden_volume_changes": "Sudden volume changes — abrupt loud/quiet transitions",
"distorted_audio": "Distorted or clipping audio passages",
"screeching_metallic": "Screeching / metallic / nails-on-chalkboard sounds",
"persistent_high_pitch": "Persistent high-pitched tones — may aggravate tinnitus",
"audio_glitches": "Audio glitches — crackle or looping engine artifacts",
"heavy_bass_rumble": "Heavy bass / sub-bass rumble — LFE-heavy mix",
"screaming_audio": "Sustained character screaming",
"glass_breaking_audio": "Glass breaking / shattering / impact sounds",
"microphone_pops": "Mic pops, breath, and handling noise (creator-side)",
"white_noise_static": "Sustained white noise / radio static",
"jump_scares": "Jumpscares",
"acrophobia": "Heights",
"trypophobia": "Holes / clusters",
@@ -471,6 +483,24 @@
"inGameSettingLabel": "In-game Setting",
"versionLabel": "Version"
},
"videoSettings": {
"styleLine": "Edited in {{era}} style using {{editor}}",
"styleLineNoEditor": "Edited in {{era}} style",
"eraOptions": {
"1980s": "1980s",
"1990s": "1990s VHS",
"2000s": "early-2000s",
"2010s": "2010s",
"2020s": "modern 2020s",
"modern": "modern",
"cinematic": "cinematic",
"retro": "retro",
"vhs": "VHS",
"film_noir": "film noir",
"anime_mv": "anime AMV",
"documentary": "documentary"
}
},
"livestream": {
"scheduledLine": "🔴 LIVE on {{time}}",
"watchLine": "Watch / replay: {{link}}"
+34 -13
View File
@@ -41,18 +41,6 @@
"paypal": "PayPal"
},
"connectHeading": "Connect",
"devEnvHeading": "Dev Environment",
"devEnvHelp": "Hardware and toolchain the public web build and desktop binaries are produced on.",
"devEnv": {
"os": "OS",
"cpu": "CPU",
"gpu": "GPU",
"ram": "RAM",
"ide": "IDE",
"toolchains": "Toolchains",
"fullSpecLink": "Read full PC spec ↗",
"fullDevEnvLink": "Read dev environment guide ↗"
},
"thirdPartyHeading": "Third-Party Credits",
"thirdPartyHelp": "YTDescGen is built on top of these open-source projects. Versions are pulled live from package.json.",
"socials": {
@@ -140,6 +128,9 @@
"gpu_custom": "Custom GPU",
"ram_size": "RAM Size",
"ram_ddr": "DDR Generation",
"os_name": "OS",
"os_version": "Version",
"os_edition": "Edition",
"vnDonate": "Donate (Vietnam)",
"vnDonateHelp": "Only rendered into the description when output language is Vietnamese.",
"vnBankName": "Bank name",
@@ -256,6 +247,23 @@
"comic": "Comic",
"photorealistic": "Photorealistic"
},
"videoStyle": "Video style",
"videoStyleHelp": "Adds a one-line credit like \"Edited in 1990s VHS style using DaVinci Resolve\". Combines with the Video Editor field in My Rig.",
"videoStyleOff": "— Off —",
"videoStyleOptions": {
"1980s": "1980s",
"1990s": "1990s VHS",
"2000s": "early-2000s",
"2010s": "2010s",
"2020s": "modern 2020s",
"modern": "Modern / Clean",
"cinematic": "Cinematic",
"retro": "Retro / Vintage",
"vhs": "VHS / Analog",
"film_noir": "Film Noir",
"anime_mv": "Anime AMV",
"documentary": "Documentary"
},
"versionInfo": "Driver / Game Version",
"versionInfoPlaceholder": "e.g. GeForce 565.90 | Game v1.4",
"liveUrl": "Live URL",
@@ -312,6 +320,7 @@
"contentWarningGroups": {
"spoilers": "Spoilers",
"photosensitive": "Photosensitive / Health",
"audio": "Audio / Sensory",
"phobias": "Phobias",
"mental_health": "Mental health",
"social_phenomena": "Social phenomena",
@@ -331,6 +340,18 @@
"motion_sickness": "Motion sickness",
"migraine_trigger": "Migraine trigger",
"loud_noises": "Loud / sudden sounds",
"ear_piercing": "Ear-piercing / high-pitched",
"jumpscare_audio": "Audio jumpscares",
"sudden_volume_changes": "Sudden volume changes",
"distorted_audio": "Distorted / clipping audio",
"screeching_metallic": "Screeching / metallic sounds",
"persistent_high_pitch": "Persistent high-pitched tones",
"audio_glitches": "Audio glitches / artifacts",
"heavy_bass_rumble": "Heavy bass / sub-bass rumble",
"screaming_audio": "Sustained screaming",
"glass_breaking_audio": "Glass breaking / shattering",
"microphone_pops": "Mic pops / breath noise",
"white_noise_static": "White noise / static",
"jump_scares": "Jumpscares",
"acrophobia": "Heights",
"trypophobia": "Holes / clusters",
@@ -741,6 +762,7 @@
"visual_novel": "Visual Novel"
},
"rig": {
"os": "Operating System",
"cpu": "CPU",
"gpu": "GPU",
"ram": "RAM",
@@ -841,7 +863,6 @@
"theme": "Theme",
"appLanguage": "App Language",
"defaultOutputLanguage": "Default Output Language",
"defaultGenre": "Default Genres",
"showCharCount": "Show Character Count",
"compactTagDisplay": "Compact Tag Display",
"historyLimit": "History Limit",
+30
View File
@@ -207,6 +207,18 @@
"motion_sickness": "Mareo por movimiento — cámara / FPS rápidos",
"migraine_trigger": "Posible desencadenante de migraña",
"loud_noises": "Sonidos fuertes / repentinos",
"ear_piercing": "Sonidos agudos / penetrantes — frecuencias altas",
"jumpscare_audio": "Sustos sonoros — golpes de audio repentinos",
"sudden_volume_changes": "Cambios bruscos de volumen — transiciones fuerte/suave",
"distorted_audio": "Audio distorsionado / con clipping",
"screeching_metallic": "Chirridos / sonidos metálicos / uñas en pizarra",
"persistent_high_pitch": "Tonos agudos persistentes — pueden agravar el tinnitus",
"audio_glitches": "Fallos de audio — crujidos o bucles del motor",
"heavy_bass_rumble": "Graves intensos / sub-bajos — mezcla cargada de LFE",
"screaming_audio": "Gritos sostenidos de personajes",
"glass_breaking_audio": "Rotura de cristal / impactos repetidos",
"microphone_pops": "Plosivos, respiración y ruido de micro (lado creador)",
"white_noise_static": "Ruido blanco / estática sostenida",
"jump_scares": "Sustos repentinos",
"acrophobia": "Alturas",
"trypophobia": "Agujeros / patrones agrupados",
@@ -471,6 +483,24 @@
"inGameSettingLabel": "In-game Setting",
"versionLabel": "Version"
},
"videoSettings": {
"styleLine": "Editado con estilo {{era}} usando {{editor}}",
"styleLineNoEditor": "Editado con estilo {{era}}",
"eraOptions": {
"1980s": "años 80",
"1990s": "años 90 VHS",
"2000s": "principios de los 2000",
"2010s": "años 2010",
"2020s": "moderno 2020s",
"modern": "moderno",
"cinematic": "cinematográfico",
"retro": "retro",
"vhs": "VHS",
"film_noir": "film noir",
"anime_mv": "anime AMV",
"documentary": "documental"
}
},
"livestream": {
"scheduledLine": "🔴 EN VIVO el {{time}}",
"watchLine": "Ver / repetir: {{link}}"
+34 -13
View File
@@ -41,18 +41,6 @@
"paypal": "PayPal"
},
"connectHeading": "Contacto",
"devEnvHeading": "Entorno de desarrollo",
"devEnvHelp": "Hardware y toolchain con los que se compilan la web pública y los binarios de escritorio.",
"devEnv": {
"os": "SO",
"cpu": "CPU",
"gpu": "GPU",
"ram": "RAM",
"ide": "IDE",
"toolchains": "Toolchain",
"fullSpecLink": "Ver spec completa ↗",
"fullDevEnvLink": "Guía de entorno dev ↗"
},
"thirdPartyHeading": "Créditos de Terceros",
"thirdPartyHelp": "YTDescGen se basa en estos proyectos de código abierto. Las versiones se toman automáticamente de package.json.",
"socials": {
@@ -140,6 +128,9 @@
"gpu_custom": "GPU personalizada",
"ram_size": "Tamaño RAM",
"ram_ddr": "Generación DDR",
"os_name": "SO",
"os_version": "Versión",
"os_edition": "Edición",
"vnDonate": "Donate (Vietnam)",
"vnDonateHelp": "Only rendered into the description when output language is Vietnamese.",
"vnBankName": "Bank name",
@@ -256,6 +247,23 @@
"comic": "Comic",
"photorealistic": "Photorealistic"
},
"videoStyle": "Estilo de video",
"videoStyleHelp": "Agrega un crédito de una línea como \"Edited in 1990s VHS style using DaVinci Resolve\". Combina con el campo Editor de Video en My Rig.",
"videoStyleOff": "— Off —",
"videoStyleOptions": {
"1980s": "Años 80",
"1990s": "Años 90 VHS",
"2000s": "Principios 2000",
"2010s": "Años 2010",
"2020s": "Moderno 2020",
"modern": "Moderno / Limpio",
"cinematic": "Cinematográfico",
"retro": "Retro / Vintage",
"vhs": "VHS / Analógico",
"film_noir": "Film Noir",
"anime_mv": "Anime AMV",
"documentary": "Documental"
},
"versionInfo": "Driver / Game Version",
"versionInfoPlaceholder": "e.g. GeForce 565.90 | Game v1.4",
"liveUrl": "Live URL",
@@ -312,6 +320,7 @@
"contentWarningGroups": {
"spoilers": "Spoilers",
"photosensitive": "Fotosensibilidad / Salud",
"audio": "Audio / Sensorial",
"phobias": "Fobias",
"mental_health": "Salud mental",
"social_phenomena": "Fenómenos sociales",
@@ -331,6 +340,18 @@
"motion_sickness": "Mareo por movimiento",
"migraine_trigger": "Posible migraña",
"loud_noises": "Sonidos repentinos",
"ear_piercing": "Sonidos agudos / penetrantes",
"jumpscare_audio": "Sustos sonoros",
"sudden_volume_changes": "Cambios bruscos de volumen",
"distorted_audio": "Audio distorsionado",
"screeching_metallic": "Chirridos / sonidos metálicos",
"persistent_high_pitch": "Tonos agudos persistentes",
"audio_glitches": "Fallos / artefactos de audio",
"heavy_bass_rumble": "Graves intensos / sub-bajos",
"screaming_audio": "Gritos sostenidos",
"glass_breaking_audio": "Rotura de cristal / impactos",
"microphone_pops": "Plosivos / ruido de micro",
"white_noise_static": "Ruido blanco / estática",
"jump_scares": "Sustos repentinos",
"acrophobia": "Alturas",
"trypophobia": "Patrones agrupados",
@@ -741,6 +762,7 @@
"visual_novel": "Novela Visual"
},
"rig": {
"os": "Sistema Operativo",
"cpu": "CPU",
"gpu": "GPU",
"ram": "RAM",
@@ -841,7 +863,6 @@
"theme": "Tema",
"appLanguage": "Idioma de la App",
"defaultOutputLanguage": "Idioma de Salida Predeterminado",
"defaultGenre": "Géneros Predeterminados",
"showCharCount": "Mostrar Contador de Caracteres",
"compactTagDisplay": "Vista Compacta de Etiquetas",
"historyLimit": "Límite de Historial",
+30
View File
@@ -207,6 +207,18 @@
"motion_sickness": "3D酔い — カメラ / FPSの激しい動き",
"migraine_trigger": "片頭痛を誘発する可能性",
"loud_noises": "大音量 / 突発的な音",
"ear_piercing": "耳に刺さる音 / 高周波音",
"jumpscare_audio": "音声ジャンプスケア — 突然の大音量",
"sudden_volume_changes": "急激な音量変化 — 大小の急な切り替え",
"distorted_audio": "音声の歪み / クリッピング箇所",
"screeching_metallic": "金切り音 / 金属の擦過音",
"persistent_high_pitch": "持続的な高音 — 耳鳴りを悪化させる可能性",
"audio_glitches": "音声グリッチ — エンジン由来のクラックル / ループ",
"heavy_bass_rumble": "重低音 / サブベース振動 — LFE中心のミックス",
"screaming_audio": "長時間の悲鳴音声",
"glass_breaking_audio": "ガラス割れ / 飛散 / 衝撃音",
"microphone_pops": "マイクのポップ、息、取り扱い音(配信者側)",
"white_noise_static": "持続的なホワイトノイズ / ラジオ静電気音",
"jump_scares": "ジャンプスケア",
"acrophobia": "高所",
"trypophobia": "集合体",
@@ -471,6 +483,24 @@
"inGameSettingLabel": "In-game Setting",
"versionLabel": "Version"
},
"videoSettings": {
"styleLine": "{{editor}}で{{era}}スタイルに編集",
"styleLineNoEditor": "{{era}}スタイルに編集",
"eraOptions": {
"1980s": "1980年代",
"1990s": "1990年代 VHS",
"2000s": "2000年代初頭",
"2010s": "2010年代",
"2020s": "現代2020年代",
"modern": "モダン",
"cinematic": "シネマティック",
"retro": "レトロ",
"vhs": "VHS",
"film_noir": "フィルム・ノワール",
"anime_mv": "アニメAMV",
"documentary": "ドキュメンタリー"
}
},
"livestream": {
"scheduledLine": "🔴 LIVE 配信日時: {{time}}",
"watchLine": "視聴・見逃し配信: {{link}}"
+34 -13
View File
@@ -41,18 +41,6 @@
"paypal": "PayPal"
},
"connectHeading": "リンク",
"devEnvHeading": "開発環境",
"devEnvHelp": "パブリックなWebビルドとデスクトップバイナリを生成しているハードウェアとツールチェーン。",
"devEnv": {
"os": "OS",
"cpu": "CPU",
"gpu": "GPU",
"ram": "RAM",
"ide": "IDE",
"toolchains": "ツールチェーン",
"fullSpecLink": "PCスペック詳細 ↗",
"fullDevEnvLink": "開発環境ガイド ↗"
},
"thirdPartyHeading": "サードパーティ クレジット",
"thirdPartyHelp": "YTDescGen は以下のオープンソースプロジェクトを利用しています。バージョンは package.json から自動取得しています。",
"socials": {
@@ -140,6 +128,9 @@
"gpu_custom": "カスタムGPU",
"ram_size": "RAM容量",
"ram_ddr": "DDR世代",
"os_name": "OS",
"os_version": "バージョン",
"os_edition": "エディション",
"vnDonate": "Donate (Vietnam)",
"vnDonateHelp": "Only rendered into the description when output language is Vietnamese.",
"vnBankName": "Bank name",
@@ -256,6 +247,23 @@
"comic": "Comic",
"photorealistic": "Photorealistic"
},
"videoStyle": "ビデオスタイル",
"videoStyleHelp": "「Edited in 1990s VHS style using DaVinci Resolve」のような1行のクレジットを追加します。My Rig の Video Editor フィールドと組み合わせます。",
"videoStyleOff": "— オフ —",
"videoStyleOptions": {
"1980s": "1980年代",
"1990s": "1990年代 VHS",
"2000s": "2000年代初頭",
"2010s": "2010年代",
"2020s": "現代 2020年代",
"modern": "モダン / クリーン",
"cinematic": "シネマティック",
"retro": "レトロ / ヴィンテージ",
"vhs": "VHS / アナログ",
"film_noir": "フィルム・ノワール",
"anime_mv": "アニメAMV",
"documentary": "ドキュメンタリー"
},
"versionInfo": "Driver / Game Version",
"versionInfoPlaceholder": "e.g. GeForce 565.90 | Game v1.4",
"liveUrl": "Live URL",
@@ -312,6 +320,7 @@
"contentWarningGroups": {
"spoilers": "ネタバレ",
"photosensitive": "光感受性 / 健康",
"audio": "音声 / 感覚",
"phobias": "恐怖症",
"mental_health": "メンタルヘルス",
"social_phenomena": "社会・心理現象",
@@ -331,6 +340,18 @@
"motion_sickness": "3D酔い",
"migraine_trigger": "片頭痛トリガー",
"loud_noises": "突発的な音",
"ear_piercing": "耳に刺さる / 高周波音",
"jumpscare_audio": "音声ジャンプスケア",
"sudden_volume_changes": "急激な音量変化",
"distorted_audio": "音の歪み / クリッピング",
"screeching_metallic": "金切り音 / 金属音",
"persistent_high_pitch": "持続的な高音",
"audio_glitches": "音声グリッチ / アーティファクト",
"heavy_bass_rumble": "重低音 / サブベース振動",
"screaming_audio": "長時間の悲鳴",
"glass_breaking_audio": "ガラス割れ / 衝撃音",
"microphone_pops": "マイクのポップ / 息音",
"white_noise_static": "ホワイトノイズ / 静電気音",
"jump_scares": "ジャンプスケア",
"acrophobia": "高所",
"trypophobia": "集合体",
@@ -741,6 +762,7 @@
"visual_novel": "ビジュアルノベル"
},
"rig": {
"os": "OS",
"cpu": "CPU",
"gpu": "GPU",
"ram": "RAM",
@@ -841,7 +863,6 @@
"theme": "テーマ",
"appLanguage": "アプリの言語",
"defaultOutputLanguage": "デフォルト出力言語",
"defaultGenre": "デフォルトジャンル",
"showCharCount": "文字数を表示",
"compactTagDisplay": "コンパクトタグ表示",
"historyLimit": "履歴上限",
+30
View File
@@ -207,6 +207,18 @@
"motion_sickness": "멀미 — 빠른 카메라 / FPS 움직임",
"migraine_trigger": "편두통 유발 가능",
"loud_noises": "큰 소리 / 갑작스러운 음량",
"ear_piercing": "귀를 찌르는 고주파 / 고음",
"jumpscare_audio": "사운드 점프스케어 — 갑작스러운 큰 음향",
"sudden_volume_changes": "갑작스러운 음량 변화 — 크고 작음의 급격한 전환",
"distorted_audio": "왜곡되거나 클리핑된 오디오 구간",
"screeching_metallic": "끽끽 / 금속이 긁히는 소리",
"persistent_high_pitch": "지속적인 고음 — 이명을 악화시킬 수 있음",
"audio_glitches": "오디오 글리치 — 엔진 결함으로 인한 크랙·루프",
"heavy_bass_rumble": "강한 베이스 / 서브베이스 진동 — LFE 중심 믹스",
"screaming_audio": "지속되는 캐릭터 비명",
"glass_breaking_audio": "유리 깨짐 / 산산조각 / 충돌음",
"microphone_pops": "마이크 팝, 호흡, 핸들링 잡음 (제작자 측)",
"white_noise_static": "지속적인 백색 소음 / 라디오 정전기",
"jump_scares": "점프 스케어",
"acrophobia": "고소 공포",
"trypophobia": "환공포",
@@ -471,6 +483,24 @@
"inGameSettingLabel": "In-game Setting",
"versionLabel": "Version"
},
"videoSettings": {
"styleLine": "{{editor}}로 {{era}} 스타일 편집",
"styleLineNoEditor": "{{era}} 스타일 편집",
"eraOptions": {
"1980s": "1980년대",
"1990s": "1990년대 VHS",
"2000s": "2000년대 초",
"2010s": "2010년대",
"2020s": "현대 2020년대",
"modern": "모던",
"cinematic": "시네마틱",
"retro": "레트로",
"vhs": "VHS",
"film_noir": "필름 누아르",
"anime_mv": "애니메이션 AMV",
"documentary": "다큐멘터리"
}
},
"livestream": {
"scheduledLine": "🔴 LIVE 방송 일시: {{time}}",
"watchLine": "시청 / 다시보기: {{link}}"
+34 -13
View File
@@ -41,18 +41,6 @@
"paypal": "PayPal"
},
"connectHeading": "연결",
"devEnvHeading": "개발 환경",
"devEnvHelp": "공개 웹 빌드와 데스크톱 바이너리가 빌드되는 하드웨어 및 툴체인입니다.",
"devEnv": {
"os": "OS",
"cpu": "CPU",
"gpu": "GPU",
"ram": "RAM",
"ide": "IDE",
"toolchains": "툴체인",
"fullSpecLink": "전체 PC 스펙 보기 ↗",
"fullDevEnvLink": "개발 환경 가이드 ↗"
},
"thirdPartyHeading": "서드파티 크레딧",
"thirdPartyHelp": "YTDescGen은 다음 오픈소스 프로젝트를 기반으로 합니다. 버전은 package.json에서 자동으로 가져옵니다.",
"socials": {
@@ -140,6 +128,9 @@
"gpu_custom": "사용자 GPU",
"ram_size": "RAM 용량",
"ram_ddr": "DDR 세대",
"os_name": "OS",
"os_version": "버전",
"os_edition": "에디션",
"vnDonate": "Donate (Vietnam)",
"vnDonateHelp": "Only rendered into the description when output language is Vietnamese.",
"vnBankName": "Bank name",
@@ -256,6 +247,23 @@
"comic": "Comic",
"photorealistic": "Photorealistic"
},
"videoStyle": "비디오 스타일",
"videoStyleHelp": "\"Edited in 1990s VHS style using DaVinci Resolve\" 같은 한 줄 크레딧을 추가합니다. My Rig의 Video Editor 필드와 결합됩니다.",
"videoStyleOff": "— 끄기 —",
"videoStyleOptions": {
"1980s": "1980년대",
"1990s": "1990년대 VHS",
"2000s": "2000년대 초반",
"2010s": "2010년대",
"2020s": "현대 2020년대",
"modern": "모던 / 클린",
"cinematic": "시네마틱",
"retro": "레트로 / 빈티지",
"vhs": "VHS / 아날로그",
"film_noir": "필름 누아르",
"anime_mv": "애니메이션 AMV",
"documentary": "다큐멘터리"
},
"versionInfo": "Driver / Game Version",
"versionInfoPlaceholder": "e.g. GeForce 565.90 | Game v1.4",
"liveUrl": "Live URL",
@@ -312,6 +320,7 @@
"contentWarningGroups": {
"spoilers": "스포일러",
"photosensitive": "광과민 / 건강",
"audio": "음향 / 청각",
"phobias": "공포증",
"mental_health": "정신 건강",
"social_phenomena": "사회·심리 현상",
@@ -331,6 +340,18 @@
"motion_sickness": "멀미",
"migraine_trigger": "편두통 유발",
"loud_noises": "갑작스러운 큰 소리",
"ear_piercing": "귀를 찌르는 고음",
"jumpscare_audio": "사운드 점프스케어",
"sudden_volume_changes": "갑작스러운 음량 변화",
"distorted_audio": "음향 왜곡 / 클리핑",
"screeching_metallic": "끽끽 / 금속성 소리",
"persistent_high_pitch": "지속적인 고음",
"audio_glitches": "오디오 글리치 / 아티팩트",
"heavy_bass_rumble": "강한 베이스 / 서브베이스 진동",
"screaming_audio": "지속적인 비명",
"glass_breaking_audio": "유리 깨짐 / 충돌음",
"microphone_pops": "마이크 팝 / 호흡 잡음",
"white_noise_static": "백색 소음 / 정전기 잡음",
"jump_scares": "점프 스케어",
"acrophobia": "고소 공포",
"trypophobia": "환공포",
@@ -741,6 +762,7 @@
"visual_novel": "비주얼 노벨"
},
"rig": {
"os": "운영체제",
"cpu": "CPU",
"gpu": "GPU",
"ram": "RAM",
@@ -841,7 +863,6 @@
"theme": "테마",
"appLanguage": "앱 언어",
"defaultOutputLanguage": "기본 출력 언어",
"defaultGenre": "기본 장르",
"showCharCount": "글자 수 표시",
"compactTagDisplay": "태그 간략 표시",
"historyLimit": "기록 제한",
+30
View File
@@ -207,6 +207,18 @@
"motion_sickness": "Say game — camera / FPS chuyển động nhanh",
"migraine_trigger": "Có thể gây đau nửa đầu",
"loud_noises": "Âm thanh đột ngột / tiếng động lớn",
"ear_piercing": "Âm chói tai / tần số cao gây khó chịu",
"jumpscare_audio": "Jumpscare âm thanh — âm to đột ngột không cảnh báo",
"sudden_volume_changes": "Thay đổi âm lượng đột ngột — to / nhỏ bất ngờ",
"distorted_audio": "Âm thanh méo / vỡ tiếng / clipping",
"screeching_metallic": "Tiếng ken két, kim loại va chạm, cào bảng",
"persistent_high_pitch": "Tiếng cao kéo dài — có thể kích hoạt ù tai",
"audio_glitches": "Glitch âm thanh — crackle hoặc lặp âm do lỗi engine",
"heavy_bass_rumble": "Bass nặng / sub-bass rung — bản mix nặng LFE",
"screaming_audio": "Tiếng nhân vật la hét kéo dài",
"glass_breaking_audio": "Tiếng kính vỡ / vỡ vụn / va đập lặp",
"microphone_pops": "Tạp âm mic, tiếng thở, tiếng cầm mic (phía creator)",
"white_noise_static": "Tiếng nhiễu trắng / tĩnh điện kéo dài",
"jump_scares": "Có jumpscare",
"acrophobia": "Sợ độ cao",
"trypophobia": "Sợ lỗ / cụm lỗ",
@@ -471,6 +483,24 @@
"inGameSettingLabel": "In-game Setting",
"versionLabel": "Version"
},
"videoSettings": {
"styleLine": "Dựng theo phong cách {{era}} bằng {{editor}}",
"styleLineNoEditor": "Dựng theo phong cách {{era}}",
"eraOptions": {
"1980s": "thập niên 80",
"1990s": "thập niên 90 VHS",
"2000s": "đầu thập niên 2000",
"2010s": "thập niên 2010",
"2020s": "hiện đại 2020s",
"modern": "hiện đại",
"cinematic": "điện ảnh",
"retro": "retro",
"vhs": "VHS",
"film_noir": "film noir",
"anime_mv": "anime AMV",
"documentary": "phim tài liệu"
}
},
"livestream": {
"scheduledLine": "🔴 LIVE vào {{time}}",
"watchLine": "Xem / xem lại: {{link}}"
+34 -13
View File
@@ -41,18 +41,6 @@
"paypal": "PayPal"
},
"connectHeading": "Kết nối",
"devEnvHeading": "Môi trường phát triển",
"devEnvHelp": "Phần cứng và toolchain dùng để build bản web public và binary desktop.",
"devEnv": {
"os": "Hệ điều hành",
"cpu": "CPU",
"gpu": "GPU",
"ram": "RAM",
"ide": "IDE",
"toolchains": "Toolchain",
"fullSpecLink": "Xem PC spec đầy đủ ↗",
"fullDevEnvLink": "Xem hướng dẫn dev environment ↗"
},
"thirdPartyHeading": "Thư viện bên thứ ba",
"thirdPartyHelp": "YTDescGen được xây dựng dựa trên các dự án mã nguồn mở dưới đây. Phiên bản lấy tự động từ package.json.",
"socials": {
@@ -140,6 +128,9 @@
"gpu_custom": "GPU tự nhập",
"ram_size": "Dung lượng RAM",
"ram_ddr": "Thế hệ DDR",
"os_name": "Hệ điều hành",
"os_version": "Phiên bản",
"os_edition": "Bản",
"vnDonate": "Donate (Việt Nam)",
"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",
@@ -256,6 +247,23 @@
"comic": "Truyện tranh",
"photorealistic": "Siêu thực"
},
"videoStyle": "Phong cách video",
"videoStyleHelp": "Thêm dòng credit kiểu \"Edited in 1990s VHS style using DaVinci Resolve\". Kết hợp với trường Video Editor trong My Rig.",
"videoStyleOff": "— Tắt —",
"videoStyleOptions": {
"1980s": "1980s",
"1990s": "1990s VHS",
"2000s": "đầu 2000s",
"2010s": "2010s",
"2020s": "2020s hiện đại",
"modern": "Modern / Clean",
"cinematic": "Điện ảnh",
"retro": "Retro / Cổ điển",
"vhs": "VHS / Analog",
"film_noir": "Film Noir",
"anime_mv": "Anime AMV",
"documentary": "Phim tài liệu"
},
"versionInfo": "Phiên bản Driver / Game",
"versionInfoPlaceholder": "vd: GeForce 565.90 | Game v1.4",
"liveUrl": "URL Livestream",
@@ -312,6 +320,7 @@
"contentWarningGroups": {
"spoilers": "Spoiler",
"photosensitive": "Sức khoẻ / nhạy sáng",
"audio": "Âm thanh / cảm âm",
"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",
@@ -331,6 +340,18 @@
"motion_sickness": "Say game / camera nhanh",
"migraine_trigger": "Có thể đau nửa đầu",
"loud_noises": "Âm thanh đột ngột",
"ear_piercing": "Âm chói tai / tần số cao",
"jumpscare_audio": "Jumpscare bằng âm thanh",
"sudden_volume_changes": "Thay đổi âm lượng đột ngột",
"distorted_audio": "Âm thanh méo / vỡ",
"screeching_metallic": "Tiếng ken két / kim loại",
"persistent_high_pitch": "Tiếng cao kéo dài",
"audio_glitches": "Lỗi âm thanh / glitch",
"heavy_bass_rumble": "Bass nặng / sub-bass rung",
"screaming_audio": "Tiếng la hét kéo dài",
"glass_breaking_audio": "Tiếng kính vỡ / va đập",
"microphone_pops": "Tạp âm mic / tiếng thở",
"white_noise_static": "Tiếng nhiễu / tĩnh điện",
"jump_scares": "Có jumpscare",
"acrophobia": "Sợ độ cao",
"trypophobia": "Sợ lỗ / cụm lỗ",
@@ -741,6 +762,7 @@
"visual_novel": "Visual Novel"
},
"rig": {
"os": "Hệ điều hành",
"cpu": "CPU",
"gpu": "GPU",
"ram": "RAM",
@@ -841,7 +863,6 @@
"theme": "Giao diện",
"appLanguage": "Ngôn ngữ ứng dụng",
"defaultOutputLanguage": "Ngôn ngữ đầu ra",
"defaultGenre": "Thể loại mặc định",
"showCharCount": "Hiện số ký tự",
"compactTagDisplay": "Hiển thị tags gọn",
"historyLimit": "Giới hạn lịch sử",
+30
View File
@@ -207,6 +207,18 @@
"motion_sickness": "3D晕眩 — 镜头 / FPS 快速移动",
"migraine_trigger": "可能引发偏头痛",
"loud_noises": "突发的大音量",
"ear_piercing": "刺耳音 / 高频音段",
"jumpscare_audio": "音效突袭 — 突如其来的大音量",
"sudden_volume_changes": "音量骤变 — 突然大小切换",
"distorted_audio": "音频失真 / 削波片段",
"screeching_metallic": "刺耳金属摩擦 / 指甲刮黑板声",
"persistent_high_pitch": "持续高音 — 可能加重耳鸣",
"audio_glitches": "音频故障 — 引擎导致的爆裂或循环噪声",
"heavy_bass_rumble": "重低音 / 次低音震动 — 低频极重的混音",
"screaming_audio": "持续的角色尖叫声",
"glass_breaking_audio": "玻璃破碎 / 碎裂 / 撞击声",
"microphone_pops": "麦克风爆破声、呼吸声、操作噪声(创作者端)",
"white_noise_static": "持续的白噪音 / 电台静电杂音",
"jump_scares": "惊吓镜头",
"acrophobia": "恐高",
"trypophobia": "密集恐惧",
@@ -471,6 +483,24 @@
"inGameSettingLabel": "In-game Setting",
"versionLabel": "Version"
},
"videoSettings": {
"styleLine": "使用 {{editor}} 以 {{era}} 风格剪辑",
"styleLineNoEditor": "以 {{era}} 风格剪辑",
"eraOptions": {
"1980s": "1980年代",
"1990s": "1990年代 VHS",
"2000s": "2000年代初",
"2010s": "2010年代",
"2020s": "现代 2020s",
"modern": "现代",
"cinematic": "电影感",
"retro": "复古",
"vhs": "VHS",
"film_noir": "黑色电影",
"anime_mv": "动漫 AMV",
"documentary": "纪录片"
}
},
"livestream": {
"scheduledLine": "🔴 直播时间: {{time}}",
"watchLine": "观看 / 回放: {{link}}"
+34 -13
View File
@@ -41,18 +41,6 @@
"paypal": "PayPal"
},
"connectHeading": "联系方式",
"devEnvHeading": "开发环境",
"devEnvHelp": "用于构建公开 Web 版本和桌面二进制的硬件与工具链。",
"devEnv": {
"os": "系统",
"cpu": "CPU",
"gpu": "GPU",
"ram": "RAM",
"ide": "IDE",
"toolchains": "工具链",
"fullSpecLink": "查看完整 PC 配置 ↗",
"fullDevEnvLink": "开发环境指南 ↗"
},
"thirdPartyHeading": "第三方致谢",
"thirdPartyHelp": "YTDescGen 基于以下开源项目构建。版本号从 package.json 自动同步。",
"socials": {
@@ -140,6 +128,9 @@
"gpu_custom": "自定义 GPU",
"ram_size": "内存容量",
"ram_ddr": "DDR 代",
"os_name": "系统",
"os_version": "版本",
"os_edition": "版本类型",
"vnDonate": "Donate (Vietnam)",
"vnDonateHelp": "Only rendered into the description when output language is Vietnamese.",
"vnBankName": "Bank name",
@@ -256,6 +247,23 @@
"comic": "Comic",
"photorealistic": "Photorealistic"
},
"videoStyle": "视频风格",
"videoStyleHelp": "添加一行如「Edited in 1990s VHS style using DaVinci Resolve」的署名。与 My Rig 的 Video Editor 字段配合使用。",
"videoStyleOff": "— 关闭 —",
"videoStyleOptions": {
"1980s": "1980年代",
"1990s": "1990年代 VHS",
"2000s": "2000年代初",
"2010s": "2010年代",
"2020s": "现代 2020s",
"modern": "现代 / 简洁",
"cinematic": "电影感",
"retro": "复古 / 怀旧",
"vhs": "VHS / 模拟",
"film_noir": "黑色电影",
"anime_mv": "动漫 AMV",
"documentary": "纪录片"
},
"versionInfo": "Driver / Game Version",
"versionInfoPlaceholder": "e.g. GeForce 565.90 | Game v1.4",
"liveUrl": "Live URL",
@@ -312,6 +320,7 @@
"contentWarningGroups": {
"spoilers": "剧透",
"photosensitive": "光敏感 / 健康",
"audio": "音频 / 感官",
"phobias": "恐惧症",
"mental_health": "心理健康",
"social_phenomena": "社会心理现象",
@@ -331,6 +340,18 @@
"motion_sickness": "3D晕眩",
"migraine_trigger": "可能引发偏头痛",
"loud_noises": "突发音量",
"ear_piercing": "刺耳 / 高频音",
"jumpscare_audio": "音效突袭",
"sudden_volume_changes": "音量骤变",
"distorted_audio": "音频失真 / 削波",
"screeching_metallic": "刺耳 / 金属摩擦声",
"persistent_high_pitch": "持续高音",
"audio_glitches": "音频故障 / 噪点",
"heavy_bass_rumble": "重低音 / 次低音震动",
"screaming_audio": "持续尖叫",
"glass_breaking_audio": "玻璃破碎 / 撞击声",
"microphone_pops": "麦克风爆音 / 呼吸声",
"white_noise_static": "白噪音 / 静电杂音",
"jump_scares": "惊吓镜头",
"acrophobia": "恐高",
"trypophobia": "密集恐惧",
@@ -741,6 +762,7 @@
"visual_novel": "视觉小说"
},
"rig": {
"os": "操作系统",
"cpu": "CPU",
"gpu": "GPU",
"ram": "内存",
@@ -841,7 +863,6 @@
"theme": "主题",
"appLanguage": "应用语言",
"defaultOutputLanguage": "默认输出语言",
"defaultGenre": "默认类型",
"showCharCount": "显示字数统计",
"compactTagDisplay": "紧凑标签显示",
"historyLimit": "历史记录上限",
-47
View File
@@ -15,8 +15,6 @@ import {
Heart,
Sparkles,
DollarSign,
Cpu,
Monitor,
type LucideIcon,
} from "lucide-react";
import { ABOUT, type AboutSocialId } from "@config/about";
@@ -67,17 +65,6 @@ export function AboutPage() {
{ id: "paypal", url: DONATE.paypal, icon: DollarSign, labelKey: "about.donate.paypal" },
];
// Pulled from docs/DEVELOPMENT.md — keep them in sync when the box gets
// an upgrade. The page surfaces the summary; the full spec lives in docs.
const devEnvRows: ReadonlyArray<{ icon: LucideIcon; labelKey: string; value: string }> = [
{ icon: Monitor, labelKey: "about.devEnv.os", value: "Windows 11 Pro 25H2 Insider (build 26300.8376)" },
{ icon: Cpu, labelKey: "about.devEnv.cpu", value: "Intel Core i7-14700KF" },
{ icon: Cpu, labelKey: "about.devEnv.gpu", value: "NVIDIA GeForce RTX 5080 (16 GB)" },
{ icon: Cpu, labelKey: "about.devEnv.ram", value: "32 GB DDR5" },
{ icon: Monitor, labelKey: "about.devEnv.ide", value: "JetBrains 2026.x · VS Code" },
{ icon: Cpu, labelKey: "about.devEnv.toolchains", value: "Node ≥ 25.8.1 · Python 3.12 · Rust stable · Tauri 2" },
];
return (
<div className="mx-auto flex max-w-3xl flex-col gap-8 p-6">
<header className="flex flex-col gap-2">
@@ -161,40 +148,6 @@ export function AboutPage() {
</section>
)}
<section className="flex flex-col gap-3">
<h2 className="text-sm font-semibold uppercase tracking-wide text-text-muted">
{t("about.devEnvHeading")}
</h2>
<p className="text-xs text-text-muted">{t("about.devEnvHelp")}</p>
<ul className="overflow-hidden rounded-lg border border-border bg-surface-1">
{devEnvRows.map((row) => {
const Icon = row.icon;
return (
<li
key={row.labelKey}
className="flex items-center gap-3 border-b border-border px-3 py-2 text-sm last:border-b-0"
>
<Icon className="h-4 w-4 shrink-0 text-text-muted" />
<span className="w-32 shrink-0 text-text-secondary">{t(row.labelKey)}</span>
<span className="flex-1 truncate font-mono text-xs text-text-primary">{row.value}</span>
</li>
);
})}
</ul>
<div className="grid gap-2 sm:grid-cols-2">
<ExternalLinkRow
href={ABOUT.pcSpecDocUrl}
icon={ExternalLink}
label={t("about.devEnv.fullSpecLink")}
/>
<ExternalLinkRow
href={ABOUT.devEnvDocUrl}
icon={ExternalLink}
label={t("about.devEnv.fullDevEnvLink")}
/>
</div>
</section>
<section className="flex flex-col gap-3">
<h2 className="text-sm font-semibold uppercase tracking-wide text-text-muted">
{t("about.thirdPartyHeading")}
+2 -18
View File
@@ -5,10 +5,9 @@ import { Toggle } from "@components/ui/Toggle";
import { Select } from "@components/ui/Select";
import { Input } from "@components/ui/Input";
import { Button } from "@components/ui/Button";
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 { GENRES } from "@config/genres";
import { useSettingsStore, healSettings, extractData } from "@store/settings-store";
import { validatePlaylistUrl } from "@utils/validation";
import { IS_TAURI } from "@utils/platform";
@@ -18,7 +17,6 @@ import {
} from "@utils/import-export";
import { resolveForType } from "@utils/file-schema";
import {
MAX_GENRES,
type SupportedLanguage,
type TitleBadgePosition,
type TitleSeparatorId,
@@ -173,12 +171,6 @@ export function SettingsPage() {
label: `${l.flag} ${l.nativeName}`,
}));
const genreOptions = GENRES.map((g) => ({
id: g.id,
label: t(g.labelKey),
icon: g.icon,
}));
const hashtagOptions = [
{ value: "1", label: "1" },
{ value: "2", label: "2" },
@@ -232,7 +224,7 @@ export function SettingsPage() {
/>
</section>
{/* 2. Language & Defaults — app + output language, default genres. */}
{/* 2. Language & Defaults — app + output language. */}
<section className="flex flex-col gap-3">
<h2 className="text-sm font-semibold text-text-secondary">{t("settings.defaults")}</h2>
<Select
@@ -250,14 +242,6 @@ export function SettingsPage() {
value={settings.defaultOutputLanguage}
onChange={(v) => settings.setDefaultOutputLanguage(v as SupportedLanguage)}
/>
<ChipGroup
label={t("settings.defaultGenre")}
multiple
max={MAX_GENRES}
options={genreOptions}
value={settings.defaultGenres}
onChange={(next) => settings.setDefaultGenres(next as GenreId[])}
/>
</section>
{/* 3. Editor — UI knobs that affect the editor page itself. */}
+31 -1
View File
@@ -28,6 +28,7 @@ import {
type UpscaleQuality,
type ArtStyle,
} from "@config/graphics-settings";
import { isVideoStyleEra, type VideoStyleEra } from "@config/video-styles";
import {
coerceUpscaleQuality,
coerceFrameGenMultiplier,
@@ -74,6 +75,18 @@ export interface EditorData {
frameGenMultiplier: FrameGenMultiplier;
upscaleQuality: UpscaleQuality;
artStyle: ArtStyle;
/**
* Video-style era opt-in (v0.22.0). When non-empty, the description
* renderer emits a one-line "Edited in {era} style using {video_editor}"
* credit. Empty string = off. See `@config/video-styles` for the list
* of valid eras and the {@link isVideoStyleEra} coercion helper used
* by the v13 → v14 migration.
*
* Renders independently of `skipGraphicsSettings` — creators of 2D /
* pixel-art games still edit their footage, so the style line should
* survive when the graphics block is suppressed.
*/
videoStyleEra: VideoStyleEra;
versionInfo: string;
timestamps: string;
playlistLink: string;
@@ -298,6 +311,7 @@ const initialState: EditorData = {
frameGenMultiplier: DEFAULTS.editor.frameGenMultiplier,
upscaleQuality: DEFAULTS.editor.upscaleQuality,
artStyle: DEFAULTS.editor.artStyle,
videoStyleEra: DEFAULTS.editor.videoStyleEra,
versionInfo: DEFAULTS.editor.versionInfo,
timestamps: DEFAULTS.editor.timestamps,
playlistLink: DEFAULTS.editor.playlistLink,
@@ -444,7 +458,14 @@ export const useEditorStore = create<EditorState>()(
// used by the Anniversary quest type), and `gachaVersion`
// (free-form game version like "1.2"). All additive — empty
// / null defaults round-trip cleanly.
version: 13,
// v13 → v14: v0.22.0. `videoStyleEra` joined the schema — an opt-in
// era / aesthetic descriptor that combines with
// `rig.video_editor` to emit a one-line style credit in the
// description. Additive — defaults to `""` (off); the
// migration defensively coerces unrecognised values to `""`
// so a hand-edited blob or downgrade from a future version
// can't leave the Select stuck on a missing option.
version: 14,
migrate: (persistedState, version) =>
migrateEditorState(persistedState, version),
partialize: (state) => ({
@@ -479,6 +500,7 @@ export const useEditorStore = create<EditorState>()(
frameGenMultiplier: state.frameGenMultiplier,
upscaleQuality: state.upscaleQuality,
artStyle: state.artStyle,
videoStyleEra: state.videoStyleEra,
versionInfo: state.versionInfo,
timestamps: state.timestamps,
playlistLink: state.playlistLink,
@@ -729,6 +751,14 @@ export function migrateEditorState(
const idx = typeof state.endingVideoIndex === "number" ? state.endingVideoIndex : 1;
state.endingVideoIndex = Math.max(1, Math.min(vc, Math.floor(idx)));
}
if (version < 14) {
// v0.22.0 video-style era. Coerce any unrecognised value back to ""
// so the form Select never lands on an option that doesn't exist —
// covers both pre-v0.22 drafts (no key) and hand-edited blobs.
state.videoStyleEra = isVideoStyleEra(state.videoStyleEra)
? state.videoStyleEra
: "";
}
return { ...initialState, ...state } as EditorData;
}
+5 -7
View File
@@ -14,7 +14,6 @@ export type { TitleFormatConfig } from "@engine/types";
export interface SettingsData {
appLanguage: SupportedLanguage;
defaultOutputLanguage: SupportedLanguage;
defaultGenres: GenreId[];
theme: "dark" | "light";
showCharCount: boolean;
compactTagDisplay: boolean;
@@ -107,7 +106,6 @@ function detectBrowserLanguage(): SupportedLanguage {
export const initialSettings: SettingsData = {
appLanguage: detectBrowserLanguage(),
defaultOutputLanguage: detectBrowserLanguage(),
defaultGenres: ["action"],
theme: "dark",
showCharCount: true,
compactTagDisplay: false,
@@ -157,12 +155,12 @@ export function healSettings(raw: unknown): SettingsData {
const incoming = { ...(raw as Record<string, unknown>) };
// v1 → v2 shape upgrade: `defaultGenre: GenreId` became
// `defaultGenres: GenreId[]`.
if (typeof incoming.defaultGenre === "string" && !Array.isArray(incoming.defaultGenres)) {
incoming.defaultGenres = [incoming.defaultGenre];
}
// v0.22.0: `defaultGenre` and `defaultGenres` were both removed from
// Settings — the editor never had a way to read them. Strip both
// legacy keys so the spread on the way out doesn't leak them back
// into the store as untyped dead state.
delete incoming.defaultGenre;
delete incoming.defaultGenres;
// v2 → v3: `autoSaveDraft` removed (the draft autosaves unconditionally
// via the editor store's persist middleware, so the toggle was dead).
-5
View File
@@ -1,6 +1,5 @@
import { create } from "zustand";
import { persist, createJSONStorage } from "zustand/middleware";
import type { GenreId } from "@config/genres";
import type { SupportedLanguage } from "@engine/types";
import { saveSettings, loadSettings } from "@utils/storage-adapter";
import {
@@ -17,7 +16,6 @@ interface SettingsState extends SettingsData {
setTheme: (theme: "dark" | "light") => void;
setAppLanguage: (lang: SupportedLanguage) => void;
setDefaultOutputLanguage: (lang: SupportedLanguage) => void;
setDefaultGenres: (genres: GenreId[]) => void;
setSetting: <K extends keyof SettingsData>(key: K, value: SettingsData[K]) => void;
setTitleFormat: (patch: Partial<TitleFormatConfig>) => void;
toggleEditorAccordion: (id: string) => void;
@@ -40,8 +38,6 @@ export const useSettingsStore = create<SettingsState>()(
setDefaultOutputLanguage: (lang) => set({ defaultOutputLanguage: lang }),
setDefaultGenres: (genres) => set({ defaultGenres: genres }),
setSetting: (key, value) => set({ [key]: value }),
setTitleFormat: (patch) =>
@@ -98,7 +94,6 @@ export function extractData(state: SettingsData): SettingsData {
return {
appLanguage: state.appLanguage,
defaultOutputLanguage: state.defaultOutputLanguage,
defaultGenres: state.defaultGenres,
theme: state.theme,
showCharCount: state.showCharCount,
compactTagDisplay: state.compactTagDisplay,
+61
View File
@@ -1316,6 +1316,67 @@ describe("buildDescription — gacha_quest video type (v0.9)", () => {
});
});
describe("video style era line (v0.22.0)", () => {
it("renders nothing when videoStyleEra is empty", () => {
const t = createMockT("en");
const result = buildDescription(makeInput(), t);
expect(result).not.toMatch(/Edited in /);
});
it("combines era + rig.video_editor into a single style line", () => {
const t = createMockT("en");
const result = buildDescription(
makeInput({
videoStyleEra: "1990s",
rig: { video_editor: "davinci_resolve_studio|19.1" },
}),
t,
);
expect(result).toContain(
"Edited in 1990s VHS style using DaVinci Resolve Studio 19.1",
);
});
it("falls back to the editor-less template when rig.video_editor is missing", () => {
const t = createMockT("en");
const result = buildDescription(
makeInput({ videoStyleEra: "cinematic" }),
t,
);
expect(result).toContain("Edited in cinematic style");
expect(result).not.toContain(" using ");
});
it("still renders the style line when skipGraphicsSettings is true", () => {
// 2D / pixel-art creators path. The whole graphics block is
// suppressed but the style credit survives as a standalone section.
const t = createMockT("en");
const result = buildDescription(
makeInput({
skipGraphicsSettings: true,
videoStyleEra: "retro",
rig: { video_editor: "capcut|" },
}),
t,
);
expect(result).toContain("VIDEO SETTINGS");
expect(result).toContain("Edited in retro style using CapCut");
// Graphics-specific lines should not appear in skip mode.
expect(result).not.toContain("Video: ");
expect(result).not.toContain("In-game Setting: ");
});
it("silently drops an unrecognised era id (defensive)", () => {
const t = createMockT("en");
const result = buildDescription(
// Force a value that's not in VIDEO_STYLE_ERAS via type-cast.
makeInput({ videoStyleEra: "bogus_era" as never }),
t,
);
expect(result).not.toMatch(/Edited in /);
});
});
describe("checkDescriptionWarning", () => {
it("returns null for description under limit", () => {
expect(checkDescriptionWarning("Short description")).toBeNull();
+31
View File
@@ -92,4 +92,35 @@ describe("formatRigValue", () => {
expect(formatRigValue("ram", "32GB DDR5-6000")).toBe("32GB DDR5-6000");
});
});
describe("composite_dropdown (OS, v0.22.0)", () => {
it("formats name + version + edition", () => {
expect(formatRigValue("os", "windows|11|pro")).toBe("Windows 11 Pro");
});
it("formats name + version when edition is empty", () => {
expect(formatRigValue("os", "windows|11|")).toBe("Windows 11");
});
it("formats name + edition when version is empty", () => {
expect(formatRigValue("os", "windows||home")).toBe("Windows Home");
});
it("formats version + edition when name is empty", () => {
// Defensive — name will always be Windows in v0.22.0, but the
// format function should still degrade cleanly if a future version
// omits the name.
expect(formatRigValue("os", "|10|enterprise")).toBe("10 Enterprise");
});
it("returns empty string when nothing is set", () => {
expect(formatRigValue("os", "")).toBe("");
expect(formatRigValue("os", "||")).toBe("");
});
it("includes an OS entry in RIG_FIELDS as the first field", () => {
expect(RIG_FIELDS[0]?.id).toBe("os");
expect(RIG_FIELDS[0]?.type).toBe("composite_dropdown");
});
});
});
+2 -10
View File
@@ -16,7 +16,6 @@ describe("healSettings", () => {
expect(healed.showQualityBadge).toBe(true);
expect(healed.showCopyright).toBe(true);
expect(healed.showUsagePolicy).toBe(false);
expect(healed.defaultGenres).toEqual(["action"]);
expect(healed.titleFormat).toEqual({
badgePosition: "middle",
separator: "emDash",
@@ -54,26 +53,19 @@ describe("healSettings", () => {
expect(healed.autoSaveDraft).toBeUndefined();
});
it("upgrades the legacy `defaultGenre: string` shape to `defaultGenres: string[]`", () => {
const healed = healSettings({ defaultGenre: "rpg" }) as Record<string, unknown>;
expect(healed.defaultGenre).toBeUndefined();
expect(healed.defaultGenres).toEqual(["rpg"]);
});
it("keeps explicit `defaultGenres` when both legacy and new keys are present", () => {
it("strips both legacy `defaultGenre` (v1) and `defaultGenres` (v2-v0.21) — both removed in v0.22.0", () => {
const healed = healSettings({
defaultGenre: "rpg",
defaultGenres: ["horror", "action"],
}) as Record<string, unknown>;
expect(healed.defaultGenre).toBeUndefined();
expect(healed.defaultGenres).toEqual(["horror", "action"]);
expect(healed.defaultGenres).toBeUndefined();
});
it("preserves all keys when given a complete payload", () => {
const complete = {
appLanguage: "vi" as const,
defaultOutputLanguage: "en" as const,
defaultGenres: ["rpg" as const],
theme: "light" as const,
showCharCount: false,
compactTagDisplay: true,