How does' locale= 'zh-cn' take effect on android devices
See original GitHub issueIssue
I set ‘locale=’ zh-cn 'but it doesn’t work on android devices. Is there any way?
Expected Behavior
Code
<DatePicker
style={styles.DatePicker}
date={this.state.QuotedTimeByStart}
mode="date"
placeholder="起始时间"
format="YYYY-MM-DD"
locale="zh-cn"
confirmBtnText="确定"
cancelBtnText="取消"
showIcon={false}
androidMode="spinner"
onDateChange={(date) => {this.setState({QuotedTimeByStart: date})}}
/>
Environment
react-native -v
: 0.57.2node -v
: 8.11.1npm -v
:6.4.1yarn --version
:1.12.1target platform
: Android | iOSoperating system
:
Issue Analytics
- State:
- Created 5 years ago
- Comments:6
Top Results From Across the Web
Locale.LanguageRange - Android Developers
A language range is an identifier which is used to select language tag(s) meeting specific requirements by using the mechanisms described in Locale...
Read more >Android Simplified Chinese and traditional chinese not working
It can be tricky to support both old locales and new locales correctly in some cases; here I will discuss one I happen...
Read more >Demystifying Chinese languages in the app world - Medium
To do this, in Google Play Console, in the Main store listing page open Manage translations. Now check Chinese (Simplified) — zh-CN, Chinese...
Read more >Localization for simplified and traditional chinese
for both zh-CN and zh-TW locales. so is that i cannot add region code ... so what i have done now is if...
Read more >luni/src/main/java/java/util/Locale.java - platform/libcore
* <p>It is also a mistake to assume that all devices have the same locales available. * A device sold in the US...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
locale=“zh-cn” When the system language is Chinese, the components are also Chinese
@vitozyf How do I code this