Something similar to [NSLocale currentLocale] in Objective-C.
标签:
react-native
相关问题
- React Native Inline style for multiple Text in sin
- How Do I Convert Image URI into Byte Expo
- ApolloClient from apollo-boost attemped to assign
- Implementing ssl pinning in a react-native applica
- React-Native: Enable Performance Monitor in produc
相关文章
- Why do we have to call `.done()` at the end of a p
- Remove expo from react native
- React Native - Dynamic Image Source
- “Unfortunately, app has stopped” error with buildi
- eslint Parsing error: Unexpected token =
- How to determine JS bottlenecks in React Native co
- How to override navigation options in functional c
- PanResponder snaps Animated.View back to original
Personally I prefer use react-native-i18n. then you can use like this inside the documentation..
link: https://github.com/AlexanderZaytsev/react-native-i18n
There's no need for an external library. You can find what you're looking for in React's Native Modules
To test this, I changed the language on my device to French. Here's a sample of what you'll find in the
NativeModules.SettingsManager.settings
object related to locale: