rpg-engine 0.11.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/README.md +1 -1
  2. package/dist/commands/effect.d.ts +1 -1
  3. package/dist/commands/shared/inputs.d.ts +2 -2
  4. package/dist/commands/shared/inputs.js +15 -2
  5. package/dist/commands/shared/page-words.d.ts +4 -0
  6. package/dist/commands/shared/page-words.js +7 -7
  7. package/dist/commands/shared/system-texts.d.ts +11 -0
  8. package/dist/commands/shared/system-texts.js +203 -0
  9. package/dist/commands/shared/world.d.ts +2 -0
  10. package/dist/commands/shared/world.js +13 -3
  11. package/dist/commands/view/view.d.ts +4 -0
  12. package/dist/commands/view/view.js +14 -3
  13. package/dist/commands/write/write.d.ts +3 -3
  14. package/dist/core/context.d.ts +16 -0
  15. package/dist/core/files.js +2 -3
  16. package/dist/core/language.d.ts +2 -0
  17. package/dist/core/language.js +8 -0
  18. package/dist/core/text.d.ts +2 -0
  19. package/dist/core/text.js +5 -0
  20. package/dist/dashboard/app.js +10 -9
  21. package/dist/dashboard/asked.js +2 -2
  22. package/dist/dashboard/dice/throw.js +2 -1
  23. package/dist/dashboard/dice/tray.js +1 -1
  24. package/dist/dashboard/guide/ar.md +2 -2
  25. package/dist/dashboard/guide/cs.md +2 -2
  26. package/dist/dashboard/guide/da.md +2 -2
  27. package/dist/dashboard/guide/de.md +2 -2
  28. package/dist/dashboard/guide/el.md +2 -2
  29. package/dist/dashboard/guide/en.md +1 -1
  30. package/dist/dashboard/guide/es.md +2 -2
  31. package/dist/dashboard/guide/fi.md +2 -2
  32. package/dist/dashboard/guide/fr.md +2 -2
  33. package/dist/dashboard/guide/he.md +2 -2
  34. package/dist/dashboard/guide/hi.md +2 -2
  35. package/dist/dashboard/guide/hu.md +2 -2
  36. package/dist/dashboard/guide/is.md +2 -2
  37. package/dist/dashboard/guide/it.md +2 -2
  38. package/dist/dashboard/guide/ja.md +2 -2
  39. package/dist/dashboard/guide/ko.md +2 -2
  40. package/dist/dashboard/guide/nb.md +2 -2
  41. package/dist/dashboard/guide/nl.md +2 -2
  42. package/dist/dashboard/guide/pl.md +2 -2
  43. package/dist/dashboard/guide/pt.md +2 -2
  44. package/dist/dashboard/guide/ro.md +2 -2
  45. package/dist/dashboard/guide/ru.md +2 -2
  46. package/dist/dashboard/guide/sv.md +2 -2
  47. package/dist/dashboard/guide/tr.md +2 -2
  48. package/dist/dashboard/guide/uk.md +2 -2
  49. package/dist/dashboard/guide/zh.md +2 -2
  50. package/dist/dashboard/i18n/ar.json +2 -1
  51. package/dist/dashboard/i18n/cs.json +2 -1
  52. package/dist/dashboard/i18n/da.json +2 -1
  53. package/dist/dashboard/i18n/de.json +2 -1
  54. package/dist/dashboard/i18n/el.json +2 -1
  55. package/dist/dashboard/i18n/es.json +2 -1
  56. package/dist/dashboard/i18n/fi.json +2 -1
  57. package/dist/dashboard/i18n/fr.json +2 -1
  58. package/dist/dashboard/i18n/he.json +2 -1
  59. package/dist/dashboard/i18n/hi.json +2 -1
  60. package/dist/dashboard/i18n/hu.json +2 -1
  61. package/dist/dashboard/i18n/is.json +2 -1
  62. package/dist/dashboard/i18n/it.json +2 -1
  63. package/dist/dashboard/i18n/ja.json +2 -1
  64. package/dist/dashboard/i18n/ko.json +2 -1
  65. package/dist/dashboard/i18n/nb.json +2 -1
  66. package/dist/dashboard/i18n/nl.json +2 -1
  67. package/dist/dashboard/i18n/pl.json +2 -1
  68. package/dist/dashboard/i18n/pt.json +2 -1
  69. package/dist/dashboard/i18n/ro.json +2 -1
  70. package/dist/dashboard/i18n/ru.json +2 -1
  71. package/dist/dashboard/i18n/sv.json +2 -1
  72. package/dist/dashboard/i18n/tr.json +2 -1
  73. package/dist/dashboard/i18n/uk.json +2 -1
  74. package/dist/dashboard/i18n/zh.json +2 -1
  75. package/dist/dashboard/journal.js +1 -1
  76. package/dist/dashboard/notices.js +9 -2
  77. package/dist/dashboard/packages/packages.js +5 -5
  78. package/dist/dashboard/packages/widgets.js +1 -1
  79. package/dist/dashboard/saves.js +1 -1
  80. package/dist/dashboard/settings.js +2 -2
  81. package/dist/dashboard/setup.js +1 -1
  82. package/dist/dashboard/text.js +7 -2
  83. package/dist/dashboard/world/lore.js +1 -1
  84. package/dist/dashboard/world/world.js +1 -1
  85. package/dist/documents/png.d.ts +2 -3
  86. package/dist/documents/png.js +6 -6
  87. package/dist/documents/read.js +2 -1
  88. package/dist/extensions/words.js +2 -1
  89. package/dist/languages/language-pack.js +2 -2
  90. package/dist/pages/index.d.ts +1 -1
  91. package/dist/pages/index.js +1 -1
  92. package/dist/pages/world.d.ts +5 -0
  93. package/dist/pages/world.js +22 -11
  94. package/dist/server/dashboard/files.js +6 -5
  95. package/dist/server/dashboard/index.d.ts +3 -1
  96. package/dist/server/dashboard/index.js +3 -1
  97. package/dist/server/mcp.js +3 -1
  98. package/dist/systems/game-system.js +2 -1
  99. package/dist/systems/words.js +2 -1
  100. package/dist/testing/index.js +1 -1
  101. package/instructions/play.md +1 -1
  102. package/package.json +12 -12
@@ -885,7 +885,7 @@
885
885
  "The game goes back to how it was then. What happened after it is gone from the story, and so are the {count} saves after it.": "Peli palaa sellaiseksi kuin se silloin oli. Sen jälkeen tapahtunut katoaa tarinasta, samoin sen jälkeiset {count} tallennusta.",
886
886
  "The game goes back to how it was then. What happened after it is gone from the story, and so is the save after it.": "Peli palaa sellaiseksi kuin se silloin oli. Sen jälkeen tapahtunut katoaa tarinasta, samoin sen jälkeinen tallennus.",
887
887
  "The game goes back to how it was then. What happened after it is gone from the story.": "Peli palaa sellaiseksi kuin se silloin oli. Sen jälkeen tapahtunut katoaa tarinasta.",
888
- "The game goes on in the new chat: write «continua» there.": "Peli jatkuu uudessa chatissa: kirjoita siellä «continua».",
888
+ "The game goes on in the new chat: write «continue» there.": "Peli jatkuu uudessa chatissa: kirjoita siellä «jatka».",
889
889
  "The game master": "Pelinjohtaja",
