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
Remove our fallback implementation for Intl.PluralRules used by the Character Count. For browsers that do not support Intl.PluralRules, fall back to always using the 'other' translation.
Why
As of GOV.UK Frontend v5.0, JavaScript will only run in browsers that support ES6 modules. The intersection of browsers that support ES6 modules but not Intl.PluralRules is relatively small (Safari 10.3 - 12.5 on iOS, Safari 10.1 - 12.1 on macOS, Edge 16-18, Chrome 61-62 and Opera 48-49) and does not justify the overhead of including the polyfill.
Who needs to work on this
Developers
Who needs to review this
Developers
Done when
We've validated falling back to the 'other' translation is OK
The fallback implementation is removed
The text was updated successfully, but these errors were encountered:
romaricpascal
changed the title
Remove the alternative implementation of Intl.PluralRules
Remove our fallback implementation of Intl.PluralRulesMar 31, 2023
What
Remove our fallback implementation for
Intl.PluralRules
used by the Character Count. For browsers that do not supportIntl.PluralRules
, fall back to always using the 'other' translation.Why
As of GOV.UK Frontend v5.0, JavaScript will only run in browsers that support ES6 modules. The intersection of browsers that support ES6 modules but not
Intl.PluralRules
is relatively small (Safari 10.3 - 12.5 on iOS, Safari 10.1 - 12.1 on macOS, Edge 16-18, Chrome 61-62 and Opera 48-49) and does not justify the overhead of including the polyfill.Who needs to work on this
Developers
Who needs to review this
Developers
Done when
The text was updated successfully, but these errors were encountered: