-
Notifications
You must be signed in to change notification settings - Fork 64
Description
I have a number of <name, image> pairs like "apple", "car", "bike", ... and a corresponding image.
I want to be able to use the 'name' in both
- "How many %s do you see"
- "Pick the first/second/middle/... %s"
When creating the objects, I would like to mark the name for translation (such that it gets picked up by getstrings) but don't do an actual translation. I would like to defer the actual translation to where I use the 'name', like in "How many %s do you see".i18n.fill([name.plural(100)] or something along those lines
(note: I assume that plural(100) is valid to use after 'how many' but that's another discussion I guess)
I currently use "apple".version since I noticed that getstrings scans for i18n, fill, plural but also for version and .allVersions.
But I'm sure I'm abusing getstrings here. So a dedicated markForI18n (next to the existing i18n) would be useful IMO.