ionic-team / ionic-team/ionic-framework

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

Đang mở
#26,525 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
package: core type: feature request
Ngôn ngữ chính
TypeScript
Star
52.7k
Fork
13.3k
Merge trung bình
1 ngày 15 giờ
Pull request đã merge (30 ngày)
51

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.