890
890
  "The game master, {mood}": "Pelinjohtaja, {mood}",
891
891
  "The game master, away": "Pelinjohtaja, poissa",
@@ -1057,6 +1057,7 @@
1057
1057
  "With a new character": "Uudella hahmolla",
1058
1058
  "With the same character": "Samalla hahmolla",
1059
1059
  "With you": "Mukanasi",
1060
+ "With your account, Codex or Claude Code is translating the game's rules into {language}: until then they stay in English.": "Codex tai Claude Code kääntää tililläsi pelin säännöt kielelle {language}. Siihen asti säännöt pysyvät englanniksi.",
1060
1061
  "Within": "Sisällä",
1061
1062
  "Without a licence, all rights are reserved.": "Ilman lisenssiä kaikki oikeudet pidätetään.",
1062
1063
  "World": "Maailma",
@@ -885,7 +885,7 @@
885
885
  "The game goes back to how it was then. What happened after it is gone from the story, and so are the {count} saves after it.": "Le jeu revient à son état d'alors. Ce qui s'est passé après disparaît de l'histoire, ainsi que les {count} sauvegardes suivantes.",
886
886
  "The game goes back to how it was then. What happened after it is gone from the story, and so is the save after it.": "Le jeu revient à son état d'alors. Ce qui s'est passé après disparaît de l'histoire, ainsi que la sauvegarde suivante.",
887
887
  "The game goes back to how it was then. What happened after it is gone from the story.": "Le jeu revient à son état d'alors. Ce qui s'est passé après disparaît de l'histoire.",
888
- "The game goes on in the new chat: write «continua» there.": "La partie continue dans le nouveau chat : écris « continua » là-bas.",
888
+ "The game goes on in the new chat: write «continue» there.": "La partie continue dans le nouveau chat : écris « continue » là-bas.",
889
889
  "The game master": "Le MJ",
890
890
  "The game master, {mood}": "Le MJ, {mood}",
891
891
  "The game master, away": "Le MJ, absent",
@@ -1057,6 +1057,7 @@
1057
1057
  "With a new character": "Avec un nouveau personnage",
1058
1058
  "With the same character": "Avec le même personnage",
1059
1059
  "With you": "Avec toi",
1060
+ "With your account, Codex or Claude Code is translating the game's rules into {language}: until then they stay in English.": "Avec ton compte, Codex ou Claude Code traduit les règles du jeu en {language} : d'ici là, elles restent en anglais.",
1060
1061
  "Within": "À l'intérieur",
1061
1062
  "Without a licence, all rights are reserved.": "Sans licence, tous les droits sont réservés.",
1062
1063
  "World": "Monde",
@@ -885,7 +885,7 @@
885
885
  "The game goes back to how it was then. What happened after it is gone from the story, and so are the {count} saves after it.": "המשחק חוזר למצבו אז. מה שקרה אחר כך נמחק מהסיפור, וגם {count} השמירות שאחריה.",
886
886
  "The game goes back to how it was then. What happened after it is gone from the story, and so is the save after it.": "המשחק חוזר למצבו אז. מה שקרה אחר כך נמחק מהסיפור, וגם השמירה שאחריה.",
887
887
  "The game goes back to how it was then. What happened after it is gone from the story.": "המשחק חוזר למצבו אז. מה שקרה אחר כך נמחק מהסיפור.",
888
- "The game goes on in the new chat: write «continua» there.": "המשחק נמשך בצ'אט החדש: יש לכתוב שם «continua».",
888
+ "The game goes on in the new chat: write «continue» there.": "המשחק נמשך בצ'אט החדש: יש לכתוב שם «המשך».",
889
889
  "The game master": "המנחה",
890
890
  "The game master, {mood}": "המנחה, {mood}",
891
891
  "The game master, away": "המנחה, לא נמצא",
@@ -1057,6 +1057,7 @@
1057
1057
  "With a new character": "עם דמות חדשה",
1058
1058
  "With the same character": "עם אותה דמות",
1059
1059
  "With you": "איתך",
1060
+ "With your account, Codex or Claude Code is translating the game's rules into {language}: until then they stay in English.": "באמצעות החשבון שלך, Codex או Claude Code מתרגם את חוקי המשחק ל{language}. עד אז הם יישארו באנגלית.",
1060
1061
  "Within": "בפנים",
1061
1062
  "Without a licence, all rights are reserved.": "ללא רישיון, כל הזכויות שמורות.",
1062
1063
  "World": "עולם",
@@ -885,7 +885,7 @@
885
885
  "The game goes back to how it was then. What happened after it is gone from the story, and so are the {count} saves after it.": "गेम वैसा हो जाएगा जैसा तब था। उसके बाद जो हुआ, वह कहानी से मिट जाएगा, और उसके बाद के {count} सेव भी।",
886
886
  "The game goes back to how it was then. What happened after it is gone from the story, and so is the save after it.": "गेम वैसा हो जाएगा जैसा तब था। उसके बाद जो हुआ, वह कहानी से मिट जाएगा, और उसके बाद का सेव भी।",
887
887
  "The game goes back to how it was then. What happened after it is gone from the story.": "गेम वैसा हो जाएगा जैसा तब था। उसके बाद जो हुआ, वह कहानी से मिट जाएगा।",
888
- "The game goes on in the new chat: write «continua» there.": "खेल नई चैट में आगे चलता है: वहाँ «continua» लिखें।",
888
+ "The game goes on in the new chat: write «continue» there.": "खेल नई चैट में आगे चलता है: वहाँ «जारी रखें» लिखें।",
889
889
  "The game master": "गेम मास्टर",
890
890
  "The game master, {mood}": "गेम मास्टर, {mood}",
891
891
  "The game master, away": "गेम मास्टर, दूर",
@@ -1057,6 +1057,7 @@
1057
1057
  "With a new character": "नया किरदार बनाकर",
1058
1058
  "With the same character": "वही किरदार रखकर",
1059
1059
  "With you": "आपके पास",
1060
+ "With your account, Codex or Claude Code is translating the game's rules into {language}: until then they stay in English.": "आपके अकाउंट से Codex या Claude Code गेम के नियमों का {language} में अनुवाद कर रहा है: तब तक वे अंग्रेज़ी में ही रहेंगे।",
1060
1061
  "Within": "अंदर",
1061
1062
  "Without a licence, all rights are reserved.": "लाइसेंस के बिना, सभी अधिकार सुरक्षित हैं।",
1062
1063
  "World": "दुनिया",
@@ -885,7 +885,7 @@
885
885
  "The game goes back to how it was then. What happened after it is gone from the story, and so are the {count} saves after it.": "A játék úgy folytatódik, ahogy akkor volt. Ami utána történt, kikerül a történetből, és vele együtt az utána következő {count} mentés is.",
886
886
  "The game goes back to how it was then. What happened after it is gone from the story, and so is the save after it.": "A játék úgy folytatódik, ahogy akkor volt. Ami utána történt, kikerül a történetből, és vele együtt az utána következő mentés is.",
887
887
  "The game goes back to how it was then. What happened after it is gone from the story.": "A játék úgy folytatódik, ahogy akkor volt. Ami utána történt, kikerül a történetből.",
