Files
infiplot-web/public/home/firstact-en/m19.json
T
yuanzonghao 0a7076d5b9 fix(i18n): overhaul i18n with [locale] routing, SSR translations, and hreflang SEO
Rewrites the i18n system introduced in PR #94 to use Next.js App Router
[locale] dynamic segments with SSR-rendered translations and proper
middleware locale routing.

- Add middleware locale detection: / rewrites to /zh-CN/ internally,
  /en and /ja pass through, /zh-CN/... redirects to bare path
- Move all 7 pages under app/[locale]/ with SSR translation injection
- Fix server→client serialization: pre-evaluate function-valued
  translations (makeSerializable) to eliminate hydration flash
- Fix language switch key flash: use hard navigation with localStorage-
  only persistence, avoiding React state update before page reload
- Add <link rel="alternate" hreflang> tags for multilingual SEO
- Fix Supabase setAll overwriting locale rewrite response
- Trim locales from 22 to 3 (zh-CN/en/ja), delete 19 incomplete files
- LLM-translate 240 firstact game preset JSONs (en + ja, landscape +
  portrait) and story titles via gemini-3.5-flash
- Delete 11 one-off migration scripts and outdated i18n docs
- Add useLocalePath hook and navigation utilities

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-18 23:16:17 +08:00

1 line
7.1 KiB
JSON

