Skip to content

fix: expand state-party ISO3166 label map and localize lookup#389

Merged
zigzagdev merged 1 commit into
mainfrom
fix/state-party-labels-iso3166
Jun 22, 2026
Merged

fix: expand state-party ISO3166 label map and localize lookup#389
zigzagdev merged 1 commit into
mainfrom
fix/state-party-labels-iso3166

Conversation

@zigzagdev

@zigzagdev zigzagdev commented Jun 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • Expanded the ISO 3166-1 alpha-3 -> Japanese country name map to cover all countries, not just a partial subset
  • Made the JP label lookup locale-aware: only translate to Japanese when locale === "ja", otherwise fall back to the raw ISO codes instead of mistranslating

Closes #388

Test plan

  • Verify state party names render correctly in Japanese locale for a heritage with state parties previously missing from the map (e.g. id=1321, ARG/IND)
  • Verify non-Japanese locales show raw ISO codes instead of Japanese labels

Add Japanese labels for all ISO 3166-1 alpha-3 country codes, not just
a partial subset, and only apply the JP label lookup when locale is
"ja" so other locales fall back to raw codes instead of mistranslating.
@zigzagdev zigzagdev self-assigned this Jun 22, 2026

@zigzagdev zigzagdev left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

@zigzagdev zigzagdev merged commit 9599478 into main Jun 22, 2026
1 check passed
@zigzagdev zigzagdev deleted the fix/state-party-labels-iso3166 branch June 22, 2026 07:05
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.

bug: State PartyラベルがARG/INDなど一部の国で表示されない(辞書の国コードが不足)

1 participant