using String Catalog, missing locale entries don't fall back to source language. for example,
"%lld videos" : {
"comment" : "Label for a number of videos",
"extractionState" : "manual",
"localizations" : {
"en" : {
"variations" : {
"plural" : {
"one" : {
"stringUnit" : {
"state" : "translated",
"value" : "%(count)lld video"
}
},
"other" : {
"stringUnit" : {
"state" : "translated",
"value" : "%(count)lld videos"
}
}
}
}
},
this allows us to use Text(.videos(count: 1)) in English and it'll produce "1 video" as expected but when the locale is French for example, it'll produce "1" instead, until "fr" entry will be added. this is extremely inconvenient. what's the proper workaround?
Topic:
Developer Tools & Services
SubTopic:
Localization
4
0
70