Files
infiplot-web/public/home/firstact-portrait-en/m20.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
6.9 KiB
JSON

{"sessionId":"s_1780755746226_nu6ltq","scene":{"id":"scene_1780755813420_tol5","scenePrompt":"Wide establishing shot of a late-night subway car, flickering fluorescent lights casting uneven shadows. A discarded advertisement poster on the floor, its paper corner curling unnaturally into a sharp blade-like edge, hovering slightly off the ground. Nearby passengers frozen in their seats, their newspapers, tickets, and collar edges beginning to flutter subtly. Above, a surveillance camera glows red, its lens capturing the scene. The entire image rendered in multilayered papercut art style, with deep black silhouettes and soft paper shadows, creating a sense of eerie dimensional depth. Cold blue-white light contrasts with warm amber from the camera. Vertical composition, emphasizing the tall narrow space of the subway car. No characters facing the camera; all elements arranged to suggest a hidden observer position.","beats":[{"id":"b1","narration":"It's the last subway train late at night, and the carriage lights flicker. You doze off in the corner, your body swaying gently to the rhythm of the tracks.","next":{"type":"continue","nextBeatId":"b2"}},{"id":"b2","narration":"Suddenly, a faint rustling of paper—a crumpled advertisement poster on the floor moves without any wind, its corners slowly curling up, pointing toward your neck like a blade. Out of the corner of your eye, you notice the newspapers, tickets, and collars of all the passengers are twitching. The surveillance camera overhead lights up with a piercing red glare.","next":{"type":"choice","choices":[{"id":"c1","label":"Catch the blade barehanded","effect":{"kind":"advance-beat","targetBeatId":"b3"}},{"id":"c2","label":"Fling out a paper cut","effect":{"kind":"advance-beat","targetBeatId":"b4"}}]}},{"id":"b3","narration":"You whip your hand up, your fingertips pinching the incoming paper blade with precision—but the sharp edge cuts your palm, and blood drips down. The paper instantly loses its power and collapses limply to the floor. The surveillance camera flashes once, recording this moment. The subway arrives at the station, and the doors slide open.","next":{"type":"continue","nextBeatId":"b4"}},{"id":"b4","narration":"With a flick of your fingers, a paper cut slips from your pocket and unfolds in mid-air into a translucent paper shield—blocking the attack with a loud 'bang'! The paper turns to ash, but the surveillance camera has already captured the anomaly. The subway brakes hard, and the lights go completely dark. The doors open in the darkness.","next":{"type":"choice","choices":[{"id":"b4__exit","label":"Continue","effect":{"kind":"change-scene","nextSceneSeed":"The story progresses"}}]}}],"entryBeatId":"b1","sceneKey":"subway-midnight","imageUuid":"b5a47724-3b31-4ec1-97d8-261a78ed71e8","imageUrl":"/home/firstscene-portrait/m20.webp","orientation":"portrait"},"imageUrl":"/home/firstscene-portrait/m20.webp","characters":[],"storyState":{"logline":"As ancient paper-cutting arts awaken amidst modern neon lights, you, as the heir to a shadow puppetry lineage, must use living paper-armored warriors to fight a resurrected army of paper dolls—but with every summon, your grandfather's relic cracks a little more.","genreTags":"Fantasy / Urban / Hot-blooded / Multi-twist / Male-oriented","protagonist":"You are Chen Mo, the young heir to the last traditional shadow puppetry troupe. Right now, you stand in the shadows of an abandoned factory. Three meters away is the paper-doll leader, enraged by your paper-cutting art, while your paper-armored warrior, 'Feiyan', is already showing cracks. You want to protect this city from being dragged into an ancient war, but you discover that every time you use your paper-cutting ability, a page of the secret chronicle left by your grandfather burns away.","castNotes":"Uncle Lin: Once your grandfather's best partner, he left due to differing philosophies and now runs a cultural and creative shop. Seemingly gentle, he is secretly investigating your family secrets; your relationship is tense, and every time he appears, he seems to be testing you.\nSu Qing: A sharp and capable female detective from the criminal investigation squad. She has targeted you due to several bizarre cases and seems to hold evidence linking you to the paper-cutting art. She stands between you and the law, but you notice she has the same paper-pattern mark on her wrist as you do.\nPaper Shadow: A mysterious adversary wrapped in flowing black paper cuts, capable of controlling all paper products. He claims to be the 'gravekeeper of history,' believing your ancestors stole the power of paper-cutting, and his goal is to reclaim all living paper cuts back to the underworld.","synopsis":"On the last subway train late at night, you are attacked by self-moving paper products. You escape after catching the blade barehanded (or defending with a paper cut), but the surveillance cameras may have recorded your anomaly. You realize the meaning behind the words 'They have awakened' in your grandfather's letter.","openThreads":["Where on earth did Grandfather go? What does the letter saying 'They have awakened' refer to?","Where did the paper-pattern mark on Su Qing's wrist come from? What is her connection to the paper-cutting art?","Is the 'stolen power' Paper Shadow speaks of the truth or a lie? What burden does your family actually carry?","The subway surveillance may have captured your anomalous actions, and your whereabouts might already be exposed."],"nextHook":"Next Scene: You escape the subway station and find a message on your phone from an unknown number: 'Don't go home.'"},"cardName":"m20","cardTitle":"Legend of the Paper Shadow","cardGender":"Male-oriented","worldSetting":"This is an AI interactive story game targeted at a 【Male-oriented】 audience, featuring intense dramatic conflicts and rapid plot twists in the style of short videos.\nPlot Style: Multi-line twists. Pace: Compact and exhilarating.\nOpening setting of the featured story 'Legend of the Paper Shadow': Generations of shadow puppeteers have guarded a set of 'living' paper cuts. In the shadows of the modern metropolis, these paper cuts can transform into indestructible paper-armored warriors. When an ancient paper-doll adversary resurfaces, he must engage in a final showdown under the neon lights using the most ancient paper-cutting techniques.\nPlease dive straight into this opening to give the player a strong sense of immersion and satisfaction; subsequent branches should maintain the twist density of short dramas, allowing players to see immediate repercussions for every choice they make.","styleGuide":"Multilayered papercut art, vertical composition. A beautifully intricate silhouette of a handsome prince in armor standing in a dark forest before a towering gothic paper castle. Backlighting, soft paper shadows, deep dimensional layering.","imageUrlRemote":"https://im.runware.ai/image/os/a07dlim3/ws/3/ii/b5a47724-3b31-4ec1-97d8-261a78ed71e8.png"}