Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pickers] Add Support for Arabic (ar) Locale in @mui/x-date-pickers #15650

Open
abderrahmane-ettounani-nw opened this issue Nov 28, 2024 · 5 comments · May be fixed by #15693
Open

[pickers] Add Support for Arabic (ar) Locale in @mui/x-date-pickers #15650

abderrahmane-ettounani-nw opened this issue Nov 28, 2024 · 5 comments · May be fixed by #15693
Labels
component: pickers This is the name of the generic UI component, not the React module! l10n localization

Comments

@abderrahmane-ettounani-nw
Copy link

abderrahmane-ettounani-nw commented Nov 28, 2024

Summary

Currently, @mui/x-date-pickers provides support for multiple locales, including French (frFR) and others, but there is no built-in support for Arabic (ar). This limitation requires developers to manually create custom locale configurations to localize components for Arabic users.

import { arMA } from "@mui/x-date-pickers/locales";
to use it :
arMA.components.MuiLocalizationProvider.defaultProps.localeText;

Examples

image

Motivation

Please consider adding support for the Arabic (ar) locale to @mui/x-date-pickers, similar to how other locales (e.g., frFR) are implemented.

Benefits
Improved Developer Experience: Developers can directly use Arabic localization without custom workarounds.
Consistency: Aligns with the existing support for other widely used locales.
User Accessibility: Enhances usability for Arabic-speaking users, especially in right-to-left (RTL) contexts.

Search keywords: ar calendar Arabic Locale

@abderrahmane-ettounani-nw abderrahmane-ettounani-nw added new feature New feature or request status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Nov 28, 2024
@0xenn
Copy link

0xenn commented Nov 28, 2024

Can I look into this and try working on it.

@flaviendelangle
Copy link
Member

Hi,

The localization are maintained by the community (we don't have native speakers for most of the languages we support).
You can look at #3211 to learn more.

@0xenn feel free to open a PR, I will make sure to review it 🙏

@flaviendelangle flaviendelangle added l10n localization and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Nov 28, 2024
@0xenn
Copy link

0xenn commented Nov 28, 2024

Ok. Thanks a lot @flaviendelangle .

@LukasTy LukasTy added component: pickers This is the name of the generic UI component, not the React module! and removed new feature New feature or request labels Nov 28, 2024
@LukasTy LukasTy changed the title Add Support for Arabic (ar) Locale in @mui/x-date-pickers [pickers] Add Support for Arabic (ar) Locale in @mui/x-date-pickers Nov 28, 2024
@0xenn 0xenn linked a pull request Dec 2, 2024 that will close this issue
@0xenn
Copy link

0xenn commented Dec 2, 2024

@flaviendelangle Kindly review and do let me know in case if any changes is required
#15693

@flaviendelangle
Copy link
Member

I'll check with the other MUI product if we prefer to have a single Arabic locale or if we want to have one per dialect.
The Data Grid has ar-SD, @mui/material has ar-SA ar-SD and arEG`.
We have this issue on the core repo about it: mui/material-ui#31847

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: pickers This is the name of the generic UI component, not the React module! l10n localization
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants