You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nikitastryuk
changed the title
Plural translations (with count paramater) does not match server-rendered HTML ("ua" locale)
Plural translations (with count paramater) produce does not match server-rendered HTML ("ua" locale)
Nov 7, 2023
nikitastryuk
changed the title
Plural translations (with count paramater) produce does not match server-rendered HTML ("ua" locale)
Plural translations (with count paramater) produce "does not match server-rendered HTML" ("ua" locale)
Nov 7, 2023
This seems to be out of control for next-intl and is related to the underlying runtime. You might have to provide polyfills for a consistent environment.
Description
Plural translations (with count paramater) which uses "Intl.PluralRules" API determined incorrectly on server ("ua" locale).
Issue
{ "test": "{count, plural, one {# user} other {# users}}" }
<p>{t('test', { count: 21 })}</p>
#other is returned from server-rendered html and then transformed to #one on client side.
Mandatory reproduction URL (CodeSandbox or GitHub repository)
Codesandbox
Reproduction description
To Reproduce
/ua
to urlExpected behaviour
Plural translations should behave the same on both server and client.
The text was updated successfully, but these errors were encountered: