Flint icon indicating copy to clipboard operation
Flint copied to clipboard

Integrate i18n/Stringsdict support for Activities titles and subtitles

Open marcpalmer opened this issue 6 years ago • 2 comments

marcpalmer avatar Jun 11 '18 17:06 marcpalmer

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 avatar Jan 25 '19 20:01 marcpalmer

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

marcpalmer avatar Apr 24 '19 10:04 marcpalmer