[iOS] Wrong weekdays translation
See original GitHub issueBug report
Summary
Language on a device is “Dutch” and region is “Netherlands”. The app is fully translated in Dutch based on language settings of the device. However the weekdays stay in English.
Environment info
"react-native": "^0.61.5"
"@react-native-community/datetimepicker": "^3.0.2"
Library version: 3.0.2 iOS version: 14.0
Steps to reproduce
- Install the datetimepicker library in react-native app
- Init datetimepicker in the app
<DateTimePicker
mode="date"
locale={'nl-NL'}
value={new Date()}
/>
- Use device or set an emulator iPhone 11, iOS 14.0
- Set device language to Dutch (optional set region Netherlands)
- Run the app
- Click on datetimepicker
- Check (short/long) names of weekdays
Describe what you expected to happen: (short/long) names of weekdays are translated based on the device language
Issue Analytics
- State:
- Created 3 years ago
- Reactions:7
- Comments:6 (1 by maintainers)
Top Results From Across the Web
[iOS] Wrong weekdays translation · Issue #281 - GitHub
The app is fully translated in Dutch based on language settings of the device. However the weekdays stay in English.
Read more >Most concise fix for .weekday returning wrong day
In iOS, the weekdaySymbols starts from Sunday to Saturday. ... let weekDay = Calendar.current.component(.weekday, from: Date()) let ...
Read more >Solved: Calendar language problem since 2021
Everything was fine, until 2021... Even all the settings are in French (cf list), now the weekdays and Month names are in English...
Read more >Add or change sleep schedules in Health on iPhone
In Health on iPhone, create or change sleep schedules to help you meet your sleep goals. ... you can create separate schedules for...
Read more >Working with dates - a free Hacking with iOS: SwiftUI Edition ...
Having users enter dates is as easy as binding an @State property of type Date to a DatePicker SwiftUI control, but things get...
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
Same problem with other locales, the week days are not translated. The “Time” label is also not translated.
closed by https://github.com/react-native-datetimepicker/datetimepicker/pull/540 (v5 release)