Weekday abbreviation 'S' is ambiguous for Saturday/Sunday in non-English locales
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
The same translation key 'DayTitle|S' is used for both Saturday and Sunday by the renderDayTitles() method logic in the user activity calendar, depending on the user's "First day of he week" setting in Preferences.
This creates translation issues for non-English languages where Saturday and Sunday don't share the same first letter. In turn this leads to poor user experience in non-English locales, where users cannot distinguish which weekend day is labeled.
Examples:
-
✅ Works in German because both days start with 'S':- Saturday – Samstag
- Sunday – Sonntag
-
❌ Doesn't work in French:- Saturday – Samedi
- Sunday – Dimanche
See video and screenshot where with Saturday set as 1st day of week in Preferences, hovering over Saturday shows abbreviation D, which stands for French dimanche (Sunday, but expected should be S)
Proposed solutions:
- Separate translation keys:
-
s__('DayTitleSaturday|S')for Saturday -
s__('DayTitleSunday|S')for Sunday
-
- Better solution - use i18n standards and replace hardcoded strings with Unicode CLDR data that provides proper weekday abbreviations for all locales. For example: https://github.com/unicode-org/cldr-json/blob/main/cldr-json/cldr-dates-full/main/en-GB/ca-gregorian.json#L101
