Files
infiplot-web/public/home/firstact-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
7.7 KiB
JSON

{"sessionId":"s_1780422100395_ssipkq","scene":{"id":"scene_1780422133333_ez8a","scenePrompt":"Wide establishing shot, interior of a vast, dilapidated ancestral mansion hall at midnight. The grand, aged wooden door is ajar, a sliver of moonlight cutting through the gloom from outside. Dust motes float in the cold, pale beams. In the center, a staircase spirals upward into absolute darkness, leading to a shadowy attic entrance. A complex, unsettling shadow, non-human and liquid-like, is spilling down the stairs from the attic, pooling on the floor like dark water. The atmosphere is oppressive, filled with dread. The color palette is deep indigo, charcoal grey, and sickly amber from a single flickering wall sconce. Papercut art style, intricate layered shadows, high contrast, vertical composition emphasizing the towering staircase.","beats":[{"id":"b1","narration":"At 3:00 AM, you tiredly twist open the creaking wooden door of your ancestral home. Your phone screen suddenly lights up, flashing with your grandaunt's profile picture in the family group chat—she passed away three hours ago. One unread voice message.","next":{"type":"continue","nextBeatId":"b2"}},{"id":"b2","narration":"Your finger trembles as you tap the voice message. After a burst of static, a voice both familiar and distant pierces your eardrums—it's your grandfather, who passed away ten years ago.","line":"Run, kid. The paper... has awakened.","lineDelivery":"Low and raspy, with a deathbed-like urgency and resolve, with the faint sound of tearing paper in the background","next":{"type":"continue","nextBeatId":"b3"}},{"id":"b3","narration":"Before the voice even fades, a loud crash of splintering wood echoes from above! From the direction of the attic, something... is coming down.","next":{"type":"continue","nextBeatId":"b4"}},{"id":"b4","narration":"A massive, flat shadow with edges as sharp as blades creeps down along the staircase wall. It has no thickness, yet it dominates your entire field of vision, like a black paper cut-out come to life.","next":{"type":"choice","choices":[{"id":"c1","label":"Rush into the room and lock the door","effect":{"kind":"change-scene","nextSceneSeed":"Inside the ancestral home, you hide behind the locked door, but the flat shadow is seeping in from under the crack."}},{"id":"c2","label":"Grab the old scissors at the entryway","effect":{"kind":"advance-beat","targetBeatId":"b5"}}]}},{"id":"b5","narration":"Instinctively, you lunged toward the rusty old scissors on the entryway cabinet—the ones your grandfather used to use. The moment your fingertips touch the cold metal, a strange warmth surges from your palm into your veins. On the wall, your own shadow... seems to move slightly.","next":{"type":"choice","choices":[{"id":"b5__exit","label":"Continue","effect":{"kind":"change-scene","nextSceneSeed":"The story continues to unfold"}}]}}],"entryBeatId":"b1","sceneKey":"ancestral-house-foyer","imageUuid":"c444cf09-a401-4931-8e5f-a041185f94b2","imageUrl":"/home/firstscene/m20.webp"},"imageUrl":"/home/firstscene/m20.webp","characters":[],"storyState":{"logline":"When the 'living' paper cut-out guarded by your family for generations suddenly awakens, you must use ancient paper-cutting arts to fight a resurfaced paper-doll nemesis in a modern metropolis of neon and shadow—or watch everything you cherish turn to paper ash.","genreTags":"Urban Fantasy / Action Thriller / Suspense / Visual Spectacle","protagonist":"You are the sole heir to contemporary paper-cutting arts, a 'paper craftsman' masquerading as an ordinary office worker in the urban cubicles. Right now, an ancient paper cut-out passed down through generations and sealed in the attic has suddenly 'come alive,' transforming into a paper-armored warrior. At the same time, you sense a powerful, ancient, and hostile 'paper aura' awakening in the city. You want to uncover the truth behind the awakening of this paper cut-out and protect the oblivious ordinary people around you, but your deepest fear is that you cannot control this power at all and might instead be consumed by it.","castNotes":"Shen Yijian: Your taciturn grandfather (deceased), the previous successor of the paper-cutting art. A notebook filled with warnings is pressed under his photograph. Your relationship is an unsolved mystery, and the legacy he left behind is both armor and a curse.\nLin Zhao: Your glamorous female colleague at the company, who harbors an unusual obsession with ancient paper arts and constantly inquires about your family history. Her contrast lies in being a seemingly modern city beauty who is nevertheless intimately familiar with certain traditional rituals.\nShadow General: Your nemesis, a paper-doll adversary formed from a century of resentment, whose form shifts between an ancient warrior and modern shadows. It doesn't kill you directly, but systematically destroys the 'form' of what you cherish (such as a friend's face or a building's outline), turning them into flat paper cut-outs.","synopsis":"Returning to your ancestral home late at night, you receive a warning voice message sent from your deceased grandaunt's phone, which actually carries your late grandfather's voice: 'The paper is awake.' Meanwhile, a loud crash echoes from the attic, and an inhuman, flat shadow creeps down the staircase wall. In sheer terror, you grab your grandfather's old scissors at the entryway. The moment you touch them, you feel a first connection to an ancient power, and your own shadow undergoes a strange mutation.","openThreads":["How is your grandfather's warning 'The paper is awake' connected to the noise in the attic?","What does the warm current surging through your body and the mutation of your shadow mean when you grab the old scissors?","What is the ancient paper cut-out stirring deep in the attic?","Why did your grandaunt's phone receive a voice message from your grandfather who died ten years ago?"],"relationships":["Grandfather (Deceased): Delivers a final warning in an inexplicable way; his legacy (scissors, paper cut-outs, warnings) officially becomes a destiny you cannot escape.","Shadow General (Nemesis): His power directly threatens you for the first time in the concrete form of a 'shadow', with a clear objective."],"nextHook":"Next Scene: Attic Confrontation. You will face the 'living' paper cut-out—'The Nightwatchman'—for the first time, and under the pressure of the Shadow General, you will be forced to make your first choice: trust this unknown power, or attempt to flee."},"cardName":"m20","cardTitle":"Legend of the Paper Shadows","cardGender":"Male-oriented","worldSetting":"This is an AI interactive story game geared towards a 【Male-oriented】 audience, featuring intense dramatic conflicts and rapid twists in the style of short videos.\nStory Style: Multi-line twists. Pace: Tight and exhilarating.\nOpening setting of the featured story 'Legend of the Paper Shadows': Generations of shadow puppeteers have guarded a 'living' paper cut-out. In the shadows of the modern metropolis, the paper cut-out can transform into an indestructible paper-armored warrior. When an ancient paper-doll adversary resurfaces, he must engage in a final showdown beneath 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 instant gratification; subsequent branches should maintain the twist density of short dramas, ensuring that every choice the player makes has an immediate echo.","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/a08dlim3/ws/3/ii/c444cf09-a401-4931-8e5f-a041185f94b2.png"}