888
- "The game goes on in the new chat: write «continua» there.": "A játék az új csevegésben folytatódik: írd oda: «continua».",
888
+ "The game goes on in the new chat: write «continue» there.": "A játék az új csevegésben folytatódik: írd oda: «folytasd».",
889
889
  "The game master": "A mesélő",
890
890
  "The game master, {mood}": "A mesélő, {mood}",
891
891
  "The game master, away": "A mesélő, távol",
@@ -1057,6 +1057,7 @@
1057
1057
  "With a new character": "Új karakterrel",
1058
1058
  "With the same character": "Ugyanazzal a karakterrel",
1059
1059
  "With you": "Nálad",
1060
+ "With your account, Codex or Claude Code is translating the game's rules into {language}: until then they stay in English.": "A fiókoddal a Codex vagy a Claude Code fordítja le a játék szabályait ({language} nyelvre): addig angolul maradnak.",
1060
1061
  "Within": "Bent",
1061
1062
  "Without a licence, all rights are reserved.": "Licenc nélkül minden jog fenntartva.",
1062
1063
  "World": "Világ",
@@ -885,7 +885,7 @@
885
885
  "The game goes back to how it was then. What happened after it is gone from the story, and so are the {count} saves after it.": "Leikurinn fer aftur í það ástand sem hann var þá í. Það sem gerðist eftir það hverfur úr sögunni, og vistanirnar {count} á eftir því líka.",
886
886
  "The game goes back to how it was then. What happened after it is gone from the story, and so is the save after it.": "Leikurinn fer aftur í það ástand sem hann var þá í. Það sem gerðist eftir það hverfur úr sögunni, og vistunin á eftir því líka.",
887
887
  "The game goes back to how it was then. What happened after it is gone from the story.": "Leikurinn fer aftur í það ástand sem hann var þá í. Það sem gerðist eftir það hverfur úr sögunni.",
888
- "The game goes on in the new chat: write «continua» there.": "Leikurinn heldur áfram í nýja spjallinu: skrifaðu «continua» þar.",
888
+ "The game goes on in the new chat: write «continue» there.": "Leikurinn heldur áfram í nýja spjallinu: skrifaðu «haltu áfram» þar.",
889
889
  "The game master": "Sögumaður",
890
890
  "The game master, {mood}": "Sögumaður, {mood}",
891
891
  "The game master, away": "Sögumaður, fjarverandi",
@@ -1057,6 +1057,7 @@
1057
1057
  "With a new character": "Með nýrri persónu",
1058
1058
  "With the same character": "Með sömu persónu",
1059
1059
  "With you": "Með þér",
1060
+ "With your account, Codex or Claude Code is translating the game's rules into {language}: until then they stay in English.": "Codex eða Claude Code þýðir reglur leiksins á {language} með þínum aðgangi: þangað til haldast þær á ensku.",
1060
1061
  "Within": "Inni í",
1061
1062
  "Without a licence, all rights are reserved.": "Án leyfis áskilinn er allur réttur.",
1062
1063
  "World": "Heimur",
@@ -885,7 +885,7 @@
885
885
  "The game goes back to how it was then. What happened after it is gone from the story, and so are the {count} saves after it.": "Il gioco torna com'era allora. Ciò che è successo dopo sparisce dalla storia, e così i {count} salvataggi dopo.",
886
886
  "The game goes back to how it was then. What happened after it is gone from the story, and so is the save after it.": "Il gioco torna com'era allora. Ciò che è successo dopo sparisce dalla storia, e così il salvataggio dopo.",
887
887
  "The game goes back to how it was then. What happened after it is gone from the story.": "Il gioco torna com'era allora. Ciò che è successo dopo sparisce dalla storia.",
888
- "The game goes on in the new chat: write «continua» there.": "Il gioco prosegue nella chat nuova: scrivi lì «continua».",
888
+ "The game goes on in the new chat: write «continue» there.": "Il gioco prosegue nella chat nuova: scrivi lì «continua».",
889
889
  "The game master": "Il master",
890
890
  "The game master, {mood}": "Il master, {mood}",
891
891
  "The game master, away": "Il master, assente",
@@ -1057,6 +1057,7 @@
1057
1057
  "With a new character": "Con un personaggio nuovo",
1058
1058
  "With the same character": "Con lo stesso personaggio",
1059
1059
  "With you": "Con te",
1060
+ "With your account, Codex or Claude Code is translating the game's rules into {language}: until then they stay in English.": "Con il tuo account, Codex o Claude Code sta traducendo le regole del gioco in {language}: fino ad allora restano in inglese.",
1060
1061
  "Within": "Dentro",
1061
1062
  "Without a licence, all rights are reserved.": "Senza licenza, tutti i diritti sono riservati.",
1062
1063
  "World": "Mondo",
@@ -885,7 +885,7 @@
885
885
  "The game goes back to how it was then. What happened after it is gone from the story, and so are the {count} saves after it.": "ゲームはそのときの状態に戻ります。それ以降に起きたことはストーリーから消え、その後の{count}件のセーブも消えます。",
886
886
  "The game goes back to how it was then. What happened after it is gone from the story, and so is the save after it.": "ゲームはそのときの状態に戻ります。それ以降に起きたことはストーリーから消え、その後のセーブも消えます。",
887
887
  "The game goes back to how it was then. What happened after it is gone from the story.": "ゲームはそのときの状態に戻ります。それ以降に起きたことはストーリーから消えます。",
888
- "The game goes on in the new chat: write «continua» there.": "ゲームは新しいチャットで続きます。そこで「continua」と入力してください。",
888
+ "The game goes on in the new chat: write «continue» there.": "ゲームは新しいチャットで続きます。そこで「続けて」と入力してください。",
889
889
  "The game master": "GM",
890
890
  "The game master, {mood}": "GM({mood})",
891
891
  "The game master, away": "GM(不在)",
@@ -1057,6 +1057,7 @@
1057
1057
  "With a new character": "新しいキャラクターで",
1058
1058
  "With the same character": "同じキャラクターで",
1059
1059
  "With you": "所持中",
1060
+ "With your account, Codex or Claude Code is translating the game's rules into {language}: until then they stay in English.": "お使いのアカウントで、CodexまたはClaude Codeがゲームのルールを{language}に翻訳しています。完了するまでは英語のままです。",
1060
1061
  "Within": "内部",
1061
1062
  "Without a licence, all rights are reserved.": "ライセンスがない場合、すべての権利は留保されます。",
1062
1063
  "World": "ワールド",
@@ -885,7 +885,7 @@
885
885
  "The game goes back to how it was then. What happened after it is gone from the story, and so are the {count} saves after it.": "게임이 그때 상태로 돌아가요. 그 뒤에 일어난 일과 그 뒤의 세이브 {count}개가 이야기에서 사라져요.",
886
886
  "The game goes back to how it was then. What happened after it is gone from the story, and so is the save after it.": "게임이 그때 상태로 돌아가요. 그 뒤에 일어난 일과 그 뒤의 세이브가 이야기에서 사라져요.",
887
887
  "The game goes back to how it was then. What happened after it is gone from the story.": "게임이 그때 상태로 돌아가요. 그 뒤에 일어난 일은 이야기에서 사라져요.",
