IgniteUI / igniteui-angular

Ignite UI for Angular is a complete library of Angular-native, Material-based Angular UI components with the fastest grids and charts, Pivot Grid, Dock Manager, Hierarchical Grid, and more.
https://www.infragistics.com/products/ignite-ui-angular
Other
568 stars 159 forks source link

Translation for "Wk" for week numbers in calendars #14423

Open PooSham opened 1 week ago

PooSham commented 1 week ago

Is your feature request related to a problem? Please describe.

The calendar has the ability to show week numbers. However, the header label for the week numbers is hard coded to "Wk", even when using other locales

Here's the code that includes the hard coded string: https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/calendar/days-view/days-view.component.html

Describe the solution you'd like

I think it should be added to igniteui-angular-i18n/src/i18n/XX/grid-resources.ts and used in the template so that different locales get different week abbreviations.

In Swedish, the common abbreviation for week is v.. In some languages there may not exist any common abbreviation (I think that's the case with French), but I guess you can just pick something (Sm in French maybe?) and have a title-attribute on the element with the whole word (so that it shows by hovering on the element).

Describe alternatives you've considered

Make the text an input to the component.