Pick the fix
You need '1 message' and '5 messages' to be correct in every language. Best approach?
Hint 1 of 1
Who knows each language's plural rules?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A Use Text("\(count) messages") and add plural variations for that key in the String Catalog
Correct. Each language supplies its own plural forms.
Why not the others?
- B
count == 1 ? "message" : "messages". English-only logic; many languages have more forms. - C Always write 'message(s)'. It reads poorly and doesn't translate.
- D Build the string from translated words. Word order and grammar differ by language.