Skip to content

Arabic locale has incorrect week days display #1087

Closed
@lmetdaoui

Description

@lmetdaoui

Describe the bug
When using the ar locale, week days are not differentiable.
Image

To Reproduce
Pass locale="ar" to the component tag.

Expected behavior
It should display explicit day names like

Image

The origin of this bug seems to be located in utils.ts where we always slice(0,2). Arabic day names all begin with the same two letters, causing this issue.

Image

Desktop & mobile (please complete the following information):

  • Browser : All
  • Library version : 11.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions