stefalda / ReactNativeLocalization

Class to localize the ReactNative interface
MIT License
900 stars 123 forks source link

TypeError: language.indexOf is not a function #183

Open kishansbs opened 4 years ago

kishansbs commented 4 years ago

TypeError: language.indexOf is not a function at Object.getBestMatchingLanguage (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:110836:24) at LocalizedStrings.setLanguage (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:110635:34) at _callee$ (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:96001:36) at tryCatch (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:25666:19) at Generator.invoke [as _invoke] (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:25841:24) at Generator.prototype. [as next] (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:25709:23) at tryCatch (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:25666:19) at invoke (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:25742:22) at http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:25772:13 at tryCallTwo (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:27030:7)

"react": "16.9.0", "react-native": "0.61.5", "react-native-localization": "^2.1.6",

let lang=AsyncStorage.getItem(Constants.Language) Languages.setLanguage(lang ? lang : 'kr')

KrishnaSwaroopa commented 6 months ago

@kishansbs did you fix this issue ?