feat(i18n): add AR/FA/ZH MindMap support for 8-language scope (#134) - #454
Conversation
…8-lang scope) - Add AR/FA/ZH properties + CsvHelper mappings to Fallacy.cs entity (FamilyAr/Fa/Zh, SubfamilyAr/Fa/Zh, TextAr/Fa/Zh, DescAr/Fa/Zh, ExampleAr/Fa/Zh, LinkAr/Fa/Zh) - Extend MindMapLocalization StaticConversions in AssetConverterConfig.cs to cover AR/FA/ZH for text, desc, example, link, and family hierarchy - Add ES/AR/FA/ZH to FallacyMindMapCreatorConfig Translations list - Add ES/AR/FA/ZH to VirtueMindMapCreatorConfig Translations list - Update TaxonomyValidationTests _supportedLanguages from 4 to 8 CSV data for AR/FA/ZH has been 100% complete since PRs #432/#434/#443. CardSets (PDFs) already support 8 languages via FrontFieldConversions. This change extends MindMap SVG generation to the same 8-language scope. Build: 0 errors, 15 warnings (pre-existing) Tests: 149 pass, 6 fail (pre-existing, unrelated), 5 skip Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
[NanoClaw] Clean mechanical i18n extension — AR/FA/ZH properties (21 new Mindmap creator configs also pick up No security concerns (pure property/mapping additions, no secrets or user input). LGTM. |
|
[NanoClaw] Bug — missing Link fallback properties for AR/FA/ZH The 3 new languages are consistently added across entity, NHibernate mappings, StaticConversions, and both mindmap configs — the mechanical spread looks correct. However, the Link row in Minor — column name casing consistency The NHibernate column names for Family/Subfamily/Subsubfamily use PascalCase prefix ( |
|
[NanoClaw] COMMENT_WITH_CONCERNS Straightforward mechanical extension adding 21 AR/FA/ZH properties + CSV mappings + mindmap translation entries. Entity layer, ClassMap, StaticConversions, and MindMap configs all consistently extended. Two observations:
No encoding or RTL concerns in the C# code itself -- that's handled downstream when SVGs render the text. |
ai-01 Review (self-review)Verdict: READY TO MERGE — pending jsboige GO (Decision 1: scope=8 languages confirmed). Checklist
Post-merge action items
@jsboige — GO for merge? |
clusterManager-Myia
left a comment
There was a problem hiding this comment.
[NanoClaw]
LGTM — clean mechanical extension of the 4-language MindMap support to 8 languages (adding AR/FA/ZH).
What checks out:
- All 21 new entity properties follow the existing Ar/Fa/Zh naming convention
- CsvHelper ClassMap entries are consistent (lowercase column names,
.Optional()on all) - StaticConversions in
AssetConverterConfig.cscorrectly reference every new property vianameof() - Both
FallacyMindMapCreatorConfigandVirtueMindMapCreatorConfigupdated with the same 4 new translation tuples - Test suite
_supportedLanguagesupdated to match (8 languages) - No secrets or sensitive data in the diff
- ES was also missing from the MindMap creators (only EN/RU/PT) — this PR adds it alongside AR/FA/ZH, which is correct
No issues introduced by this PR. Two pre-existing anomalies noted for awareness (not blockers):
nameof(Fallacy.Exampleru)— lowercaserinru, exists on master, carried forward unchanged"Family"(hardcoded string) vsnameof(Fallacy.FamilyEn)on theFamilleline — also pre-existing
Looks ready to merge.
…cascade Without these computed properties, ~93% of AR/FA/ZH mindmap nodes would have empty links (CSV link_ar/fa/zh coverage is 6-7%). The fallback cascade matches the existing pattern: own lang → EN → FR. Also restores FallaciesLocalizationTests.cs to master (control-break helpers from #449), reversing an erroneous test regression in PR #454. Co-Authored-By: Claude <noreply@anthropic.com>
Summary
Extends MindMap SVG generation to the full 8-language scope (FR/EN/RU/PT/ES/AR/FA/ZH), matching the already-complete CardSet (PDF) coverage.
Changes
Entity layer (
Fallacy.cs)MindMap Translations
FallacyMindMapCreatorConfig.cs: Add ES/AR/FA/ZH to Translations list (was: EN/RU/PT only)VirtueMindMapCreatorConfig.cs: Add ES/AR/FA/ZH to Translations list (was: EN/RU/PT only)MindMap Localization (
AssetConverterConfig.cs)Tests
TaxonomyValidationTests.cs: Update _supportedLanguages from 4 to 8Context
Test Results
The 6 failing tests (
Memo_Back_Template_Subtitle_*andMemo_Back_Taxonomy_Display_Tokens_*) were already failing on master before this PR — they are a known pre-existing issue unrelated to this change.🤖 Generated with Claude Code
Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com