Translation for "Wk" for week numbers in calendars #14423
Labels
📆 calendar
🔣 i18n
🧰 feature-request
✅ status: resolved
Applies to issues that have pending PRs resolving them, or PRs that have already merged.
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.
The text was updated successfully, but these errors were encountered: