ionic-team / ionic-team/ionic-framework

feat: Localize time picker hour/minute options in ion-datetime

Ouverte
#26,525 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
package: core type: feature request
Langage dominant
TypeScript
Étoiles
52.7k
Forks
13.3k
Merge moyen
1 j 15 h
PR mergées (30 j)
51

Description

### Prerequisites

- [X] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/.github/CONTRIBUTING.md#creating-an-issue).
- [X] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [X] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already report this problem, without success.

### Ionic Framework Version

- [ ] v4.x
- [ ] v5.x
- [X] v6.x
- [ ] Nightly

### Current Behavior

After setting ion-datetime's locale to Arabic

``

The time picker is still rendered using the Latin numbers (1,2,3 ..etc). Also for presentation="time".
AM/PM is correctly translated to Arabic but not the numbers.

![image](https://user-images.githubusercontent.com/34697408/208905790-5a52dd40-12dc-458f-bfc5-d50145e4562d.png)

### Expected Behavior

All the numbers within the ion-datetime component should be displayed according to the locale.

### Steps to Reproduce

Set the locale property with any Arabic locale that uses the Arabic-Indic numbering system.

``

### Code Reproduction URL

_No response_

### Ionic Info

Ionic:

Ionic CLI : 6.20.5
Ionic Framework : @ionic/angular 6.4.1
@angular-devkit/build-angular : 13.3.10
@angular-devkit/schematics : 11.1.2
@angular/cli : 13.3.10
@ionic/angular-toolkit : 3.0.1

Cordova:

Cordova CLI : not installed
Cordova Platforms : not available
Cordova Plugins : not available

Utility:

cordova-res : not installed globally
native-run : not installed globally

System:

ios-sim : 8.0.2
NodeJS : v16.15.1
npm : 8.11.0
OS : macOS Monterey
Xcode : Xcode 13.2.1 Build version 13C100

### Additional Information

_No response_

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.