xgfe / react-native-datepicker

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

Not translated buttons on Android #302

Open zedtux opened 5 years ago

zedtux commented 5 years ago

Issue

I'm setting the cancelBtnText and confirmBtnText, which works on iOS but not on Android, I have the English version.

Expected Behavior

Uses the cancelBtnText and confirmBtnText values for Android buttons.

Code

          <DatePicker
            cancelBtnText={I18n.t(`${I18N_PATH}.buttons.cancel`)}
            confirmBtnText={I18n.t(`${I18N_PATH}.buttons.use_date`)}
          />

Environment

  1. react-native -v: 0.57.4
  2. node -v: v11.1.0
  3. npm -v: 6.4.1
  4. yarn --version: 1.12.1
  5. target platform: Android
  6. operating system: macOS