Compare commits

...
10 Commits
Author SHA1 Message Date
poli0981 c02464cafb Merge pull request #92 from poli0981/claude/v0.26.0
feat(v0.26.0): lazy-load locale bundles per language
2026-06-12 07:55:15 +07:00
poli0981andClaude Fable 5 c78e49d08b chore(release): bump manifests to 0.26.0
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 07:53:20 +07:00
poli0981andClaude Fable 5 6f87dfc254 docs(i18n): document lazy-loaded locales in CHANGELOG, I18N, ARCHITECTURE, DEVELOPMENT
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 07:53:19 +07:00
poli0981andClaude Fable 5 820bbb9369 feat(i18n): lazy-load locale bundles per language
Only English ships in the main chunk (fallbackLng + the engine's
bilingual tEn must resolve synchronously); the 10 non-English locale
JSONs become Vite async chunks fetched on first use via
i18next-resources-to-backend. Main chunk: 594.0 -> 264.0 kB min
(204.3 -> 82.0 kB gzip), back under the 500 kB warning threshold.

Every reactive getFixedT site gates on the new useLanguagesReady hook
(an unloaded language would silently render English — and OutputPage
would save that as a wrong-language history entry); Batch/Social bulk
handlers preload all selected languages before their loops; main.tsx
preloads the persisted UI + output languages before first paint. A
failed chunk fetch is retried once via direct import (i18next pins
failed languages permanently), then logged, degrading to English.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 07:52:27 +07:00
poli0981 b522540614 Merge pull request #90 from poli0981/claude/v0.25.0
feat(v0.25.0): +41 content warnings (dialogue + internet/digital groups), inventory docs backfill
2026-06-10 21:47:21 +07:00
poli0981andClaude Fable 5 b8317c2151 feat(v0.25.0): +41 content warnings (dialogue + internet/digital groups), inventory docs backfill
Two new warning groups — Dialogue / Language (10) and Internet / Digital
life (18) — plus 5 color phobias, 5 suggestive-imagery disclosures, 2
body-image phenomena, and an educational/PSA-purpose disclosure: 207 -> 248
ids across 12 groups. 504 new locale strings (84 keys x 6 locales), VI
flag-prone labels masked per the v0.21.0 precedent. Backfills the
content-inventory docs (audio group + v0.23.0 VFX items were never
documented) and replaces the stale v0.7 warning lines in FEATURES.md.
Adds 8 tests incl. a CONTENT_WARNINGS <-> groups parity guard. Five
manifests bumped 0.24.2 -> 0.25.0.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-10 21:44:45 +07:00
poli0981 69ede56493 Merge pull request #88 from poli0981/claude/v0.24.2
ci(v0.24.2): harden Linux AppImage build, rebuild to ship Linux binaries
2026-06-08 14:21:24 +07:00
poli0981andClaude Opus 4.8 8569e1f81b ci(v0.24.2): harden Linux AppImage build, rebuild to ship Linux binaries
v0.24.1's Linux job failed on a sustained upstream GitHub-CDN 504 while the AppImage bundler fetched linuxdeploy, so v0.24.1 shipped with only Windows + macOS binaries. Set APPIMAGE_EXTRACT_AND_RUN=1 + NO_STRIP=true on the tauri-action step (fixes the linuxdeploy FUSE run-failure mode + future resilience; no-op on Win/macOS) and bump to 0.24.2 to re-run the full matrix. No application code changes — identical app to v0.24.1.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-08 14:20:26 +07:00
poli0981 7a5b1f9e87 Merge pull request #85 from poli0981/claude/v0.24.1
chore(v0.24.1): clear npm audit, drop unused Cargo deps, document cross-post generator
2026-06-08 13:27:34 +07:00
poli0981andClaude Opus 4.8 c29e04b15f chore(v0.24.1): clear npm audit, drop unused Cargo deps, document cross-post generator
Security/deps: react-router 6.30.3→6.30.4 (moderate open-redirect patch, non-breaking) and vitest 3.2.4→4.1.8 (clears the dev-only critical Vitest-UI advisory); all 482 tests pass unchanged on the new major. npm audit now reports 0 vulnerabilities. Removed unused serde/serde_json from src-tauri/Cargo.toml (no refs in src-tauri/src/; cargo check confirms the crate still compiles). Documented the cross-post caption generator (Social tab) in README + docs/FEATURES.md. Five manifests bumped 0.24.0→0.24.1.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-08 13:26:47 +07:00
46 changed files with 1455 additions and 360 deletions

No files matched your search

