ionic-team / ionic-team/ionic-framework

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

オープン
#26,525 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
package: core type: feature request
主要言語
TypeScript
スター
52.7k
フォーク
13.3k
平均マージ
1日 15時間
マージ済み PR(30日)
51

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。