-
-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception Unsupported ISO 3611 country: en_XA #36
Comments
java.lang.IllegalArgumentException: Unsupported ISO 3166 country: en_XA |
I have fixed the issue by changing code in react-native-node_modules/react-native-localize/android/src/main/java/com/reactcommunity/rnlocalize/RNLocalizeModule.java Currency.getInstance(locale) throws exception For local "en_XA" . I have added try catch to fix the issue . Please replace function with below code
|
https://docs.oracle.com/javase/8/docs/api/java/util/Currency.html#getInstance-java.util.Locale- Adding a pull request for the same. |
Describe your environment
How to repeat issue and example
Selected a pseudolocales as one of language preference
https://developer.android.com/guide/topics/resources/pseudolocales
Crash happens while importing
import * as RNLocalize from 'react-native-localize';
Solution
Related issue #31
The text was updated successfully, but these errors were encountered: