Skip to content

fix(i18n): add Memo CardSets to Fallacies CardSetLocalization (#358) - #381

Merged
jsboige merged 1 commit into
masterfrom
fix/memo-i18n-358
May 28, 2026
Merged

fix(i18n): add Memo CardSets to Fallacies CardSetLocalization (#358)#381
jsboige merged 1 commit into
masterfrom
fix/memo-i18n-358

Conversation

@jsboige

@jsboige jsboige commented May 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds KnownCardSets.Memo and KnownCardSets.MemoPrintAndPlay to the existing Fallacies entry in LocalizationConfig.CardSetLocalizations. Resolves #358.

Root cause

MEMO templates (Cards/Memo/Argumentum_Memo_Face_fr.json + Argumentum_Memo_Back_fr.json) use the same placeholders as Fallacies ({{text_fr}}, {{desc_fr}}, {{Famille}}, {{Sous-Famille}}, {{Soussousfamille}}) and the same dataset (KnownDataSets.FallaciesTaxonomy). Without a CardSetLocalization entry mapping _fr_en/_ru/_pt/_es/_ar/_fa/_zh, the template.Replace() step in the LocalizationConfig pipeline never runs for Memo → output stays in FR.

Same class of bug as #216 (Fallacies multilingual content was broken until PR #347 in April 2026).

Minimal change

Appended Memo + MemoPrintAndPlay to the existing Fallacies CardSetNames list — no new entry needed because mappings are identical (same dataset, same placeholders, same hierarchy fields). Memo Back template does not use tagline_fr, so the existing BackFieldConversions are a no-op for Memo (harmless).

                     CardSetNames = new List<string>(new []
                     {
                         KnownCardSets.Fallacies,
                         KnownCardSets.Fallacies2,
                         KnownCardSets.Fallacies3,
                         KnownCardSets.FallaciesPrintAndPlay,
                         KnownCardSets.FallaciesWeb,
-                        KnownCardSets.FallaciesWebThumbnails
+                        KnownCardSets.FallaciesWebThumbnails,
+                        KnownCardSets.Memo,
+                        KnownCardSets.MemoPrintAndPlay
                     }),

Acceptance (from #358)

Test plan

Pipeline regen + visual diff to be batched with PRs #353 v2 + #355 to share one full pipeline run (cf. #358 priority note).

🤖 Generated with Claude Code

Memo + MemoPrintAndPlay reuse the FallaciesTaxonomy dataset and the same
{{text_fr}}, {{desc_fr}}, {{Famille}}, {{Sous-Famille}}, {{Soussousfamille}}
template placeholders. Without entries in CardSetLocalizations, the FR
placeholders are never swapped at runtime → MEMO pages on EN/RU/PT/AR/ES/ZH/FA
PDFs render FR content.

Same root cause as #216 (Fallacies multilingual content was broken until
PR #347 in April 2026). Fix: append KnownCardSets.Memo and
KnownCardSets.MemoPrintAndPlay to the existing Fallacies CardSetLocalization
entry — same dataset, same placeholders, same conversions.

Acceptance criteria (#358):
- MEMO Tarot + MEMO Print&Play render translated content on EN/RU/PT ✓ (by config)
- MEMO renders correctly on AR/ES/ZH/FA ✓ (already in conversion lists from #361)
- PDF visual regression test (#212) is tracked separately

Pipeline regen required to produce the corrected PDFs.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MEMO cards display French content on EN/RU/PT/AR/ES/ZH/FA PDFs (missing CardSetLocalization)

1 participant