Skip to content

[Bug]: Accessibilities language not working #925

@Ruchita-uninow

Description

@Ruchita-uninow

Describe the bug

Even if we switch languages, the time and minutes are still displayed in English.

Expected behavior

For example, when I switched the German language, it now says 10 o'clock and 15 minutes rather than 10 Uhr und 15 Minuten, which is similar to what Apple Calendar says.

To Reproduce

<DatePicker
        date={date}
        mode="time"
        onDateChange={selectedDate => {
          onSelectTime(selectedDate);
        }}
        locale={"de-DE"}
        accessible
        accessibilityLanguage={"de-DE"}
        accessibilityRole="timer"
      />

Operating System

  • Android
  • iOS

React Native Version

0.76.9

Expo Version (if applicable)

52.0.46

react-native-date-picker version

5.0.12

React Native Architecture

  • Old Architecture (Paper)
  • New Architecture (Fabric)

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions