From b920d3567ec88d21f29533aa9b8b7e97482867b4 Mon Sep 17 00:00:00 2001 From: poli0981 <127664709+poli0981@users.noreply.github.com> Date: Mon, 17 Aug 2026 12:46:54 +0700 Subject: [PATCH] =?UTF-8?q?chore(release):=20v0.38.0=20=E2=80=94=20Portugu?= =?UTF-8?q?ese=20(Brazil)=20and=20Indonesian?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two new locales, 1,562 strings each, complete: titles, every description block, all 248 content warnings, tech notes, playthrough notes, pinned comments, playlist copy, and the whole interface. Brazil is a top-three market for gameplay viewing and Indonesia the largest in Southeast Asia. Both use Latin script, so neither needed font or layout work. **docs/I18N.md was wrong about what registering a locale takes**, and this release is where that bit. It claimed `SUPPORTED_LANGUAGES` was "the only registration step". It is one of four, and they fail differently: SupportedLanguage union compile error CORE_TAGS_BY_LANG compile error (there are TWO such records, MULTILINGUAL_TAGS compile error not one — the doc mentioned one) detectBrowserLanguage SILENT The silent one matters most: the language works perfectly and simply never auto-selects for a visitor whose browser is set to it. `SUPPORTED_LANGUAGES` also wasn't type-bound to the union, and every consumer casts, so a mismatch between the first two compiled cleanly — it now carries a `satisfies` clause. `tests/i18n/locale-registration.test.ts` exists to close those gaps: it checks the picker list against the locale directories on disk in BOTH directions, plus namespace files, flags, native names and tag pools. Browser-language detection now matches the full BCP-47 tag before the bare language, or `pt-BR` would be reduced to `pt` and never found. Any other Portuguese variant resolves to pt-BR rather than falling through to English. 115 UI keys were not hand-translated at all: their English text is byte-identical to a string already translated in templates.json (graphics presets, ray-tracing modes, difficulty names, content-warning labels), so they are copied across. Translating those twice risks a checkbox and the rendered description disagreeing about what the same option is called. Deliberately left in English, matching what the Spanish locale already does: vendor product names (NVIDIA DLSS, AMD FSR, Intel XeSS, Fluid Motion Frames), platform brands, hardware acronyms, genre terms that are loanwords in both languages, and example URLs/emails in placeholders. So pt-BR reads 1,344/1,562 and id 1,308/1,562 "differing from English" — the remainder are those pass-throughs, not gaps. Both are AI-translated and NOT native-reviewed. Recorded in DISCLAIMER.md alongside JA/ES/KO/ZH. Also replaces `__dirname` in the Vite and Vitest configs with `import.meta.dirname` — Vite 8's native config loader doesn't provide the CJS global and warned on every run. v0.36.0 is skipped: the dependency release shipped first and took 0.37.0. Tests 692 → 698. Validator now 1,562 keys x 8 locales. Co-Authored-By: Claude Opus 5 --- CHANGELOG.md | 26 ++ CONTRIBUTING.md | 2 +- DISCLAIMER.md | 4 +- README.md | 4 +- docs/DEVELOPMENT.md | 4 +- docs/FEATURES.md | 11 +- package-lock.json | 4 +- package.json | 2 +- src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/tauri.conf.json | 2 +- src/engine/tag-generator.ts | 22 +- src/engine/types.ts | 2 +- src/i18n/index.ts | 9 +- src/i18n/locales/id/ui.json | 610 ++++++++++++------------- src/i18n/locales/pt-BR/ui.json | 610 ++++++++++++------------- src/store/settings-heal.ts | 16 +- tests/i18n/locale-registration.test.ts | 83 ++++ vite.config.ts | 18 +- vitest.config.ts | 21 +- 20 files changed, 803 insertions(+), 651 deletions(-) create mode 100644 tests/i18n/locale-registration.test.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index a84b0eb..0c8a822 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,32 @@ All notable changes to YTDescGen ship as tagged releases on `main`. +## v0.38.0 — 2026-08-17 + +Two new languages: **Portuguese (Brazil)** and **Indonesian**. Brazil is a +top-three market for gameplay viewing and Indonesia the largest in Southeast +Asia; both use Latin script, so neither needed font or layout work. + +### Added + +- **`pt-BR` and `id` locales** — 1,562 strings each. Both are complete: titles, every description block, all 248 content warnings, tech notes, playthrough notes, pinned comments, playlist copy, and the whole interface from the editor through Settings, Batch, Social and Logs. +- **Per-language tag pools** ([src/engine/tag-generator.ts](src/engine/tag-generator.ts)) — `CORE_TAGS_BY_LANG` and `MULTILINGUAL_TAGS` gained entries for both, so a Brazilian video gets `gameplay sem comentários` and `detonado` rather than falling back to English tags. +- **Region-aware browser detection** ([src/store/settings-heal.ts](src/store/settings-heal.ts)) — `detectBrowserLanguage` now matches the full BCP-47 tag before the bare language, or `pt-BR` would be reduced to `pt` and never found. Any other Portuguese variant also resolves to `pt-BR` rather than falling through to English. + +### Fixed + +- **`docs/I18N.md` was wrong about what registering a locale takes.** It said `SUPPORTED_LANGUAGES` was "the only registration step". It is one of four, and they fail differently: the `SupportedLanguage` union and the two tag-pool records are compile errors, but `detectBrowserLanguage`'s own hardcoded copy of the list fails **silently** — the language works and simply never auto-selects for a visitor whose browser is set to it. `SUPPORTED_LANGUAGES` is also not type-bound to the union, and every consumer casts, so a mismatch between the first two compiles cleanly. Corrected, and `SUPPORTED_LANGUAGES` now carries a `satisfies` clause that binds it to the union. +- **`__dirname` in the Vite and Vitest configs** replaced with `import.meta.dirname`. Vite 8's native config loader — planned to become the default — doesn't provide the CJS global, and warned on every run. + +### Under the hood + +- **New guard: [tests/i18n/locale-registration.test.ts](tests/i18n/locale-registration.test.ts)** checks the picker list against the locale directories on disk *in both directions*, plus namespace files, flags, native names and tag pools. It exists specifically to close the two registration gaps that fail silently. +- 115 UI keys were not hand-translated at all — their English text is byte-identical to a string already translated in `templates.json` (graphics presets, ray-tracing modes, difficulty names, content-warning labels), so they are copied across. Translating those twice risks a checkbox and the rendered description disagreeing about what the same option is called. +- Left as English on purpose, matching what the Spanish locale already does: vendor product names (NVIDIA DLSS, AMD FSR, Intel XeSS, Fluid Motion Frames), platform brands (Ko-fi, Patreon, Discord, Steam, TikTok), hardware acronyms (CPU, GPU, RAM), genre terms that are loanwords in both languages (RPG, FPS, MMO, Indie, Metroidvania, Roguelike, Battle Royale), and example URLs / emails in placeholders. **pt-BR 1,344 / 1,562 and id 1,308 / 1,562 strings differ from English**; the remainder are those pass-throughs, not gaps. +- Both are **AI-translated and not native-reviewed** — recorded in [DISCLAIMER.md](DISCLAIMER.md) alongside JA / ES / KO / ZH. Native-speaker corrections are the most welcome contribution to this project; `src/i18n/locales//*.json` can be edited straight from GitHub's web UI. +- Validator now **1,562 keys × 8 locales**. typecheck, typecheck:all, lint, format:check, validate:locales, knip, check:version, **698 tests** and build all pass; verified live in the browser — both languages appear in every picker, generate correctly translated titles and descriptions, and translate the interface itself. +- Six manifests bumped 0.37.0 → 0.38.0. (v0.36.0 was skipped: the dependency release shipped first and had already taken 0.37.0.) + ## v0.37.0 — 2026-08-17 A **dependency modernization** release. No user-facing feature changes; the app diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0b6f347..8a2e1f7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -41,7 +41,7 @@ Use the templates in `.github/ISSUE_TEMPLATE/`: If your change adds or removes any user-facing string: 1. Update the locale schema at `src/i18n/locales/_schema.json` first. -2. Add the key to **all 6 locales** (`en` / `vi` / `ja` / `es` / `ko` / `zh`). +2. Add the key to **all 8 locales** (`en` / `vi` / `ja` / `es` / `ko` / `zh` / `pt-BR` / `id`). 3. `npm run validate:locales` must pass. Native-speaker corrections to AI-translated locales (JA / ES / KO / ZH) are especially welcome — see [DISCLAIMER.md](./DISCLAIMER.md) for the current translation-quality status. diff --git a/DISCLAIMER.md b/DISCLAIMER.md index d8d0d45..d345345 100644 --- a/DISCLAIMER.md +++ b/DISCLAIMER.md @@ -17,7 +17,7 @@ See also: [`THIRD_PARTY_NOTICES.md`](./THIRD_PARTY_NOTICES.md) § "AI-Assisted D ## Translation quality -The application UI ships in six languages. Authoring quality varies: +The application UI ships in eight languages. Authoring quality varies: | Locale | Authoring | Notes | | --- | --- | --- | @@ -27,6 +27,8 @@ The application UI ships in six languages. Authoring quality varies: | Spanish (`es`) | AI-translated | Not native-reviewed. Regional voice (LatAm vs. Castilian) not specifically targeted. | | Korean (`ko`) | AI-translated | Not native-reviewed. Honorific register chosen for neutrality, not specific cultural fit. | | Chinese (`zh`) | AI-translated | Simplified Chinese only. Not native-reviewed. | +| Portuguese, Brazil (`pt-BR`) | AI-translated | Not native-reviewed. Brazilian Portuguese specifically — European Portuguese is not separately targeted. | +| Indonesian (`id`) | AI-translated | Not native-reviewed. Standard Indonesian; gaming loanwords kept in English where that is the common usage. | If you're a native speaker and spot mistranslations, please open an issue or PR — see [CONTRIBUTING.md](./CONTRIBUTING.md) § "i18n Contributions". diff --git a/README.md b/README.md index 8fc3fda..562dcc8 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ **YouTube Gameplay Description Generator** — an offline-first template engine for Gameplay No Commentary YouTube channels. -Generate YouTube titles, descriptions, and tags in six languages with one click. Save channel, rig, and game presets to skip repetitive data entry. Works in the browser (GitHub Pages), as a ~8 MB native desktop app (Windows / macOS / Linux), or as an installable Android APK — all from one Tauri 2 codebase. +Generate YouTube titles, descriptions, and tags in eight languages with one click. Save channel, rig, and game presets to skip repetitive data entry. Works in the browser (GitHub Pages), as a ~8 MB native desktop app (Windows / macOS / Linux), or as an installable Android APK — all from one Tauri 2 codebase. [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](./LICENSE) [![Node](https://img.shields.io/badge/node-%E2%89%A522-brightgreen)](./docs/DEVELOPMENT.md) @@ -22,7 +22,7 @@ Built for the gameplay no-commentary niche — especially horror / scary games ## Features - **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).)* +- **8 UI languages** — English, Vietnamese, Japanese, Spanish, Korean, Chinese, Portuguese (Brazil), Indonesian. *(VI authored by a native speaker; JA / ES / KO / ZH / PT-BR / ID AI-translated — see [DISCLAIMER.md](./DISCLAIMER.md).)* - **40+ game genres** — across action, RPG, FPS, horror, soulslike, indie, simulation, fighting, and more. - **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. diff --git a/docs/DEVELOPMENT.md b/docs/DEVELOPMENT.md index 3727ac8..e49290a 100644 --- a/docs/DEVELOPMENT.md +++ b/docs/DEVELOPMENT.md @@ -96,7 +96,7 @@ npm run dev | `npm run test` | Vitest watch mode. | | `npm run test:run` | Vitest single-run (for CI / pre-commit). | | `npm run test:coverage` | Coverage report into `coverage/`. | -| `npm run validate:locales` | Enforces all 6 locales match `_schema.json` exactly. **Must pass before any locale-touching PR merges.** | +| `npm run validate:locales` | Enforces all 8 locales match `_schema.json` exactly. **Must pass before any locale-touching PR merges.** | | `npm run generate:locale` | Scaffold a locale from the English source. `--lang `, plus optional `--copy-english` / `--force`. (Advertised since v0.1 but only actually written in v0.35.0.) | | `npm run tauri:dev` | Tauri desktop in dev mode (auto-restarts on Rust or frontend changes). | | `npm run tauri:build` | Tauri release binary for the current platform. | @@ -140,7 +140,7 @@ 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. +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 8 locales. ## See Also diff --git a/docs/FEATURES.md b/docs/FEATURES.md index cbc765e..d70443a 100644 --- a/docs/FEATURES.md +++ b/docs/FEATURES.md @@ -11,9 +11,9 @@ structure, and tag bias. The complete table — every type with its icon and the extra fields the editor reveals — is in [Content Inventory](./CONTENT-INVENTORY.md). -## 🌐 Languages (6 shipped) +## 🌐 Languages (8 shipped) -All six locales ship today — UI strings and description templates fully +All eight locales ship today — UI strings and description templates fully translated and parity-validated by `npm run validate:locales`. | Code | Language | Native Name | Status | @@ -24,9 +24,12 @@ translated and parity-validated by `npm run validate:locales`. | `es` | Spanish | Español | ✅ Shipped | | `ko` | Korean | 한국어 | ✅ Shipped | | `zh` | Chinese (Simplified) | 简体中文 | ✅ Shipped | +| `pt-BR` | Portuguese (Brazil) | Português (BR) | ✅ Shipped | +| `id` | Indonesian | Bahasa Indonesia | ✅ Shipped | -Further locales (French, German, Portuguese, Russian, Thai, Arabic) are -tracked in [Roadmap § 5.3](./ROADMAP.md). +Further locales (French, German, Russian, Thai, Arabic) are tracked in +[Roadmap § 5.3](./ROADMAP.md). Arabic additionally needs RTL layout work — +see [I18N.md](./I18N.md). Each language requires: - `ui.json` — UI labels, buttons, placeholders, error messages diff --git a/package-lock.json b/package-lock.json index da157fd..8863543 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "yt-desc-gen", - "version": "0.37.0", + "version": "0.38.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "yt-desc-gen", - "version": "0.37.0", + "version": "0.38.0", "license": "Apache-2.0", "dependencies": { "@tauri-apps/api": "^2.11.1", diff --git a/package.json b/package.json index fb7fad4..72e0357 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "yt-desc-gen", - "version": "0.37.0", + "version": "0.38.0", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 4f1a712..492db41 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -5529,7 +5529,7 @@ dependencies = [ [[package]] name = "yt-desc-gen" -version = "0.37.0" +version = "0.38.0" dependencies = [ "tauri", "tauri-build", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index f59dd01..7931c3a 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "yt-desc-gen" -version = "0.37.0" +version = "0.38.0" description = "YouTube Gameplay Description Generator" authors = ["poli0981"] edition = "2021" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 856dc68..ff2d94b 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://raw.githubusercontent.com/tauri-apps/tauri/dev/crates/tauri-cli/schema.json", "productName": "YTDescGen", - "version": "0.37.0", + "version": "0.38.0", "identifier": "com.skullmute.ytdescgen", "build": { "beforeBuildCommand": "npm run build", diff --git a/src/engine/tag-generator.ts b/src/engine/tag-generator.ts index a14a514..a3bcf11 100644 --- a/src/engine/tag-generator.ts +++ b/src/engine/tag-generator.ts @@ -336,7 +336,7 @@ const VIDEO_TYPE_TAGS: Record string[]> = { * getCoreTags. Selected by GeneratorInput.language so the channel can * match the viewer's region. */ -const CORE_TAGS_BY_LANG: Record string[]> = { +export const CORE_TAGS_BY_LANG: Record string[]> = { en: (g) => [ `${g} gameplay`, `${g} no commentary`, @@ -385,6 +385,22 @@ const CORE_TAGS_BY_LANG: Record string[ `${g} 流程`, `${g} 通关`, ], + "pt-BR": (g) => [ + `${g} gameplay`, + `${g} sem comentários`, + "gameplay sem comentários", + `${g} detonado`, + `${g} jogo completo`, + `${g} gameplay sem comentarios`, + ], + id: (g) => [ + `${g} gameplay`, + `${g} tanpa komentar`, + "gameplay tanpa komentar", + `${g} walkthrough`, + `${g} tamat`, + `${g} gameplay indonesia`, + ], }; /** @@ -392,13 +408,15 @@ const CORE_TAGS_BY_LANG: Record string[ * Only the selected language's entry is used — v0.2.0 incorrectly mixed * all languages regardless of the user's choice. */ -const MULTILINGUAL_TAGS: Record string[]> = { +export const MULTILINGUAL_TAGS: Record string[]> = { en: (g) => [`${g} english`, "gameplay english no commentary"], ja: (g) => [`${g} 日本語`, `${g} 実況`, "日本語 ゲームプレイ"], vi: (g) => [`${g} tiếng Việt`, `${g} thuyết minh`, "gameplay tiếng Việt"], es: (g) => [`${g} español`, `${g} en español`, "gameplay en español"], ko: (g) => [`${g} 한국어`, `${g} 플레이`, "한국어 게임플레이"], zh: (g) => [`${g} 中文`, `${g} 游戏`, "中文 游戏实况"], + "pt-BR": (g) => [`${g} português`, `${g} em português`, "gameplay em português"], + id: (g) => [`${g} bahasa indonesia`, `${g} indonesia`, "gameplay bahasa indonesia"], }; function getPlatformTags(gameName: string, platform: string): string[] { diff --git a/src/engine/types.ts b/src/engine/types.ts index 8c6d24e..56f346a 100644 --- a/src/engine/types.ts +++ b/src/engine/types.ts @@ -95,7 +95,7 @@ export type Genre = */ export const MAX_GENRES = 3; -export type SupportedLanguage = "en" | "vi" | "ja" | "es" | "ko" | "zh"; +export type SupportedLanguage = "en" | "vi" | "ja" | "es" | "ko" | "zh" | "pt-BR" | "id"; /** * Pricing category of a store link. Decides the heading wording diff --git a/src/i18n/index.ts b/src/i18n/index.ts index 2a2fb52..aef8662 100644 --- a/src/i18n/index.ts +++ b/src/i18n/index.ts @@ -14,7 +14,14 @@ export const SUPPORTED_LANGUAGES = [ { id: "es", label: "Spanish", flag: "🇪🇸", nativeName: "Español" }, { id: "ko", label: "Korean", flag: "🇰🇷", nativeName: "한국어" }, { id: "zh", label: "Chinese", flag: "🇨🇳", nativeName: "简体中文" }, -] as const; + { id: "pt-BR", label: "Portuguese (Brazil)", flag: "🇧🇷", nativeName: "Português (BR)" }, + { id: "id", label: "Indonesian", flag: "🇮🇩", nativeName: "Bahasa Indonesia" }, +] as const satisfies readonly { + id: SupportedLanguage; + label: string; + flag: string; + nativeName: string; +}[]; i18n .use(initReactI18next) diff --git a/src/i18n/locales/id/ui.json b/src/i18n/locales/id/ui.json index 58ef846..d33ad6b 100644 --- a/src/i18n/locales/id/ui.json +++ b/src/i18n/locales/id/ui.json @@ -288,109 +288,109 @@ "storeLinks": "Tautan Toko", "storeLinkType": "Jenis", "rig": "Spek PC Saya", - "social": "Social & Donate Links", - "warnings": "Content warnings", - "playlistLink": "Playlist Link", + "social": "Tautan Sosial & Donasi", + "warnings": "Peringatan konten", + "playlistLink": "Tautan Playlist", "playlistLinkPlaceholder": "https://youtube.com/playlist?list=...", - "community": "💬 Community", - "communityHelp": "Links to your community chat. The Zalo group only shows when the content language is Vietnamese.", - "messengerCommunityLink": "Messenger Community Link", + "community": "💬 Komunitas", + "communityHelp": "Tautan ke ruang obrolan komunitasmu. Grup Zalo hanya muncul bila bahasa kontennya Vietnam.", + "messengerCommunityLink": "Tautan Komunitas Messenger", "messengerCommunityLinkPlaceholder": "https://m.me/ch/yourid", - "zaloGroupLink": "Zalo Group Link", + "zaloGroupLink": "Tautan Grup Zalo", "zaloGroupLinkPlaceholder": "https://zalo.me/g/xxxxxx", - "signalGroupLink": "Signal Group Link", + "signalGroupLink": "Tautan Grup Signal", "signalGroupLinkPlaceholder": "https://signal.group/#yourid", - "instagramGroupLink": "Instagram Group Chat Link", + "instagramGroupLink": "Tautan Grup Instagram", "instagramGroupLinkPlaceholder": "https://ig.me/j/yourid", - "facebookGroupLink": "Facebook Group Link", + "facebookGroupLink": "Tautan Grup Facebook", "facebookGroupLinkPlaceholder": "https://facebook.com/groups/yourid", - "contactEmail": "Contact Email", + "contactEmail": "Email Kontak", "contactEmailPlaceholder": "business@example.com", - "adEmail": "Advertising / Sponsorship Email", + "adEmail": "Email Iklan / Sponsor", "adEmailPlaceholder": "sponsors@example.com", - "adEmailHelp": "Up to 3 emails, comma-separated", - "gameKeyEmail": "Game Keys & Playtest Email", + "adEmailHelp": "Maksimal 3 email, dipisah koma", + "gameKeyEmail": "Email Key Game & Playtest", "gameKeyEmailPlaceholder": "games@example.com", - "gameKeyEmailHelp": "Up to 3 emails, comma-separated", - "musicAttribution": "Music / Sound Attribution", - "musicAttributionPlaceholder": "Music by Karl Casey @ White Bat Audio\nSFX from Freesound.org", - "sponsorName": "Sponsor (publisher / developer)", - "sponsorNamePlaceholder": "e.g. Ubisoft, Capcom, Devolver Digital", - "sponsorPlatform": "Key platform", - "sponsorPlatformPlaceholder": "e.g. Steam, Epic Games, GOG", - "pubDevName": "Pub/Dev Name", - "pubDevNamePlaceholder": "e.g. Ubisoft, Capcom, FromSoftware", - "thumbnailText": "Thumbnail Text", - "thumbnailTextPlaceholder": "e.g. SECRET BOSS NO HIT", - "pinnedComment": "Pinned Comment Template", - "pinnedCommentPlaceholder": "What should viewers do if they liked the video?", + "gameKeyEmailHelp": "Maksimal 3 email, dipisah koma", + "musicAttribution": "Atribusi Musik / Suara", + "musicAttributionPlaceholder": "Musik oleh Karl Casey @ White Bat Audio\nSFX dari Freesound.org", + "sponsorName": "Sponsor (penerbit / pengembang)", + "sponsorNamePlaceholder": "mis. Ubisoft, Capcom, Devolver Digital", + "sponsorPlatform": "Platform key", + "sponsorPlatformPlaceholder": "mis. Steam, Epic Games, GOG", + "pubDevName": "Studio / Penerbit", + "pubDevNamePlaceholder": "mis. Ubisoft, Capcom, FromSoftware", + "thumbnailText": "Teks Thumbnail", + "thumbnailTextPlaceholder": "mis. BOSS RAHASIA TANPA KENA", + "pinnedComment": "Template Komentar Tersemat", + "pinnedCommentPlaceholder": "Apa yang sebaiknya penonton lakukan kalau suka videonya?", "playthrough": "Playthrough", "playthroughOptions": { - "none": "— Not set —", - "blind": "Blind (first time)", - "replay": "Replay", + "none": "— Tidak diatur —", + "blind": "Buta (pertama kali)", + "replay": "Main ulang", "newgame_plus": "New Game+", - "postgame": "Post-game / endgame" + "postgame": "Pasca-tamat / endgame" }, "difficulty": "Tingkat kesulitan", "difficultyOptions": { - "none": "— Not set —", + "none": "— Tidak diatur —", "easy": "Mudah", "normal": "Normal", "hard": "Sulit", "nightmare": "Nightmare / Ekstrem", - "custom": "Custom…" + "custom": "Kustom…" }, - "difficultyCustomLabel": "Custom difficulty label", - "difficultyCustomPlaceholder": "e.g. Lethal, NG+7, Fromsoft default", - "contentWarnings": "Content warnings", - "contentWarningSearchPlaceholder": "Search warnings…", - "contentWarningEmpty": "No matching warnings", + "difficultyCustomLabel": "Label kesulitan kustom", + "difficultyCustomPlaceholder": "mis. Lethal, NG+7, bawaan FromSoft", + "contentWarnings": "Peringatan konten", + "contentWarningSearchPlaceholder": "Cari peringatan…", + "contentWarningEmpty": "Tidak ada peringatan yang cocok", "contentWarningGroups": { - "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", - "gameplay_disclosure": "Gameplay disclosure" + "spoilers": "Spoiler", + "photosensitive": "Fotosensitif / Kesehatan", + "audio": "Audio / Sensorik", + "dialogue": "Dialog / Bahasa", + "phobias": "Fobia", + "mental_health": "Kesehatan mental", + "social_phenomena": "Fenomena sosial", + "internet_digital": "Internet / Kehidupan digital", + "sensitive": "Konten dewasa / sensitif", + "playstyle": "Keterangan gaya bermain", + "horror_specific": "Horor berat", + "gameplay_disclosure": "Keterbukaan gameplay" }, "contentWarningOptions": { - "spoiler_story": "Story / ending spoilers", - "spoiler_ending": "Ending spoilers", - "spoiler_true_ending": "True-ending spoilers", - "spoiler_post_game": "Post-game / NG+ spoilers", - "spoiler_secret_ending": "Secret-ending spoilers", - "spoiler_dlc": "DLC story spoilers", - "flashing_lights": "Flashing lights", - "motion_sickness": "Motion sickness", - "migraine_trigger": "Migraine trigger", - "lens_flare_intense": "Lens flare / sun glare", - "bloom_excessive": "Excessive bloom / overblown highlights", - "particle_effects_dense": "Dense particle effects", + "spoiler_story": "Spoiler cerita / ending", + "spoiler_ending": "Spoiler ending", + "spoiler_true_ending": "Spoiler true ending", + "spoiler_post_game": "Spoiler pasca-tamat / NG+", + "spoiler_secret_ending": "Spoiler ending rahasia", + "spoiler_dlc": "Spoiler cerita DLC", + "flashing_lights": "Lampu berkedip", + "motion_sickness": "Mabuk gerakan", + "migraine_trigger": "Pemicu migrain", + "lens_flare_intense": "Lens flare / silau matahari", + "bloom_excessive": "Bloom berlebihan / highlight menyilaukan", + "particle_effects_dense": "Efek partikel padat", "screen_overlay_flashing": "HUD / antarmuka berkedip", - "color_saturation_extreme": "Extreme color saturation", - "motion_blur_heavy": "Heavy motion blur", - "depth_of_field_aggressive": "Aggressive depth of field", - "post_processing_intense": "Intense post-processing", + "color_saturation_extreme": "Saturasi warna ekstrem", + "motion_blur_heavy": "Motion blur berat", + "depth_of_field_aggressive": "Depth of field agresif", + "post_processing_intense": "Post-processing intens", "loud_noises": "Suara keras / mendadak", - "ear_piercing": "Ear-piercing / high-pitched", - "jumpscare_audio": "Audio jumpscares", - "sudden_volume_changes": "Sudden volume changes", - "distorted_audio": "Distorted / clipping audio", - "screeching_metallic": "Screeching / metallic sounds", - "persistent_high_pitch": "Persistent high-pitched tones", - "audio_glitches": "Audio glitches / artifacts", - "heavy_bass_rumble": "Heavy bass / sub-bass rumble", - "screaming_audio": "Sustained screaming", - "glass_breaking_audio": "Glass breaking / shattering", - "microphone_pops": "Mic pops / breath noise", - "white_noise_static": "White noise / static", + "ear_piercing": "Melengking / frekuensi tinggi", + "jumpscare_audio": "Jumpscare audio", + "sudden_volume_changes": "Perubahan volume mendadak", + "distorted_audio": "Audio terdistorsi / pecah", + "screeching_metallic": "Suara logam / melengking", + "persistent_high_pitch": "Nada tinggi terus-menerus", + "audio_glitches": "Gangguan / artefak audio", + "heavy_bass_rumble": "Bass berat / sub-bass", + "screaming_audio": "Teriakan berkepanjangan", + "glass_breaking_audio": "Kaca pecah / berhamburan", + "microphone_pops": "Suara pop mikrofon / napas", + "white_noise_static": "White noise / desis statis", "jump_scares": "Jumpscare", "acrophobia": "Ketinggian", "trypophobia": "Lubang / kumpulan pola rapat", @@ -400,189 +400,189 @@ "entomophobia": "Serangga", "ophidiophobia": "Ular", "cynophobia": "Anjing", - "nyctophobia": "Darkness", - "pyrophobia": "Fire", - "pediophobia": "Dolls", + "nyctophobia": "Kegelapan", + "pyrophobia": "Api", + "pediophobia": "Boneka", "hemophobia": "Darah", - "anxiety_inducing": "Anxiety-inducing scenes", + "anxiety_inducing": "Adegan pemicu kecemasan", "depression_themes": "Tema depresi", - "eating_disorders": "Eating disorders", + "eating_disorders": "Gangguan makan", "substance_use": "Penggunaan zat terlarang", - "self_harm": "Self-harm / suicide", - "ptsd_themes": "PTSD content", - "needles": "Needles", + "self_harm": "Melukai diri / bunuh diri", + "ptsd_themes": "Konten PTSD", + "needles": "Jarum suntik", "body_fluids": "Cairan tubuh", "pregnancy_horror": "Horor kehamilan / persalinan", - "illness_themes": "Illness / infection", - "bipolar_themes": "Bipolar themes", - "ocd_themes": "OCD themes", - "panic_attacks": "Panic attacks", - "dissociation": "Dissociation", + "illness_themes": "Penyakit / infeksi", + "bipolar_themes": "Tema bipolar", + "ocd_themes": "Tema OCD", + "panic_attacks": "Serangan panik", + "dissociation": "Disosiasi", "blood_gore": "Darah dan sadisme", - "mature_18plus": "Mature 18+", + "mature_18plus": "Konten dewasa 18+", "disturbing_imagery": "Gambar mengganggu", "animal_abuse": "Kekejaman terhadap hewan", "child_harm": "Kekerasan terhadap anak", "domestic_violence": "Kekerasan dalam rumah tangga", "sexual_assault": "Referensi kekerasan seksual", - "torture": "Torture", + "torture": "Penyiksaan", "religion_themes": "Tema keagamaan", "war_violence": "Kekerasan perang", - "discrimination": "Discrimination", + "discrimination": "Diskriminasi", "police_violence": "Kekerasan negara / aparat", "smoking_drinking": "Merokok / minum alkohol", - "detailed_killing": "Detailed killing", - "cult_occult": "Cult / occult", + "detailed_killing": "Pembunuhan detail", + "cult_occult": "Sekte / okultisme", "psychological_manipulation": "Manipulasi psikologis", - "grief_loss": "Loss / grief", + "grief_loss": "Kehilangan / duka", "kidnapping": "Penculikan", - "hate_speech": "Hate speech", + "hate_speech": "Ujaran kebencian", "historical_atrocity": "Kekejaman sejarah", "slavery_themes": "Tema perbudakan", "terrorism_themes": "Tema terorisme", "bullying_themes": "Tema perundungan", - "blind_playthrough": "Blind playthrough", - "no_spoilers_chat": "No spoilers in chat", - "casual_difficulty": "Casual / story mode", + "blind_playthrough": "Main buta", + "no_spoilers_chat": "Jangan spoiler di chat", + "casual_difficulty": "Mode santai / story", "hardcore_difficulty": "Tingkat kesulitan hardcore / maksimal", "permadeath_run": "Permadeath / Iron Man", "speedrun_attempt": "Percobaan speedrun", - "completionist_run": "100% completionist", - "learning_mechanics": "Still learning mechanics", - "eye_horror": "Eyes / eyeball clusters", - "body_horror": "Body horror (flesh distortion)", - "face_horror": "Distorted / mutilated faces", - "cosmic_horror": "Cosmic / eldritch horror", - "extreme_gore": "Extreme gore / dismemberment", - "decay_rot": "Decay, rot, maggots", - "mutilation": "Mutilation / amputation", - "strobe_effects": "Strobe lighting", - "screen_shake_intense": "Heavy screen shake", - "coulrophobia": "Clowns (coulrophobia)", - "ablutophobia": "Drowning / water immersion", - "taphophobia": "Live burial", - "automatonophobia": "Animatronics / mannequins", - "megalophobia": "Large objects / colossi", - "submechanophobia": "Submerged man-made objects", - "necrophobia": "Corpses / the dead", - "spectrophobia": "Ghosts / apparitions", - "demonophobia": "Demons / evil spirits", - "selachophobia": "Sharks", - "mysophobia": "Germs / contamination", - "emetophobia": "Vomiting", - "scopophobia": "Being watched / stared at", - "monophobia": "Isolation / being alone", - "musophobia": "Mice / rats", - "chiroptophobia": "Bats", - "ornithophobia": "Birds", - "ichthyophobia": "Fish", - "herpetophobia": "Reptiles", - "katsaridaphobia": "Cockroaches", - "apiphobia": "Bees / wasps", - "astraphobia": "Thunder / lightning", - "agoraphobia": "Open / exposed spaces", - "enochlophobia": "Crowds", - "chionophobia": "Snow / extreme cold", - "nosocomephobia": "Hospitals", - "aichmophobia": "Sharp objects / blades", - "pnigophobia": "Choking / suffocation", - "homophobia": "Homophobia / anti-LGBTQ+ content", - "transphobia": "Transphobia / anti-trans content", - "xenophobia": "Xenophobia / anti-foreigner content", + "completionist_run": "Completionist 100%", + "learning_mechanics": "Masih belajar mekanik", + "eye_horror": "Mata / kumpulan bola mata", + "body_horror": "Body horror (distorsi tubuh)", + "face_horror": "Wajah terdistorsi / termutilasi", + "cosmic_horror": "Horor kosmik / eldritch", + "extreme_gore": "Sadisme ekstrem / mutilasi", + "decay_rot": "Pembusukan, belatung", + "mutilation": "Mutilasi / amputasi", + "strobe_effects": "Lampu strobo", + "screen_shake_intense": "Guncangan layar berat", + "coulrophobia": "Badut (coulrofobia)", + "ablutophobia": "Tenggelam / terendam air", + "taphophobia": "Dikubur hidup-hidup", + "automatonophobia": "Animatronik / manekin", + "megalophobia": "Objek raksasa / kolosal", + "submechanophobia": "Objek buatan manusia di bawah air", + "necrophobia": "Mayat / jenazah", + "spectrophobia": "Hantu / penampakan", + "demonophobia": "Iblis / roh jahat", + "selachophobia": "Hiu", + "mysophobia": "Kuman / kontaminasi", + "emetophobia": "Muntah", + "scopophobia": "Diperhatikan / ditatap", + "monophobia": "Isolasi / sendirian", + "musophobia": "Tikus", + "chiroptophobia": "Kelelawar", + "ornithophobia": "Burung", + "ichthyophobia": "Ikan", + "herpetophobia": "Reptil", + "katsaridaphobia": "Kecoak", + "apiphobia": "Lebah / tawon", + "astraphobia": "Guntur / petir", + "agoraphobia": "Ruang terbuka / terekspos", + "enochlophobia": "Kerumunan", + "chionophobia": "Salju / dingin ekstrem", + "nosocomephobia": "Rumah sakit", + "aichmophobia": "Benda tajam / bilah", + "pnigophobia": "Tersedak / sesak napas", + "homophobia": "Homofobia / konten anti-LGBTQ+", + "transphobia": "Transfobia / konten anti-trans", + "xenophobia": "Xenofobia / konten anti-asing", "paranoia_themes": "Paranoia", - "intrusive_thoughts": "Intrusive thoughts", - "medical_horror": "Medical horror", - "human_experimentation": "Human experimentation", - "cannibalism": "Cannibalism", - "nuclear_themes": "Nuclear / radiation", - "liminal_spaces": "Liminal spaces", + "intrusive_thoughts": "Pikiran intrusif", + "medical_horror": "Horor medis", + "human_experimentation": "Eksperimen pada manusia", + "cannibalism": "Kanibalisme", + "nuclear_themes": "Nuklir / radiasi", + "liminal_spaces": "Ruang liminal", "analog_horror": "Analog horror / VHS", - "unreality_themes": "Unreality / distortion", - "pursuit_chase": "Pursuit / chase", - "entity_horror": "Entity / SCP horror", - "first_time_playing": "First time playing", - "returning_player": "Returning / NG+", - "mods_used": "Mods used", - "cheats_enabled": "Cheats / debug", - "glitch_exploits": "Glitches used", - "assisted_run": "Guide-assisted", - "homichlophobia": "Fog / mist", - "lilapsophobia": "Tornadoes / hurricanes", - "ombrophobia": "Heavy rain / storms", - "nephophobia": "Clouds", - "ancraophobia": "Strong wind", - "cryophobia": "Extreme cold", - "heliophobia": "Sunlight / bright sun", - "cymophobia": "Large waves", - "limnophobia": "Lakes / still water", - "potamophobia": "Rivers / currents", + "unreality_themes": "Ketidaknyataan / distorsi", + "pursuit_chase": "Pengejaran", + "entity_horror": "Entitas / horor gaya SCP", + "first_time_playing": "Pertama kali main", + "returning_player": "Main lagi / NG+", + "mods_used": "Memakai mod", + "cheats_enabled": "Cheat / debug", + "glitch_exploits": "Memakai glitch", + "assisted_run": "Dibantu panduan", + "homichlophobia": "Kabut", + "lilapsophobia": "Tornado / badai", + "ombrophobia": "Hujan deras / badai", + "nephophobia": "Awan", + "ancraophobia": "Angin kencang", + "cryophobia": "Dingin ekstrem", + "heliophobia": "Sinar matahari / terik", + "cymophobia": "Ombak besar", + "limnophobia": "Danau / air tenang", + "potamophobia": "Sungai / arus", "autism_themes": "Tema autisme / neurodivergensi", - "adhd_themes": "ADHD / executive dysfunction", - "hikikomori": "Hikikomori / social withdrawal", - "neet_themes": "NEET themes", - "social_anxiety_themes": "Social anxiety themes", - "social_isolation": "Social isolation / loneliness", - "schizophrenia_themes": "Schizophrenia / psychosis", - "burnout_themes": "Burnout / overwork", - "survivor_guilt": "Survivor guilt", - "abandonment_themes": "Abandonment themes", - "parasocial_themes": "Parasocial relationships", + "adhd_themes": "ADHD / disfungsi eksekutif", + "hikikomori": "Hikikomori / menarik diri", + "neet_themes": "Tema NEET", + "social_anxiety_themes": "Kecemasan sosial", + "social_isolation": "Isolasi sosial / kesepian", + "schizophrenia_themes": "Skizofrenia / psikosis", + "burnout_themes": "Burnout / kerja berlebihan", + "survivor_guilt": "Rasa bersalah penyintas", + "abandonment_themes": "Tema penelantaran", + "parasocial_themes": "Hubungan parasosial", "gaslighting_themes": "Gaslighting", - "stockholm_syndrome": "Stockholm syndrome", - "behavioral_addiction": "Gaming / gambling addiction", - "existential_crisis": "Existential / nihilistic themes", - "impostor_syndrome": "Impostor syndrome", - "midlife_crisis": "Midlife crisis", - "quarter_life_crisis": "Quarter-life crisis", - "workplace_harassment": "Workplace harassment", - "masculinity_pressure": "Gender-role pressure", - "political_extremism": "Political extremism", + "stockholm_syndrome": "Sindrom Stockholm", + "behavioral_addiction": "Kecanduan gim / judi", + "existential_crisis": "Tema eksistensial / nihilisme", + "impostor_syndrome": "Sindrom impostor", + "midlife_crisis": "Krisis paruh baya", + "quarter_life_crisis": "Krisis seperempat abad", + "workplace_harassment": "Pelecehan di tempat kerja", + "masculinity_pressure": "Tekanan peran gender", + "political_extremism": "Ekstremisme politik", "religious_extremism": "Ekstremisme agama / fundamentalisme", "genocide": "Genosida / pembersihan etnis", - "holy_war": "Holy war / sectarian conflict", - "holocaust_themes": "Holocaust themes", - "civil_war": "Civil war", - "mass_shooting": "Mass / school shootings", - "colonialism": "Colonialism / imperialism", - "propaganda": "State propaganda", - "dystopian_state": "Surveillance / dystopian state", - "conspiracy_theories": "Conspiracy theories", - "censorship_themes": "Censorship themes", + "holy_war": "Perang suci / konflik sektarian", + "holocaust_themes": "Tema Holokaus", + "civil_war": "Perang saudara", + "mass_shooting": "Penembakan massal / di sekolah", + "colonialism": "Kolonialisme / imperialisme", + "propaganda": "Propaganda negara", + "dystopian_state": "Pengawasan / negara distopia", + "conspiracy_theories": "Teori konspirasi", + "censorship_themes": "Tema sensor", "ethnic_conflict": "Konflik etnis / rasial", - "refugee_crisis": "Refugee crisis / displacement", - "revolution_themes": "Revolution / uprising", + "refugee_crisis": "Krisis pengungsi / pengungsian", + "revolution_themes": "Revolusi / pemberontakan", "assassination": "Pembunuhan politik", - "coup_themes": "Coup d'état", - "inquisition": "Inquisition / religious persecution", - "forced_labor": "Forced labor", - "ultranationalism": "Ultranationalism", - "hanging_depiction": "Hanging / strangulation", + "coup_themes": "Kudeta", + "inquisition": "Inkuisisi / persekusi agama", + "forced_labor": "Kerja paksa", + "ultranationalism": "Ultranasionalisme", + "hanging_depiction": "Gantung diri / pencekikan", "drowning_depiction": "Adegan tenggelam", - "burning_alive": "Burning alive", - "asphyxiation_depiction": "Asphyxiation / suffocation", - "restraint_torture": "Bound / restrained victim", - "public_execution": "Public execution", + "burning_alive": "Dibakar hidup-hidup", + "asphyxiation_depiction": "Sesak napas / dibekap", + "restraint_torture": "Korban diikat / dikekang", + "public_execution": "Eksekusi publik", "decapitation": "Pemenggalan", "impalement": "Penusukan tembus", - "mass_casualty_event": "Mass-casualty event", - "vehicular_violence": "Vehicular violence", + "mass_casualty_event": "Peristiwa korban massal", + "vehicular_violence": "Kekerasan dengan kendaraan", "overdose_depiction": "Adegan overdosis", - "defenestration": "Falling from height", - "profanity_frequent": "Frequent profanity", - "sexual_innuendo": "Sexual innuendo / suggestive dialogue", + "defenestration": "Terjun dari ketinggian", + "profanity_frequent": "Kata kasar sering", + "sexual_innuendo": "Sindiran seksual / dialog sugestif", "inflammatory_speech": "Ucapan provokatif / menghasut", - "verbal_abuse": "Verbal abuse", - "threatening_language": "Threats / intimidation", + "verbal_abuse": "Kekerasan verbal", + "threatening_language": "Ancaman / intimidasi", "slurs_derogatory": "Hinaan / istilah merendahkan", "crude_humor": "Humor kasar / jorok", "mature_humor": "Humor dewasa", "dark_humor": "Humor gelap / morbid", - "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", + "drug_references": "Referensi narkoba / alkohol", + "chromophobia": "Warna / adegan warna mencolok", + "erythrophobia": "Merah / adegan serba merah", + "xanthophobia": "Warna kuning", + "leukophobia": "Putih / ruang serba putih", + "melanophobia": "Warna hitam", "body_shaming": "Body shaming / ejekan penampilan", "beauty_standards": "Standar kecantikan tak realistis", "cyberbullying": "Perundungan siber / pelecehan daring", @@ -591,10 +591,10 @@ "cancel_culture": "Budaya cancel / permaluan publik", "social_media_addiction": "Kecanduan media sosial", "doomscrolling": "Doomscrolling", - "fomo": "FOMO (fear of missing out)", + "fomo": "FOMO (takut ketinggalan)", "fake_news": "Berita palsu / disinformasi", "online_scams": "Penipuan daring / phishing", - "catfishing": "Catfishing / fake identity", + "catfishing": "Catfishing / identitas palsu", "deepfake_themes": "Deepfake / media sintetis", "cyberstalking": "Penguntitan siber", "internet_challenges": "Tantangan viral berbahaya", @@ -608,126 +608,126 @@ "sexualized_characters": "Desain karakter terseksualisasi", "fanservice": "Fan service / ecchi", "suggestive_poses": "Pose / sudut kamera sugestif", - "educational_purpose_only": "Educational / PSA purpose" + "educational_purpose_only": "Tujuan edukasi / kampanye sosial" }, "playthroughNotes": { - "title": "Playthrough notes", + "title": "Catatan playthrough", "runTypeLabel": "Jenis run", "difficultyLabel": "Tingkat kesulitan", "endingsLabel": "Ending yang ditampilkan", - "endingsPlaceholder": "e.g. True ending only, 1 of 3, All routes 100%", + "endingsPlaceholder": "mis. Hanya true ending, 1 dari 3, Semua rute 100%", "languagePatchLabel": "Patch bahasa", - "languagePatchCustomLabel": "Custom language label", - "languagePatchCustomPlaceholder": "e.g. Official KR, VNI fan TL v2.1", + "languagePatchCustomLabel": "Label bahasa kustom", + "languagePatchCustomPlaceholder": "mis. KR resmi, terjemahan fan VNI v2.1", "gameVersionLabel": "Versi game", - "gameVersionCustomLabel": "Custom version label", - "gameVersionCustomPlaceholder": "e.g. Steam Next Fest demo, Kickstarter backer build", + "gameVersionCustomLabel": "Label versi kustom", + "gameVersionCustomPlaceholder": "mis. demo Steam Next Fest, build backer Kickstarter", "languagePatchOptions": { - "none": "— Not set —", - "official_en": "Official English", - "official_other": "Official (other locale)", + "none": "— Tidak diatur —", + "official_en": "Inggris resmi", + "official_other": "Resmi (bahasa lain)", "fan_translation": "Terjemahan fan", "mtl": "Terjemahan mesin", - "custom": "Custom…" + "custom": "Kustom…" }, "gameVersionOptions": { - "full_release": "— Full release —", + "full_release": "— Rilis penuh —", "demo": "Demo", "early_access": "Akses Awal", "beta": "Beta", "prologue": "Prolog / Teaser", - "pre_release": "Pre-release", - "custom": "Custom…" + "pre_release": "Pra-rilis", + "custom": "Kustom…" } }, "endings": { - "countLabel": "Number of endings", - "videoCountLabel": "Number of videos", + "countLabel": "Jumlah ending", + "videoCountLabel": "Jumlah video", "videoLabel": "Video", - "numberLabel": "Number", - "nameLabel": "Name", - "namePlaceholder": "e.g. Best Ending", - "previewLabel": "Ending shown", - "previewEmpty": "(empty — fill number or name)", - "emptyHint": "Add at least one ending entry — leave at 0 to skip this bullet entirely.", - "addOne": "Add ending", - "removeLast": "Remove last ending", - "videoRangeHint": "Each video covers a contiguous slice of endings. Default split is balanced; adjust per row to override.", - "multiVideoOutputNote": "Each video's description renders that video's ending slice. Generate from the editor as usual — switch which video the Output previews using the selector below.", - "videoIndexLabel": "Preview video", - "videoIndexHint": "Output preview, title, and tags update to reflect the selected video's ending slice. Copy each one separately to publish per-video.", + "numberLabel": "Nomor", + "nameLabel": "Nama", + "namePlaceholder": "mis. Ending Terbaik", + "previewLabel": "Ending yang ditampilkan", + "previewEmpty": "(kosong — isi nomor atau nama)", + "emptyHint": "Tambahkan minimal satu ending — biarkan 0 untuk melewati poin ini sepenuhnya.", + "addOne": "Tambah ending", + "removeLast": "Hapus ending terakhir", + "videoRangeHint": "Tiap video mencakup rentang ending yang berurutan. Pembagian bawaan sudah seimbang; ubah per baris untuk menimpanya.", + "multiVideoOutputNote": "Deskripsi tiap video menampilkan rentang ending video tersebut. Buat dari editor seperti biasa — gunakan pemilih di bawah untuk mengganti video yang dipratinjau di Hasil.", + "videoIndexLabel": "Video pratinjau", + "videoIndexHint": "Pratinjau hasil, judul, dan tag ikut menyesuaikan rentang ending video yang dipilih. Salin satu per satu untuk memposting per video.", "warnings": { - "singleEmpty": "Fill at least the number or the name — empty entries are dropped from the description.", - "timelineShort": "Timeline needs {{needed}} ending markers; only {{found}} found. Add the missing rows before copying.", - "rangeInvalid": "Video {{video}}: range {{from}}–{{to}} is invalid (out of bounds or reversed).", - "rangeGap": "Endings {{at}}+ are not covered by any video — extend a range or add a video.", - "rangeOverlap": "Multiple videos cover ending {{at}} — adjust ranges to avoid overlap.", - "rangeShort": "Last covered ending is {{at}} but there are {{total}} endings — final video range is too short." + "singleEmpty": "Isi minimal nomor atau nama — entri kosong tidak masuk ke deskripsi.", + "timelineShort": "Timeline butuh {{needed}} penanda ending; hanya {{found}} yang ditemukan. Tambahkan baris yang kurang sebelum menyalin.", + "rangeInvalid": "Video {{video}}: rentang {{from}}–{{to}} tidak valid (di luar batas atau terbalik).", + "rangeGap": "Ending {{at}}+ tidak tercakup video mana pun — perlebar rentang atau tambah video.", + "rangeOverlap": "Beberapa video mencakup ending {{at}} — sesuaikan rentang agar tidak tumpang tindih.", + "rangeShort": "Ending terakhir yang tercakup adalah {{at}} padahal ada {{total}} ending — rentang video terakhir terlalu pendek." } }, - "techNotes": "Tech notes", - "techNoteSearchPlaceholder": "Search tech notes…", - "techNoteEmpty": "No matching notes", + "techNotes": "Catatan teknis", + "techNoteSearchPlaceholder": "Cari catatan teknis…", + "techNoteEmpty": "Tidak ada catatan yang cocok", "techNoteGroups": { "audio": "Audio", - "video_quality": "Video quality", - "recording_issues": "Recording issues", - "playstyle": "Playstyle disclaimers", - "production": "Production & attribution" + "video_quality": "Kualitas video", + "recording_issues": "Kendala perekaman", + "playstyle": "Keterangan gaya bermain", + "production": "Produksi & atribusi" }, "techNoteOptions": { - "copyright_muted_sections": "Some sections muted (copyright)", - "volume_reduced_copyright": "Volume reduced (copyright)", - "music_replaced_copyright": "Game music replaced (copyright)", - "cutscene_audio_muted_only": "Cutscene audio muted only", - "original_audio_kept": "Original audio kept (claim risk)", - "low_resolution_hardware": "Low resolution (hardware)", - "low_graphics_performance": "Lower graphics (performance)", - "fps_drops_hardware": "FPS drops (hardware)", - "bug_from_game": "Bugs are from the game", - "crash_kept_transparency": "Crash kept (transparency)", - "loading_cut": "Loading screens cut", - "obs_artifacts_possible": "Possible OBS artifacts", - "not_no_hit_run": "NOT a no-hit run", - "not_clean_walkthrough": "Not a clean walkthrough", - "casual_no_commentary": "Casual, no commentary", - "many_deaths_patience": "Many deaths", - "slow_exploration": "Slow exploration", + "copyright_muted_sections": "Beberapa bagian dibisukan (hak cipta)", + "volume_reduced_copyright": "Volume dikecilkan (hak cipta)", + "music_replaced_copyright": "Musik game diganti (hak cipta)", + "cutscene_audio_muted_only": "Hanya audio cutscene yang dibisukan", + "original_audio_kept": "Audio asli dipertahankan (risiko klaim)", + "low_resolution_hardware": "Resolusi rendah (perangkat keras)", + "low_graphics_performance": "Grafis diturunkan (performa)", + "fps_drops_hardware": "FPS turun (perangkat keras)", + "bug_from_game": "Bug berasal dari game", + "crash_kept_transparency": "Crash dibiarkan (transparansi)", + "loading_cut": "Layar loading dipotong", + "obs_artifacts_possible": "Kemungkinan artefak OBS", + "not_no_hit_run": "BUKAN run tanpa kena serangan", + "not_clean_walkthrough": "Bukan walkthrough bersih", + "casual_no_commentary": "Santai, tanpa komentar", + "many_deaths_patience": "Banyak mati", + "slow_exploration": "Eksplorasi lambat", "puzzle_stuck_possible": "Bisa mentok di beberapa teka-teki", - "grinding_cut": "Grinding cut", - "not_speedrun_relaxed": "Not a speedrun", - "exploration_focus_skip_combat": "Exploration-focused (skip combat)", - "edited_for_pacing": "Edited for pacing", - "support_developers": "Support the developers", - "online_connectivity_issues": "Online connectivity issues" + "grinding_cut": "Grinding dipotong", + "not_speedrun_relaxed": "Bukan speedrun", + "exploration_focus_skip_combat": "Fokus eksplorasi (lewati pertarungan)", + "edited_for_pacing": "Diedit demi tempo", + "support_developers": "Dukung para pengembang", + "online_connectivity_issues": "Kendala koneksi daring" }, - "videoSettings": "Video Settings", - "quickPreview": "Quick Preview", + "videoSettings": "Pengaturan Video", + "quickPreview": "Pratinjau Cepat", "version": "Versi", - "clearDraft": "Clear Draft", - "draftSaved": "Draft saved", - "clearDraftConfirm": "Are you sure you want to clear all form data?", - "genreSearchPlaceholder": "Search genres", - "genreSearchNoResults": "No matching genres", + "clearDraft": "Hapus Draf", + "draftSaved": "Draf tersimpan", + "clearDraftConfirm": "Yakin ingin menghapus seluruh isi formulir?", + "genreSearchPlaceholder": "Cari genre", + "genreSearchNoResults": "Tidak ada genre yang cocok", "validation": { - "gpuMissingSeries": "Pick a series to complete the GPU.", - "gpuMissingModel": "Pick a model to complete the GPU.", - "gpuCustomEmpty": "Enter a GPU name or pick from the catalog.", - "ramMissingDdr": "Pick a DDR generation.", - "ramMissingSize": "Pick a RAM size.", - "ramCustomEmpty": "Enter a RAM size in GB." + "gpuMissingSeries": "Pilih seri untuk melengkapi GPU.", + "gpuMissingModel": "Pilih model untuk melengkapi GPU.", + "gpuCustomEmpty": "Masukkan nama GPU atau pilih dari katalog.", + "ramMissingDdr": "Pilih generasi DDR.", + "ramMissingSize": "Pilih kapasitas RAM.", + "ramCustomEmpty": "Masukkan kapasitas RAM dalam GB." }, "genreGroups": { - "rpg": "All RPGs", - "shooter": "All Shooters", - "horror": "All Horror" + "rpg": "Semua RPG", + "shooter": "Semua Shooter", + "horror": "Semua Horor" }, - "contactEmailHelp": "Up to 3 emails, comma-separated", + "contactEmailHelp": "Maksimal 3 email, dipisah koma", "toast": { - "urlAutoFilled": "Auto-filled '{{name}}' from URL" + "urlAutoFilled": "'{{name}}' terisi otomatis dari URL" }, "warning": { - "linkNameMismatch": "Check link and add again — '{{host}}' suggests '{{suggestedName}}', but Game Name is '{{gameName}}'." + "linkNameMismatch": "Periksa tautannya lalu tambahkan lagi — '{{host}}' menunjukkan '{{suggestedName}}', tetapi Nama Game-nya '{{gameName}}'." } }, "output": { diff --git a/src/i18n/locales/pt-BR/ui.json b/src/i18n/locales/pt-BR/ui.json index 36a770e..2248709 100644 --- a/src/i18n/locales/pt-BR/ui.json +++ b/src/i18n/locales/pt-BR/ui.json @@ -288,109 +288,109 @@ "storeLinks": "Links de loja", "storeLinkType": "Tipo", "rig": "Meu setup", - "social": "Social & Donate Links", - "warnings": "Content warnings", - "playlistLink": "Playlist Link", + "social": "Links sociais e de doação", + "warnings": "Avisos de conteúdo", + "playlistLink": "Link da playlist", "playlistLinkPlaceholder": "https://youtube.com/playlist?list=...", - "community": "💬 Community", - "communityHelp": "Links to your community chat. The Zalo group only shows when the content language is Vietnamese.", - "messengerCommunityLink": "Messenger Community Link", + "community": "💬 Comunidade", + "communityHelp": "Links para o chat da sua comunidade. O grupo do Zalo só aparece quando o idioma do conteúdo é vietnamita.", + "messengerCommunityLink": "Link da comunidade no Messenger", "messengerCommunityLinkPlaceholder": "https://m.me/ch/yourid", - "zaloGroupLink": "Zalo Group Link", + "zaloGroupLink": "Link do grupo do Zalo", "zaloGroupLinkPlaceholder": "https://zalo.me/g/xxxxxx", - "signalGroupLink": "Signal Group Link", + "signalGroupLink": "Link do grupo do Signal", "signalGroupLinkPlaceholder": "https://signal.group/#yourid", - "instagramGroupLink": "Instagram Group Chat Link", + "instagramGroupLink": "Link do grupo do Instagram", "instagramGroupLinkPlaceholder": "https://ig.me/j/yourid", - "facebookGroupLink": "Facebook Group Link", + "facebookGroupLink": "Link do grupo do Facebook", "facebookGroupLinkPlaceholder": "https://facebook.com/groups/yourid", - "contactEmail": "Contact Email", + "contactEmail": "E-mail de contato", "contactEmailPlaceholder": "business@example.com", - "adEmail": "Advertising / Sponsorship Email", + "adEmail": "E-mail de publicidade / patrocínio", "adEmailPlaceholder": "sponsors@example.com", - "adEmailHelp": "Up to 3 emails, comma-separated", - "gameKeyEmail": "Game Keys & Playtest Email", + "adEmailHelp": "Até 3 e-mails, separados por vírgula", + "gameKeyEmail": "E-mail de chaves de jogo e playtest", "gameKeyEmailPlaceholder": "games@example.com", - "gameKeyEmailHelp": "Up to 3 emails, comma-separated", - "musicAttribution": "Music / Sound Attribution", - "musicAttributionPlaceholder": "Music by Karl Casey @ White Bat Audio\nSFX from Freesound.org", - "sponsorName": "Sponsor (publisher / developer)", - "sponsorNamePlaceholder": "e.g. Ubisoft, Capcom, Devolver Digital", - "sponsorPlatform": "Key platform", - "sponsorPlatformPlaceholder": "e.g. Steam, Epic Games, GOG", - "pubDevName": "Pub/Dev Name", - "pubDevNamePlaceholder": "e.g. Ubisoft, Capcom, FromSoftware", - "thumbnailText": "Thumbnail Text", - "thumbnailTextPlaceholder": "e.g. SECRET BOSS NO HIT", - "pinnedComment": "Pinned Comment Template", - "pinnedCommentPlaceholder": "What should viewers do if they liked the video?", - "playthrough": "Playthrough", + "gameKeyEmailHelp": "Até 3 e-mails, separados por vírgula", + "musicAttribution": "Créditos de música / som", + "musicAttributionPlaceholder": "Música de Karl Casey @ White Bat Audio\nEfeitos sonoros do Freesound.org", + "sponsorName": "Patrocinador (publisher / desenvolvedora)", + "sponsorNamePlaceholder": "ex.: Ubisoft, Capcom, Devolver Digital", + "sponsorPlatform": "Plataforma da chave", + "sponsorPlatformPlaceholder": "ex.: Steam, Epic Games, GOG", + "pubDevName": "Estúdio / Publisher", + "pubDevNamePlaceholder": "ex.: Ubisoft, Capcom, FromSoftware", + "thumbnailText": "Texto da thumbnail", + "thumbnailTextPlaceholder": "ex.: CHEFE SECRETO SEM DANO", + "pinnedComment": "Modelo de comentário fixado", + "pinnedCommentPlaceholder": "O que os espectadores devem fazer se gostarem do vídeo?", + "playthrough": "Jogatina", "playthroughOptions": { - "none": "— Not set —", - "blind": "Blind (first time)", - "replay": "Replay", + "none": "— Não definido —", + "blind": "Às cegas (primeira vez)", + "replay": "Rejogada", "newgame_plus": "New Game+", - "postgame": "Post-game / endgame" + "postgame": "Pós-jogo / endgame" }, "difficulty": "Dificuldade", "difficultyOptions": { - "none": "— Not set —", + "none": "— Não definido —", "easy": "Fácil", "normal": "Normal", "hard": "Difícil", "nightmare": "Pesadelo / Extremo", - "custom": "Custom…" + "custom": "Personalizada…" }, - "difficultyCustomLabel": "Custom difficulty label", - "difficultyCustomPlaceholder": "e.g. Lethal, NG+7, Fromsoft default", - "contentWarnings": "Content warnings", - "contentWarningSearchPlaceholder": "Search warnings…", - "contentWarningEmpty": "No matching warnings", + "difficultyCustomLabel": "Rótulo de dificuldade personalizada", + "difficultyCustomPlaceholder": "ex.: Letal, NG+7, padrão da FromSoft", + "contentWarnings": "Avisos de conteúdo", + "contentWarningSearchPlaceholder": "Buscar avisos…", + "contentWarningEmpty": "Nenhum aviso correspondente", "contentWarningGroups": { "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", - "gameplay_disclosure": "Gameplay disclosure" + "photosensitive": "Fotossensibilidade / Saúde", + "audio": "Áudio / Sensorial", + "dialogue": "Diálogo / Linguagem", + "phobias": "Fobias", + "mental_health": "Saúde mental", + "social_phenomena": "Fenômenos sociais", + "internet_digital": "Internet / Vida digital", + "sensitive": "Conteúdo adulto / sensível", + "playstyle": "Avisos de estilo de jogo", + "horror_specific": "Terror pesado", + "gameplay_disclosure": "Transparência de gameplay" }, "contentWarningOptions": { - "spoiler_story": "Story / ending spoilers", - "spoiler_ending": "Ending spoilers", - "spoiler_true_ending": "True-ending spoilers", - "spoiler_post_game": "Post-game / NG+ spoilers", - "spoiler_secret_ending": "Secret-ending spoilers", - "spoiler_dlc": "DLC story spoilers", - "flashing_lights": "Flashing lights", - "motion_sickness": "Motion sickness", - "migraine_trigger": "Migraine trigger", - "lens_flare_intense": "Lens flare / sun glare", - "bloom_excessive": "Excessive bloom / overblown highlights", - "particle_effects_dense": "Dense particle effects", + "spoiler_story": "Spoilers de história / final", + "spoiler_ending": "Spoilers do final", + "spoiler_true_ending": "Spoilers do final verdadeiro", + "spoiler_post_game": "Spoilers de pós-jogo / NG+", + "spoiler_secret_ending": "Spoilers do final secreto", + "spoiler_dlc": "Spoilers da história da DLC", + "flashing_lights": "Luzes piscando", + "motion_sickness": "Enjoo de movimento", + "migraine_trigger": "Gatilho de enxaqueca", + "lens_flare_intense": "Reflexo de lente / brilho solar", + "bloom_excessive": "Bloom excessivo / realces estourados", + "particle_effects_dense": "Efeitos de partículas densos", "screen_overlay_flashing": "HUD / interface piscando", - "color_saturation_extreme": "Extreme color saturation", - "motion_blur_heavy": "Heavy motion blur", - "depth_of_field_aggressive": "Aggressive depth of field", - "post_processing_intense": "Intense post-processing", + "color_saturation_extreme": "Saturação de cor extrema", + "motion_blur_heavy": "Motion blur intenso", + "depth_of_field_aggressive": "Profundidade de campo agressiva", + "post_processing_intense": "Pós-processamento intenso", "loud_noises": "Sons altos / repentinos", - "ear_piercing": "Ear-piercing / high-pitched", - "jumpscare_audio": "Audio jumpscares", - "sudden_volume_changes": "Sudden volume changes", - "distorted_audio": "Distorted / clipping audio", - "screeching_metallic": "Screeching / metallic sounds", - "persistent_high_pitch": "Persistent high-pitched tones", - "audio_glitches": "Audio glitches / artifacts", - "heavy_bass_rumble": "Heavy bass / sub-bass rumble", - "screaming_audio": "Sustained screaming", - "glass_breaking_audio": "Glass breaking / shattering", - "microphone_pops": "Mic pops / breath noise", - "white_noise_static": "White noise / static", + "ear_piercing": "Frequências agudas / estridentes", + "jumpscare_audio": "Jumpscares sonoros", + "sudden_volume_changes": "Mudanças bruscas de volume", + "distorted_audio": "Áudio distorcido / saturado", + "screeching_metallic": "Sons metálicos / estridentes", + "persistent_high_pitch": "Tons agudos constantes", + "audio_glitches": "Falhas / artefatos de áudio", + "heavy_bass_rumble": "Graves pesados / sub-graves", + "screaming_audio": "Gritos prolongados", + "glass_breaking_audio": "Vidro quebrando / estilhaçando", + "microphone_pops": "Estalos de microfone / respiração", + "white_noise_static": "Ruído branco / chiado", "jump_scares": "Jumpscares", "acrophobia": "Altura", "trypophobia": "Buracos / aglomerados", @@ -400,189 +400,189 @@ "entomophobia": "Insetos", "ophidiophobia": "Cobras", "cynophobia": "Cães", - "nyctophobia": "Darkness", - "pyrophobia": "Fire", - "pediophobia": "Dolls", + "nyctophobia": "Escuridão", + "pyrophobia": "Fogo", + "pediophobia": "Bonecas", "hemophobia": "Sangue", - "anxiety_inducing": "Anxiety-inducing scenes", + "anxiety_inducing": "Cenas que causam ansiedade", "depression_themes": "Temas de depressão", - "eating_disorders": "Eating disorders", + "eating_disorders": "Transtornos alimentares", "substance_use": "Uso de substâncias", - "self_harm": "Self-harm / suicide", - "ptsd_themes": "PTSD content", - "needles": "Needles", + "self_harm": "Automutilação / suicídio", + "ptsd_themes": "Conteúdo sobre TEPT", + "needles": "Agulhas", "body_fluids": "Fluidos corporais", "pregnancy_horror": "Horror de gravidez / parto", - "illness_themes": "Illness / infection", - "bipolar_themes": "Bipolar themes", - "ocd_themes": "OCD themes", - "panic_attacks": "Panic attacks", - "dissociation": "Dissociation", + "illness_themes": "Doença / infecção", + "bipolar_themes": "Temas de bipolaridade", + "ocd_themes": "Temas de TOC", + "panic_attacks": "Ataques de pânico", + "dissociation": "Dissociação", "blood_gore": "Sangue e violência gráfica", - "mature_18plus": "Mature 18+", + "mature_18plus": "Conteúdo adulto 18+", "disturbing_imagery": "Imagens perturbadoras", "animal_abuse": "Crueldade contra animais", "child_harm": "Violência contra menores", "domestic_violence": "Violência doméstica", "sexual_assault": "Referências a violência sexual", - "torture": "Torture", + "torture": "Tortura", "religion_themes": "Temas religiosos", "war_violence": "Violência de guerra", - "discrimination": "Discrimination", + "discrimination": "Discriminação", "police_violence": "Violência estatal / policial", "smoking_drinking": "Fumo / bebida alcoólica", - "detailed_killing": "Detailed killing", - "cult_occult": "Cult / occult", + "detailed_killing": "Mortes detalhadas", + "cult_occult": "Seita / ocultismo", "psychological_manipulation": "Manipulação psicológica", - "grief_loss": "Loss / grief", + "grief_loss": "Perda / luto", "kidnapping": "Sequestro", - "hate_speech": "Hate speech", + "hate_speech": "Discurso de ódio", "historical_atrocity": "Atrocidades históricas", "slavery_themes": "Temas de escravidão", "terrorism_themes": "Temas de terrorismo", "bullying_themes": "Temas de bullying", - "blind_playthrough": "Blind playthrough", - "no_spoilers_chat": "No spoilers in chat", - "casual_difficulty": "Casual / story mode", + "blind_playthrough": "Jogatina às cegas", + "no_spoilers_chat": "Sem spoilers no chat", + "casual_difficulty": "Modo casual / história", "hardcore_difficulty": "Dificuldade hardcore / máxima", "permadeath_run": "Permadeath / Iron Man", "speedrun_attempt": "Tentativa de speedrun", - "completionist_run": "100% completionist", - "learning_mechanics": "Still learning mechanics", - "eye_horror": "Eyes / eyeball clusters", - "body_horror": "Body horror (flesh distortion)", - "face_horror": "Distorted / mutilated faces", - "cosmic_horror": "Cosmic / eldritch horror", - "extreme_gore": "Extreme gore / dismemberment", - "decay_rot": "Decay, rot, maggots", - "mutilation": "Mutilation / amputation", - "strobe_effects": "Strobe lighting", - "screen_shake_intense": "Heavy screen shake", - "coulrophobia": "Clowns (coulrophobia)", - "ablutophobia": "Drowning / water immersion", - "taphophobia": "Live burial", - "automatonophobia": "Animatronics / mannequins", - "megalophobia": "Large objects / colossi", - "submechanophobia": "Submerged man-made objects", - "necrophobia": "Corpses / the dead", - "spectrophobia": "Ghosts / apparitions", - "demonophobia": "Demons / evil spirits", - "selachophobia": "Sharks", - "mysophobia": "Germs / contamination", - "emetophobia": "Vomiting", - "scopophobia": "Being watched / stared at", - "monophobia": "Isolation / being alone", - "musophobia": "Mice / rats", - "chiroptophobia": "Bats", - "ornithophobia": "Birds", - "ichthyophobia": "Fish", - "herpetophobia": "Reptiles", - "katsaridaphobia": "Cockroaches", - "apiphobia": "Bees / wasps", - "astraphobia": "Thunder / lightning", - "agoraphobia": "Open / exposed spaces", - "enochlophobia": "Crowds", - "chionophobia": "Snow / extreme cold", - "nosocomephobia": "Hospitals", - "aichmophobia": "Sharp objects / blades", - "pnigophobia": "Choking / suffocation", - "homophobia": "Homophobia / anti-LGBTQ+ content", - "transphobia": "Transphobia / anti-trans content", - "xenophobia": "Xenophobia / anti-foreigner content", + "completionist_run": "Completista 100%", + "learning_mechanics": "Ainda aprendendo as mecânicas", + "eye_horror": "Olhos / aglomerados de olhos", + "body_horror": "Body horror (deformação da carne)", + "face_horror": "Rostos distorcidos / mutilados", + "cosmic_horror": "Horror cósmico / eldritch", + "extreme_gore": "Gore extremo / desmembramento", + "decay_rot": "Decomposição, podridão, larvas", + "mutilation": "Mutilação / amputação", + "strobe_effects": "Luz estroboscópica", + "screen_shake_intense": "Tremor de tela intenso", + "coulrophobia": "Palhaços (coulrofobia)", + "ablutophobia": "Afogamento / imersão em água", + "taphophobia": "Enterro vivo", + "automatonophobia": "Animatrônicos / manequins", + "megalophobia": "Objetos enormes / colossos", + "submechanophobia": "Objetos submersos feitos pelo homem", + "necrophobia": "Cadáveres / mortos", + "spectrophobia": "Fantasmas / aparições", + "demonophobia": "Demônios / espíritos malignos", + "selachophobia": "Tubarões", + "mysophobia": "Germes / contaminação", + "emetophobia": "Vômito", + "scopophobia": "Ser observado / encarado", + "monophobia": "Isolamento / estar sozinho", + "musophobia": "Ratos e camundongos", + "chiroptophobia": "Morcegos", + "ornithophobia": "Pássaros", + "ichthyophobia": "Peixes", + "herpetophobia": "Répteis", + "katsaridaphobia": "Baratas", + "apiphobia": "Abelhas / vespas", + "astraphobia": "Trovões / relâmpagos", + "agoraphobia": "Espaços abertos / expostos", + "enochlophobia": "Multidões", + "chionophobia": "Neve / frio extremo", + "nosocomephobia": "Hospitais", + "aichmophobia": "Objetos cortantes / lâminas", + "pnigophobia": "Engasgo / sufocamento", + "homophobia": "Homofobia / conteúdo anti-LGBTQ+", + "transphobia": "Transfobia / conteúdo antitrans", + "xenophobia": "Xenofobia / conteúdo antiestrangeiro", "paranoia_themes": "Paranoia", - "intrusive_thoughts": "Intrusive thoughts", - "medical_horror": "Medical horror", - "human_experimentation": "Human experimentation", - "cannibalism": "Cannibalism", - "nuclear_themes": "Nuclear / radiation", - "liminal_spaces": "Liminal spaces", + "intrusive_thoughts": "Pensamentos intrusivos", + "medical_horror": "Horror médico", + "human_experimentation": "Experimentação humana", + "cannibalism": "Canibalismo", + "nuclear_themes": "Nuclear / radiação", + "liminal_spaces": "Espaços liminares", "analog_horror": "Analog horror / VHS", - "unreality_themes": "Unreality / distortion", - "pursuit_chase": "Pursuit / chase", - "entity_horror": "Entity / SCP horror", - "first_time_playing": "First time playing", - "returning_player": "Returning / NG+", - "mods_used": "Mods used", + "unreality_themes": "Irrealidade / distorção", + "pursuit_chase": "Perseguição", + "entity_horror": "Entidade / horror estilo SCP", + "first_time_playing": "Primeira vez jogando", + "returning_player": "Rejogando / NG+", + "mods_used": "Mods usados", "cheats_enabled": "Cheats / debug", - "glitch_exploits": "Glitches used", - "assisted_run": "Guide-assisted", - "homichlophobia": "Fog / mist", - "lilapsophobia": "Tornadoes / hurricanes", - "ombrophobia": "Heavy rain / storms", - "nephophobia": "Clouds", - "ancraophobia": "Strong wind", - "cryophobia": "Extreme cold", - "heliophobia": "Sunlight / bright sun", - "cymophobia": "Large waves", - "limnophobia": "Lakes / still water", - "potamophobia": "Rivers / currents", + "glitch_exploits": "Glitches usados", + "assisted_run": "Com ajuda de guia", + "homichlophobia": "Névoa / neblina", + "lilapsophobia": "Tornados / furacões", + "ombrophobia": "Chuva forte / temporais", + "nephophobia": "Nuvens", + "ancraophobia": "Vento forte", + "cryophobia": "Frio extremo", + "heliophobia": "Luz solar / sol forte", + "cymophobia": "Ondas grandes", + "limnophobia": "Lagos / águas paradas", + "potamophobia": "Rios / correntezas", "autism_themes": "Temas de autismo / neurodivergência", - "adhd_themes": "ADHD / executive dysfunction", - "hikikomori": "Hikikomori / social withdrawal", - "neet_themes": "NEET themes", - "social_anxiety_themes": "Social anxiety themes", - "social_isolation": "Social isolation / loneliness", - "schizophrenia_themes": "Schizophrenia / psychosis", - "burnout_themes": "Burnout / overwork", - "survivor_guilt": "Survivor guilt", - "abandonment_themes": "Abandonment themes", - "parasocial_themes": "Parasocial relationships", + "adhd_themes": "TDAH / disfunção executiva", + "hikikomori": "Hikikomori / isolamento social", + "neet_themes": "Temas NEET", + "social_anxiety_themes": "Ansiedade social", + "social_isolation": "Isolamento social / solidão", + "schizophrenia_themes": "Esquizofrenia / psicose", + "burnout_themes": "Burnout / excesso de trabalho", + "survivor_guilt": "Culpa do sobrevivente", + "abandonment_themes": "Temas de abandono", + "parasocial_themes": "Relações parassociais", "gaslighting_themes": "Gaslighting", - "stockholm_syndrome": "Stockholm syndrome", - "behavioral_addiction": "Gaming / gambling addiction", - "existential_crisis": "Existential / nihilistic themes", - "impostor_syndrome": "Impostor syndrome", - "midlife_crisis": "Midlife crisis", - "quarter_life_crisis": "Quarter-life crisis", - "workplace_harassment": "Workplace harassment", - "masculinity_pressure": "Gender-role pressure", - "political_extremism": "Political extremism", + "stockholm_syndrome": "Síndrome de Estocolmo", + "behavioral_addiction": "Vício em jogos / apostas", + "existential_crisis": "Temas existenciais / niilistas", + "impostor_syndrome": "Síndrome do impostor", + "midlife_crisis": "Crise de meia-idade", + "quarter_life_crisis": "Crise dos 25", + "workplace_harassment": "Assédio no trabalho", + "masculinity_pressure": "Pressão de papéis de gênero", + "political_extremism": "Extremismo político", "religious_extremism": "Extremismo religioso / fundamentalismo", "genocide": "Genocídio / limpeza étnica", - "holy_war": "Holy war / sectarian conflict", - "holocaust_themes": "Holocaust themes", - "civil_war": "Civil war", - "mass_shooting": "Mass / school shootings", - "colonialism": "Colonialism / imperialism", - "propaganda": "State propaganda", - "dystopian_state": "Surveillance / dystopian state", - "conspiracy_theories": "Conspiracy theories", - "censorship_themes": "Censorship themes", + "holy_war": "Guerra santa / conflito sectário", + "holocaust_themes": "Temas do Holocausto", + "civil_war": "Guerra civil", + "mass_shooting": "Tiroteios em massa / em escolas", + "colonialism": "Colonialismo / imperialismo", + "propaganda": "Propaganda estatal", + "dystopian_state": "Vigilância / estado distópico", + "conspiracy_theories": "Teorias da conspiração", + "censorship_themes": "Temas de censura", "ethnic_conflict": "Conflito étnico / racial", - "refugee_crisis": "Refugee crisis / displacement", - "revolution_themes": "Revolution / uprising", + "refugee_crisis": "Crise de refugiados / deslocamento", + "revolution_themes": "Revolução / levante", "assassination": "Assassinato político", - "coup_themes": "Coup d'état", - "inquisition": "Inquisition / religious persecution", - "forced_labor": "Forced labor", - "ultranationalism": "Ultranationalism", - "hanging_depiction": "Hanging / strangulation", + "coup_themes": "Golpe de Estado", + "inquisition": "Inquisição / perseguição religiosa", + "forced_labor": "Trabalho forçado", + "ultranationalism": "Ultranacionalismo", + "hanging_depiction": "Enforcamento / estrangulamento", "drowning_depiction": "Cena de afogamento", - "burning_alive": "Burning alive", - "asphyxiation_depiction": "Asphyxiation / suffocation", - "restraint_torture": "Bound / restrained victim", - "public_execution": "Public execution", + "burning_alive": "Queimado vivo", + "asphyxiation_depiction": "Asfixia / sufocamento", + "restraint_torture": "Vítima amarrada / imobilizada", + "public_execution": "Execução pública", "decapitation": "Decapitação", "impalement": "Empalamento", - "mass_casualty_event": "Mass-casualty event", - "vehicular_violence": "Vehicular violence", + "mass_casualty_event": "Evento com muitas vítimas", + "vehicular_violence": "Violência veicular", "overdose_depiction": "Cena de overdose", - "defenestration": "Falling from height", - "profanity_frequent": "Frequent profanity", - "sexual_innuendo": "Sexual innuendo / suggestive dialogue", + "defenestration": "Queda de altura", + "profanity_frequent": "Palavrões frequentes", + "sexual_innuendo": "Duplo sentido / diálogo sugestivo", "inflammatory_speech": "Discurso inflamatório / incitador", - "verbal_abuse": "Verbal abuse", - "threatening_language": "Threats / intimidation", + "verbal_abuse": "Abuso verbal", + "threatening_language": "Ameaças / intimidação", "slurs_derogatory": "Insultos / termos pejorativos", "crude_humor": "Humor grosseiro / escatológico", "mature_humor": "Humor adulto", "dark_humor": "Humor negro / mórbido", - "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", + "drug_references": "Referências a drogas / álcool", + "chromophobia": "Cores / cenas de cores vivas", + "erythrophobia": "Vermelho / cenas totalmente vermelhas", + "xanthophobia": "Cor amarela", + "leukophobia": "Branco / espaços totalmente brancos", + "melanophobia": "Cor preta", "body_shaming": "Body shaming / zombaria da aparência", "beauty_standards": "Padrões de beleza irreais", "cyberbullying": "Cyberbullying / assédio online", @@ -591,10 +591,10 @@ "cancel_culture": "Cultura do cancelamento / linchamento público", "social_media_addiction": "Vício em redes sociais", "doomscrolling": "Doomscrolling", - "fomo": "FOMO (fear of missing out)", + "fomo": "FOMO (medo de ficar de fora)", "fake_news": "Fake news / desinformação", "online_scams": "Golpes online / phishing", - "catfishing": "Catfishing / fake identity", + "catfishing": "Catfishing / identidade falsa", "deepfake_themes": "Deepfakes / mídia sintética", "cyberstalking": "Perseguição online", "internet_challenges": "Desafios virais perigosos", @@ -608,126 +608,126 @@ "sexualized_characters": "Designs de personagens sexualizados", "fanservice": "Fan service / ecchi", "suggestive_poses": "Poses / ângulos de câmera sugestivos", - "educational_purpose_only": "Educational / PSA purpose" + "educational_purpose_only": "Propósito educativo / conscientização" }, "playthroughNotes": { - "title": "Playthrough notes", + "title": "Notas da jogatina", "runTypeLabel": "Tipo de run", "difficultyLabel": "Dificuldade", "endingsLabel": "Finais mostrados", - "endingsPlaceholder": "e.g. True ending only, 1 of 3, All routes 100%", + "endingsPlaceholder": "ex.: Só o final verdadeiro, 1 de 3, Todas as rotas 100%", "languagePatchLabel": "Patch de idioma", - "languagePatchCustomLabel": "Custom language label", - "languagePatchCustomPlaceholder": "e.g. Official KR, VNI fan TL v2.1", + "languagePatchCustomLabel": "Rótulo de idioma personalizado", + "languagePatchCustomPlaceholder": "ex.: KR oficial, tradução de fãs VNI v2.1", "gameVersionLabel": "Versão do jogo", - "gameVersionCustomLabel": "Custom version label", - "gameVersionCustomPlaceholder": "e.g. Steam Next Fest demo, Kickstarter backer build", + "gameVersionCustomLabel": "Rótulo de versão personalizado", + "gameVersionCustomPlaceholder": "ex.: demo da Steam Next Fest, build de apoiador do Kickstarter", "languagePatchOptions": { - "none": "— Not set —", - "official_en": "Official English", - "official_other": "Official (other locale)", + "none": "— Não definido —", + "official_en": "Inglês oficial", + "official_other": "Oficial (outro idioma)", "fan_translation": "Tradução de fãs", "mtl": "Tradução automática", - "custom": "Custom…" + "custom": "Personalizado…" }, "gameVersionOptions": { - "full_release": "— Full release —", + "full_release": "— Versão completa —", "demo": "Demo", "early_access": "Acesso Antecipado", "beta": "Beta", "prologue": "Prólogo / Teaser", - "pre_release": "Pre-release", - "custom": "Custom…" + "pre_release": "Pré-lançamento", + "custom": "Personalizado…" } }, "endings": { - "countLabel": "Number of endings", - "videoCountLabel": "Number of videos", + "countLabel": "Número de finais", + "videoCountLabel": "Número de vídeos", "videoLabel": "Vídeo", - "numberLabel": "Number", - "nameLabel": "Name", - "namePlaceholder": "e.g. Best Ending", - "previewLabel": "Ending shown", - "previewEmpty": "(empty — fill number or name)", - "emptyHint": "Add at least one ending entry — leave at 0 to skip this bullet entirely.", - "addOne": "Add ending", - "removeLast": "Remove last ending", - "videoRangeHint": "Each video covers a contiguous slice of endings. Default split is balanced; adjust per row to override.", - "multiVideoOutputNote": "Each video's description renders that video's ending slice. Generate from the editor as usual — switch which video the Output previews using the selector below.", - "videoIndexLabel": "Preview video", - "videoIndexHint": "Output preview, title, and tags update to reflect the selected video's ending slice. Copy each one separately to publish per-video.", + "numberLabel": "Número", + "nameLabel": "Nome", + "namePlaceholder": "ex.: Melhor final", + "previewLabel": "Final mostrado", + "previewEmpty": "(vazio — preencha o número ou o nome)", + "emptyHint": "Adicione pelo menos um final — deixe em 0 para pular esse item por completo.", + "addOne": "Adicionar final", + "removeLast": "Remover último final", + "videoRangeHint": "Cada vídeo cobre uma faixa contígua de finais. A divisão padrão é equilibrada; ajuste por linha para sobrescrever.", + "multiVideoOutputNote": "A descrição de cada vídeo mostra a faixa de finais daquele vídeo. Gere pelo editor normalmente — use o seletor abaixo para trocar qual vídeo a Saída está prevendo.", + "videoIndexLabel": "Vídeo em prévia", + "videoIndexHint": "A prévia da saída, o título e as tags se atualizam para refletir a faixa de finais do vídeo selecionado. Copie cada um separadamente para publicar por vídeo.", "warnings": { - "singleEmpty": "Fill at least the number or the name — empty entries are dropped from the description.", - "timelineShort": "Timeline needs {{needed}} ending markers; only {{found}} found. Add the missing rows before copying.", - "rangeInvalid": "Video {{video}}: range {{from}}–{{to}} is invalid (out of bounds or reversed).", - "rangeGap": "Endings {{at}}+ are not covered by any video — extend a range or add a video.", - "rangeOverlap": "Multiple videos cover ending {{at}} — adjust ranges to avoid overlap.", - "rangeShort": "Last covered ending is {{at}} but there are {{total}} endings — final video range is too short." + "singleEmpty": "Preencha ao menos o número ou o nome — entradas vazias são removidas da descrição.", + "timelineShort": "A linha do tempo precisa de {{needed}} marcadores de final; só {{found}} foram encontrados. Adicione as linhas que faltam antes de copiar.", + "rangeInvalid": "Vídeo {{video}}: a faixa {{from}}–{{to}} é inválida (fora dos limites ou invertida).", + "rangeGap": "Os finais {{at}}+ não são cobertos por nenhum vídeo — estenda uma faixa ou adicione um vídeo.", + "rangeOverlap": "Vários vídeos cobrem o final {{at}} — ajuste as faixas para evitar sobreposição.", + "rangeShort": "O último final coberto é {{at}}, mas existem {{total}} finais — a faixa do vídeo final está curta demais." } }, - "techNotes": "Tech notes", - "techNoteSearchPlaceholder": "Search tech notes…", - "techNoteEmpty": "No matching notes", + "techNotes": "Notas técnicas", + "techNoteSearchPlaceholder": "Buscar notas técnicas…", + "techNoteEmpty": "Nenhuma nota correspondente", "techNoteGroups": { - "audio": "Audio", - "video_quality": "Video quality", - "recording_issues": "Recording issues", - "playstyle": "Playstyle disclaimers", - "production": "Production & attribution" + "audio": "Áudio", + "video_quality": "Qualidade do vídeo", + "recording_issues": "Problemas de gravação", + "playstyle": "Avisos de estilo de jogo", + "production": "Produção e créditos" }, "techNoteOptions": { - "copyright_muted_sections": "Some sections muted (copyright)", - "volume_reduced_copyright": "Volume reduced (copyright)", - "music_replaced_copyright": "Game music replaced (copyright)", - "cutscene_audio_muted_only": "Cutscene audio muted only", - "original_audio_kept": "Original audio kept (claim risk)", - "low_resolution_hardware": "Low resolution (hardware)", - "low_graphics_performance": "Lower graphics (performance)", - "fps_drops_hardware": "FPS drops (hardware)", - "bug_from_game": "Bugs are from the game", - "crash_kept_transparency": "Crash kept (transparency)", - "loading_cut": "Loading screens cut", - "obs_artifacts_possible": "Possible OBS artifacts", - "not_no_hit_run": "NOT a no-hit run", - "not_clean_walkthrough": "Not a clean walkthrough", - "casual_no_commentary": "Casual, no commentary", - "many_deaths_patience": "Many deaths", - "slow_exploration": "Slow exploration", + "copyright_muted_sections": "Alguns trechos mutados (direitos autorais)", + "volume_reduced_copyright": "Volume reduzido (direitos autorais)", + "music_replaced_copyright": "Música do jogo substituída (direitos autorais)", + "cutscene_audio_muted_only": "Só o áudio das cutscenes mutado", + "original_audio_kept": "Áudio original mantido (risco de reivindicação)", + "low_resolution_hardware": "Resolução baixa (hardware)", + "low_graphics_performance": "Gráficos reduzidos (desempenho)", + "fps_drops_hardware": "Quedas de FPS (hardware)", + "bug_from_game": "Os bugs são do jogo", + "crash_kept_transparency": "Crash mantido (transparência)", + "loading_cut": "Telas de carregamento cortadas", + "obs_artifacts_possible": "Possíveis artefatos do OBS", + "not_no_hit_run": "NÃO é uma run sem levar dano", + "not_clean_walkthrough": "Não é um walkthrough impecável", + "casual_no_commentary": "Casual, sem comentários", + "many_deaths_patience": "Muitas mortes", + "slow_exploration": "Exploração lenta", "puzzle_stuck_possible": "Pode travar em alguns puzzles", - "grinding_cut": "Grinding cut", - "not_speedrun_relaxed": "Not a speedrun", - "exploration_focus_skip_combat": "Exploration-focused (skip combat)", - "edited_for_pacing": "Edited for pacing", - "support_developers": "Support the developers", - "online_connectivity_issues": "Online connectivity issues" + "grinding_cut": "Grind cortado", + "not_speedrun_relaxed": "Não é speedrun", + "exploration_focus_skip_combat": "Foco em exploração (pula combates)", + "edited_for_pacing": "Editado para o ritmo", + "support_developers": "Apoiem os desenvolvedores", + "online_connectivity_issues": "Problemas de conexão online" }, - "videoSettings": "Video Settings", - "quickPreview": "Quick Preview", + "videoSettings": "Configurações do vídeo", + "quickPreview": "Prévia rápida", "version": "Versão", - "clearDraft": "Clear Draft", - "draftSaved": "Draft saved", - "clearDraftConfirm": "Are you sure you want to clear all form data?", - "genreSearchPlaceholder": "Search genres", - "genreSearchNoResults": "No matching genres", + "clearDraft": "Limpar rascunho", + "draftSaved": "Rascunho salvo", + "clearDraftConfirm": "Tem certeza de que quer limpar todos os dados do formulário?", + "genreSearchPlaceholder": "Buscar gêneros", + "genreSearchNoResults": "Nenhum gênero correspondente", "validation": { - "gpuMissingSeries": "Pick a series to complete the GPU.", - "gpuMissingModel": "Pick a model to complete the GPU.", - "gpuCustomEmpty": "Enter a GPU name or pick from the catalog.", - "ramMissingDdr": "Pick a DDR generation.", - "ramMissingSize": "Pick a RAM size.", - "ramCustomEmpty": "Enter a RAM size in GB." + "gpuMissingSeries": "Escolha uma série para completar a GPU.", + "gpuMissingModel": "Escolha um modelo para completar a GPU.", + "gpuCustomEmpty": "Digite o nome da GPU ou escolha no catálogo.", + "ramMissingDdr": "Escolha uma geração DDR.", + "ramMissingSize": "Escolha um tamanho de RAM.", + "ramCustomEmpty": "Digite o tamanho da RAM em GB." }, "genreGroups": { - "rpg": "All RPGs", - "shooter": "All Shooters", - "horror": "All Horror" + "rpg": "Todos os RPGs", + "shooter": "Todos os shooters", + "horror": "Todo o terror" }, - "contactEmailHelp": "Up to 3 emails, comma-separated", + "contactEmailHelp": "Até 3 e-mails, separados por vírgula", "toast": { - "urlAutoFilled": "Auto-filled '{{name}}' from URL" + "urlAutoFilled": "'{{name}}' preenchido automaticamente pela URL" }, "warning": { - "linkNameMismatch": "Check link and add again — '{{host}}' suggests '{{suggestedName}}', but Game Name is '{{gameName}}'." + "linkNameMismatch": "Confira o link e adicione de novo — '{{host}}' sugere '{{suggestedName}}', mas o Nome do Jogo é '{{gameName}}'." } }, "output": { diff --git a/src/store/settings-heal.ts b/src/store/settings-heal.ts index 7b87802..b736f6b 100644 --- a/src/store/settings-heal.ts +++ b/src/store/settings-heal.ts @@ -146,9 +146,19 @@ export interface SettingsData { function detectBrowserLanguage(): SupportedLanguage { if (typeof navigator === "undefined") return "en"; - const lang = navigator.language.split("-")[0]; - const supported: SupportedLanguage[] = ["en", "vi", "ja", "es", "ko", "zh"]; - return (supported.find((s) => s === lang) ?? "en") as SupportedLanguage; + const tag = navigator.language; + // Region-qualified locales must be matched on the FULL tag before the bare + // language, or `pt-BR` would be reduced to `pt` and never found. Currently + // pt-BR is the only such locale; a future `pt-PT` would slot in beside it. + const REGIONAL: SupportedLanguage[] = ["pt-BR"]; + const exact = REGIONAL.find((s) => s.toLowerCase() === tag.toLowerCase()); + if (exact) return exact; + // Any other Portuguese variant still gets Brazilian Portuguese rather than + // English — closer than the fallback, and the only Portuguese we ship. + if (tag.toLowerCase().startsWith("pt")) return "pt-BR"; + const base = tag.split("-")[0]; + const supported: SupportedLanguage[] = ["en", "vi", "ja", "es", "ko", "zh", "id"]; + return (supported.find((s) => s === base) ?? "en") as SupportedLanguage; } /** diff --git a/tests/i18n/locale-registration.test.ts b/tests/i18n/locale-registration.test.ts new file mode 100644 index 0000000..7dadc53 --- /dev/null +++ b/tests/i18n/locale-registration.test.ts @@ -0,0 +1,83 @@ +import { describe, it, expect } from "vitest"; +import { readdirSync, existsSync } from "fs"; +import { resolve, join } from "path"; +import { SUPPORTED_LANGUAGES } from "@i18n/index"; +import { initialSettings } from "@store/settings-heal"; +import { CORE_TAGS_BY_LANG, MULTILINGUAL_TAGS } from "@engine/tag-generator"; + +/** + * Adding a locale means editing four separate places, and only two of them + * fail loudly on their own: + * + * 1. `SUPPORTED_LANGUAGES` (src/i18n/index.ts) — silent if missed + * 2. `SupportedLanguage` union (src/engine/types.ts) — compile error + * 3. `detectBrowserLanguage` (settings-heal.ts) — SILENT if missed + * 4. `MULTILINGUAL_TAGS` / `CORE_TAGS_BY_LANG` — compile error + * + * docs/I18N.md claimed for a long time that (1) was the only step. It isn't, + * and (3) in particular fails invisibly: the language works, and simply never + * auto-selects for a visitor whose browser is set to it. + * + * These tests close the two silent gaps by checking the picker list against + * what is actually on disk, in both directions. + */ + +const LOCALES_DIR = resolve("src/i18n/locales"); + +function localeDirsOnDisk(): string[] { + return readdirSync(LOCALES_DIR, { withFileTypes: true }) + .filter((d) => d.isDirectory()) + .map((d) => d.name) + .sort(); +} + +describe("locale registration", () => { + it("offers exactly the locales that exist on disk", () => { + const registered = SUPPORTED_LANGUAGES.map((l) => l.id as string).sort(); + expect(registered).toEqual(localeDirsOnDisk()); + }); + + it("ships both namespaces for every registered locale", () => { + for (const { id } of SUPPORTED_LANGUAGES) { + for (const ns of ["ui", "templates"]) { + expect(existsSync(join(LOCALES_DIR, id, `${ns}.json`)), `${id}/${ns}.json`).toBe(true); + } + } + }); + + it("gives every registered locale a flag and a native name", () => { + for (const lang of SUPPORTED_LANGUAGES) { + expect(lang.flag, `${lang.id} flag`).toBeTruthy(); + expect(lang.nativeName, `${lang.id} nativeName`).toBeTruthy(); + // The native name is what the picker shows. An English label there means + // someone copied a row and forgot to translate it. + expect(lang.label, `${lang.id} label`).toBeTruthy(); + } + }); + + it("has a tag pool for every registered locale", () => { + // Both are typed `Record` so TypeScript already + // enforces this — but only against the union, not against the picker list. + for (const { id } of SUPPORTED_LANGUAGES) { + expect(typeof CORE_TAGS_BY_LANG[id], `CORE_TAGS_BY_LANG.${id}`).toBe("function"); + expect(typeof MULTILINGUAL_TAGS[id], `MULTILINGUAL_TAGS.${id}`).toBe("function"); + } + }); + + it("produces non-empty, game-name-bearing tags for every locale", () => { + for (const { id } of SUPPORTED_LANGUAGES) { + const core = CORE_TAGS_BY_LANG[id]("Silent Hill 2"); + expect(core.length, `${id} core tags`).toBeGreaterThan(0); + expect( + core.some((t) => t.includes("Silent Hill 2")), + `${id} core tags use the game name`, + ).toBe(true); + } + }); + + it("defaults the app language to a registered locale", () => { + const registered = SUPPORTED_LANGUAGES.map((l) => l.id as string); + expect(registered).toContain(initialSettings.appLanguage); + expect(registered).toContain(initialSettings.defaultOutputLanguage); + }); +}); diff --git a/vite.config.ts b/vite.config.ts index 471c01d..83cfc58 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -9,15 +9,15 @@ export default defineConfig({ base: isTauri ? "/" : "/youtube-generator/", resolve: { alias: { - "@": path.resolve(__dirname, "./src"), - "@config": path.resolve(__dirname, "./src/config"), - "@engine": path.resolve(__dirname, "./src/engine"), - "@store": path.resolve(__dirname, "./src/store"), - "@hooks": path.resolve(__dirname, "./src/hooks"), - "@components": path.resolve(__dirname, "./src/components"), - "@pages": path.resolve(__dirname, "./src/pages"), - "@utils": path.resolve(__dirname, "./src/utils"), - "@i18n": path.resolve(__dirname, "./src/i18n"), + "@": path.resolve(import.meta.dirname, "./src"), + "@config": path.resolve(import.meta.dirname, "./src/config"), + "@engine": path.resolve(import.meta.dirname, "./src/engine"), + "@store": path.resolve(import.meta.dirname, "./src/store"), + "@hooks": path.resolve(import.meta.dirname, "./src/hooks"), + "@components": path.resolve(import.meta.dirname, "./src/components"), + "@pages": path.resolve(import.meta.dirname, "./src/pages"), + "@utils": path.resolve(import.meta.dirname, "./src/utils"), + "@i18n": path.resolve(import.meta.dirname, "./src/i18n"), }, }, build: { diff --git a/vitest.config.ts b/vitest.config.ts index cfdd808..fddccc6 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -1,18 +1,21 @@ import { defineConfig } from "vitest/config"; +// `import.meta.dirname` rather than `__dirname`: Vite 8's native config +// loader (planned to become the default) does not provide the CJS global, +// and warns on every run until this changes. import path from "path"; export default defineConfig({ resolve: { alias: { - "@": path.resolve(__dirname, "./src"), - "@config": path.resolve(__dirname, "./src/config"), - "@engine": path.resolve(__dirname, "./src/engine"), - "@store": path.resolve(__dirname, "./src/store"), - "@hooks": path.resolve(__dirname, "./src/hooks"), - "@components": path.resolve(__dirname, "./src/components"), - "@pages": path.resolve(__dirname, "./src/pages"), - "@utils": path.resolve(__dirname, "./src/utils"), - "@i18n": path.resolve(__dirname, "./src/i18n"), + "@": path.resolve(import.meta.dirname, "./src"), + "@config": path.resolve(import.meta.dirname, "./src/config"), + "@engine": path.resolve(import.meta.dirname, "./src/engine"), + "@store": path.resolve(import.meta.dirname, "./src/store"), + "@hooks": path.resolve(import.meta.dirname, "./src/hooks"), + "@components": path.resolve(import.meta.dirname, "./src/components"), + "@pages": path.resolve(import.meta.dirname, "./src/pages"), + "@utils": path.resolve(import.meta.dirname, "./src/utils"), + "@i18n": path.resolve(import.meta.dirname, "./src/i18n"), }, }, test: {