question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[iOS] Wrong weekdays translation

See original GitHub issue

Bug 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

  1. Install the datetimepicker library in react-native app
  2. Init datetimepicker in the app
<DateTimePicker
        mode="date"
        locale={'nl-NL'}
        value={new Date()}
      />
  1. Use device or set an emulator iPhone 11, iOS 14.0
  2. Set device language to Dutch (optional set region Netherlands)
  3. Run the app
  4. Click on datetimepicker
  5. 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:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
danielcommented, Jun 15, 2021

Same problem with other locales, the week days are not translated. The “Time” label is also not translated.

0reactions
vonovakcommented, Dec 11, 2021
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found