-
-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Version
5.26.2
Describe the bug
We encountered a render error in our React Native app that appears to be related to intl-pluralrules. The error occurs during the rendering of a component and is triggered while resolving plural rules for translations.
The app crashes with a render error related to intl-pluralrules.
Additional Context:
- We already have the polyfills in src/polyfill/Intl.ts
- The issue seems related to the pluralization logic in the translation system.
import { type BaseTranslation } from '../i18n-types'
const en_US = {
daysLeft: '{days} {{day left|days left}}',
} satisfies BaseTranslation
export default en_US
Reproduction
Steps to Reproduce:
- Run the app on a React Native environment.
- Navigate to the screen containing the Text component which has plural rules.
Observe the crash with the error message:
"Cannot read property 'fn' of undefined"
Logs
Config
Additional information
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working