` Text("/(capacity) people")` is translatable
# compose
f
Text("/(capacity) people")
is translatable
l
From what I remember, that’s more or less how iOS translations works already https://medium.com/swift-india/localize-your-apps-to-support-multiple-languages-ios-localization-ac7b612dbc58
f
That one uses NSLocalizedString
This is just a raw string
Unclear how this looks on the translator's side
Also it magically handled the person/people and also the Arabic numerals?
đŸ¤” 1
l
Maybe it just finds the matching key by replacing whatever in
/()
with the correct specifies, which can be done by inferring its type?
j
Yep. VERY brittle and same as it's always worked. I never knew an iOS dev to like it since it lacks all safety.