ionic-team / ionic-team/ionic-framework
feat: Localize time picker hour/minute options in ion-datetime
- 主要语言
- TypeScript
- 星标
- 52.7k
- 派生
- 13.3k
- 平均合并
- 1 天 15 小时
- 30 天内合并 PR
- 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.

### 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 还没有评估数据。