mirror of
https://github.com/storytold/effectcraft.git
synced 2026-10-24 18:18:17 -06:00
tr() scanned the whole catalog (about 380 rows) for every string a panel draws, every frame, in Chinese. Each catalog is now indexed once, on first use, in a HashMap keyed by the English source; English and languages without rows still skip the lookup. The catalogs already have no duplicate sources (catalogs_are_unique_and_keep_the_english_shape), so the index finds the same rows. Test: the i18n tests (pass-through, tr_args, catalog shape). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>