+8
View File
@@ -74,6 +74,14 @@ jobs:
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# AppImage bundling on hosted runners flakes: linuxdeploy (itself
# an AppImage) needs FUSE to mount, which GitHub runners don't
# reliably provide → "failed to run linuxdeploy". Extract-and-run
# avoids FUSE; NO_STRIP skips a strip pass that also intermittently
# fails. (No-op on Windows / macOS.) Transient CDN 504s while
# *fetching* linuxdeploy are handled by re-running the job.
APPIMAGE_EXTRACT_AND_RUN: 1
NO_STRIP: true
with:
tagName: ${{ github.event.inputs.tag || 'v__VERSION__' }}
releaseName: "YTDescGen ${{ github.event.inputs.tag || 'v__VERSION__' }}"
+83
View File
@@ -2,6 +2,89 @@
All notable changes to YTDescGen ship as tagged releases on `main`.
## v0.26.0 — 2026-06-11
Performance release: locale bundles are now lazy-loaded per language, so
visitors only download the languages they actually use. **Main chunk drops
594.0 → 264.0 kB minified (204.3 → 82.0 kB gzip)** — back under Rollup's
500 kB warning threshold (outstanding since ~v0.23) and the project's
bundle budget. No feature changes.
### Changed
- **Lazy-loaded locale bundles** ([src/i18n/index.ts](src/i18n/index.ts)) — the 10 non-English locale JSONs (5 languages × `ui`/`templates`) left the main chunk and are fetched on first use as Vite async chunks (~27–40 kB min / ~12–17 kB gzip each) via [`i18next-resources-to-backend`](https://github.com/i18next/i18next-resources-to-backend) + a statically-analysable dynamic `import()`. English stays eagerly bundled (`partialBundledLanguages`): it is the `fallbackLng` and the engine's bilingual `tEn` translator, both of which must work synchronously.
- **Generation is gated on bundle readiness** — `getFixedT` for an unloaded language silently serves English fallback strings, which would have let the Output page auto-save a *wrong-language history entry*. A new [`useLanguagesReady`](src/hooks/use-languages-ready.ts) hook holds every reactive generator (output preview, multi-language tabs, social captions, playlist, pinned-comment template, title variants) on a placeholder until the bundle is in memory, and the Batch / Social bulk handlers `await ensureLanguagesLoaded(selectedLangs)` before their multi-language loops.
- **Cold-start preload** ([src/main.tsx](src/main.tsx)) — the persisted UI + output languages are fetched before first paint (capped at 2 s), so a non-English user never sees an English flash; `react: { useSuspense: false }` keeps lazily-ready namespaces from suspending the app shell, which has no Suspense boundary.
- **Failure degrades, never hangs** — a locale chunk that cannot be fetched (offline, stale deploy HTML) is retried once by importing the chunk directly into the resource store (i18next marks a failed language permanently and both `loadLanguages` and `reloadResources` skip it forever after), then logged to the in-app Log page, and the UI falls back to English.
### Under the hood
- **+4 tests (490 → 494)** — [tests/i18n/lazy-locales.test.ts](tests/i18n/lazy-locales.test.ts) pins the contract: `en` available synchronously at import, non-English absent until `ensureLanguagesLoaded`, real strings served after, idempotent reloads.
- [src/utils/platform.ts](src/utils/platform.ts) — `IS_TAURI` now guards `typeof window`, keeping the i18n module importable in vitest's node environment.
- Adding a language no longer touches `src/i18n/index.ts` imports — drop `ui.json`/`templates.json` into `locales/<code>/` and register the code in `SUPPORTED_LANGUAGES` ([docs/I18N.md](docs/I18N.md) checklist simplified).
- Five manifests bumped 0.25.0 → 0.26.0.
## v0.25.0 — 2026-06-10
Adds 41 content warnings, including two new groups — **Dialogue / Language**
and **Internet / Digital life** — plus color phobias, suggestive-imagery
disclosures, body-image phenomena, and an educational-purpose disclosure.
Also backfills the content-inventory docs to the real warning baseline.
### Added
- **2 new content-warning groups + 41 new warnings (207 → 248 across 12 groups)** ([src/engine/types.ts](src/engine/types.ts), [src/config/content-warning-groups.ts](src/config/content-warning-groups.ts)):
- **Dialogue / Language (10)** — what characters *say*, ESRB-descriptor style: `profanity_frequent`, `sexual_innuendo`, `inflammatory_speech`, `verbal_abuse`, `threatening_language`, `slurs_derogatory`, `crude_humor`, `mature_humor`, `dark_humor`, `drug_references`.
- **Internet / Digital life (18)** — 21st-century online phenomena: `cyberbullying`, `doxxing`, `trolling_griefing`, `cancel_culture`, `social_media_addiction`, `doomscrolling`, `fomo`, `fake_news`, `online_scams`, `catfishing`, `deepfake_themes`, `cyberstalking`, `internet_challenges`, `influencer_culture`, `online_radicalization`, `loot_boxes`, `ai_themes`, `data_privacy`.
- **Phobias +5 color phobias (51 → 56)** — `chromophobia` plus per-color `erythrophobia` (all-red rooms), `xanthophobia`, `leukophobia` (stark-white spaces), `melanophobia`.
- **Social phenomena +2 (20 → 22)** — `body_shaming`, `beauty_standards`.
- **Mature / Sensitive +5 suggestive-imagery (61 → 66)** — visuals unsuitable for minors short of explicit content, placed beside `mature_18plus`: `revealing_outfits`, `partial_nudity`, `sexualized_characters`, `fanservice`, `suggestive_poses`.
- **Gameplay disclosure +1 (4 → 5)** — `educational_purpose_only` for games made for education / PSA / propaganda purposes.
- The engine renders all of these automatically (selection-order bullets, bilingual `EN · LOCAL`); cross-post captions inherit them via the shared bullet helper. Vietnamese flag-prone labels follow the v0.21.0 asterisk/euphemism precedent (`t*nh d*c`, `Kh*a th*n`). 504 new locale strings (84 keys × 6 locales) + [`_schema.json`](src/i18n/locales/_schema.json) — validator now expects 907 ui / 542 template keys per locale.
### Docs
- **Content-inventory backfill** ([docs/CONTENT-INVENTORY.md](docs/CONTENT-INVENTORY.md), [docs/i18n/vi/CONTENT-INVENTORY.md](docs/i18n/vi/CONTENT-INVENTORY.md), [README.md](README.md)) — the docs still claimed "187 across 9 groups": the v0.22.0 Audio / Sensory group and the v0.23.0 VFX items were never added (the v0.23.0 entry's "187 → 195" total repeated that stale baseline; the actual progression was 199 → 207). Backfilled to the true 207 baseline, then updated to the new 248 / 12-group totals.
- [docs/FEATURES.md](docs/FEATURES.md) — replaced the stale v0.7-era "Spoiler Warning / 18+ Warning" description-structure lines with the unified Content Warnings block (v0.11+).
### Under the hood
- **+8 tests (482 → 490)** — render/bilingual/VI-masking cases for the new warnings ([tests/engine/description-builder.test.ts](tests/engine/description-builder.test.ts)) and a new `CONTENT_WARNINGS` ↔ groups parity guard ([tests/config/content-warning-groups.test.ts](tests/config/content-warning-groups.test.ts)) that fails if an id is added to the engine list but forgotten from every UI group.
- Five manifests bumped 0.24.2 → 0.25.0. First *published* tag carrying the v0.24.2 Linux AppImage hardening (`APPIMAGE_EXTRACT_AND_RUN=1`, `NO_STRIP=true`) — the v0.24.2 tag itself was never released due to the upstream CDN incident.
- Web bundle: main chunk 568.5 → 594.0 kB minified (191.5 → 204.3 kB gzip) — the 504 statically-imported locale strings account for the whole delta; Rollup's >500 kB chunk warning predates this release.
## v0.24.2 — 2026-06-08
CI-only patch to recover the Linux desktop binaries. **No application code
changes** — identical app to v0.24.1.
### CI
- **Hardened the Linux AppImage build** ([.github/workflows/release-desktop.yml](.github/workflows/release-desktop.yml)) — set `APPIMAGE_EXTRACT_AND_RUN=1` and `NO_STRIP=true` on the `tauri-action` step. `linuxdeploy` (itself an AppImage) needs FUSE to mount, which GitHub-hosted runners don't reliably provide → intermittent `failed to run linuxdeploy`. Extract-and-run sidesteps FUSE; `NO_STRIP` skips a strip pass that also flakes. No-op on Windows / macOS.
- **Rebuilt to ship the Linux binaries** (`.deb` / `.AppImage` / `.rpm`) that v0.24.1 missed when the AppImage tooling download hit a sustained upstream GitHub-CDN `http status: 504` during bundling. v0.24.1 published with Windows + macOS binaries; this tag re-runs the full matrix once the transient outage cleared.
## v0.24.1 — 2026-06-08
Maintenance patch: clears all `npm audit` advisories, drops unused Rust
dependencies, and documents the v0.24.0 cross-post caption generator.
### Security / dependencies
- **react-router / react-router-dom 6.30.3 → 6.30.4** — patches the moderate open-redirect advisory ([GHSA-2j2x-hqr9-3h42](https://github.com/advisories/GHSA-2j2x-hqr9-3h42)). Non-breaking; a HashRouter SPA on static hosting was low-exposure, but patched for hygiene.
- **vitest 3.2.4 → 4.1.8** — clears the critical Vitest-UI-server advisory ([GHSA-5xrq-8626-4rwp](https://github.com/advisories/GHSA-5xrq-8626-4rwp), dev-only — never in a shipped artifact). All 482 tests pass unchanged on the new major; no test or config code needed adjusting. `npm audit` now reports **0 vulnerabilities**.
### Removed
- **Unused `serde` / `serde_json` from `src-tauri/Cargo.toml`** — neither was referenced anywhere in `src-tauri/src/` (Tauri scaffolding leftovers; the `#[tauri::command]` functions only use `String` / `Result`). `cargo check` confirms the crate still compiles without them; `Cargo.lock`'s `yt-desc-gen` entry no longer lists them.
### Docs
- Documented the **cross-post caption generator** (Social tab — TikTok / Instagram Reels / Facebook Reels) in [README.md](README.md) and [docs/FEATURES.md](docs/FEATURES.md).
### Under the hood
- Five manifests bumped 0.24.0 → 0.24.1 (`package.json`, `package-lock.json` root + self-reference, `src-tauri/Cargo.toml`, `src-tauri/Cargo.lock` self-entry, `src-tauri/tauri.conf.json`). Gates green: typecheck, lint, validate:locales, knip, build, 482 tests, `npm audit` clean.
## v0.24.0 — 2026-06-08
Adds a **cross-post caption generator** that re-packages the YouTube
+3 -2
View File
@@ -24,14 +24,15 @@ 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.
- **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.
- **248 content-warning IDs** across 12 groups — spoilers, photosensitive/VFX, audio, dialogue/language, phobias (incl. color phobias), mental health, social phenomena, internet/digital life, sensitive themes (incl. method-specific death/violence and suggestive imagery), horror-specific, playstyle, and gameplay disclosure (mods / cheats / glitches / guide-assisted / educational purpose). 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.
- **Smart tag generation** — combines genre pool, platform, quality tier, multilingual hooks, and trending terms; auto-dedup and 500-char-limit aware.
- **Character counters** — real-time limits for title (100), description (5000), tags (500).
- **Batch mode** — generate metadata for all parts of a series in one pass.
- **Desktop app** — Windows & macOS native binaries via Tauri (~8 MB).
- **Cross-post captions** — a dedicated **Social** tab re-packages the same YouTube source into short-form captions for **TikTok** (4,000-char), **Instagram Reels**, and **Facebook Reels** — title, rig, content warnings, copyright, thanks, and hashtags (game + genre + curated per-platform popular tags). Single + bulk modes, per-platform character limits with smart overflow trimming, and JSON import/export.
- **Desktop app** — Windows, macOS & Linux native binaries via Tauri (~8 MB).
- **Mobile-responsive web** — drawer navigation, touch-sized controls, iOS-safe text-input behavior. Tested down to 360 × 640.
- **100% offline** — no server, no telemetry, no account. See [PRIVACY.md](./PRIVACY.md).
+3 -1
View File
@@ -278,6 +278,8 @@ i18n/locales/
**Adding a new language** = 2 JSON files + 1 line registration. See docs/I18N.md.
**Lazy loading (v0.26+)**: only English is bundled into the main chunk — it is the `fallbackLng` and the engine's bilingual `tEn` translator, both of which must resolve synchronously. Every other language is fetched on first use as a Vite async chunk via `i18next-resources-to-backend` + dynamic `import()`. Generation paths gate on bundle readiness (`useLanguagesReady` hook / `ensureLanguagesLoaded`): an unloaded language would otherwise silently render English fallback output. A chunk that fails to fetch degrades to English and logs to the in-app Log page — it never hangs the UI.
**UI language vs Output language**: These are independent. User can browse the app in English but generate descriptions in Japanese. UI language follows `SettingsStore.defaultLanguage`, output language follows `EditorStore.language`.
## 5. Desktop Packaging (Tauri)
@@ -313,7 +315,7 @@ Tauri advantages over Electron:
| What | How to Extend | Files to Touch |
|------|--------------|----------------|
| New language | Add `locales/{code}/ui.json` + `templates.json`, register in `i18n/index.ts` | 3 files |
| New language | Add `locales/{code}/ui.json` + `templates.json`, register in `SUPPORTED_LANGUAGES` (lazy-loaded automatically) | 3 files |
| New genre | Add entry to `config/genres.ts`, add tag pool to `engine/tag-generator.ts` | 2 files |
| New video type | Add to `config/video-types.ts`, add patterns to all `templates.json` | 1 + N locale files |
| New platform/store | Add entry to `config/platforms.ts` | 1 file |
+23 -11
View File
@@ -95,7 +95,7 @@ Bulk-select groups available in the editor: **All RPGs** (rpg + jrpg + action_rp
---
## 3. Content warnings (187, grouped)
## 3. Content warnings (248, 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.
@@ -103,25 +103,37 @@ Selected warnings are appended to a `⚠ CONTENT WARNINGS` block in the descript
Story / ending spoilers · Ending spoilers · True-ending spoilers · Post-game / NG+ spoilers · Secret-ending spoilers · DLC story spoilers
### Photosensitive / Health (6)
### Photosensitive / Health (13)
Flashing lights · Motion sickness · Migraine trigger · Loud / sudden sounds · Strobe lighting · Heavy screen shake
Flashing lights · Motion sickness · Migraine trigger · Strobe lighting · Heavy screen shake · Lens flare / sun glare · Excessive bloom / overblown highlights · Dense particle effects · Flashing HUD / UI overlays · Extreme color saturation · Heavy motion blur · Aggressive depth of field · Intense post-processing
### Phobias (51)
### Audio / Sensory (13)
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)
Loud / sudden sounds · Ear-piercing / high-pitched · Audio jumpscares · Sudden volume changes · Distorted / clipping audio · Screeching / metallic sounds · Persistent high-pitched tones · Audio glitches / artifacts · Heavy bass / sub-bass rumble · Sustained screaming · Glass breaking / shattering · Mic pops / breath noise · White noise / static
### Dialogue / Language (10)
Frequent profanity · Sexual innuendo / suggestive dialogue · Inflammatory / inciting dialogue · Verbal abuse · Threats / intimidation · Slurs / derogatory terms · Crude / toilet humor · Mature / adult humor · Dark / morbid humor · Drug / alcohol references
### Phobias (56)
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) · Colors / vivid color scenes (chromophobia) · Red / all-red scenes (erythrophobia) · Yellow color (xanthophobia) · White / all-white spaces (leukophobia) · Black color (melanophobia)
### 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)
### Social phenomena (22)
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
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 · Body shaming / appearance mockery · Unrealistic beauty standards
### Mature / Sensitive content (61)
### Internet / Digital life (18)
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)
Cyberbullying / online harassment · Doxxing / privacy exposure · Trolling / griefing · Cancel culture / public shaming · Social media addiction · Doomscrolling · FOMO (fear of missing out) · Fake news / misinformation · Online scams / phishing · Catfishing / fake identity · Deepfakes / synthetic media · Cyberstalking · Dangerous viral challenges · Influencer culture / clout chasing · Online radicalization / echo chambers · Loot boxes / gacha mechanics · AI / artificial intelligence themes · Data privacy / mass surveillance
### Mature / Sensitive content (66)
Blood and gore · Mature 18+ · Revealing / skimpy outfits · Partial nudity · Sexualized character designs · Fan service / ecchi · Suggestive poses / camera angles · 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)
@@ -131,9 +143,9 @@ Eyes / eyeball clusters · Body horror (flesh distortion) · Distorted / mutilat
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)
### Gameplay disclosure (5)
Mods used · Cheats / debug · Glitches used · Guide-assisted
Mods used · Cheats / debug · Glitches used · Guide-assisted · Educational / PSA purpose
---
+4
View File
@@ -130,6 +130,10 @@ Disable corporate VPNs / proxies that block the npm registry. The lock file is c
Locale JSON is bundled at build time, not watched. Restart the dev server after editing `src/i18n/locales/*`.
Since v0.26, only English ships in the main chunk; the other languages are
lazy-loaded async chunks fetched on first use (see `src/i18n/index.ts` and
docs/I18N.md). The restart advice above still applies to all of them.
### Pre-commit hook fails on `validate:locales` but I didn't touch locales
You probably added a new key to `_schema.json` indirectly via the engine types (`src/engine/types.ts` → `CONTENT_WARNINGS`). New IDs require translations in all 6 locales.
+36 -8
View File
@@ -99,16 +99,44 @@ Mỗi ngôn ngữ có description structure như sau (tất cả sections option
4. ─── Store Links ─── (if any platform link provided)
5. ─── Video Settings ─── (resolution / FPS / graphics)
6. ─── My Rig ─── (if any rig field provided)
7. ─── Spoiler Warning ─── (if toggled)
8. ─── 18+ Warning ─── (if toggled)
9. ─── Donate Links ─── (if any provided)
10. ─── Social Links ─── (if any provided)
11. ─── Playlist Link ─── (if provided)
12. ─── Contact Email ─── (if provided)
13. CTA line (Like / Subscribe / Share)
14. Hashtags (3 max, auto-generated)
7. ─── Content Warnings ─── (if any selected — 248 IDs across 12 groups)
8. ─── Donate Links ─── (if any provided)
9. ─── Social Links ─── (if any provided)
10. ─── Playlist Link ─── (if provided)
11. ─── Contact Email ─── (if provided)
12. CTA line (Like / Subscribe / Share)
13. Hashtags (3 max, auto-generated)
```
## 🔁 Cross-Post Captions (Social tab)
A dedicated **Social** tab re-packages the same editor source that drives the
YouTube description into short-form captions for other platforms — no
re-typing. Each caption is derived live from the current form.
| Platform | Caption limit | Popular hashtags appended |
|----------|--------------|----------------------------|
| TikTok | 4,000 | `#fyp #foryou #foryoupage #gaming #gamingtiktok #gameplay #gamer` |
| Instagram Reels | 2,200 | `#reels #reelsinstagram #gaming #gamingreels #gamer #instagaming #videogames` |
| Facebook Reels | 2,200 | `#reels #facebookreels #fbreels #gaming #gameplay #gamingcommunity #videogames` |
Each caption pulls, in order: **Title** (quality badge suppressed for
short-form), **My Rig**, **Content Warnings**, **Thanks / sponsor credit**,
**Copyright**, and **hashtags** (game + primary genre + the curated
per-platform popular set, deduplicated case-insensitively).
- **Overflow handling** — when a caption exceeds the platform limit, optional
blocks are dropped in priority order (warnings → copyright → thanks → rig).
The title and the hashtag line are never dropped, and there is no
mid-string truncation.
- **Single mode** — platform tabs with a live character counter and
over-limit warning.
- **Bulk mode** — generate a part range (e.g. Parts 1–10) across selected
languages in one pass, reusing the Batch loop.
- **Import / Export** — round-trip the generated captions as a typed JSON
bundle (`_type: "social"`); import is display-only since captions are
derived artifacts (the source round-trips via Profiles / Presets).
## 🏷 Tag Generation
### Tag Pools by Category
+10 -12
View File
@@ -17,7 +17,7 @@ These are independent: a Vietnamese user can browse the app in Vietnamese (UI) w
```
src/i18n/
├── index.ts # i18next initialization + language registration
├── index.ts # i18next init + SUPPORTED_LANGUAGES (en eager, others lazy-loaded)
├── locales/
│ ├── _schema.json # JSON Schema defining all required keys
│ ├── en/
@@ -206,25 +206,23 @@ cp -r src/i18n/locales/en src/i18n/locales/es
### Step 4: Register the language
```typescript
// src/i18n/index.ts — add to SUPPORTED_LANGUAGES
// src/i18n/index.ts — add to SUPPORTED_LANGUAGES (the only registration step)
export const SUPPORTED_LANGUAGES = [
{ id: "en", label: "English", flag: "🇬🇧", nativeName: "English" },
{ id: "vi", label: "Vietnamese", flag: "🇻🇳", nativeName: "Tiếng Việt" },
{ id: "ja", label: "Japanese", flag: "🇯🇵", nativeName: "日本語" },
{ id: "es", label: "Spanish", flag: "🇪🇸", nativeName: "Español" }, // ← Add here
] as const;
// Add resource import
import esUI from "./locales/es/ui.json";
import esTemplates from "./locales/es/templates.json";
// Add to i18next resources
resources: {
// ...existing
es: { ui: esUI, templates: esTemplates },
}
```
No import or `resources` edits needed (v0.26+): locales are lazy-loaded
through a dynamic `import("./locales/<code>/<ns>.json")`, so Vite picks the
new files up automatically as async chunks — **the file names must stay
exactly `ui.json` and `templates.json`**. Only English is eagerly bundled
(it's the `fallbackLng` and the engine's bilingual `tEn` source); don't add
static imports for other languages, that would drag them back into the
main chunk.
### Step 5: Add multilingual tag pool
```typescript
+23 -11
View File
@@ -95,7 +95,7 @@ Các nhóm bulk-select trong editor: **All RPGs** (rpg + jrpg + action_rpg + crp
---
## 3. Cảnh báo nội dung (187, chia nhóm)
## 3. Cảnh báo nội dung (248, 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.
@@ -103,25 +103,37 @@ Cảnh báo được chọn sẽ thêm vào khối `⚠ CONTENT WARNINGS` trong
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)
### Sức khỏe / Quang nhạy (13)
Đè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
Hiệu ứng chớp sáng · Say game / camera nhanh · Có thể đau nửa đầu · Đèn nhấp nháy · Rung màn hình mạnh · Loé sáng / lens flare · Bloom quá đà / sáng cháy · Hiệu ứng hạt dày đặc · HUD / overlay nhấp nháy · Màu sắc quá rực / loè loẹt · Motion blur nặng · Depth of field gắt · Post-processing đậm đặc
### Ám ảnh / Phobia (51)
### Âm thanh / Cảm âm (13)
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)
Âm thanh đột ngột · Âm chói tai / tần số cao · Jumpscare bằng âm thanh · Thay đổi âm lượng đột ngột · Âm thanh méo / vỡ · Tiếng ken két / kim loại · Tiếng cao kéo dài · Lỗi âm thanh / glitch · Bass nặng / sub-bass rung · Tiếng la hét kéo dài · Tiếng kính vỡ / va đập · Tạp âm mic / tiếng thở · Tiếng nhiễu / tĩnh điện
### Lời thoại / Ngôn từ (10)
Văng tục dày đặc · Lời thoại ẩn ý t*nh d*c · Lời thoại kích động · Lăng mạ / sỉ nhục bằng lời · Lời đe dọa / uy hiếp · Từ ngữ miệt thị / xúc phạm · Hài thô tục · Hài người lớn · Hài đen / u tối · Nhắc đến chất kích thích / đồ có cồn
### Ám ảnh / Phobia (56)
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ợ màu sắc / cảnh màu chói (chromophobia) · Sợ màu đỏ / cảnh toàn đỏ (erythrophobia) · Sợ màu vàng (xanthophobia) · Sợ màu trắng / không gian toàn trắng (leukophobia) · Sợ màu đen (melanophobia)
### 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)
### Hiện tượng tâm lý — xã hội (22)
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
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 · Miệt thị ngoại hình (body shaming) · Chuẩn mực ngoại hình phi thực tế
### Nội dung nhạy cảm / 18+ (61)
### Internet / Đời sống số (18)
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
Bắt nạt / quấy rối qua mạng · Doxxing / phơi bày thông tin cá nhân · Trolling / phá game · Văn hóa tẩy chay / bêu rếu công khai · Nghiện mạng xã hội · Lướt tin tiêu cực vô độ (doomscrolling) · Hội chứng sợ bỏ lỡ (FOMO) · Tin giả / thông tin sai lệch · Lừa đảo trực tuyến / phishing · Giả mạo danh tính trên mạng (catfishing) · Deepfake / nội dung giả mạo bằng AI · Theo dõi / rình rập qua mạng · Trào lưu / thử thách nguy hiểm trên mạng · Văn hóa influencer / câu tương tác · Cực đoan hóa qua mạng / buồng vang thông tin · Loot box / cơ chế gacha · Chủ đề AI / trí tuệ nhân tạo · Riêng tư dữ liệu / giám sát diện rộng
### Nội dung nhạy cảm / 18+ (66)
Máu me · 18+ · Trang phục hở hang · Kh*a th*n một phần · Tạo hình nhân vật bị t*nh d*c hóa · Yếu tố fan service · Tư thế / góc quay gợi cảm · 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)
@@ -131,9 +143,9 @@ Mắt / cụm mắt · Body horror (biến dạng cơ thể) · Mặt biến d
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)
### Thông tin về gameplay (5)
Dùng mod · Bật cheat / debug · Dùng glitch · Có guide hỗ trợ
Dùng mod · Bật cheat / debug · Dùng glitch · Có guide hỗ trợ · Game mục đích giáo dục / tuyên truyền
---
+4
View File
@@ -132,6 +132,10 @@ Tắt VPN/proxy doanh nghiệp chặn npm registry. Lock file đã commit; insta
Locale JSON bundle vào lúc build, không được watch. Restart dev server sau khi sửa `src/i18n/locales/*`.
Từ v0.26, chỉ tiếng Anh nằm trong main chunk; các ngôn ngữ khác là async
chunk lazy-load, tải khi dùng lần đầu (xem `src/i18n/index.ts` và
docs/I18N.md). Lời khuyên restart ở trên vẫn áp dụng cho tất cả.
### Pre-commit hook fail ở `validate:locales` mà mình không động đến locale
Có thể bạn vô tình thêm key mới vào `_schema.json` thông qua `src/engine/types.ts` → `CONTENT_WARNINGS`. ID mới cần dịch ở cả 6 locale.
+151 -219
View File
@@ -1,12 +1,12 @@
{
"name": "yt-desc-gen",
"version": "0.24.0",
"version": "0.26.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "yt-desc-gen",
"version": "0.24.0",
"version": "0.26.0",
"license": "Apache-2.0",
"dependencies": {
"@tauri-apps/api": "^2.11.0",
@@ -16,6 +16,7 @@
"@tauri-apps/plugin-shell": "^2.0.0",
"clsx": "^2.1.0",
"i18next": "^23.15.0",
"i18next-resources-to-backend": "^1.2.1",
"lucide-react": "^0.400.0",
"react": "^18.3.0",
"react-dom": "^18.3.0",
@@ -43,7 +44,7 @@
"typescript": "^5.5.0",
"typescript-eslint": "^8.0.0",
"vite": "^7.3.3",
"vitest": "^3.2.4"
"vitest": "^4.1.8"
}
},
"node_modules/@adobe/css-tools": {
@@ -1820,9 +1821,9 @@
]
},
"node_modules/@remix-run/router": {
"version": "1.23.2",
"resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.23.2.tgz",
"integrity": "sha512-Ic6m2U/rMjTkhERIa/0ZtXJP17QUi2CbWE7cqx4J58M8aA3QTfW+2UlQ4psvTX9IO1RfNVhK3pcpdjej7L+t2w==",
"version": "1.23.3",
"resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.23.3.tgz",
"integrity": "sha512-4An71tdz9X8+3sI4Qqqd2LWd9vS39J7sqd9EU4Scw7TJE/qB10Flv/UuqbPVgfQV9XoK8Np6jNquZitnZq5i+Q==",
"license": "MIT",
"engines": {
"node": ">=14.0.0"
@@ -2185,6 +2186,13 @@
"win32"
]
},
"node_modules/@standard-schema/spec": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz",
"integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==",
"dev": true,
"license": "MIT"
},
"node_modules/@tauri-apps/api": {
"version": "2.11.0",
"resolved": "https://registry.npmjs.org/@tauri-apps/api/-/api-2.11.0.tgz",
@@ -2748,39 +2756,40 @@
}
},
"node_modules/@vitest/expect": {
"version": "3.2.4",
"resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-3.2.4.tgz",
"integrity": "sha512-Io0yyORnB6sikFlt8QW5K7slY4OjqNX9jmJQ02QDda8lyM6B5oNgVWoSoKPac8/kgnCUzuHQKrSLtu/uOqqrig==",
"version": "4.1.8",
"resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-4.1.8.tgz",
"integrity": "sha512-h3nDO677RDLEGlBxyQ5CW8RlMThSKSRLUePLOx09gNIWRL40edgA1GCZSZgf1W55MFAG6/Sw14KeaAnqv0NKdQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"@standard-schema/spec": "^1.1.0",
"@types/chai": "^5.2.2",
"@vitest/spy": "3.2.4",
"@vitest/utils": "3.2.4",
"chai": "^5.2.0",
"tinyrainbow": "^2.0.0"
"@vitest/spy": "4.1.8",
"@vitest/utils": "4.1.8",
"chai": "^6.2.2",
"tinyrainbow": "^3.1.0"
},
"funding": {
"url": "https://opencollective.com/vitest"
}
},
"node_modules/@vitest/mocker": {
"version": "3.2.4",
"resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-3.2.4.tgz",
"integrity": "sha512-46ryTE9RZO/rfDd7pEqFl7etuyzekzEhUbTW3BvmeO/BcCMEgq59BKhek3dXDWgAj4oMK6OZi+vRr1wPW6qjEQ==",
"version": "4.1.8",
"resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-4.1.8.tgz",
"integrity": "sha512-LEiN/xe4OSIbKe9HQIp5OC24agGD9J5CnmMgsLohVVoOPWL9a2sBoR6VBx43jQZb7Kr1l4RCuyCJzcAa0+dojw==",
"dev": true,
"license": "MIT",
"dependencies": {
"@vitest/spy": "3.2.4",
"@vitest/spy": "4.1.8",
"estree-walker": "^3.0.3",
"magic-string": "^0.30.17"
"magic-string": "^0.30.21"
},
"funding": {
"url": "https://opencollective.com/vitest"
},
"peerDependencies": {
"msw": "^2.4.9",
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0"
"vite": "^6.0.0 || ^7.0.0 || ^8.0.0"
},
"peerDependenciesMeta": {
"msw": {
@@ -2792,42 +2801,42 @@
}
},
"node_modules/@vitest/pretty-format": {
"version": "3.2.4",
"resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-3.2.4.tgz",
"integrity": "sha512-IVNZik8IVRJRTr9fxlitMKeJeXFFFN0JaB9PHPGQ8NKQbGpfjlTx9zO4RefN8gp7eqjNy8nyK3NZmBzOPeIxtA==",
"version": "4.1.8",
"resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-4.1.8.tgz",
"integrity": "sha512-9GasEBxpZ1VYIpqHf/0+YGg121uSNwCKOJqIrTwWP/TB7DmFCiaBpNl3aPZzoLWfWkuqhbH8vJIVobZkvdo2cA==",
"dev": true,
"license": "MIT",
"dependencies": {
"tinyrainbow": "^2.0.0"
"tinyrainbow": "^3.1.0"
},
"funding": {
"url": "https://opencollective.com/vitest"
}
},
"node_modules/@vitest/runner": {
"version": "3.2.4",
"resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-3.2.4.tgz",
"integrity": "sha512-oukfKT9Mk41LreEW09vt45f8wx7DordoWUZMYdY/cyAk7w5TWkTRCNZYF7sX7n2wB7jyGAl74OxgwhPgKaqDMQ==",
"version": "4.1.8",
"resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-4.1.8.tgz",
"integrity": "sha512-EmVxeBAfMJvycdjd6Hm+RbFBbA9fKvo0Kx37hNpBYoYeavH3RNsBXWDooR1mgD52dCrxIIuP7UotpfiwOikvcg==",
"dev": true,
"license": "MIT",
"dependencies": {
"@vitest/utils": "3.2.4",
"pathe": "^2.0.3",
"strip-literal": "^3.0.0"
"@vitest/utils": "4.1.8",
"pathe": "^2.0.3"
},
"funding": {
"url": "https://opencollective.com/vitest"
}
},
"node_modules/@vitest/snapshot": {
"version": "3.2.4",
"resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-3.2.4.tgz",
"integrity": "sha512-dEYtS7qQP2CjU27QBC5oUOxLE/v5eLkGqPE0ZKEIDGMs4vKWe7IjgLOeauHsR0D5YuuycGRO5oSRXnwnmA78fQ==",
"version": "4.1.8",
"resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-4.1.8.tgz",
"integrity": "sha512-acfZboRmAIf05DEKcBQy33VXojFJjtUdLyo7oOmV9kebb2xdU01UknNiPuPZoJZQyO7DF0gZdTGTpeAzET9QPQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"@vitest/pretty-format": "3.2.4",
"magic-string": "^0.30.17",
"@vitest/pretty-format": "4.1.8",
"@vitest/utils": "4.1.8",
"magic-string": "^0.30.21",
"pathe": "^2.0.3"
},
"funding": {
@@ -2835,28 +2844,25 @@
}
},
"node_modules/@vitest/spy": {
"version": "3.2.4",
"resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-3.2.4.tgz",
"integrity": "sha512-vAfasCOe6AIK70iP5UD11Ac4siNUNJ9i/9PZ3NKx07sG6sUxeag1LWdNrMWeKKYBLlzuK+Gn65Yd5nyL6ds+nw==",
"version": "4.1.8",
"resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-4.1.8.tgz",
"integrity": "sha512-6EevtBp6OZOPF7bmz36HrGMeP3txgVSrgebWxHOafDXGkhIzfXK14f8KF6MuFfgXXUeHxmpD3BQxkV00/3s5mA==",
"dev": true,
"license": "MIT",
"dependencies": {
"tinyspy": "^4.0.3"
},
"funding": {
"url": "https://opencollective.com/vitest"
}
},
"node_modules/@vitest/utils": {
"version": "3.2.4",
"resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-3.2.4.tgz",
"integrity": "sha512-fB2V0JFrQSMsCo9HiSq3Ezpdv4iYaXRG1Sx8edX3MwxfyNn83mKiGzOcH+Fkxt4MHxr3y42fQi1oeAInqgX2QA==",
"version": "4.1.8",
"resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-4.1.8.tgz",
"integrity": "sha512-uOJamYALNhfJ6iolExyQM40yIQwDqYnkKtQ5VCiSe17E33H0aQ/u+1GlRuz4LZBk6Mm3sg90G9hEbmEt37C1Zg==",
"dev": true,
"license": "MIT",
"dependencies": {
"@vitest/pretty-format": "3.2.4",
"loupe": "^3.1.4",
"tinyrainbow": "^2.0.0"
"@vitest/pretty-format": "4.1.8",
"convert-source-map": "^2.0.0",
"tinyrainbow": "^3.1.0"
},
"funding": {
"url": "https://opencollective.com/vitest"
@@ -3112,16 +3118,6 @@
"node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
}
},
"node_modules/cac": {
"version": "6.7.14",
"resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz",
"integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=8"
}
},
"node_modules/callsites": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
@@ -3164,18 +3160,11 @@
"license": "CC-BY-4.0"
},
"node_modules/chai": {
"version": "5.3.3",
"resolved": "https://registry.npmjs.org/chai/-/chai-5.3.3.tgz",
"integrity": "sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==",
"version": "6.2.2",
"resolved": "https://registry.npmjs.org/chai/-/chai-6.2.2.tgz",
"integrity": "sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==",
"dev": true,
"license": "MIT",
"dependencies": {
"assertion-error": "^2.0.1",
"check-error": "^2.1.1",
"deep-eql": "^5.0.1",
"loupe": "^3.1.0",
"pathval": "^2.0.0"
},
"engines": {
"node": ">=18"
}
@@ -3197,16 +3186,6 @@
"url": "https://github.com/chalk/chalk?sponsor=1"
}
},
"node_modules/check-error": {
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.3.tgz",
"integrity": "sha512-PAJdDJusoxnwm1VwW07VWwUN1sl7smmC3OKggvndJFadxxDRyFJBX/ggnu/KE4kQAB7a3Dp8f/YXC1FlUprWmA==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">= 16"
}
},
"node_modules/chokidar": {
"version": "3.6.0",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",
@@ -3357,16 +3336,6 @@
}
}
},
"node_modules/deep-eql": {
"version": "5.0.2",
"resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz",
"integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=6"
}
},
"node_modules/deep-is": {
"version": "0.1.4",
"resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
@@ -3414,9 +3383,9 @@
"license": "ISC"
},
"node_modules/es-module-lexer": {
"version": "1.7.0",
"resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz",
"integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==",
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.1.0.tgz",
"integrity": "sha512-n27zTYMjYu1aj4MjCWzSP7G9r75utsaoc8m61weK+W8JMBGGQybd43GstCXZ3WNmSFtGT9wi59qQTW6mhTR5LQ==",
"dev": true,
"license": "MIT"
},
@@ -3975,6 +3944,15 @@
"@babel/runtime": "^7.23.2"
}
},
"node_modules/i18next-resources-to-backend": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/i18next-resources-to-backend/-/i18next-resources-to-backend-1.2.1.tgz",
"integrity": "sha512-okHbVA+HZ7n1/76MsfhPqDou0fptl2dAlhRDu2ideXloRRduzHsqDOznJBef+R3DFZnbvWoBW+KxJ7fnFjd6Yw==",
"license": "MIT",
"dependencies": {
"@babel/runtime": "^7.23.2"
}
},
"node_modules/ignore": {
"version": "5.3.2",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
@@ -4340,13 +4318,6 @@
"loose-envify": "cli.js"
}
},
"node_modules/loupe": {
"version": "3.2.1",
"resolved": "https://registry.npmjs.org/loupe/-/loupe-3.2.1.tgz",
"integrity": "sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==",
"dev": true,
"license": "MIT"
},
"node_modules/lru-cache": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
@@ -4526,6 +4497,20 @@
"node": ">= 6"
}
},
"node_modules/obug": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/obug/-/obug-2.1.2.tgz",
"integrity": "sha512-AWGB9WFcRXOQs48Z/udjI5ZcZMHXwX8XPByNpOydgcGsDLIzjGizhoMWJyKAWze7AVW/2W1i+/gPX4YtKe5cyg==",
"dev": true,
"funding": [
"https://github.com/sponsors/sxzz",
"https://opencollective.com/debug"
],
"license": "MIT",
"engines": {
"node": ">=12.20.0"
}
},
"node_modules/optionator": {
"version": "0.9.4",
"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",
@@ -4693,16 +4678,6 @@
"dev": true,
"license": "MIT"
},
"node_modules/pathval": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.1.tgz",
"integrity": "sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">= 14.16"
}
},
"node_modules/picocolors": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
@@ -5167,12 +5142,12 @@
}
},
"node_modules/react-router": {
"version": "6.30.3",
"resolved": "https://registry.npmjs.org/react-router/-/react-router-6.30.3.tgz",
"integrity": "sha512-XRnlbKMTmktBkjCLE8/XcZFlnHvr2Ltdr1eJX4idL55/9BbORzyZEaIkBFDhFGCEWBBItsVrDxwx3gnisMitdw==",
"version": "6.30.4",
"resolved": "https://registry.npmjs.org/react-router/-/react-router-6.30.4.tgz",
"integrity": "sha512-SVUsDe+DybHM/WmYKIVYhZh1o5Dcuf16yM6WjG02Q9XVFMZIJyHYhwrr6bFBXZkVP6z69kNkMyBCujt8FaFLJA==",
"license": "MIT",
"dependencies": {
"@remix-run/router": "1.23.2"
"@remix-run/router": "1.23.3"
},
"engines": {
"node": ">=14.0.0"
@@ -5182,13 +5157,13 @@
}
},
"node_modules/react-router-dom": {
"version": "6.30.3",
"resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.30.3.tgz",
"integrity": "sha512-pxPcv1AczD4vso7G4Z3TKcvlxK7g7TNt3/FNGMhfqyntocvYKj+GCatfigGDjbLozC4baguJ0ReCigoDJXb0ag==",
"version": "6.30.4",
"resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.30.4.tgz",
"integrity": "sha512-q4HvNl+mmDdkS0g+MqiBZNteQJCuimWoOyHMy4T/RQLAn9Z29+E91QXRaxOujeMl2HTzRSS0KFPd7lxX3PjV0Q==",
"license": "MIT",
"dependencies": {
"@remix-run/router": "1.23.2",
"react-router": "6.30.3"
"@remix-run/router": "1.23.3",
"react-router": "6.30.4"
},
"engines": {
"node": ">=14.0.0"
@@ -5436,9 +5411,9 @@
"license": "MIT"
},
"node_modules/std-env": {
"version": "3.10.0",
"resolved": "https://registry.npmjs.org/std-env/-/std-env-3.10.0.tgz",
"integrity": "sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==",
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/std-env/-/std-env-4.1.0.tgz",
"integrity": "sha512-Rq7ybcX2RuC55r9oaPVEW7/xu3tj8u4GeBYHBWCychFtzMIr86A7e3PPEBPT37sHStKX3+TiX/Fr/ACmJLVlLQ==",
"dev": true,
"license": "MIT"
},
@@ -5468,26 +5443,6 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/strip-literal": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-3.1.0.tgz",
"integrity": "sha512-8r3mkIM/2+PpjHoOtiAW8Rg3jJLHaV7xPwG+YRGrv6FP0wwk/toTpATxWYOW0BKdWwl82VT2tFYi5DlROa0Mxg==",
"dev": true,
"license": "MIT",
"dependencies": {
"js-tokens": "^9.0.1"
},
"funding": {
"url": "https://github.com/sponsors/antfu"
}
},
"node_modules/strip-literal/node_modules/js-tokens": {
"version": "9.0.1",
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-9.0.1.tgz",
"integrity": "sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==",
"dev": true,
"license": "MIT"
},
"node_modules/sucrase": {
"version": "3.35.1",
"resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.1.tgz",
@@ -5606,11 +5561,14 @@
"license": "MIT"
},
"node_modules/tinyexec": {
"version": "0.3.2",
"resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz",
"integrity": "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==",
"version": "1.2.4",
"resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.2.4.tgz",
"integrity": "sha512-SHf/r48b7vOrjve9PxJo3MN5v5yuyjHvdUcrQffT3WXMUfnGmHDVbC4k3sHJaJTgZCwpUplIaAo5ANtMyp3YHg==",
"dev": true,
"license": "MIT"
"license": "MIT",
"engines": {
"node": ">=18"
}
},
"node_modules/tinyglobby": {
"version": "0.2.16",
@@ -5660,30 +5618,10 @@
"url": "https://github.com/sponsors/jonschlinkert"
}
},
"node_modules/tinypool": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.1.1.tgz",
"integrity": "sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==",
"dev": true,
"license": "MIT",
"engines": {
"node": "^18.0.0 || >=20.0.0"
}
},
"node_modules/tinyrainbow": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-2.0.0.tgz",
"integrity": "sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=14.0.0"
}
},
"node_modules/tinyspy": {
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-4.0.4.tgz",
"integrity": "sha512-azl+t0z7pw/z958Gy9svOTuzqIk6xq+NSheJzn5MMWtWTFywIacg2wUlzKFGtt3cthx0r2SxMK0yzJOR0IES7Q==",
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-3.1.0.tgz",
"integrity": "sha512-Bf+ILmBgretUrdJxzXM0SgXLZ3XfiaUuOj/IKQHuTXip+05Xn+uyEYdVg0kYDipTBcLrCVyUzAPz7QmArb0mmw==",
"dev": true,
"license": "MIT",
"engines": {
@@ -5944,29 +5882,6 @@
}
}
},
"node_modules/vite-node": {
"version": "3.2.4",
"resolved": "https://registry.npmjs.org/vite-node/-/vite-node-3.2.4.tgz",
"integrity": "sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg==",
"dev": true,
"license": "MIT",
"dependencies": {
"cac": "^6.7.14",
"debug": "^4.4.1",
"es-module-lexer": "^1.7.0",
"pathe": "^2.0.3",
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0"
},
"bin": {
"vite-node": "vite-node.mjs"
},
"engines": {
"node": "^18.0.0 || ^20.0.0 || >=22.0.0"
},
"funding": {
"url": "https://opencollective.com/vitest"
}
},
"node_modules/vite/node_modules/fdir": {
"version": "6.5.0",
"resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
@@ -5999,65 +5914,79 @@
}
},
"node_modules/vitest": {
"version": "3.2.4",
"resolved": "https://registry.npmjs.org/vitest/-/vitest-3.2.4.tgz",
"integrity": "sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A==",
"version": "4.1.8",
"resolved": "https://registry.npmjs.org/vitest/-/vitest-4.1.8.tgz",
"integrity": "sha512-flY6ScbCIt9HThs+C5HS7jvGOB560DJtk/Z15IQROTA6zEy49Nh8T/dofWTQL+n3vswqn87sbJNiuqw1SDp5Ig==",
"dev": true,
"license": "MIT",
"dependencies": {
"@types/chai": "^5.2.2",
"@vitest/expect": "3.2.4",
"@vitest/mocker": "3.2.4",
"@vitest/pretty-format": "^3.2.4",
"@vitest/runner": "3.2.4",
"@vitest/snapshot": "3.2.4",
"@vitest/spy": "3.2.4",
"@vitest/utils": "3.2.4",
"chai": "^5.2.0",
"debug": "^4.4.1",
"expect-type": "^1.2.1",
"magic-string": "^0.30.17",
"@vitest/expect": "4.1.8",
"@vitest/mocker": "4.1.8",
"@vitest/pretty-format": "4.1.8",
"@vitest/runner": "4.1.8",
"@vitest/snapshot": "4.1.8",
"@vitest/spy": "4.1.8",
"@vitest/utils": "4.1.8",
"es-module-lexer": "^2.0.0",
"expect-type": "^1.3.0",
"magic-string": "^0.30.21",
"obug": "^2.1.1",
"pathe": "^2.0.3",
"picomatch": "^4.0.2",
"std-env": "^3.9.0",
"picomatch": "^4.0.3",
"std-env": "^4.0.0-rc.1",
"tinybench": "^2.9.0",
"tinyexec": "^0.3.2",
"tinyglobby": "^0.2.14",
"tinypool": "^1.1.1",
"tinyrainbow": "^2.0.0",
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0",
"vite-node": "3.2.4",
"tinyexec": "^1.0.2",
"tinyglobby": "^0.2.15",
"tinyrainbow": "^3.1.0",
"vite": "^6.0.0 || ^7.0.0 || ^8.0.0",
"why-is-node-running": "^2.3.0"
},
"bin": {
"vitest": "vitest.mjs"
},
"engines": {
"node": "^18.0.0 || ^20.0.0 || >=22.0.0"
"node": "^20.0.0 || ^22.0.0 || >=24.0.0"
},
"funding": {
"url": "https://opencollective.com/vitest"
},
"peerDependencies": {
"@edge-runtime/vm": "*",
"@types/debug": "^4.1.12",
"@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",
"@vitest/browser": "3.2.4",
"@vitest/ui": "3.2.4",
"@opentelemetry/api": "^1.9.0",
"@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0",
"@vitest/browser-playwright": "4.1.8",
"@vitest/browser-preview": "4.1.8",
"@vitest/browser-webdriverio": "4.1.8",
"@vitest/coverage-istanbul": "4.1.8",
"@vitest/coverage-v8": "4.1.8",
"@vitest/ui": "4.1.8",
"happy-dom": "*",
"jsdom": "*"
"jsdom": "*",
"vite": "^6.0.0 || ^7.0.0 || ^8.0.0"
},
"peerDependenciesMeta": {
"@edge-runtime/vm": {
"optional": true
},
"@types/debug": {
"@opentelemetry/api": {
"optional": true
},
"@types/node": {
"optional": true
},
"@vitest/browser": {
"@vitest/browser-playwright": {
"optional": true
},
"@vitest/browser-preview": {
"optional": true
},
"@vitest/browser-webdriverio": {
"optional": true
},
"@vitest/coverage-istanbul": {
"optional": true
},
"@vitest/coverage-v8": {
"optional": true
},
"@vitest/ui": {
@@ -6068,6 +5997,9 @@
},
"jsdom": {
"optional": true
},
"vite": {
"optional": false
}
}
},
+3 -2
View File
@@ -1,6 +1,6 @@
{
"name": "yt-desc-gen",
"version": "0.24.0",
"version": "0.26.0",
"private": true,
"license": "Apache-2.0",
"type": "module",
@@ -30,6 +30,7 @@
"@tauri-apps/plugin-shell": "^2.0.0",
"clsx": "^2.1.0",
"i18next": "^23.15.0",
"i18next-resources-to-backend": "^1.2.1",
"lucide-react": "^0.400.0",
"react": "^18.3.0",
"react-dom": "^18.3.0",
@@ -57,6 +58,6 @@
"typescript": "^5.5.0",
"typescript-eslint": "^8.0.0",
"vite": "^7.3.3",
"vitest": "^3.2.4"
"vitest": "^4.1.8"
}
}
+1 -3
View File
@@ -5535,10 +5535,8 @@ dependencies = [
[[package]]
name = "yt-desc-gen"
version = "0.24.0"
version = "0.26.0"
dependencies = [
"serde",
"serde_json",
"tauri",
"tauri-build",
"tauri-plugin-dialog",
+1 -3
View File
@@ -1,6 +1,6 @@
[package]
name = "yt-desc-gen"
version = "0.24.0"
version = "0.26.0"
description = "YouTube Gameplay Description Generator"
authors = ["poli0981"]
edition = "2021"
@@ -20,5 +20,3 @@ tauri-plugin-fs = "2"
tauri-plugin-opener = "2"
tauri-plugin-shell = "2"
tauri-plugin-single-instance = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
+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.24.0",
"version": "0.26.0",
"identifier": "com.skullmute.ytdescgen",
"build": {
"beforeBuildCommand": "npm run build",
+8 -1
View File
@@ -4,6 +4,7 @@ import i18n from "i18next";
import { useEditorStore } from "@store/editor-store";
import { useSettingsStore } from "@store/settings-store";
import { useCurrentGeneratorInput } from "@hooks/use-current-generator-input";
import { useLanguagesReady } from "@hooks/use-languages-ready";
import { buildPinnedComment } from "@engine/pinned-comment-builder";
import { GENRES } from "@config/genres";
import type { Genre } from "@engine/types";
@@ -40,8 +41,13 @@ export function OutputExtras() {
return map;
}, [t]);
// Lazy-loaded locales (v0.26): the OutputPage flow normally has this
// language loaded already, but the component is standalone by design —
// gate it rather than rely on the page.
const ready = useLanguagesReady([input.language]);
const templateText = useMemo(() => {
if (!showPinnedCommentTemplate) return "";
if (!ready || !showPinnedCommentTemplate) return "";
const tFn = i18n.getFixedT(input.language, "templates");
return buildPinnedComment(input, tFn, {
includeAskNextGame,
@@ -50,6 +56,7 @@ export function OutputExtras() {
genreLabels,
});
}, [
ready,
showPinnedCommentTemplate,
input,
includeAskNextGame,
+7 -1
View File
@@ -5,6 +5,7 @@ import { Modal } from "@components/ui/Modal";
import { CopyButton } from "./CopyButton";
import { CharCounter } from "./CharCounter";
import { buildTitleVariants } from "@engine/title-variants";
import { useLanguagesReady } from "@hooks/use-languages-ready";
import { useEditorStore } from "@store/editor-store";
import { useSettingsStore } from "@store/settings-store";
import { YT_LIMITS, type GeneratorInput } from "@engine/types";
@@ -24,8 +25,12 @@ export function VariantPicker({ open, onClose }: VariantPickerProps) {
const state = useEditorStore();
const showQualityBadge = useSettingsStore((s) => s.showQualityBadge);
// Lazy-loaded locales (v0.26): only request the bundle while the modal
// is actually open; the list fills in on the ready flip.
const ready = useLanguagesReady(open ? [state.language] : []);
const variants = useMemo(() => {
if (!open) return [];
if (!open || !ready) return [];
const input: GeneratorInput = {
videoType: state.videoType,
language: state.language,
@@ -52,6 +57,7 @@ export function VariantPicker({ open, onClose }: VariantPickerProps) {
return buildTitleVariants(input, tFn, showQualityBadge);
}, [
open,
ready,
showQualityBadge,
state.videoType,
state.language,
+59 -1
View File
@@ -71,6 +71,22 @@ export const CONTENT_WARNING_GROUPS: readonly ContentWarningGroup[] = [
"white_noise_static",
],
},
{
id: "dialogue",
labelKey: "editor.contentWarningGroups.dialogue",
items: [
"profanity_frequent",
"sexual_innuendo",
"inflammatory_speech",
"verbal_abuse",
"threatening_language",
"slurs_derogatory",
"crude_humor",
"mature_humor",
"dark_humor",
"drug_references",
],
},
{
id: "phobias",
labelKey: "editor.contentWarningGroups.phobias",
@@ -126,6 +142,11 @@ export const CONTENT_WARNING_GROUPS: readonly ContentWarningGroup[] = [
"cymophobia",
"limnophobia",
"potamophobia",
"chromophobia",
"erythrophobia",
"xanthophobia",
"leukophobia",
"melanophobia",
],
},
{
@@ -175,6 +196,32 @@ export const CONTENT_WARNING_GROUPS: readonly ContentWarningGroup[] = [
"quarter_life_crisis",
"workplace_harassment",
"masculinity_pressure",
"body_shaming",
"beauty_standards",
],
},
{
id: "internet_digital",
labelKey: "editor.contentWarningGroups.internet_digital",
items: [
"cyberbullying",
"doxxing",
"trolling_griefing",
"cancel_culture",
"social_media_addiction",
"doomscrolling",
"fomo",
"fake_news",
"online_scams",
"catfishing",
"deepfake_themes",
"cyberstalking",
"internet_challenges",
"influencer_culture",
"online_radicalization",
"loot_boxes",
"ai_themes",
"data_privacy",
],
},
{
@@ -183,6 +230,11 @@ export const CONTENT_WARNING_GROUPS: readonly ContentWarningGroup[] = [
items: [
"blood_gore",
"mature_18plus",
"revealing_outfits",
"partial_nudity",
"sexualized_characters",
"fanservice",
"suggestive_poses",
"disturbing_imagery",
"animal_abuse",
"child_harm",
@@ -281,6 +333,12 @@ export const CONTENT_WARNING_GROUPS: readonly ContentWarningGroup[] = [
{
id: "gameplay_disclosure",
labelKey: "editor.contentWarningGroups.gameplay_disclosure",
items: ["mods_used", "cheats_enabled", "glitch_exploits", "assisted_run"],
items: [
"mods_used",
"cheats_enabled",
"glitch_exploits",
"assisted_run",
"educational_purpose_only",
],
},
] as const;
+72
View File
@@ -296,6 +296,20 @@ export const CONTENT_WARNINGS = [
"glass_breaking_audio",
"microphone_pops",
"white_noise_static",
// Dialogue / language (v0.25.0). What characters *say* — profanity,
// innuendo, slurs, humor tone, substance references — is judged by
// YouTube and viewers separately from what's *shown*, so spoken/written
// content gets its own disclosure block (ESRB-style descriptors).
"profanity_frequent",
"sexual_innuendo",
"inflammatory_speech",
"verbal_abuse",
"threatening_language",
"slurs_derogatory",
"crude_humor",
"mature_humor",
"dark_humor",
"drug_references",
// Phobias
"jump_scares",
"acrophobia",
@@ -350,6 +364,14 @@ export const CONTENT_WARNINGS = [
"cymophobia",
"limnophobia",
"potamophobia",
// Phobias — colors (v0.25.0). Chromophobia and per-color variants:
// monochrome set pieces (all-red rooms, stark-white liminal halls)
// are a recurring horror device that triggers this audience.
"chromophobia",
"erythrophobia",
"xanthophobia",
"leukophobia",
"melanophobia",
// Mental health
"anxiety_inducing",
"depression_themes",
@@ -389,9 +411,41 @@ export const CONTENT_WARNINGS = [
"quarter_life_crisis",
"workplace_harassment",
"masculinity_pressure",
// Social phenomena — body image (v0.25.0)
"body_shaming",
"beauty_standards",
// Internet / digital life (v0.25.0). 21st-century online phenomena —
// cyberbullying, viral misinformation, scams, parasocial economies —
// increasingly drive game narratives but had no disclosure ids.
"cyberbullying",
"doxxing",
"trolling_griefing",
"cancel_culture",
"social_media_addiction",
"doomscrolling",
"fomo",
"fake_news",
"online_scams",
"catfishing",
"deepfake_themes",
"cyberstalking",
"internet_challenges",
"influencer_culture",
"online_radicalization",
"loot_boxes",
"ai_themes",
"data_privacy",
// Mature / sensitive
"blood_gore",
"mature_18plus",
// Sensitive — suggestive imagery (v0.25.0). Visuals unsuitable for
// minors that fall short of explicit content: skimpy outfits,
// partial nudity, sexualized designs, fan-service shots.
"revealing_outfits",
"partial_nudity",
"sexualized_characters",
"fanservice",
"suggestive_poses",
"disturbing_imagery",
"animal_abuse",
"child_harm",
@@ -486,6 +540,9 @@ export const CONTENT_WARNINGS = [
"cheats_enabled",
"glitch_exploits",
"assisted_run",
// v0.25.0: the game itself is educational / PSA / propaganda material —
// a nature-of-content disclosure, not a playthrough disclosure.
"educational_purpose_only",
] as const;
export type ContentWarning = (typeof CONTENT_WARNINGS)[number];
@@ -779,6 +836,21 @@ export interface GeneratorOutput {
warnings: CharLimitWarning[];
}
/**
* Pending/placeholder output rendered while a locale bundle is still being
* fetched (v0.26 lazy-loaded locales). `title === ""` doubles as the gate
* for OutputPage's history-save effect, so no wrong-language entry can be
* recorded from a not-yet-loaded translator.
*/
export const EMPTY_GENERATOR_OUTPUT: GeneratorOutput = {
title: "",
description: "",
tags: [],
tagString: "",
charCounts: { title: 0, description: 0, tags: 0 },
warnings: [],
};
export interface CharLimitWarning {
field: "title" | "description" | "tags";
current: number;
+26 -16
View File
@@ -2,8 +2,9 @@ import { useMemo } from "react";
import i18n from "i18next";
import { useSettingsStore } from "@store/settings-store";
import { renderAll } from "@engine/template-renderer";
import type { GeneratorOutput } from "@engine/types";
import { EMPTY_GENERATOR_OUTPUT, type GeneratorOutput } from "@engine/types";
import { useCurrentGeneratorInput } from "./use-current-generator-input";
import { useLanguagesReady } from "./use-languages-ready";
export function useGeneratedOutput(): GeneratorOutput {
const input = useCurrentGeneratorInput();
@@ -21,29 +22,38 @@ export function useGeneratedOutput(): GeneratorOutput {
titleFormat,
} = useSettingsStore();
// Lazy-loaded locales (v0.26): block generation until the output
// language's bundle is in memory — getFixedT would otherwise silently
// render English, and OutputPage would save that as a history entry.
const ready = useLanguagesReady([input.language]);
const t = useMemo(() => i18n.getFixedT(input.language, "templates"), [input.language]);
// Always-English `t` for the v0.11 bilingual content-warning block.
// Built once per render so the engine receives a stable function ref;
// the engine falls back to `t` when this is undefined.
// the engine falls back to `t` when this is undefined. `en` is eagerly
// bundled, so it never needs the readiness gate.
const tEn = useMemo(() => i18n.getFixedT("en", "templates"), []);
return useMemo(
() =>
renderAll(input, t, {
includeMultilingualTags,
includeTrendingTags,
hashtagCount,
showQualityBadge,
showCopyright,
showUsagePolicy,
showSponsorCredit,
showGameCopyright,
showThirdPartyAds,
showTranslationQuality,
titleFormat,
tEn,
}),
!ready
? EMPTY_GENERATOR_OUTPUT
: renderAll(input, t, {
includeMultilingualTags,
includeTrendingTags,
hashtagCount,
showQualityBadge,
showCopyright,
showUsagePolicy,
showSponsorCredit,
showGameCopyright,
showThirdPartyAds,
showTranslationQuality,
titleFormat,
tEn,
}),
[
ready,
input,
t,
tEn,
+47
View File
@@ -0,0 +1,47 @@
import { useEffect, useMemo, useState } from "react";
import { ensureLanguagesLoaded, hasLanguageBundles } from "@i18n/index";
import type { SupportedLanguage } from "@engine/types";
/**
* Returns true once every requested language has its locale bundles in
* memory (v0.26 lazy-loaded locales). Until then the caller must render a
* pending placeholder instead of generating — an unloaded language would
* otherwise silently produce English fallback output.
*
* Resolves to true even when a bundle fails to fetch (offline, stale
* deploy): `ensureLanguagesLoaded` logs the failure and the app degrades
* to English rather than hanging the UI.
*/
export function useLanguagesReady(
langs: readonly SupportedLanguage[],
): boolean {
const joined = langs.join(",");
// Stable identity for the requested set — callers pass fresh array
// literals on every render.
const key = useMemo(
() => [...new Set(joined ? joined.split(",") : [])].sort().join(","),
[joined],
);
const [readyKey, setReadyKey] = useState<string | null>(() =>
langs.every(hasLanguageBundles) ? key : null,
);
useEffect(() => {
const wanted = (key ? key.split(",") : []) as SupportedLanguage[];
if (wanted.every(hasLanguageBundles)) {
setReadyKey(key);
return;
}
let cancelled = false;
void ensureLanguagesLoaded(wanted).finally(() => {
if (!cancelled) setReadyKey(key);
});
return () => {
cancelled = true;
};
}, [key]);
// Comparing against the current key means a late resolve for a
// superseded language set can never mark the new set ready.
return readyKey === key;
}
+7
View File
@@ -4,11 +4,16 @@ import { useSettingsStore } from "@store/settings-store";
import { renderAll } from "@engine/template-renderer";
import type { GeneratorOutput, SupportedLanguage } from "@engine/types";
import { useCurrentGeneratorInput } from "./use-current-generator-input";
import { useLanguagesReady } from "./use-languages-ready";
export function useMultilangOutput(
languages: SupportedLanguage[],
): Record<string, GeneratorOutput> {
const baseInput = useCurrentGeneratorInput();
// Lazy-loaded locales (v0.26): all-or-nothing gate — OutputPage already
// renders nothing for an absent tab entry, and the per-language chunks
// load in parallel, so partial results aren't worth the complexity.
const ready = useLanguagesReady(languages);
const {
includeMultilingualTags,
includeTrendingTags,
@@ -23,6 +28,7 @@ export function useMultilangOutput(
return useMemo(() => {
const results: Record<string, GeneratorOutput> = {};
if (!ready) return results;
for (const lang of languages) {
const tFn = i18n.getFixedT(lang, "templates");
const input = { ...baseInput, language: lang };
@@ -40,6 +46,7 @@ export function useMultilangOutput(
}
return results;
}, [
ready,
languages,
baseInput,
includeMultilingualTags,
+13 -6
View File
@@ -8,6 +8,7 @@ import {
import { SOCIAL_PLATFORMS } from "@config/social-platforms";
import type { SupportedLanguage } from "@engine/types";
import { useCurrentGeneratorInput } from "./use-current-generator-input";
import { useLanguagesReady } from "./use-languages-ready";
/**
* Memoised editor-state → cross-post captions hook (v0.24.0). Mirrors
@@ -22,6 +23,10 @@ export function useSocialPosts(
const input = useCurrentGeneratorInput(languageOverride);
const { showCopyright, showSponsorCredit } = useSettingsStore();
// Lazy-loaded locales (v0.26): no caption until the output language's
// bundle is in memory — SocialPage renders nothing for an empty record.
const ready = useLanguagesReady([input.language]);
const t = useMemo(
() => i18n.getFixedT(input.language, "templates"),
[input.language],
@@ -32,11 +37,13 @@ export function useSocialPosts(
return useMemo(
() =>
buildAllSocialPosts(input, t, SOCIAL_PLATFORMS, {
showCopyright,
showSponsorCredit,
tEn,
}),
[input, t, tEn, showCopyright, showSponsorCredit],
!ready
? {}
: buildAllSocialPosts(input, t, SOCIAL_PLATFORMS, {
showCopyright,
showSponsorCredit,
tEn,
}),
[ready, input, t, tEn, showCopyright, showSponsorCredit],
);
}
+80 -26
View File
@@ -1,18 +1,11 @@
import i18n from "i18next";
import { initReactI18next } from "react-i18next";
import resourcesToBackend from "i18next-resources-to-backend";
import type { SupportedLanguage } from "@engine/types";
import { logger } from "@utils/logger";
import enUI from "./locales/en/ui.json";
import enTemplates from "./locales/en/templates.json";
import viUI from "./locales/vi/ui.json";
import viTemplates from "./locales/vi/templates.json";
import jaUI from "./locales/ja/ui.json";
import jaTemplates from "./locales/ja/templates.json";
import esUI from "./locales/es/ui.json";
import esTemplates from "./locales/es/templates.json";
import koUI from "./locales/ko/ui.json";
import koTemplates from "./locales/ko/templates.json";
import zhUI from "./locales/zh/ui.json";
import zhTemplates from "./locales/zh/templates.json";
export const SUPPORTED_LANGUAGES = [
{ id: "en", label: "English", flag: "🇬🇧", nativeName: "English" },
@@ -23,21 +16,82 @@ export const SUPPORTED_LANGUAGES = [
{ id: "zh", label: "Chinese", flag: "🇨🇳", nativeName: "简体中文" },
] as const;
i18n.use(initReactI18next).init({
resources: {
en: { ui: enUI, templates: enTemplates },
vi: { ui: viUI, templates: viTemplates },
ja: { ui: jaUI, templates: jaTemplates },
es: { ui: esUI, templates: esTemplates },
ko: { ui: koUI, templates: koTemplates },
zh: { ui: zhUI, templates: zhTemplates },
},
ns: ["ui", "templates"],
defaultNS: "ui",
fallbackLng: "en",
interpolation: {
escapeValue: false,
},
});
i18n
.use(initReactI18next)
.use(
// Vite statically analyses this template literal and emits one async
// chunk per locale JSON, fetched on first use. `en` is also statically
// imported above, so Rollup keeps it in the main chunk — and i18next
// never asks the backend for it because bundled namespaces are served
// from `resources` (see `partialBundledLanguages`).
resourcesToBackend(
(lng: string, ns: string) => import(`./locales/${lng}/${ns}.json`),
),
)
.init({
resources: { en: { ui: enUI, templates: enTemplates } },
partialBundledLanguages: true,
ns: ["ui", "templates"],
defaultNS: "ui",
fallbackLng: "en",
interpolation: {
escapeValue: false,
},
react: {
// react-i18next defaults this to true; with lazily-loaded bundles an
// unready namespace would suspend Header/AppShell, which sit outside
// every Suspense boundary. Readiness is handled explicitly instead
// (useLanguagesReady / ensureLanguagesLoaded).
useSuspense: false,
},
});
const NAMESPACES = ["ui", "templates"] as const;
/** Both bundles for a language are in memory. */
export function hasLanguageBundles(lang: string): boolean {
return NAMESPACES.every((ns) => i18n.hasResourceBundle(lang, ns));
}
/**
* Resolve once every requested language has its `ui` + `templates` bundles
* in memory — the contract every `getFixedT` call site relies on, since
* i18next silently serves English fallback strings for unloaded languages.
*
* Never rejects: a language whose chunk cannot be fetched (offline, stale
* deploy HTML) is logged and left to the `fallbackLng` English degrade.
*/
export async function ensureLanguagesLoaded(
langs: readonly SupportedLanguage[],
): Promise<void> {
const wanted = [...new Set(langs)].filter((l) => !hasLanguageBundles(l));
if (wanted.length === 0) return;
await i18n.loadLanguages(wanted);
// A failed fetch leaves the connector state at -1, and BOTH loadLanguages
// and reloadResources skip state<0 entries forever after — one transient
// blip would otherwise pin the whole session to English. Retry once by
// importing the chunk directly and feeding the store (public API; the
// template literal matches the backend loader's, so no extra chunks).
const failed: SupportedLanguage[] = [];
for (const lng of wanted.filter((l) => !hasLanguageBundles(l))) {
for (const ns of NAMESPACES) {
if (i18n.hasResourceBundle(lng, ns)) continue;
try {
const mod = (await import(`./locales/${lng}/${ns}.json`)) as {
default: Record<string, unknown>;
};
i18n.addResourceBundle(lng, ns, mod.default);
} catch {
if (!failed.includes(lng)) failed.push(lng);
}
}
}
if (failed.length > 0) {
logger.warn(
"i18n",
`Locale bundle load failed: ${failed.join(", ")} — falling back to English`,
);
}
}
export default i18n;
+13 -7
View File
@@ -110,27 +110,30 @@
"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", "audio", "phobias", "mental_health", "social_phenomena", "sensitive", "playstyle", "horror_specific", "gameplay_disclosure"],
"editor.contentWarningGroups": ["spoilers", "photosensitive", "audio", "dialogue", "phobias", "mental_health", "social_phenomena", "internet_digital", "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", "strobe_effects", "screen_shake_intense",
"lens_flare_intense", "bloom_excessive", "particle_effects_dense", "screen_overlay_flashing", "color_saturation_extreme", "motion_blur_heavy", "depth_of_field_aggressive", "post_processing_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",
"profanity_frequent", "sexual_innuendo", "inflammatory_speech", "verbal_abuse", "threatening_language", "slurs_derogatory", "crude_humor", "mature_humor", "dark_humor", "drug_references",
"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",
"chromophobia", "erythrophobia", "xanthophobia", "leukophobia", "melanophobia",
"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",
"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", "body_shaming", "beauty_standards",
"cyberbullying", "doxxing", "trolling_griefing", "cancel_culture", "social_media_addiction", "doomscrolling", "fomo", "fake_news", "online_scams", "catfishing", "deepfake_themes", "cyberstalking", "internet_challenges", "influencer_culture", "online_radicalization", "loot_boxes", "ai_themes", "data_privacy",
"blood_gore", "mature_18plus", "revealing_outfits", "partial_nudity", "sexualized_characters", "fanservice", "suggestive_poses", "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"
"mods_used", "cheats_enabled", "glitch_exploits", "assisted_run", "educational_purpose_only"
],
"editor.videoStyleOptions": [
"1980s", "1990s", "2000s", "2010s", "2020s",
@@ -234,21 +237,24 @@
"flashing_lights", "motion_sickness", "migraine_trigger", "strobe_effects", "screen_shake_intense",
"lens_flare_intense", "bloom_excessive", "particle_effects_dense", "screen_overlay_flashing", "color_saturation_extreme", "motion_blur_heavy", "depth_of_field_aggressive", "post_processing_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",
"profanity_frequent", "sexual_innuendo", "inflammatory_speech", "verbal_abuse", "threatening_language", "slurs_derogatory", "crude_humor", "mature_humor", "dark_humor", "drug_references",
"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",
"chromophobia", "erythrophobia", "xanthophobia", "leukophobia", "melanophobia",
"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",
"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", "body_shaming", "beauty_standards",
"cyberbullying", "doxxing", "trolling_griefing", "cancel_culture", "social_media_addiction", "doomscrolling", "fomo", "fake_news", "online_scams", "catfishing", "deepfake_themes", "cyberstalking", "internet_challenges", "influencer_culture", "online_radicalization", "loot_boxes", "ai_themes", "data_privacy",
"blood_gore", "mature_18plus", "revealing_outfits", "partial_nudity", "sexualized_characters", "fanservice", "suggestive_poses", "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"
"mods_used", "cheats_enabled", "glitch_exploits", "assisted_run", "educational_purpose_only"
],
"description.storeLinkSuffix": ["free", "demo"],
"description.graphics": ["with", "artStyle", "videoLabel", "inGameSettingLabel", "versionLabel"],
+42 -1
View File
@@ -413,7 +413,48 @@
"mass_casualty_event": "Mass-casualty event (attack, disaster)",
"vehicular_violence": "Vehicular violence / intentional ramming",
"overdose_depiction": "Overdose scene",
"defenestration": "Falling from height (intentional)"
"defenestration": "Falling from height (intentional)",
"profanity_frequent": "Frequent profanity / strong language",
"sexual_innuendo": "Sexually suggestive dialogue / innuendo",
"inflammatory_speech": "Inflammatory / inciting dialogue",
"verbal_abuse": "Verbal abuse / demeaning language",
"threatening_language": "Threatening / intimidating language",
"slurs_derogatory": "Slurs / derogatory terms",
"crude_humor": "Crude / toilet humor",
"mature_humor": "Mature / adult humor",
"dark_humor": "Dark / morbid humor",
"drug_references": "Drug / alcohol references in dialogue",
"chromophobia": "Vivid color scenes (chromophobia)",
"erythrophobia": "Red / all-red scenes (erythrophobia)",
"xanthophobia": "Yellow-dominant scenes (xanthophobia)",
"leukophobia": "White / all-white spaces (leukophobia)",
"melanophobia": "Black-dominant scenes (melanophobia)",
"body_shaming": "Body shaming / appearance mockery",
"beauty_standards": "Unrealistic beauty standards",
"cyberbullying": "Cyberbullying / online harassment",
"doxxing": "Doxxing / privacy exposure",
"trolling_griefing": "Trolling / griefing",
"cancel_culture": "Cancel culture / public shaming",
"social_media_addiction": "Social media addiction",
"doomscrolling": "Doomscrolling",
"fomo": "FOMO — fear of missing out",
"fake_news": "Fake news / misinformation",
"online_scams": "Online scams / phishing",
"catfishing": "Catfishing / fake online identity",
"deepfake_themes": "Deepfakes / synthetic media",
"cyberstalking": "Cyberstalking",
"internet_challenges": "Dangerous viral challenges",
"influencer_culture": "Influencer culture / clout chasing",
"online_radicalization": "Online radicalization / echo chambers",
"loot_boxes": "Loot boxes / gacha mechanics",
"ai_themes": "AI / artificial intelligence themes",
"data_privacy": "Data privacy / mass surveillance",
"revealing_outfits": "Revealing / skimpy outfits",
"partial_nudity": "Partial nudity",
"sexualized_characters": "Sexualized character designs",
"fanservice": "Fan service / ecchi content",
"suggestive_poses": "Suggestive poses / camera angles",
"educational_purpose_only": "Educational / PSA-purpose game"
}
},
"graphics": {
+44 -1
View File
@@ -324,9 +324,11 @@
"spoilers": "Spoilers",
"photosensitive": "Photosensitive / Health",
"audio": "Audio / Sensory",
"dialogue": "Dialogue / Language",
"phobias": "Phobias",
"mental_health": "Mental health",
"social_phenomena": "Social phenomena",
"internet_digital": "Internet / Digital life",
"sensitive": "Mature / Sensitive content",
"playstyle": "Playstyle disclosures",
"horror_specific": "Heavy horror",
@@ -539,7 +541,48 @@
"mass_casualty_event": "Mass-casualty event",
"vehicular_violence": "Vehicular violence",
"overdose_depiction": "Overdose scene",
"defenestration": "Falling from height"
"defenestration": "Falling from height",
"profanity_frequent": "Frequent profanity",
"sexual_innuendo": "Sexual innuendo / suggestive dialogue",
"inflammatory_speech": "Inflammatory / inciting dialogue",
"verbal_abuse": "Verbal abuse",
"threatening_language": "Threats / intimidation",
"slurs_derogatory": "Slurs / derogatory terms",
"crude_humor": "Crude / toilet humor",
"mature_humor": "Mature / adult humor",
"dark_humor": "Dark / morbid humor",
"drug_references": "Drug / alcohol references",
"chromophobia": "Colors / vivid color scenes",
"erythrophobia": "Red / all-red scenes",
"xanthophobia": "Yellow color",
"leukophobia": "White / all-white spaces",
"melanophobia": "Black color",
"body_shaming": "Body shaming / appearance mockery",
"beauty_standards": "Unrealistic beauty standards",
"cyberbullying": "Cyberbullying / online harassment",
"doxxing": "Doxxing / privacy exposure",
"trolling_griefing": "Trolling / griefing",
"cancel_culture": "Cancel culture / public shaming",
"social_media_addiction": "Social media addiction",
"doomscrolling": "Doomscrolling",
"fomo": "FOMO (fear of missing out)",
"fake_news": "Fake news / misinformation",
"online_scams": "Online scams / phishing",
"catfishing": "Catfishing / fake identity",
"deepfake_themes": "Deepfakes / synthetic media",
"cyberstalking": "Cyberstalking",
"internet_challenges": "Dangerous viral challenges",
"influencer_culture": "Influencer culture / clout chasing",
"online_radicalization": "Online radicalization / echo chambers",
"loot_boxes": "Loot boxes / gacha mechanics",
"ai_themes": "AI / artificial intelligence themes",
"data_privacy": "Data privacy / mass surveillance",
"revealing_outfits": "Revealing / skimpy outfits",
"partial_nudity": "Partial nudity",
"sexualized_characters": "Sexualized character designs",
"fanservice": "Fan service / ecchi",
"suggestive_poses": "Suggestive poses / camera angles",
"educational_purpose_only": "Educational / PSA purpose"
},
"playthroughNotes": {
"title": "Playthrough notes",
+42 -1
View File
@@ -413,7 +413,48 @@
"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)"
"defenestration": "Caída desde altura (intencional)",
"profanity_frequent": "Lenguaje soez / vulgar frecuente",
"sexual_innuendo": "Diálogos con insinuaciones sexuales",
"inflammatory_speech": "Diálogos incendiarios / provocadores",
"verbal_abuse": "Abuso verbal / lenguaje denigrante",
"threatening_language": "Lenguaje amenazante / intimidatorio",
"slurs_derogatory": "Insultos / términos despectivos",
"crude_humor": "Humor vulgar / escatológico",
"mature_humor": "Humor adulto",
"dark_humor": "Humor negro / macabro",
"drug_references": "Referencias a drogas / alcohol en diálogos",
"chromophobia": "Escenas de colores intensos (cromofobia)",
"erythrophobia": "Escenas en rojo total (eritrofobia)",
"xanthophobia": "Escenas dominadas por amarillo (xantofobia)",
"leukophobia": "Espacios en blanco total (leucofobia)",
"melanophobia": "Escenas dominadas por negro (melanofobia)",
"body_shaming": "Burlas sobre el aspecto físico (body shaming)",
"beauty_standards": "Estándares de belleza irreales",
"cyberbullying": "Ciberacoso / acoso en línea",
"doxxing": "Doxxing / exposición de datos personales",
"trolling_griefing": "Trolleo / griefing",
"cancel_culture": "Cultura de la cancelación / escarnio público",
"social_media_addiction": "Adicción a las redes sociales",
"doomscrolling": "Doomscrolling",
"fomo": "FOMO — miedo a perderse algo",
"fake_news": "Noticias falsas / desinformación",
"online_scams": "Estafas en línea / phishing",
"catfishing": "Catfishing / identidad falsa en línea",
"deepfake_themes": "Deepfakes / medios sintéticos",
"cyberstalking": "Ciberacecho",
"internet_challenges": "Retos virales peligrosos",
"influencer_culture": "Cultura influencer / búsqueda de fama",
"online_radicalization": "Radicalización en línea / cámaras de eco",
"loot_boxes": "Cajas de botín / mecánicas gacha",
"ai_themes": "Temas de IA / inteligencia artificial",
"data_privacy": "Privacidad de datos / vigilancia masiva",
"revealing_outfits": "Atuendos reveladores",
"partial_nudity": "Desnudez parcial",
"sexualized_characters": "Diseños de personajes sexualizados",
"fanservice": "Fan service / contenido ecchi",
"suggestive_poses": "Poses / ángulos de cámara sugerentes",
"educational_purpose_only": "Juego con fines educativos / divulgativos"
}
},
"graphics": {
+44 -1
View File
@@ -324,9 +324,11 @@
"spoilers": "Spoilers",
"photosensitive": "Fotosensibilidad / Salud",
"audio": "Audio / Sensorial",
"dialogue": "Diálogo / Lenguaje",
"phobias": "Fobias",
"mental_health": "Salud mental",
"social_phenomena": "Fenómenos sociales",
"internet_digital": "Internet / Vida digital",
"sensitive": "Adulto / Sensible",
"playstyle": "Notas de juego",
"horror_specific": "Horror intenso",
@@ -539,7 +541,48 @@
"mass_casualty_event": "Víctimas masivas",
"vehicular_violence": "Violencia vehicular",
"overdose_depiction": "Escena de sobredosis",
"defenestration": "Caída desde altura"
"defenestration": "Caída desde altura",
"profanity_frequent": "Lenguaje soez frecuente",
"sexual_innuendo": "Insinuaciones sexuales en diálogos",
"inflammatory_speech": "Diálogos incendiarios",
"verbal_abuse": "Abuso verbal",
"threatening_language": "Lenguaje amenazante",
"slurs_derogatory": "Insultos / términos despectivos",
"crude_humor": "Humor vulgar",
"mature_humor": "Humor adulto",
"dark_humor": "Humor negro",
"drug_references": "Referencias a drogas / alcohol",
"chromophobia": "Colores intensos",
"erythrophobia": "Rojo / escenas en rojo",
"xanthophobia": "Color amarillo",
"leukophobia": "Blanco / espacios en blanco",
"melanophobia": "Color negro",
"body_shaming": "Burlas del aspecto físico",
"beauty_standards": "Estándares de belleza irreales",
"cyberbullying": "Ciberacoso",
"doxxing": "Doxxing / exposición de datos",
"trolling_griefing": "Trolleo / griefing",
"cancel_culture": "Cultura de la cancelación",
"social_media_addiction": "Adicción a redes sociales",
"doomscrolling": "Doomscrolling",
"fomo": "FOMO (miedo a perderse algo)",
"fake_news": "Noticias falsas / desinformación",
"online_scams": "Estafas en línea / phishing",
"catfishing": "Catfishing / identidad falsa",
"deepfake_themes": "Deepfakes / medios sintéticos",
"cyberstalking": "Ciberacecho",
"internet_challenges": "Retos virales peligrosos",
"influencer_culture": "Cultura influencer",
"online_radicalization": "Radicalización en línea",
"loot_boxes": "Cajas de botín / gacha",
"ai_themes": "Temas de IA",
"data_privacy": "Privacidad de datos / vigilancia",
"revealing_outfits": "Atuendos reveladores",
"partial_nudity": "Desnudez parcial",
"sexualized_characters": "Personajes sexualizados",
"fanservice": "Fan service / ecchi",
"suggestive_poses": "Poses / ángulos sugerentes",
"educational_purpose_only": "Fines educativos / divulgativos"
},
"playthroughNotes": {
"title": "Notas de la partida",
+42 -1
View File
@@ -413,7 +413,48 @@
"mass_casualty_event": "大量死傷事件(襲撃・災害)",
"vehicular_violence": "車両による暴力 / 故意の衝突",
"overdose_depiction": "薬物過剰摂取シーン",
"defenestration": "高所からの転落(意図的)"
"defenestration": "高所からの転落(意図的)",
"profanity_frequent": "頻繁な暴言・汚い言葉遣い",
"sexual_innuendo": "性的なほのめかしを含むセリフ",
"inflammatory_speech": "扇動的・挑発的なセリフ",
"verbal_abuse": "言葉による侮辱・暴言",
"threatening_language": "脅迫的・威圧的な言葉",
"slurs_derogatory": "差別用語・蔑称",
"crude_humor": "下品なユーモア",
"mature_humor": "大人向けユーモア",
"dark_humor": "ブラックユーモア",
"drug_references": "セリフ内の薬物・飲酒への言及",
"chromophobia": "鮮やかな色彩の場面(色彩恐怖症)",
"erythrophobia": "真っ赤な場面(赤色恐怖症)",
"xanthophobia": "黄色が目立つ場面(黄色恐怖症)",
"leukophobia": "真っ白な空間(白色恐怖症)",
"melanophobia": "黒一色の場面(黒色恐怖症)",
"body_shaming": "外見への侮辱(ボディシェイミング)",
"beauty_standards": "非現実的な美の基準",
"cyberbullying": "ネットいじめ・誹謗中傷",
"doxxing": "晒し行為・個人情報の暴露",
"trolling_griefing": "荒らし・グリーフィング行為",
"cancel_culture": "キャンセルカルチャー・公開非難",
"social_media_addiction": "SNS依存",
"doomscrolling": "ドゥームスクローリング",
"fomo": "FOMO — 取り残される不安",
"fake_news": "フェイクニュース・誤情報",
"online_scams": "ネット詐欺・フィッシング",
"catfishing": "ネット上のなりすまし(キャットフィッシング)",
"deepfake_themes": "ディープフェイク・合成メディア",
"cyberstalking": "ネットストーキング",
"internet_challenges": "危険なバイラルチャレンジ",
"influencer_culture": "インフルエンサー文化・注目集め",
"online_radicalization": "ネット上の過激化・エコーチェンバー",
"loot_boxes": "ルートボックス・ガチャ要素",
"ai_themes": "AI・人工知能のテーマ",
"data_privacy": "データプライバシー・大規模監視",
"revealing_outfits": "露出度の高い衣装",
"partial_nudity": "部分的なヌード",
"sexualized_characters": "性的に強調されたキャラクターデザイン",
"fanservice": "ファンサービス・お色気要素",
"suggestive_poses": "挑発的なポーズ・カメラアングル",
"educational_purpose_only": "教育・啓発目的のゲーム"
}
},
"graphics": {
+44 -1
View File
@@ -324,9 +324,11 @@
"spoilers": "ネタバレ",
"photosensitive": "光感受性 / 健康",
"audio": "音声 / 感覚",
"dialogue": "セリフ / 言葉遣い",
"phobias": "恐怖症",
"mental_health": "メンタルヘルス",
"social_phenomena": "社会・心理現象",
"internet_digital": "インターネット / デジタルライフ",
"sensitive": "成人向け / センシティブ",
"playstyle": "プレイ情報",
"horror_specific": "ヘビーホラー",
@@ -539,7 +541,48 @@
"mass_casualty_event": "大量死傷事件",
"vehicular_violence": "車両による暴力",
"overdose_depiction": "薬物過剰摂取シーン",
"defenestration": "高所からの転落"
"defenestration": "高所からの転落",
"profanity_frequent": "頻繁な暴言・汚い言葉",
"sexual_innuendo": "性的なほのめかしのセリフ",
"inflammatory_speech": "扇動的なセリフ",
"verbal_abuse": "言葉による侮辱",
"threatening_language": "脅迫的な言葉",
"slurs_derogatory": "差別用語・蔑称",
"crude_humor": "下品なユーモア",
"mature_humor": "大人向けユーモア",
"dark_humor": "ブラックユーモア",
"drug_references": "薬物・飲酒への言及",
"chromophobia": "鮮やかな色彩",
"erythrophobia": "赤色 / 真っ赤な場面",
"xanthophobia": "黄色",
"leukophobia": "白色 / 真っ白な空間",
"melanophobia": "黒色",
"body_shaming": "ボディシェイミング(外見への侮辱)",
"beauty_standards": "非現実的な美の基準",
"cyberbullying": "ネットいじめ・誹謗中傷",
"doxxing": "晒し行為(個人情報暴露)",
"trolling_griefing": "荒らし・グリーフィング",
"cancel_culture": "キャンセルカルチャー",
"social_media_addiction": "SNS依存",
"doomscrolling": "ドゥームスクローリング",
"fomo": "FOMO(取り残される不安)",
"fake_news": "フェイクニュース・誤情報",
"online_scams": "ネット詐欺・フィッシング",
"catfishing": "なりすまし(キャットフィッシング)",
"deepfake_themes": "ディープフェイク・合成メディア",
"cyberstalking": "ネットストーキング",
"internet_challenges": "危険なバイラルチャレンジ",
"influencer_culture": "インフルエンサー文化",
"online_radicalization": "ネット上の過激化・エコーチェンバー",
"loot_boxes": "ルートボックス・ガチャ要素",
"ai_themes": "AI・人工知能テーマ",
"data_privacy": "データプライバシー・大規模監視",
"revealing_outfits": "露出度の高い衣装",
"partial_nudity": "部分的なヌード",
"sexualized_characters": "性的に強調されたキャラデザイン",
"fanservice": "ファンサービス・お色気",
"suggestive_poses": "挑発的なポーズ・アングル",
"educational_purpose_only": "教育・啓発目的のゲーム"
},
"playthroughNotes": {
"title": "プレイ情報",
+42 -1
View File
@@ -413,7 +413,48 @@
"mass_casualty_event": "대규모 인명피해 사건 (공격·재난)",
"vehicular_violence": "차량을 이용한 폭력 / 고의적 충돌",
"overdose_depiction": "약물 과다 복용 장면",
"defenestration": "고의적 추락 / 투신"
"defenestration": "고의적 추락 / 투신",
"profanity_frequent": "잦은 욕설 / 거친 언어",
"sexual_innuendo": "성적 암시가 담긴 대사",
"inflammatory_speech": "선동적 / 도발적인 대사",
"verbal_abuse": "언어폭력 / 모욕적 발언",
"threatening_language": "위협적 / 협박성 언사",
"slurs_derogatory": "비하 / 멸칭 표현",
"crude_humor": "저속한 유머",
"mature_humor": "성인 유머",
"dark_humor": "블랙 유머",
"drug_references": "대사 중 약물 / 음주 언급",
"chromophobia": "강렬한 색채 장면 (색채 공포증)",
"erythrophobia": "온통 붉은 장면 (빨간색 공포증)",
"xanthophobia": "노란색 위주 장면 (노란색 공포증)",
"leukophobia": "온통 하얀 공간 (흰색 공포증)",
"melanophobia": "온통 검은 장면 (검은색 공포증)",
"body_shaming": "외모 비하 (바디 셰이밍)",
"beauty_standards": "비현실적인 미의 기준",
"cyberbullying": "사이버 폭력 / 온라인 괴롭힘",
"doxxing": "신상 털기 / 개인정보 노출",
"trolling_griefing": "트롤링 / 고의적 방해 행위",
"cancel_culture": "캔슬 컬처 / 공개 비난",
"social_media_addiction": "SNS 중독",
"doomscrolling": "둠스크롤링",
"fomo": "FOMO — 소외에 대한 불안",
"fake_news": "가짜 뉴스 / 허위 정보",
"online_scams": "온라인 사기 / 피싱",
"catfishing": "온라인 신분 위장 (캣피싱)",
"deepfake_themes": "딥페이크 / 합성 미디어",
"cyberstalking": "사이버 스토킹",
"internet_challenges": "위험한 바이럴 챌린지",
"influencer_culture": "인플루언서 문화 / 관심 끌기",
"online_radicalization": "온라인 급진화 / 에코 체임버",
"loot_boxes": "확률형 아이템 / 가챠 요소",
"ai_themes": "AI / 인공지능 테마",
"data_privacy": "데이터 프라이버시 / 대규모 감시",
"revealing_outfits": "노출이 심한 의상",
"partial_nudity": "부분 노출",
"sexualized_characters": "성적으로 강조된 캐릭터 디자인",
"fanservice": "팬서비스 / 에치 요소",
"suggestive_poses": "선정적인 포즈 / 카메라 구도",
"educational_purpose_only": "교육 / 공익 목적 게임"
}
},
"graphics": {
+44 -1
View File
@@ -324,9 +324,11 @@
"spoilers": "스포일러",
"photosensitive": "광과민 / 건강",
"audio": "음향 / 청각",
"dialogue": "대사 / 언어",
"phobias": "공포증",
"mental_health": "정신 건강",
"social_phenomena": "사회·심리 현상",
"internet_digital": "인터넷 / 디지털 라이프",
"sensitive": "성인 / 민감",
"playstyle": "플레이 안내",
"horror_specific": "중증 호러",
@@ -539,7 +541,48 @@
"mass_casualty_event": "대규모 인명피해",
"vehicular_violence": "차량을 이용한 폭력",
"overdose_depiction": "약물 과다 복용 장면",
"defenestration": "추락 / 투신"
"defenestration": "추락 / 투신",
"profanity_frequent": "잦은 욕설 / 거친 언어",
"sexual_innuendo": "성적 암시 대사",
"inflammatory_speech": "선동적인 대사",
"verbal_abuse": "언어폭력 / 모욕",
"threatening_language": "위협적인 언사",
"slurs_derogatory": "비하 / 멸칭 표현",
"crude_humor": "저속한 유머",
"mature_humor": "성인 유머",
"dark_humor": "블랙 유머",
"drug_references": "약물 / 음주 언급",
"chromophobia": "색채 공포",
"erythrophobia": "빨간색 / 온통 붉은 장면",
"xanthophobia": "노란색",
"leukophobia": "흰색 / 온통 하얀 공간",
"melanophobia": "검은색",
"body_shaming": "외모 비하 (바디 셰이밍)",
"beauty_standards": "비현실적인 미의 기준",
"cyberbullying": "사이버 폭력 / 온라인 괴롭힘",
"doxxing": "신상 털기 (doxxing)",
"trolling_griefing": "트롤링 / 고의적 방해",
"cancel_culture": "캔슬 컬처 / 공개 비난",
"social_media_addiction": "SNS 중독",
"doomscrolling": "둠스크롤링",
"fomo": "FOMO (소외 불안)",
"fake_news": "가짜 뉴스 / 허위 정보",
"online_scams": "온라인 사기 / 피싱",
"catfishing": "신분 위장 (캣피싱)",
"deepfake_themes": "딥페이크 / 합성 미디어",
"cyberstalking": "사이버 스토킹",
"internet_challenges": "위험한 바이럴 챌린지",
"influencer_culture": "인플루언서 문화",
"online_radicalization": "온라인 급진화 / 에코 체임버",
"loot_boxes": "확률형 아이템 / 가챠",
"ai_themes": "AI / 인공지능 테마",
"data_privacy": "데이터 프라이버시 / 감시",
"revealing_outfits": "노출이 심한 의상",
"partial_nudity": "부분 노출",
"sexualized_characters": "성적으로 강조된 캐릭터 디자인",
"fanservice": "팬서비스 / 에치 요소",
"suggestive_poses": "선정적인 포즈 / 구도",
"educational_purpose_only": "교육 / 공익 목적 게임"
},
"playthroughNotes": {
"title": "플레이 노트",
+42 -1
View File
@@ -413,7 +413,48 @@
"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"
"defenestration": "Có cảnh ngã / nhảy từ trên cao có chủ đích",
"profanity_frequent": "Văng tục dày đặc / ngôn từ thô tục",
"sexual_innuendo": "Lời thoại ẩn ý t*nh d*c / gợi mở",
"inflammatory_speech": "Lời thoại mang tính kích động",
"verbal_abuse": "Lăng mạ / sỉ nhục bằng lời nói",
"threatening_language": "Lời lẽ đe dọa / uy hiếp",
"slurs_derogatory": "Từ ngữ miệt thị / xúc phạm",
"crude_humor": "Hài thô tục",
"mature_humor": "Hài người lớn",
"dark_humor": "Hài đen / u tối",
"drug_references": "Lời thoại nhắc đến chất kích thích / đồ uống có cồn",
"chromophobia": "Cảnh nhiều màu rực / chói (chromophobia)",
"erythrophobia": "Cảnh toàn màu đỏ (erythrophobia)",
"xanthophobia": "Cảnh nhiều màu vàng (xanthophobia)",
"leukophobia": "Không gian toàn màu trắng (leukophobia)",
"melanophobia": "Cảnh toàn màu đen (melanophobia)",
"body_shaming": "Miệt thị ngoại hình (body shaming)",
"beauty_standards": "Chuẩn mực ngoại hình phi thực tế",
"cyberbullying": "Bắt nạt / quấy rối qua mạng",
"doxxing": "Doxxing / phơi bày thông tin cá nhân",
"trolling_griefing": "Trolling / phá hoại trong game",
"cancel_culture": "Văn hóa tẩy chay / bêu rếu công khai",
"social_media_addiction": "Nghiện mạng xã hội",
"doomscrolling": "Lướt tin tiêu cực vô độ (doomscrolling)",
"fomo": "Hội chứng sợ bỏ lỡ (FOMO)",
"fake_news": "Tin giả / thông tin sai lệch",
"online_scams": "Lừa đảo trực tuyến / phishing",
"catfishing": "Giả mạo danh tính trên mạng (catfishing)",
"deepfake_themes": "Deepfake / nội dung giả mạo bằng AI",
"cyberstalking": "Theo dõi / rình rập qua mạng",
"internet_challenges": "Trào lưu / thử thách nguy hiểm trên mạng",
"influencer_culture": "Văn hóa influencer / chạy theo tương tác",
"online_radicalization": "Cực đoan hóa qua mạng / buồng vang thông tin",
"loot_boxes": "Loot box / cơ chế gacha",
"ai_themes": "Chủ đề AI / trí tuệ nhân tạo",
"data_privacy": "Riêng tư dữ liệu / giám sát diện rộng",
"revealing_outfits": "Trang phục hở hang",
"partial_nudity": "Kh*a th*n một phần",
"sexualized_characters": "Tạo hình nhân vật bị t*nh d*c hóa",
"fanservice": "Yếu tố fan service / ecchi",
"suggestive_poses": "Tư thế / góc quay gợi cảm",
"educational_purpose_only": "Game phục vụ mục đích giáo dục / tuyên truyền"
}
},
"graphics": {
+44 -1
View File
@@ -324,9 +324,11 @@
"spoilers": "Spoiler",
"photosensitive": "Sức khoẻ / nhạy sáng",
"audio": "Âm thanh / cảm âm",
"dialogue": "Lời thoại / ngôn từ",
"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",
"internet_digital": "Internet / đời sống số",
"sensitive": "Nội dung nhạy cảm / 18+",
"playstyle": "Chú thích lối chơi",
"horror_specific": "Kinh dị nặng đô",
@@ -539,7 +541,48 @@
"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"
"defenestration": "Ngã / nhảy từ trên cao",
"profanity_frequent": "Văng tục dày đặc",
"sexual_innuendo": "Lời thoại ẩn ý t*nh d*c",
"inflammatory_speech": "Lời thoại kích động",
"verbal_abuse": "Lăng mạ / sỉ nhục bằng lời",
"threatening_language": "Lời đe dọa / uy hiếp",
"slurs_derogatory": "Từ ngữ miệt thị / xúc phạm",
"crude_humor": "Hài thô tục",
"mature_humor": "Hài người lớn",
"dark_humor": "Hài đen / u tối",
"drug_references": "Nhắc đến chất kích thích / đồ có cồn",
"chromophobia": "Sợ màu sắc / cảnh màu chói",
"erythrophobia": "Sợ màu đỏ / cảnh toàn đỏ",
"xanthophobia": "Sợ màu vàng",
"leukophobia": "Sợ màu trắng / không gian toàn trắng",
"melanophobia": "Sợ màu đen",
"body_shaming": "Miệt thị ngoại hình (body shaming)",
"beauty_standards": "Chuẩn mực ngoại hình phi thực tế",
"cyberbullying": "Bắt nạt / quấy rối qua mạng",
"doxxing": "Doxxing / phơi bày thông tin cá nhân",
"trolling_griefing": "Trolling / phá game",
"cancel_culture": "Văn hóa tẩy chay / bêu rếu công khai",
"social_media_addiction": "Nghiện mạng xã hội",
"doomscrolling": "Lướt tin tiêu cực vô độ (doomscrolling)",
"fomo": "Hội chứng sợ bỏ lỡ (FOMO)",
"fake_news": "Tin giả / thông tin sai lệch",
"online_scams": "Lừa đảo trực tuyến / phishing",
"catfishing": "Giả mạo danh tính trên mạng (catfishing)",
"deepfake_themes": "Deepfake / nội dung giả mạo bằng AI",
"cyberstalking": "Theo dõi / rình rập qua mạng",
"internet_challenges": "Trào lưu / thử thách nguy hiểm trên mạng",
"influencer_culture": "Văn hóa influencer / câu tương tác",
"online_radicalization": "Cực đoan hóa qua mạng / buồng vang thông tin",
"loot_boxes": "Loot box / cơ chế gacha",
"ai_themes": "Chủ đề AI / trí tuệ nhân tạo",
"data_privacy": "Riêng tư dữ liệu / giám sát diện rộng",
"revealing_outfits": "Trang phục hở hang",
"partial_nudity": "Kh*a th*n một phần",
"sexualized_characters": "Tạo hình nhân vật bị t*nh d*c hóa",
"fanservice": "Yếu tố fan service",
"suggestive_poses": "Tư thế / góc quay gợi cảm",
"educational_purpose_only": "Game mục đích giáo dục / tuyên truyền"
},
"playthroughNotes": {
"title": "Ghi chú lượt chơi",
+42 -1
View File
@@ -413,7 +413,48 @@
"mass_casualty_event": "大规模伤亡事件(袭击、灾难)",
"vehicular_violence": "车辆暴力 / 蓄意撞击",
"overdose_depiction": "药物过量场景",
"defenestration": "高处坠落(蓄意)"
"defenestration": "高处坠落(蓄意)",
"profanity_frequent": "频繁脏话 / 粗俗语言",
"sexual_innuendo": "含性暗示的台词",
"inflammatory_speech": "煽动性 / 挑衅性台词",
"verbal_abuse": "言语辱骂 / 贬低",
"threatening_language": "威胁 / 恐吓性言语",
"slurs_derogatory": "侮辱性 / 歧视性用语",
"crude_humor": "低俗幽默",
"mature_humor": "成人幽默",
"dark_humor": "黑色幽默",
"drug_references": "台词中提及成瘾物质 / 酒精",
"chromophobia": "强烈色彩场景(色彩恐惧症)",
"erythrophobia": "全红场景(红色恐惧症)",
"xanthophobia": "黄色为主的场景(黄色恐惧症)",
"leukophobia": "全白空间(白色恐惧症)",
"melanophobia": "全黑场景(黑色恐惧症)",
"body_shaming": "外貌羞辱(body shaming)",
"beauty_standards": "不切实际的审美标准",
"cyberbullying": "网络霸凌 / 网络骚扰",
"doxxing": "人肉搜索 / 个人隐私曝光",
"trolling_griefing": "网络喷子 / 恶意捣乱行为",
"cancel_culture": "取消文化 / 公开羞辱",
"social_media_addiction": "社交媒体成瘾",
"doomscrolling": "无休止刷负面信息(doomscrolling)",
"fomo": "错失恐惧 — FOMO",
"fake_news": "假新闻 / 虚假信息",
"online_scams": "网络诈骗 / 钓鱼",
"catfishing": "网络身份冒充(catfishing)",
"deepfake_themes": "深度伪造 / 合成媒体",
"cyberstalking": "网络跟踪骚扰",
"internet_challenges": "危险的网络挑战",
"influencer_culture": "网红文化 / 流量至上",
"online_radicalization": "网络极端化 / 信息茧房",
"loot_boxes": "开箱 / 抽卡机制",
"ai_themes": "AI / 人工智能主题",
"data_privacy": "数据隐私 / 大规模监控",
"revealing_outfits": "暴露服装",
"partial_nudity": "部分裸露",
"sexualized_characters": "性化的角色设计",
"fanservice": "福利镜头(fan service)",
"suggestive_poses": "暗示性姿势 / 镜头角度",
"educational_purpose_only": "教育 / 公益宣传目的游戏"
}
},
"graphics": {
+44 -1
View File
@@ -324,9 +324,11 @@
"spoilers": "剧透",
"photosensitive": "光敏感 / 健康",
"audio": "音频 / 感官",
"dialogue": "台词 / 语言",
"phobias": "恐惧症",
"mental_health": "心理健康",
"social_phenomena": "社会心理现象",
"internet_digital": "互联网 / 数字生活",
"sensitive": "成人 / 敏感",
"playstyle": "游玩说明",
"horror_specific": "重度恐怖",
@@ -539,7 +541,48 @@
"mass_casualty_event": "大规模伤亡事件",
"vehicular_violence": "车辆暴力",
"overdose_depiction": "药物过量场景",
"defenestration": "高处坠落"
"defenestration": "高处坠落",
"profanity_frequent": "频繁脏话 / 粗俗语言",
"sexual_innuendo": "含性暗示的台词",
"inflammatory_speech": "煽动性台词",
"verbal_abuse": "言语辱骂",
"threatening_language": "威胁性言语",
"slurs_derogatory": "侮辱性 / 歧视性用语",
"crude_humor": "低俗幽默",
"mature_humor": "成人幽默",
"dark_humor": "黑色幽默",
"drug_references": "提及成瘾物质 / 酒精",
"chromophobia": "色彩恐惧",
"erythrophobia": "红色恐惧 / 全红场景",
"xanthophobia": "黄色恐惧",
"leukophobia": "白色恐惧 / 全白空间",
"melanophobia": "黑色恐惧",
"body_shaming": "外貌羞辱",
"beauty_standards": "不切实际的审美标准",
"cyberbullying": "网络霸凌 / 网络骚扰",
"doxxing": "人肉搜索 / 隐私曝光",
"trolling_griefing": "网络喷子 / 恶意捣乱",
"cancel_culture": "取消文化 / 公开羞辱",
"social_media_addiction": "社交媒体成瘾",
"doomscrolling": "无休止刷负面信息",
"fomo": "错失恐惧 (FOMO)",
"fake_news": "假新闻 / 虚假信息",
"online_scams": "网络诈骗 / 钓鱼",
"catfishing": "网络身份冒充",
"deepfake_themes": "深度伪造 / 合成媒体",
"cyberstalking": "网络跟踪骚扰",
"internet_challenges": "危险的网络挑战",
"influencer_culture": "网红文化 / 流量至上",
"online_radicalization": "网络极端化 / 信息茧房",
"loot_boxes": "开箱 / 抽卡机制",
"ai_themes": "AI / 人工智能主题",
"data_privacy": "数据隐私 / 大规模监控",
"revealing_outfits": "暴露服装",
"partial_nudity": "部分裸露",
"sexualized_characters": "性化的角色设计",
"fanservice": "福利镜头 (fan service)",
"suggestive_poses": "暗示性姿势 / 镜头角度",
"educational_purpose_only": "教育 / 公益宣传目的游戏"
},
"playthroughNotes": {
"title": "本期游玩说明",
+36 -7
View File
@@ -2,20 +2,49 @@ import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import App from "./App";
import { ErrorBoundary } from "./components/ErrorBoundary";
import i18n, { ensureLanguagesLoaded } from "@i18n/index";
import { useSettingsStore } from "@store/settings-store";
import { useEditorStore } from "@store/editor-store";
import "./styles/globals.css";
const root = document.getElementById("root");
if (!root) throw new Error("Root element not found");
/**
* Lazy-loaded locales (v0.26): fetch the persisted UI + output languages
* before first paint so a non-English user never sees an English flash
* (and the Output page never renders a placeholder on cold start).
* zustand persist hydrates synchronously from localStorage, so these
* reads already hold the user's values; Tauri's async settings-file
* rehydrate is bridged later by App's store subscription.
*
* `en` resolves from the eagerly-bundled resources, so English users pay
* zero extra latency. The 2 s race cap means a dead network can delay —
* but never block — first paint; the readiness hooks re-gate after render.
*/
async function preloadLocales(): Promise<void> {
const { appLanguage, defaultOutputLanguage } = useSettingsStore.getState();
const outputLanguage = useEditorStore.getState().language;
await Promise.race([
Promise.all([
i18n.changeLanguage(appLanguage),
ensureLanguagesLoaded([defaultOutputLanguage, outputLanguage]),
]),
new Promise<void>((resolve) => setTimeout(resolve, 2000)),
]).catch(() => undefined);
}
// Top-level safety net. Per-route boundaries in App.tsx catch most
// errors with route-specific labels; this outer one only fires if
// something explodes *before* the router mounts (e.g. i18n init, store
// rehydrate). Without it, a top-level crash still produces a black
// page — defeating the point of per-route boundaries.
createRoot(root).render(
<StrictMode>
<ErrorBoundary label="app">
<App />
</ErrorBoundary>
</StrictMode>,
);
void preloadLocales().finally(() => {
createRoot(root).render(
<StrictMode>
<ErrorBoundary label="app">
<App />
</ErrorBoundary>
</StrictMode>,
);
});
+20 -3
View File
@@ -8,7 +8,7 @@ import { CopyButton } from "@components/output/CopyButton";
import { CharCounter } from "@components/output/CharCounter";
import { useEditorStore } from "@store/editor-store";
import { useSettingsStore } from "@store/settings-store";
import { SUPPORTED_LANGUAGES } from "@i18n/index";
import { SUPPORTED_LANGUAGES, ensureLanguagesLoaded } from "@i18n/index";
import { renderAll } from "@engine/template-renderer";
import { buildPinnedComment } from "@engine/pinned-comment-builder";
import { YT_LIMITS } from "@engine/types";
@@ -51,6 +51,7 @@ export function BatchPage() {
const [endPart, setEndPart] = useState("5");
const [selectedLangs, setSelectedLangs] = useState<SupportedLanguage[]>([state.language]);
const [results, setResults] = useState<BatchResult[]>([]);
const [generating, setGenerating] = useState(false);
const toggleLang = (lang: SupportedLanguage) => {
setSelectedLangs((prev) => {
@@ -61,7 +62,7 @@ export function BatchPage() {
});
};
const handleGenerate = () => {
const generate = () => {
const start = parseInt(startPart) || 1;
const end = parseInt(endPart) || start;
const outputs: BatchResult[] = [];
@@ -105,6 +106,19 @@ export function BatchPage() {
setResults(outputs);
};
const handleGenerate = async () => {
setGenerating(true);
try {
// Lazy-loaded locales (v0.26): batch generates across multiple
// languages in one pass — every selected bundle must be in memory
// before the loop, or getFixedT silently renders English.
await ensureLanguagesLoaded(selectedLangs);
generate();
} finally {
setGenerating(false);
}
};
const allCombined = useMemo(
() =>
results
@@ -162,7 +176,10 @@ export function BatchPage() {
value={endPart}
onChange={(e) => setEndPart(e.target.value)}
/>
<Button onClick={handleGenerate} disabled={!state.gameName}>
<Button
onClick={() => void handleGenerate()}
disabled={!state.gameName || generating}
>
{t("batch.generateBatch")}
</Button>
</div>
+7 -1
View File
@@ -10,6 +10,7 @@ import { Select } from "@components/ui/Select";
import { CopyButton } from "@components/output/CopyButton";
import { useEditorStore } from "@store/editor-store";
import { SUPPORTED_LANGUAGES } from "@i18n/index";
import { useLanguagesReady } from "@hooks/use-languages-ready";
import {
buildPlaylistTitle,
buildPlaylistDescription,
@@ -66,13 +67,18 @@ export function PlaylistPage() {
[editor.gameName, editor.channelName, status, contentType, totalVideos, editor.storeLinks, customNote],
);
// Lazy-loaded locales (v0.26): the dropdown can pick a language whose
// bundle isn't fetched yet — hold the placeholder until it is.
const ready = useLanguagesReady([language]);
const output = useMemo(() => {
if (!ready) return { title: "", description: "" };
const tFn = i18n.getFixedT(language, "templates");
return {
title: buildPlaylistTitle(playlistInput, tFn),
description: buildPlaylistDescription(playlistInput, tFn),
};
}, [playlistInput, language]);
}, [ready, playlistInput, language]);
return (
<div className="mx-auto flex max-w-5xl flex-col gap-6 p-6 lg:flex-row">
+23 -4
View File
@@ -9,7 +9,7 @@ import { CopyButton } from "@components/output/CopyButton";
import { CharCounter } from "@components/output/CharCounter";
import { useEditorStore } from "@store/editor-store";
import { useSettingsStore } from "@store/settings-store";
import { SUPPORTED_LANGUAGES } from "@i18n/index";
import { SUPPORTED_LANGUAGES, ensureLanguagesLoaded } from "@i18n/index";
import { SOCIAL_PLATFORMS } from "@config/social-platforms";
import { useSocialPosts } from "@hooks/use-social-posts";
import {
@@ -73,6 +73,7 @@ export function SocialPage() {
language,
]);
const [bulkResults, setBulkResults] = useState<BulkRow[]>([]);
const [generating, setGenerating] = useState(false);
// Import display (read-only)
const [imported, setImported] = useState<SocialExportBundle | null>(null);
@@ -140,14 +141,16 @@ export function SocialPage() {
});
};
const handleBulkGenerate = () => {
const bulkGenerate = () => {
const start = parseInt(startPart) || 1;
const end = parseInt(endPart) || start;
const rows: BulkRow[] = [];
// Loop-invariant English translator for the bilingual content-warnings
// block — `en` is eagerly bundled, so it needs no readiness gate.
const tEn = i18n.getFixedT("en", "templates");
for (let i = start; i <= Math.min(end, start + 99); i++) {
for (const lang of selectedLangs) {
const tFn = i18n.getFixedT(lang, "templates");
const tEn = i18n.getFixedT("en", "templates");
const input = {
...baseInput,
videoType: "part" as const,
@@ -169,6 +172,19 @@ export function SocialPage() {
setBulkResults(rows);
};
const handleBulkGenerate = async () => {
setGenerating(true);
try {
// Lazy-loaded locales (v0.26): bulk generates across multiple
// languages in one pass — every selected bundle must be in memory
// before the loop, or getFixedT silently renders English.
await ensureLanguagesLoaded(selectedLangs);
bulkGenerate();
} finally {
setGenerating(false);
}
};
const bulkCombined = useMemo(
() =>
bulkResults
@@ -373,7 +389,10 @@ export function SocialPage() {
value={endPart}
onChange={(e) => setEndPart(e.target.value)}
/>
<Button onClick={handleBulkGenerate} disabled={!gameName}>
<Button
onClick={() => void handleBulkGenerate()}
disabled={!gameName || generating}
>
{t("common.generate")}
</Button>
</div>
+4 -1
View File
@@ -1 +1,4 @@
export const IS_TAURI = "__TAURI_INTERNALS__" in window;
// The `typeof` guard keeps this module importable outside a browser
// context (vitest's node environment) — no `window` means no Tauri.
export const IS_TAURI =
typeof window !== "undefined" && "__TAURI_INTERNALS__" in window;
@@ -0,0 +1,36 @@
import { describe, it, expect } from "vitest";
import { CONTENT_WARNING_GROUPS } from "@config/content-warning-groups";
import { CONTENT_WARNINGS } from "@engine/types";
/**
* Parity guard between the engine's flat CONTENT_WARNINGS union and the
* editor's CONTENT_WARNING_GROUPS. TypeScript already rejects a group item
* that isn't a valid ContentWarning, but nothing else catches an id added
* to the engine list and forgotten from every group — it would silently
* never appear in the UI. No hard counts asserted on purpose: the guard
* shouldn't need touching when warnings are added correctly.
*/
describe("CONTENT_WARNING_GROUPS ↔ CONTENT_WARNINGS parity", () => {
const grouped = CONTENT_WARNING_GROUPS.flatMap((g) => g.items);
it("contains no duplicate ids across groups", () => {
const seen = new Set<string>();
const dupes = grouped.filter((id) => {
if (seen.has(id)) return true;
seen.add(id);
return false;
});
expect(dupes).toEqual([]);
});
it("covers every engine warning id exactly (none missing, none extra)", () => {
const missingFromGroups = CONTENT_WARNINGS.filter(
(id) => !grouped.includes(id),
);
const unknownInGroups = grouped.filter(
(id) => !(CONTENT_WARNINGS as readonly string[]).includes(id),
);
expect(missingFromGroups).toEqual([]);
expect(unknownInGroups).toEqual([]);
});
});
+79
View File
@@ -1251,6 +1251,85 @@ describe("buildDescription — v0.7 content fields (legacy)", () => {
});
});
describe("buildDescription — v0.25.0 dialogue / internet / suggestive warnings", () => {
it("renders dialogue/language warnings (en)", () => {
const t = createMockT("en");
const result = buildDescription(
makeInput({ contentWarnings: ["profanity_frequent", "drug_references"] }),
t,
);
expect(result).toContain("▸ ⚠️ CONTENT WARNINGS");
expect(result).toContain("• Frequent profanity / strong language");
expect(result).toContain("• Drug / alcohol references in dialogue");
});
it("renders internet/digital-life warnings (en)", () => {
const t = createMockT("en");
const result = buildDescription(
makeInput({ contentWarnings: ["cyberbullying", "loot_boxes"] }),
t,
);
expect(result).toContain("• Cyberbullying / online harassment");
expect(result).toContain("• Loot boxes / gacha mechanics");
});
it("renders color phobias without dragging in siblings (en)", () => {
const t = createMockT("en");
const result = buildDescription(
makeInput({ contentWarnings: ["erythrophobia"] }),
t,
);
expect(result).toContain("• Red / all-red scenes (erythrophobia)");
expect(result).not.toContain("(leukophobia)");
});
it("renders bilingual EN · VI for a new suggestive-imagery warning", () => {
const t = createMockT("vi");
const tEn = createMockT("en");
const result = buildDescription(
makeInput({ language: "vi", contentWarnings: ["sexualized_characters"] }),
t,
{ tEn },
);
expect(result).toContain(
"• Sexualized character designs · Tạo hình nhân vật bị t*nh d*c hóa",
);
});
it("masks YouTube-flag-prone Vietnamese terms on the new suggestive warnings", () => {
const t = createMockT("vi");
const tEn = createMockT("en");
const result = buildDescription(
makeInput({
language: "vi",
contentWarnings: [
"sexual_innuendo",
"partial_nudity",
"sexualized_characters",
],
}),
t,
{ tEn },
);
// Masked forms present (v0.21.0 asterisk precedent)
expect(result).toContain("Lời thoại ẩn ý t*nh d*c");
expect(result).toContain("Kh*a th*n một phần");
expect(result).toContain("t*nh d*c hóa");
// Unmasked flag-prone terms absent
expect(result).not.toContain("tình dục");
expect(result).not.toContain("Khỏa thân");
});
it("renders the educational/PSA-purpose disclosure (en)", () => {
const t = createMockT("en");
const result = buildDescription(
makeInput({ contentWarnings: ["educational_purpose_only"] }),
t,
);
expect(result).toContain("• Educational / PSA-purpose game");
});
});
describe("buildDescription — gacha_quest video type (v0.9)", () => {
it("dispatches to the per-quest-type intro for main_story", () => {
const t = createMockT("en");
+47
View File
@@ -0,0 +1,47 @@
import { describe, it, expect } from "vitest";
import i18n, { ensureLanguagesLoaded } from "@i18n/index";
import viTemplates from "../../src/i18n/locales/vi/templates.json";
/**
* v0.26 lazy-loaded locales: `en` ships in the main bundle (the engine's
* bilingual `tEn` fallback must work synchronously), every other language
* is fetched on demand via dynamic import. These tests pin both halves of
* that contract against the real i18next singleton.
*
* Order matters: the "not bundled at import time" assertion must run
* before anything calls `ensureLanguagesLoaded(["vi"])`.
*/
describe("lazy locale loading", () => {
it("bundles en eagerly and synchronously", () => {
expect(i18n.isInitialized).toBe(true);
expect(i18n.hasResourceBundle("en", "ui")).toBe(true);
expect(i18n.hasResourceBundle("en", "templates")).toBe(true);
expect(i18n.getFixedT("en", "templates")("title.suffix")).toBe(
"Gameplay No Commentary",
);
});
it("does not bundle non-English languages at import time", () => {
expect(i18n.hasResourceBundle("vi", "ui")).toBe(false);
expect(i18n.hasResourceBundle("vi", "templates")).toBe(false);
});
it("loads a language on demand and serves its real strings", async () => {
await ensureLanguagesLoaded(["vi"]);
expect(i18n.hasResourceBundle("vi", "ui")).toBe(true);
expect(i18n.hasResourceBundle("vi", "templates")).toBe(true);
const t = i18n.getFixedT("vi", "templates");
// Compare against the JSON on disk, not a hardcoded copy, so locale
// edits can't silently invalidate the test.
expect(t("title.videoType.part", { partNumber: "2" })).toBe(
viTemplates.title.videoType.part.replace("{{partNumber}}", "2"),
);
});
it("is idempotent for already-loaded and bundled languages", async () => {
await expect(
ensureLanguagesLoaded(["vi", "en"]),
).resolves.toBeUndefined();
expect(i18n.hasResourceBundle("vi", "templates")).toBe(true);
});
});
+1 -1
View File
@@ -26,7 +26,7 @@ export default defineConfig({
manualChunks: {
react: ["react", "react-dom"],
router: ["react-router-dom"],
i18n: ["i18next", "react-i18next"],
i18n: ["i18next", "react-i18next", "i18next-resources-to-backend"],
},
},
},