888
- "The game goes on in the new chat: write «continua» there.": "새 채팅에서 게임이 이어져요. 거기에 «continua»라고 써 주세요.",
888
+ "The game goes on in the new chat: write «continue» there.": "새 채팅에서 게임이 이어져요. 거기에 «계속»라고 써 주세요.",
889
889
  "The game master": "GM",
890
890
  "The game master, {mood}": "GM, {mood}",
891
891
  "The game master, away": "GM, 자리 비움",
@@ -1057,6 +1057,7 @@
1057
1057
  "With a new character": "새 캐릭터로",
1058
1058
  "With the same character": "같은 캐릭터로",
1059
1059
  "With you": "소지 중",
1060
+ "With your account, Codex or Claude Code is translating the game's rules into {language}: until then they stay in English.": "계정으로 Codex 또는 Claude Code가 게임 규칙을 {language}(으)로 번역하고 있어요. 그때까지는 영어로 표시돼요.",
1060
1061
  "Within": "내부",
1061
1062
  "Without a licence, all rights are reserved.": "라이선스가 없으면 모든 권리가 보유돼요.",
1062
1063
  "World": "세계",
@@ -885,7 +885,7 @@
885
885
  "The game goes back to how it was then. What happened after it is gone from the story, and so are the {count} saves after it.": "Spillet går tilbake til slik det var da. Det som skjedde etterpå, forsvinner fra historien, og det samme gjør de {count} lagrede spillene etter det.",
886
886
  "The game goes back to how it was then. What happened after it is gone from the story, and so is the save after it.": "Spillet går tilbake til slik det var da. Det som skjedde etterpå, forsvinner fra historien, og det samme gjør det lagrede spillet etter det.",
887
887
  "The game goes back to how it was then. What happened after it is gone from the story.": "Spillet går tilbake til slik det var da. Det som skjedde etterpå, forsvinner fra historien.",
888
- "The game goes on in the new chat: write «continua» there.": "Spillet fortsetter i den nye chatten: skriv «fortsett» der.",
888
+ "The game goes on in the new chat: write «continue» there.": "Spillet fortsetter i den nye chatten: skriv «fortsett» der.",
889
889
  "The game master": "Spilleder",
890
890
  "The game master, {mood}": "Spilleder, {mood}",
891
891
  "The game master, away": "Spilleder, borte",
@@ -1057,6 +1057,7 @@
1057
1057
  "With a new character": "Med en ny karakter",
1058
1058
  "With the same character": "Med samme karakter",
1059
1059
  "With you": "Med deg",
1060
+ "With your account, Codex or Claude Code is translating the game's rules into {language}: until then they stay in English.": "Med kontoen din oversetter Codex eller Claude Code spillreglene til {language}. Frem til det er ferdig forblir de på engelsk.",
1060
1061
  "Within": "Innenfor",
1061
1062
  "Without a licence, all rights are reserved.": "Uten lisens er alle rettigheter forbeholdt.",
1062
1063
  "World": "Verden",
@@ -885,7 +885,7 @@
885
885
  "The game goes back to how it was then. What happened after it is gone from the story, and so are the {count} saves after it.": "Het spel gaat terug naar hoe het toen was. Wat daarna gebeurde verdwijnt uit het verhaal, en de {count} opgeslagen spellen erna ook.",
886
886
  "The game goes back to how it was then. What happened after it is gone from the story, and so is the save after it.": "Het spel gaat terug naar hoe het toen was. Wat daarna gebeurde verdwijnt uit het verhaal, en het opgeslagen spel erna ook.",
887
887
  "The game goes back to how it was then. What happened after it is gone from the story.": "Het spel gaat terug naar hoe het toen was. Wat daarna gebeurde verdwijnt uit het verhaal.",
888
- "The game goes on in the new chat: write «continua» there.": "Het spel gaat verder in de nieuwe chat: schrijf daar «continua».",
888
+ "The game goes on in the new chat: write «continue» there.": "Het spel gaat verder in de nieuwe chat: schrijf daar «verder».",
889
889
  "The game master": "De spelleider",
890
890
  "The game master, {mood}": "De spelleider, {mood}",
891
891
  "The game master, away": "De spelleider, afwezig",
@@ -1057,6 +1057,7 @@
1057
1057
  "With a new character": "Met een nieuw personage",
1058
1058
  "With the same character": "Met hetzelfde personage",
1059
1059
  "With you": "Bij je",
1060
+ "With your account, Codex or Claude Code is translating the game's rules into {language}: until then they stay in English.": "Met jouw account vertaalt Codex of Claude Code de spelregels naar het {language}: tot die tijd blijven ze in het Engels.",
1060
1061
  "Within": "Binnen",
1061
1062
  "Without a licence, all rights are reserved.": "Zonder licentie zijn alle rechten voorbehouden.",
1062
1063
  "World": "Wereld",
@@ -885,7 +885,7 @@
885
885
  "The game goes back to how it was then. What happened after it is gone from the story, and so are the {count} saves after it.": "Gra wraca do stanu z tamtej chwili. To, co wydarzyło się później, znika z historii, a razem z tym zapisy po nim. Liczba zapisów: {count}.",
886
886
  "The game goes back to how it was then. What happened after it is gone from the story, and so is the save after it.": "Gra wraca do stanu z tamtej chwili. To, co wydarzyło się później, znika z historii, a razem z tym zapis po nim.",
887
887
  "The game goes back to how it was then. What happened after it is gone from the story.": "Gra wraca do stanu z tamtej chwili. To, co wydarzyło się później, znika z historii.",
888
- "The game goes on in the new chat: write «continua» there.": "Gra toczy się dalej w nowym czacie: napisz tam «continua».",
888
+ "The game goes on in the new chat: write «continue» there.": "Gra toczy się dalej w nowym czacie: napisz tam «kontynuuj».",
889
889
  "The game master": "Mistrz Gry",
890
890
  "The game master, {mood}": "Mistrz Gry, {mood}",
891
891
  "The game master, away": "Mistrz Gry, nieobecny",
@@ -1057,6 +1057,7 @@
1057
1057
  "With a new character": "Z nową postacią",
1058
1058
  "With the same character": "Z tą samą postacią",
1059
1059
  "With you": "Przy sobie",
1060
+ "With your account, Codex or Claude Code is translating the game's rules into {language}: until then they stay in English.": "Za pomocą Twojego konta Codex lub Claude Code tłumaczy zasady gry na język {language}. Do tego czasu pozostają po angielsku.",
1060
1061
  "Within": "Wewnątrz",
1061
1062
  "Without a licence, all rights are reserved.": "Bez licencji wszelkie prawa są zastrzeżone.",
1062
1063
  "World": "Świat",
@@ -885,7 +885,7 @@
885
885
  "The game goes back to how it was then. What happened after it is gone from the story, and so are the {count} saves after it.": "O jogo volta a como era naquele momento. O que aconteceu depois sai da história, e os {count} jogos salvos seguintes também.",
886
886
  "The game goes back to how it was then. What happened after it is gone from the story, and so is the save after it.": "O jogo volta a como era naquele momento. O que aconteceu depois sai da história, e o jogo salvo seguinte também.",
887
887
  "The game goes back to how it was then. What happened after it is gone from the story.": "O jogo volta a como era naquele momento. O que aconteceu depois sai da história.",
