xgfe / react-native-datepicker

react native datePicker component for both Android and IOS, useing DatePikcerAndroid, TimePickerAndroid and DatePickerIOS
MIT License
2.12k stars 725 forks source link

Change language for datetime picker #91

Open AmusedMe opened 7 years ago

AmusedMe commented 7 years ago

Thank you for your time. I look through all the issues, just one about language. I still not find how to specific one language.

feyy commented 7 years ago

I just use the react native Component, I think the component's language is same as your mobile system.

jonathanroze commented 7 years ago

Yes it's strange, when the modal is open, the language is support but when the value is printed in the component, it's in English!

ozsirma commented 6 years ago

https://github.com/facebook/react-native/pull/15635/files

You can examine this pull request.

b-asaf commented 6 years ago

@ozsirma, is it merge to main? I see that it only targeted to iOS, why not to Android as well?

ozsirma commented 6 years ago

It is usable with v0.52.0 that merged the pull request. @assafb81

b-asaf commented 6 years ago

how RN v0.52.0 is relevant? I thought it is react-native-datepicker issue

@ozsirma

ozsirma commented 6 years ago

react native datePicker component for both Android and IOS, using DatePickerAndroid, TimePickerAndroid and DatePickerIOS

DatePickerIOS is native component for iOS. Therefore if you use this feature, you should use v52.0 or you should change files manually in your node_modules. @assafb81

b-asaf commented 6 years ago

@ozsirma thanks

pablo-albaladejo commented 6 years ago

My fork include this feature: https://github.com/pablo-albaladejo/react-native-datepicker

<DatePicker locale={'es'} date={this.state.date} mode='date' format="DD-MM-YYYY">

jenskuhrjorgensen commented 6 years ago

Nice, @pablo-albaladejo :)

However, I need support for Android too. This should be supported by RN. Upvote this feature request to help push this feature through :D

pablo-albaladejo commented 6 years ago

Thanks @jenskuhrjorgensen,

There is no issue at the Android Datepicker locale; it just read the system locale. Screenshots of the component:

locale_es locale_en
jenskuhrjorgensen commented 6 years ago

Yes @pablo-albaladejo, but I would like to set it manually - is that possible?

fhadsheikh commented 6 years ago

I'm also wondering how to manually set locale

karthikeyan110798 commented 5 years ago

Thanks @jenskuhrjorgensen,

There is no issue at the Android Datepicker locale; it just read the system locale. Screenshots of the component:

locale_es locale_en
karthikeyan110798 commented 5 years ago

Hello sir , Iam trying to change the language of date picker based on user selection , could you suggest some examples. Thanks a lot!

AhmSaeed commented 4 years ago

Can I set a customize date picker locale to follow my app language not system language on Android is there any available solution or work around?

ZainaliSyed commented 3 years ago

Has anyone got this solution for ANDROID Language change Manually

even community Library has same issue for android