Is setting locale
required if you just want to use the device's locale?
#856
Unanswered
simon-assistiq
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hi, your conclusions in the edit are correct. But, I would like it to pick up French as soon as device language is French and locale prop is unset. Could you send some screenshots of the device settings? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Does the component not automatically pick up the device's locale / language?
I have set my device's language to French. (The region is set to Canada.) But the date picker shows English text. Even if I change the region to e.g. France, it still shows English months / text (though it does update the order of the date fields).
Is it expected that it doesn't pick up the language automatically?
The main reason why I am asking is because the README doesn't specify any default fallback for the
locale
property. I would have assumed the default would be to use the device's settings.EDIT:
Even if I pass
locale='fr_CA'
, the months are shown in French but it still says "Select date" at the top and "Confirm" (i.e. English) at the bottom… But I guess I can set the text fortitle
andconfirmText
to get around that.I am using 5.0.7 + React Native 0.73.6 on iOS 17.6.1
Related
Beta Was this translation helpful? Give feedback.
All reactions