888
- "The game goes on in the new chat: write «continua» there.": "O jogo continua no novo chat: escreva «continuar» lá.",
888
+ "The game goes on in the new chat: write «continue» there.": "O jogo continua no novo chat: escreva «continuar» lá.",
889
889
  "The game master": "O mestre",
890
890
  "The game master, {mood}": "O mestre, {mood}",
891
891
  "The game master, away": "O mestre, ausente",
@@ -1057,6 +1057,7 @@
1057
1057
  "With a new character": "Com um novo personagem",
1058
1058
  "With the same character": "Com o mesmo personagem",
1059
1059
  "With you": "Com você",
1060
+ "With your account, Codex or Claude Code is translating the game's rules into {language}: until then they stay in English.": "Com a sua conta, o Codex ou o Claude Code está traduzindo as regras do jogo para {language}: até lá, elas continuam em inglês.",
1060
1061
  "Within": "Dentro",
1061
1062
  "Without a licence, all rights are reserved.": "Sem licença, todos os direitos são reservados.",
1062
1063
  "World": "Mundo",
@@ -885,7 +885,7 @@
885
885
  "The game goes back to how it was then. What happened after it is gone from the story, and so are the {count} saves after it.": "Jocul revine la cum era atunci. Ce s-a întâmplat după aceea dispare din poveste, la fel și cele {count} salvări de după ea.",
886
886
  "The game goes back to how it was then. What happened after it is gone from the story, and so is the save after it.": "Jocul revine la cum era atunci. Ce s-a întâmplat după aceea dispare din poveste, la fel și salvarea de după ea.",
887
887
  "The game goes back to how it was then. What happened after it is gone from the story.": "Jocul revine la cum era atunci. Ce s-a întâmplat după aceea dispare din poveste.",
888
- "The game goes on in the new chat: write «continua» there.": "Jocul continuă în chatul nou: scrie acolo «continua».",
888
+ "The game goes on in the new chat: write «continue» there.": "Jocul continuă în chatul nou: scrie acolo «continuă».",
889
889
  "The game master": "Maestrul de joc",
890
890
  "The game master, {mood}": "Maestrul de joc, {mood}",
891
891
  "The game master, away": "Maestrul de joc, plecat",
@@ -1057,6 +1057,7 @@
1057
1057
  "With a new character": "Cu un personaj nou",
1058
1058
  "With the same character": "Cu același personaj",
1059
1059
  "With you": "La tine",
1060
+ "With your account, Codex or Claude Code is translating the game's rules into {language}: until then they stay in English.": "Cu contul tău, Codex sau Claude Code traduce regulile jocului în {language}: până atunci rămân în engleză.",
1060
1061
  "Within": "Înăuntru",
1061
1062
  "Without a licence, all rights are reserved.": "Fără licență, toate drepturile sunt rezervate.",
1062
1063
  "World": "Lume",
@@ -885,7 +885,7 @@
885
885
  "The game goes back to how it was then. What happened after it is gone from the story, and so are the {count} saves after it.": "Игра вернётся к тому моменту. Всё, что случилось после, исчезнет из истории, как и сохранения после него (их {count}).",
886
886
  "The game goes back to how it was then. What happened after it is gone from the story, and so is the save after it.": "Игра вернётся к тому моменту. Всё, что случилось после, исчезнет из истории, как и следующее за ним сохранение.",
887
887
  "The game goes back to how it was then. What happened after it is gone from the story.": "Игра вернётся к тому моменту. Всё, что случилось после, исчезнет из истории.",
888
- "The game goes on in the new chat: write «continua» there.": "Игра продолжится в новом чате: напиши там «продолжай».",
888
+ "The game goes on in the new chat: write «continue» there.": "Игра продолжится в новом чате: напиши там «продолжай».",
889
889
  "The game master": "Мастер",
890
890
  "The game master, {mood}": "Мастер: {mood}",
891
891
  "The game master, away": "Мастер отсутствует",
@@ -1057,6 +1057,7 @@
1057
1057
  "With a new character": "С новым персонажем",
1058
1058
  "With the same character": "С тем же персонажем",
1059
1059
  "With you": "При тебе",
1060
+ "With your account, Codex or Claude Code is translating the game's rules into {language}: until then they stay in English.": "С твоего аккаунта Codex или Claude Code переводит правила игры на {language}: до тех пор они остаются на английском.",
1060
1061
  "Within": "Внутри",
1061
1062
  "Without a licence, all rights are reserved.": "Без лицензии все права защищены.",
1062
1063
  "World": "Мир",
@@ -885,7 +885,7 @@
885
885
  "The game goes back to how it was then. What happened after it is gone from the story, and so are the {count} saves after it.": "Spelet går tillbaka till hur det var då. Det som hände efter försvinner ur berättelsen, och de {count} sparade spelen efter det också.",
886
886
  "The game goes back to how it was then. What happened after it is gone from the story, and so is the save after it.": "Spelet går tillbaka till hur det var då. Det som hände efter försvinner ur berättelsen, och det sparade spelet efter det också.",
887
887
  "The game goes back to how it was then. What happened after it is gone from the story.": "Spelet går tillbaka till hur det var då. Det som hände efter försvinner ur berättelsen.",
888
- "The game goes on in the new chat: write «continua» there.": "Spelet fortsätter i den nya chatten: skriv «continua» där.",
888
+ "The game goes on in the new chat: write «continue» there.": "Spelet fortsätter i den nya chatten: skriv «fortsätt» där.",
889
889
  "The game master": "Spelledaren",
890
890
  "The game master, {mood}": "Spelledaren, {mood}",
891
891
  "The game master, away": "Spelledaren, borta",
@@ -1057,6 +1057,7 @@
1057
1057
  "With a new character": "Med en ny rollperson",
1058
1058
  "With the same character": "Med samma rollperson",
1059
1059
  "With you": "Med dig",
1060
+ "With your account, Codex or Claude Code is translating the game's rules into {language}: until then they stay in English.": "Med ditt konto översätter Codex eller Claude Code spelets regler till {language}. Tills det är klart förblir de på engelska.",
1060
1061
  "Within": "Inuti",
1061
1062
  "Without a licence, all rights are reserved.": "Utan licens förbehålls alla rättigheter.",
1062
1063
  "World": "Värld",
@@ -885,7 +885,7 @@
885
885
  "The game goes back to how it was then. What happened after it is gone from the story, and so are the {count} saves after it.": "Oyun o zamanki hâline döner. Sonrasında olanlar hikâyeden silinir, ondan sonraki {count} kayıt da silinir.",
886
886
  "The game goes back to how it was then. What happened after it is gone from the story, and so is the save after it.": "Oyun o zamanki hâline döner. Sonrasında olanlar hikâyeden silinir, ondan sonraki kayıt da silinir.",
887
887
  "The game goes back to how it was then. What happened after it is gone from the story.": "Oyun o zamanki hâline döner. Sonrasında olanlar hikâyeden silinir.",
888
- "The game goes on in the new chat: write «continua» there.": "Oyun yeni sohbette devam eder: orada «continua» yaz.",
888
+ "The game goes on in the new chat: write «continue» there.": "Oyun yeni sohbette devam eder: orada «devam et» yaz.",
889
889
  "The game master": "Oyun yöneticisi",
