<!-- Before you submit an issue we recommend you visit [docs](https://www.i18next.com/) or [docs](https://react.i18next.com/) or [docs](https://github.com/i18next/next-i18next) or [StackOverflow](https://stackoverflow.com/search?q=i18next) or similar and ask any questions you have or mention any problems you've had getting started with i18next. **Please read this entire template before posting any issue. If you ignore these instructions and post an issue here that does not follow the instructions, your issue might be closed, locked.** --> ## 💥 Regression Report `Intl.Locale` breaks the use of non-standard language codes like "en_US". https://github.com/i18next/i18next/blob/fdc51d2a509c97e225b34240b28d0d83db143adc/src/i18next.js#L540 ## Last working version Worked up to version: 25.2.0 Stopped working in version: 25.3.0 ## To Reproduce Steps to reproduce the behavior: ```js i18next.dir("en_US") // Uncaught RangeError: Incorrect locale information provided ``` ## Expected behavior A clear and concise description of what you expected to happen. ```js i18next.dir("en_US") // "ltr" ``` ## Your Environment - *runtime version*: Chrome 138 - *i18next version*: 25.3.0