MontanaFlossCo / Flint

The Flint framework for building apps on Apple platforms using Feature Driven Development
https://flint.tools
MIT License
629 stars 22 forks source link

Integrate i18n/Stringsdict support for Activities titles and subtitles #127

Open marcpalmer opened 6 years ago

marcpalmer commented 5 years ago

Actually we just need to document this. Current Apple practice means that NSLocalizedString(x, y) must be used at all call sites for genstrings to work unless they use custom matching templates. Therefore we can't do anything too smart for people who want to use genstrings

marcpalmer commented 5 years ago

There is already a solution - implement prepareActivity and/or .ActivityMetadataRepresentable and use whatever i18n string mech you would normally use. We can punt a smarter solution for this to a later release (if we ever really need it). Ideally it would be nice to automatically create these using template strings that are localised using conventions e.g. a string with ID activity.title.YourTypeName