890
890
  "The game master, {mood}": "Oyun yöneticisi, {mood}",
891
891
  "The game master, away": "Oyun yöneticisi, uzakta",
@@ -1057,6 +1057,7 @@
1057
1057
  "With a new character": "Yeni bir karakterle",
1058
1058
  "With the same character": "Aynı karakterle",
1059
1059
  "With you": "Yanında",
1060
+ "With your account, Codex or Claude Code is translating the game's rules into {language}: until then they stay in English.": "Hesabınla Codex veya Claude Code, oyunun kurallarını {language} diline çeviriyor: o zamana kadar kurallar İngilizce kalır.",
1060
1061
  "Within": "İçinde",
1061
1062
  "Without a licence, all rights are reserved.": "Lisans yoksa tüm haklar saklıdır.",
1062
1063
  "World": "Dünya",
@@ -885,7 +885,7 @@
885
885
  "The game goes back to how it was then. What happened after it is gone from the story, and so are the {count} saves after it.": "Гра повернеться до того стану, який був тоді. Усе, що сталося після цього, зникне з історії, так само як і збереження після нього (кількість: {count}).",
886
886
  "The game goes back to how it was then. What happened after it is gone from the story, and so is the save after it.": "Гра повернеться до того стану, який був тоді. Усе, що сталося після цього, зникне з історії, так само як і збереження після нього.",
887
887
  "The game goes back to how it was then. What happened after it is gone from the story.": "Гра повернеться до того стану, який був тоді. Усе, що сталося після цього, зникне з історії.",
888
- "The game goes on in the new chat: write «continua» there.": "Гра триває в новому чаті: напиши там «continua».",
888
+ "The game goes on in the new chat: write «continue» there.": "Гра триває в новому чаті: напиши там «продовжуй».",
889
889
  "The game master": "Майстер",
890
890
  "The game master, {mood}": "Майстер, {mood}",
891
891
  "The game master, away": "Майстер, відсутній",
@@ -1057,6 +1057,7 @@
1057
1057
  "With a new character": "З новим персонажем",
1058
1058
  "With the same character": "З тим самим персонажем",
1059
1059
  "With you": "З тобою",
1060
+ "With your account, Codex or Claude Code is translating the game's rules into {language}: until then they stay in English.": "З твого акаунта Codex або Claude Code перекладає правила гри мовою {language}: до того часу вони залишаються англійською.",
1060
1061
  "Within": "Усередині",
1061
1062
  "Without a licence, all rights are reserved.": "Без ліцензії всі права захищені.",
1062
1063
  "World": "Світ",
@@ -885,7 +885,7 @@
885
885
  "The game goes back to how it was then. What happened after it is gone from the story, and so are the {count} saves after it.": "游戏会回到当时的样子。之后发生的事会从故事中消失,之后的 {count} 个存档也一样。",
886
886
  "The game goes back to how it was then. What happened after it is gone from the story, and so is the save after it.": "游戏会回到当时的样子。之后发生的事会从故事中消失,之后的存档也一样。",
887
887
  "The game goes back to how it was then. What happened after it is gone from the story.": "游戏会回到当时的样子。之后发生的事会从故事中消失。",
888
- "The game goes on in the new chat: write «continua» there.": "游戏将在新聊天中继续:请在那里输入“continua”。",
888
+ "The game goes on in the new chat: write «continue» there.": "游戏将在新聊天中继续:请在那里输入“继续”。",
889
889
  "The game master": "主持人",
890
890
  "The game master, {mood}": "主持人,{mood}",
891
891
  "The game master, away": "主持人,离开中",
@@ -1057,6 +1057,7 @@
1057
1057
  "With a new character": "使用新角色",
1058
1058
  "With the same character": "沿用同一角色",
1059
1059
  "With you": "随身携带",
1060
+ "With your account, Codex or Claude Code is translating the game's rules into {language}: until then they stay in English.": "Codex 或 Claude Code 正在通过你的账号将游戏规则翻译成{language},在此之前规则仍为英文。",
1060
1061
  "Within": "内部",
1061
1062
  "Without a licence, all rights are reserved.": "未附许可证时,保留所有权利。",
1062
1063
  "World": "世界",
