Ref T5267. For translations, it's useful to have frequency data so the most frequently used strings can be prioritized for translation -- common UI strings are much more important to translate than big blocks of setup/configuration text or obscure error messages.
Add an optional callback so we can collect which strings are actually translated at runtime and build a dataset for prioritizing strings for translation.