{"sessionId":"s_1780422062109_elreza","scene":{"id":"scene_1780422096349_zvy7","scenePrompt":"Wide establishing shot, minimalist typography studio at midnight, Swiss poster aesthetic, vertical composition. A sleek desk dominates the foreground, its surface holding a single glowing monitor. The screen displays abstract, shifting red glyphs on black, casting a harsh crimson glow. Deep shadows pool around high-contrast white walls and geometric furniture silhouettes. The atmosphere is tense, digital, and cold, with deep red, black, and white color blocks. Clean, geometric layout with sharp lines and negative space.","beats":[{"id":"b1","narration":"2:00 AM. The studio is empty, save for you and the glow of the screen. The final render of your new font, 'Ink Trace', is flawless—every stroke a testament to your hard work. You click 'Print Preview'.","next":{"type":"continue","nextBeatId":"b2"}},{"id":"b2","narration":"The screen flickers. The preview interface vanishes. In its place, all the characters in the 'Ink Trace' font begin to arrange and reorganize themselves in a bizarre, eerie order. The strokes seem to come alive, breaking free from their grids, spreading and intertwining across the screen, emitting a faint red glow.","next":{"type":"continue","nextBeatId":"b3"}},{"id":"b3","narration":"The red light converges. Finally, a cold line of command, formed by the very strokes you designed, takes over the entire screen: 'Attack begins in three days. —J.Y.' J.Y. is the abbreviation of your name, Ji Yan. Your heart sinks instantly.","next":{"type":"continue","nextBeatId":"b4"}},{"id":"b4","narration":"Your phone vibrates on the desk, its screen lighting up. A text message from an unknown number: 'The game has begun, designer.'","next":{"type":"choice","choices":[{"id":"c1","label":"Unplug the computer immediately","effect":{"kind":"advance-beat","targetBeatId":"b5"}},{"id":"c2","label":"Take a screenshot to save evidence","effect":{"kind":"advance-beat","targetBeatId":"b6"}},{"id":"c3","label":"Reply to the text to demand answers","effect":{"kind":"advance-beat","targetBeatId":"b7"}}]}},{"id":"b5","narration":"You violently yank the power cords of the PC and monitor. The screen goes black instantly, plunging the room into darkness, with only the faint city lights from the window outlining your silhouette. Your hands are trembling slightly. But will unplugging it really stop anything?","next":{"type":"continue","nextBeatId":"b6"}},{"id":"b6","narration":"You force yourself to calm down, your fingers quickly pressing the screenshot shortcut on your phone. The screen flashes, capturing the blood-red command and the anonymous text in your photo library. It is evidence, but also... a curse too hot to handle.","next":{"type":"continue","nextBeatId":"b7"}},{"id":"b7","narration":"A mix of anger and dread rushes to your head. You grab your phone and, with trembling fingers, type a single word into the input box: 'Who?' Message failed to send. Notification: This number does not exist.","next":{"type":"choice","choices":[{"id":"b7__exit","label":"Continue","effect":{"kind":"change-scene","nextSceneSeed":"The story progresses"}}]}}],"entryBeatId":"b1","sceneKey":"studio-midnight","imageUuid":"1969b5cb-0f2f-496b-90cb-fd4b0692714d","imageUrl":"/home/firstscene/m19.webp"},"imageUrl":"/home/firstscene/m19.webp","characters":[],"storyState":{"logline":"You are a font designer who discovers that your own typeface hides financial attack commands—and you are the prime suspect on the mastermind list. Can you unmask the real culprit and clear your name before the attack begins?","genreTags":"Suspense / Espionage / High-IQ Crime / Fast-Paced Twists","protagonist":"You, a moderately famous font designer, are currently trapped in the most bizarre moment of your career: you accidentally discover that a typeface you designed has been tampered with to serve as a codebook for a global financial attack. You want to uncover the truth and protect your reputation and career, but your hidden vulnerability is that three years ago, due to a business dispute, you offended a financial tycoon whom you still fear to this day.","castNotes":"Lin Wei: Your senior font engineer and the first person to detect the font anomaly and warn you. She seems loyal and reliable, but encrypted communication logs late at night suggest she might have a double life.\nChen Mo: A young investigator from the financial regulatory agency, ordered to secretly investigate this case. On the surface, he cooperates with you to track down the truth, but his eyes often betray scrutiny and suspicion toward you.","synopsis":"Late at night in the studio, font designer Ji Yan experiences a bizarre event while reviewing his new font, 'Ink Trace': the screen automatically displays an attack command composed of his typeface, 'Attack begins in three days. —J.Y.', and he receives an anonymous text message signed with his initials: 'The game has begun, designer.' The protagonist is plunged into a massive crisis and confusion.","openThreads":["Who is the target of the 'font virus' attack? Why did the mastermind use Ji Yan's name and typeface?","Who sent the anonymous text message 'The game has begun, designer'? What is their true motive?","Is the financial tycoon Ji Yan offended three years ago connected to this matter?","Does Lin Wei know the inside story of the font being tampered with? Where do her loyalties lie?"],"relationships":["Lin Wei: Has not appeared yet, but as the senior engineer who first discovered the font anomaly, she is set to become a key figure.","Chen Mo: Has not appeared yet; as an investigator, his motives and goals remain a mystery."],"nextHook":"Next Scene: After the protagonist's initial reaction to the crisis, dawn breaks. He must decide whether to investigate alone, seek help, or deal with the opening of this 'game' first. Meanwhile, the font files he designed have quietly surfaced in the deep waters of international cybersecurity forums."},"cardName":"m19","cardTitle":"The Font Conspiracy","cardGender":"Male-oriented","worldSetting":"This is an AI-interactive story game targeted at a 【Male-oriented】 audience, featuring intense dramatic conflicts and rapid reversals in the style of popular short-form web dramas.\nGenre Style: Multi-line twists. Pacing: Fast-paced and thrilling.\nOpening setup for the featured story 'The Font Conspiracy': A font designer discovers that a specific combination of characters in a typeface he designed reveals hidden command messages. Once decrypted, it turns out to be a 'font virus' attack plan targeting the global financial system—and his name is on the mastermind list.\nPlease dive straight into this opening to give the player a strong sense of immersion and excitement. Keep the subsequent branches packed with short-drama-style twists, ensuring every choice the player makes has an immediate impact.","styleGuide":"Swiss typography poster style, vertical composition. A minimalist high-contrast silhouette of an attractive male face integrated with abstract architectural grids. Deep red, black, and white color blocks, clean geometric poster layout.","imageUrlRemote":"https://im.runware.ai/image/os/a03d21/ws/3/ii/1969b5cb-0f2f-496b-90cb-fd4b0692714d.png"}