@@ -69,7 +69,7 @@ export function FollowedQuests({ version, campaign, beside = false }) {
69
69
  export function QuestEndings({ version, campaign, beside = false }) {
70
70
  const journal = useJournal(version);
71
71
  const [followed] = useFollowed(campaign, journal.read?.quests);
72
- const before = useRef();
72
+ const before = useRef(undefined);
73
73
  const [endings, setEndings] = useState([]);
74
74
  const [told, setTold] = useState("");
75
75
  useEffect(() => {
@@ -27,10 +27,14 @@ export function importNotices(importing) {
27
27
  const count = importing.done !== undefined && importing.of !== undefined && importing.of > 0 ? { count: { done: importing.done, of: importing.of } } : {};
28
28
  return [{ kind: importing.step === "stopped" ? "problem" : "info", text: texts[importing.step], key: "import", ...count }];
29
29
  }
30
- /** What the page has to say of the game: the campaign's files that do not read, which the master fixes; the page being translated, or out of reach (D-406). */
31
- export function gameNotices(problems) {
30
+ /**
31
+ * What the page has to say of the game: the campaign's files that do not read, which the master fixes; the page being translated, or out of reach (D-406); the
32
+ * game system's pages being translated (D-539).
33
+ */
34
+ export function gameNotices(problems, textsTranslating) {
32
35
  const translation = pageTranslation();
33
36
  const language = translation === undefined ? "" : languageName(translation.language, pageLocale()) ?? translation.language;
37
+ const textsLanguage = textsTranslating === undefined ? "" : languageName(textsTranslating, pageLocale()) ?? textsTranslating;
34
38
  return [
35
39
  ...(problems === undefined || problems === 0
36
40
  ? []
@@ -40,5 +44,8 @@ export function gameNotices(problems) {
40
44
  }]),
41
45
  ...(translation?.state === "translating" ? [{ kind: "info", text: t("This computer is translating the page into {language}: until then it stays in English.", { language }) }] : []),
42
46
  ...(translation?.state === "unable" ? [{ kind: "info", text: t("The page stays in English: Codex or Claude Code would translate it into {language} on this computer.", { language }) }] : []),
47
+ ...(textsTranslating !== undefined
48
+ ? [{ kind: "info", text: t("With your account, Codex or Claude Code is translating the game's rules into {language}: until then they stay in English.", { language: textsLanguage }) }]
49
+ : []),
43
50
  ];
44
51
  }
@@ -58,11 +58,11 @@ export function PackagesPage({ version, tab }) {
58
58
  const [asking, setAsking] = useState();
59
59
  const reads = useRef(0);
60
60
  const catalogReads = useRef(0);
61
- const before = useRef();
61
+ const before = useRef(undefined);
62
62
  const mine = useRef(0);
63
63
  // The rows here before the last addition: those not among them are new.
64
- const known = useRef();
65
- const seeing = useRef();
64
+ const known = useRef(undefined);
65
+ const seeing = useRef(undefined);
66
66
  const shownTab = tab === "add" || tab === "library" ? tab : "installed";
67
67
  const [library, setLibrary] = useState();
68
68
  const [libraryProblem, setLibraryProblem] = useState();
@@ -314,7 +314,7 @@ function breakablePath(path) {
314
314
  function LibraryField({ state, onAdd }) {
315
315
  const [path, setPath] = useState("");
316
316
  const [empty, setEmpty] = useState(false);
317
- const sent = useRef();
317
+ const sent = useRef(undefined);
318
318
  useEffect(() => {
319
319
  if (state.said?.problem === false && sent.current === path) {
320
320
  setPath("");
@@ -356,7 +356,7 @@ function AddField({ state, onAdd, onFile }) {
356
356
  const [source, setSource] = useState("");
357
357
  const [empty, setEmpty] = useState(false);
358
358
  const picker = useRef(null);
359
- const sent = useRef();
359
+ const sent = useRef(undefined);
360
360
  // Added: the field is ready for the next one.
361
361
  useEffect(() => {
362
362
  if (state.said?.problem === false && sent.current === source) {
@@ -211,7 +211,7 @@ function Marks({ track, place, change }) {
211
211
  }
212
212
  /** A figure of an extension, given what it drew before once what it draws changes, for it to move from one to the other. */
213
213
  export function Figure({ owner, name, part }) {
214
- const looks = useRef();
214
+ const looks = useRef(undefined);
215
215
  const said = JSON.stringify([part, owner.data]);
216
216
  // The data it drew before, once what it draws changes: in a card of a roll that is once the dice land, as the card changes only then.
217
217
  if (looks.current?.said !== said) {
@@ -45,7 +45,7 @@ export function SavesView({ version, campaign, several = false }) {
45
45
  read();
46
46
  };
47
47
  const points = saves?.reset ?? [];
48
- return (_jsxs("section", { class: "saves", "aria-labelledby": "saves-title", children: [_jsx(PageHead, { section: "saves", id: "saves-title" }), saves !== undefined && (_jsxs("p", { class: "saves-lead", children: [_jsxs("strong", { children: [valueLabel(saves.mode), ":"] }), " ", modeText(saves.mode, several) ?? saves.rule, " ", _jsx("a", { href: sectionAddress("settings"), children: t("Change it in Settings.") })] })), problem !== undefined && _jsx("p", { class: "saves-said problem", role: "alert", children: problem }), said !== undefined && _jsx("p", { ref: saying, tabIndex: -1, class: said.problem ? "saves-said problem" : "saves-said", role: "status", children: said.text }), saves?.wentBack !== undefined && (_jsx(NewChat, { back: wentBackTitle(saves.wentBack, saves.saves), busy: busy, onConfirm: () => void send({ action: "new chat" }, `✓ ${t("The game goes on in the new chat: write «continua» there.")}`) })), saves?.make === true && _jsx(SaveNow, { busy: busy, onSave: (label) => void send({ action: "make", ...(label === "" ? {} : { label }) }, `✓ ${t("Saved.")}`) }), saves !== undefined && saves.saves.length === 0 && _jsx("p", { class: "saves-none", children: t("No saves yet: the game saves its start when play begins, then at the end of each scene.") }), saves !== undefined && saves.saves.length > 0 && (_jsx("ol", { class: "save-cards", children: saves.saves.map((save, index) => (_jsxs("li", { class: "save-card", children: [_jsx(SaveFace, { save: save }), save.load && (_jsx("button", { type: "button", class: "button", "aria-label": t("Go back here: {save}", { save: saveTitle(save) }), disabled: busy, onClick: () => setAsking(save), children: t("Go back here") })), saves.mode === "checkpoint" && index === 0 && !save.load && save.point === undefined && (_jsx("p", { class: "save-note", children: several ? t("Back here if they all die, or if the table chooses it when one dies") : t("Back here if your character dies") }))] }, save.number))) })), points.length > 0 && (_jsxs("section", { class: "saves-over", "aria-labelledby": "saves-over-title", children: [_jsx("h3", { id: "saves-over-title", children: t("Start over") }), _jsx("p", { children: points.length > 1
48
+ return (_jsxs("section", { class: "saves", "aria-labelledby": "saves-title", children: [_jsx(PageHead, { section: "saves", id: "saves-title" }), saves !== undefined && (_jsxs("p", { class: "saves-lead", children: [_jsxs("strong", { children: [valueLabel(saves.mode), ":"] }), " ", modeText(saves.mode, several) ?? saves.rule, " ", _jsx("a", { href: sectionAddress("settings"), children: t("Change it in Settings.") })] })), problem !== undefined && _jsx("p", { class: "saves-said problem", role: "alert", children: problem }), said !== undefined && _jsx("p", { ref: saying, tabIndex: -1, class: said.problem ? "saves-said problem" : "saves-said", role: "status", children: said.text }), saves?.wentBack !== undefined && (_jsx(NewChat, { back: wentBackTitle(saves.wentBack, saves.saves), busy: busy, onConfirm: () => void send({ action: "new chat" }, `✓ ${t("The game goes on in the new chat: write «continue» there.")}`) })), saves?.make === true && _jsx(SaveNow, { busy: busy, onSave: (label) => void send({ action: "make", ...(label === "" ? {} : { label }) }, `✓ ${t("Saved.")}`) }), saves !== undefined && saves.saves.length === 0 && _jsx("p", { class: "saves-none", children: t("No saves yet: the game saves its start when play begins, then at the end of each scene.") }), saves !== undefined && saves.saves.length > 0 && (_jsx("ol", { class: "save-cards", children: saves.saves.map((save, index) => (_jsxs("li", { class: "save-card", children: [_jsx(SaveFace, { save: save }), save.load && (_jsx("button", { type: "button", class: "button", "aria-label": t("Go back here: {save}", { save: saveTitle(save) }), disabled: busy, onClick: () => setAsking(save), children: t("Go back here") })), saves.mode === "checkpoint" && index === 0 && !save.load && save.point === undefined && (_jsx("p", { class: "save-note", children: several ? t("Back here if they all die, or if the table chooses it when one dies") : t("Back here if your character dies") }))] }, save.number))) })), points.length > 0 && (_jsxs("section", { class: "saves-over", "aria-labelledby": "saves-over-title", children: [_jsx("h3", { id: "saves-over-title", children: t("Start over") }), _jsx("p", { children: points.length > 1
49
49
  ? t("Back to the campaign's start: everything that happened since is gone from the story, with the same character or a new one.")
50
50
  : t("Back to the campaign's start: everything that happened since is gone from the story.") }), _jsx("button", { type: "button", class: "button danger", disabled: busy, onClick: () => setAsking("reset"), children: t("Start the campaign over…") })] })), asking !== undefined && asking !== "reset" && saves !== undefined && (_jsx(GoBack, { save: asking, later: saves.saves.filter((save) => save.number > asking.number).length, busy: busy, onClose: () => setAsking(undefined), onConfirm: () => void send({ action: "load", save: asking.number }, t("Back to {save}.", { save: saveTitle(asking) })) })), asking === "reset" && saves !== undefined && points.length > 0 && (_jsx(StartOver, { saves: saves.saves, points: points, campaign: campaign, busy: busy, onClose: () => setAsking(undefined), onConfirm: (name, to) => void send({ action: "reset", campaign: name, to }, to === "session zero" ? t("The campaign starts over, your character to make again.") : t("The campaign starts over.")) }))] }));
51
51
  }
@@ -80,7 +80,7 @@ function offBy(setting, settings) {
80
80
  function SettingRow({ setting, off, several = false, onChange }) {
81
81
  // The value just picked shows at once, until the setting is read again.
82
82
  const [picked, setPicked] = useState();
83
- const resting = useRef();
83
+ const resting = useRef(undefined);
84
84
  const said = useSaid();
85
85
  const value = picked ?? setting.value;
86
86
  const id = `setting-${idOf(setting.name)}`;
@@ -168,7 +168,7 @@ function choiceLabel(setting, choice, capital = true) {
168
168
  /** What a change said, in its row: saved for a few seconds, what went wrong until the next change. */
169
169
  function useSaid() {
170
170
  const [now, setNow] = useState();
171
- const timer = useRef();
171
+ const timer = useRef(undefined);
172
172
  useEffect(() => () => clearTimeout(timer.current), []);
173
173
  const show = (problem) => {
174
174
  clearTimeout(timer.current);
@@ -60,7 +60,7 @@ export function SetupView({ setup }) {
60
60
  */
61
61
  function Question({ question, count, left, focus, onBack, onNext, onLeave, onProblem }) {
62
62
  const [picked, setPicked] = useState();
63
- const resting = useRef();
63
+ const resting = useRef(undefined);
64
64
  const heading = useRef(null);
65
65
  const value = picked ?? question.value;
66
66
  const title = question.question === undefined ? settingLabel(question.name) : t(question.question);
@@ -28,6 +28,8 @@ export const shippedLanguages = [
28
28
  ];
29
29
  // Codes the page reads as another it ships: Norwegian as Bokmål.
30
30
  const aliases = { no: "nb" };
31
+ // Chinese in traditional characters, whose base zh is the simplified.
32
+ const traditionalChinese = /^zh-(hant|tw|hk|mo)(-|$)/;
31
33
  // The languages written from right to left, shipped or translated on the fly: the page mirrors for them.
32
34
  const rightToLeft = ["ar", "he", "fa", "ur", "ps", "sd", "ug", "yi", "dv", "ckb"];
33
35
  let phrases = {};
@@ -42,10 +44,13 @@ let flying;
42
44
  const lacked = new Set();
43
45
  const asked = new Set();
44
46
  let asking;
45
- /** The language the page writes in for a campaign's code: its own when shipped, else its base language's (pt-BR, pt), else English. */
47
+ /**
48
+ * The language the page writes in for a campaign's code: its own when shipped, else its base language's when written in the same script (pt-BR, pt; never
49
+ * zh-HK, zh, which is simplified), else English.
50
+ */
46
51
  export function pageLanguageOf(code) {
47
52
  const asked = (code ?? "en").toLowerCase();
48
- const base = asked.split("-")[0];
53
+ const base = traditionalChinese.test(asked) ? "" : asked.split("-")[0];
49
54
  return [asked, base, aliases[base] ?? ""].find((one) => shippedLanguages.includes(one)) ?? "en";
50
55
  }
51
56
  /** The browser's language, where the package ships it: the page's until the setup sets the campaign's (playtest 01); none for English or another. */
@@ -92,7 +92,7 @@ function documentLabel(document) {
92
92
  */
93
93
  function Browse({ open, explicit, back, backLabel, children }) {
94
94
  const box = useRef(null);
95
- const last = useRef();
95
+ const last = useRef(undefined);
96
96
  useEffect(() => {
97
97
  if (explicit) {
98
98
  last.current = open;
@@ -144,7 +144,7 @@ function MapCard({ map, full, part, layout, lead, chosen, focus, onChoose, onGo,
144
144
  return { ways: wayShapes({ ...full, places, roads }), spots: places.filter((place) => place.x !== undefined && place.y !== undefined && place.radius === undefined) };
145
145
  }, [part, full]);
146
146
  const pointers = useRef(new Map());
147
- const drag = useRef();
147
+ const drag = useRef(undefined);
148
148
  const narrow = size !== undefined && size.width < 600;
149
149
  // The map's size, as the window changes it.
150
150
  useEffect(() => {
@@ -1,9 +1,8 @@
1
- /** Raw pixels: one, three or four bytes for each, row after row. */
1
+ /** Raw pixels: four bytes for each, red, green, blue and alpha, row after row. */
2
2
  export interface Pixels {
3
- data: Uint8Array | Uint8ClampedArray;
3
+ data: Uint8Array;
4
4
  width: number;
5
5
  height: number;
6
- channels: 1 | 3 | 4;
7
6
  }
8
7
  /** The pixels as a PNG, made smaller when their longer side passes `longest`. */
9
8
  export declare function pngOf(pixels: Pixels, longest: number): Uint8Array;
@@ -1,9 +1,9 @@
1
- // Pixels as a PNG file, for the pictures a PDF holds as raw pixels (D-489 (8)): RGB or RGBA, at most a size on its longer side.
1
+ // Pixels as a PNG file, for the pictures a PDF holds as raw pixels (D-489 (8)): RGBA, at most a size on its longer side.
2
2
  import { zlibSync } from "fflate";
3
+ const channels = 4;
3
4
  /** The pixels as a PNG, made smaller when their longer side passes `longest`. */
4
5
  export function pngOf(pixels, longest) {
5
- const { data, width, height, channels } = smaller(pixels, longest);
6
- const kind = channels === 4 ? 6 : channels === 3 ? 2 : 0;
6
+ const { data, width, height } = smaller(pixels, longest);
7
7
  const row = width * channels;
8
8
  const raw = new Uint8Array((row + 1) * height);
9
9
  for (let y = 0; y < height; y++) {
@@ -13,7 +13,8 @@ export function pngOf(pixels, longest) {
13
13
  const view = new DataView(header.buffer);
14
14
  view.setUint32(0, width);
15
15
  view.setUint32(4, height);
16
- header.set([8, kind, 0, 0, 0], 8);
16
+ // Eight bits a channel, colour type 6: RGBA.
17
+ header.set([8, 6, 0, 0, 0], 8);
17
18
  return joined([new Uint8Array([137, 80, 78, 71, 13, 10, 26, 10]), chunk("IHDR", header), chunk("IDAT", zlibSync(raw, { level: 6 })), chunk("IEND", new Uint8Array(0))]);
18
19
  }
19
20
  // The pixels shrunk by a whole step, each new one the mean of the square it covers, until the longer side fits.
@@ -24,7 +25,6 @@ function smaller(pixels, longest) {
24
25
  }
25
26
  const width = Math.floor(pixels.width / step);
26
27
  const height = Math.floor(pixels.height / step);
27
- const { channels } = pixels;
28
28
  const data = new Uint8Array(width * height * channels);
29
29
  for (let y = 0; y < height; y++) {
30
30
  for (let x = 0; x < width; x++) {
@@ -39,7 +39,7 @@ function smaller(pixels, longest) {
39
39
  }
40
40
  }
41
41
  }
42
- return { data, width, height, channels };
42
+ return { data, width, height };
43
43
  }
44
44
  function chunk(type, body) {
45
45
  const out = new Uint8Array(body.length + 12);