It seems like using pluralization in ICU message format is not dependable when combined with static text.
Take the following example:
Please see the {itemCount, plural,
one {message}
other {messages}
} in your inbox.
In Spanish, the word "the" changes depending on whether or not it's plural. The correct translations in Spanish should be:
one: "Por favor vea el mensaje en su bandeja de entrada"
other: "Por favor vea los mensajes en su bandeja de entrada"
The way to solve this would be to include "the" in the conditional.
Developers are obviously not going to be fluent in every language their app supports. If you don't speak Spanish, you wouldn't know to include "the" in the conditional.
It seems irresponsible to allow this type of syntax. Format.js even promotes using pluralization like this in their examples: https://formatjs.io/docs/core-concepts/icu-syntax/#plural-format
It seems to me that an error should be thrown when attempting to combine static text with dynamic plural text. The entire sentence should be required in the conditional.
My question is: Am I missing something? Should I prohibit my developers from entering values like this?
I can't be the first person that noticed this. Is there a way to enforce this through a setting in Format.js?