-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Safari Mobile Rendering Failure using composed FormattedMessage #375
Description
I'm having an issue with Safari Mobile rendering of composed FormattedMessage. I honestly have been trying to troubleshoot this for days without success.
The issue:
7 out of 10 times, the rendered message will display:
{count, plural, =0 {No Guests} =1 {1 Guest} other {# Guests}}
3 out of 10 times the rendered message displays correctly:
10 Guests
The string in the language file (JSON format, UTF-8 encoding):
{
"string.id": "{count, plural, =0 {No Guests} =1 {1 Guest} other {# Guests}}",
}
I also tried adding \n characters to the string without success:
{
"string.id": "{count, plural,\n =0 {No Guests}\n =1 {1 Guest}\n other {# Guests}}",
}
<FormattedMessage
id="string.id"
values={{ count: 10 }}
/>
It seems as if the faster the page loads (after first page load, JS is cached and loads faster), the more likely it is to happen. It doesn't happen on ANY other browser but Safari Mobile.
I connected my iPhone to Safari Web Inspector and there is nothing in the console, every other FormattedMessage displays correctly on the page BUT the composed ones.
Does anyone have any insight whatsoever on what it could be?
Thank you.