ionic-team / ionic-team/ionic-framework

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

Abierto
#26,525 3 comentarios 0 reacciones 0 asignados Ver en GitHub
package: core type: feature request
Lenguaje dominante
TypeScript
Estrellas
52.7k
Forks
13.3k
Merge medio
1 d 15 h
PR fusionados (30 d)
51

Descripción

### 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_

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.