https://kotlinlang.org logo
#compose
Title
# compose
f

Fudge

06/05/2019, 10:07 PM
Text("/(capacity) people")
is translatable
l

louis993546

06/05/2019, 10:14 PM
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

Fudge

06/05/2019, 10:17 PM
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

louis993546

06/05/2019, 10:56 PM
Maybe it just finds the matching key by replacing whatever in
/()
with the correct specifies, which can be done by inferring its type?
j

jw

06/06/2019, 12:21 AM
Yep. VERY brittle and same as it's always worked. I never knew an iOS dev to like it since it lacks all safety.
3 Views