Bug 1917411 Comment 3 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Is "burn it all to the ground" a helpful suggestion?

I'm going to ramble on a bit here because calendar localisation is … complicated. While we're here I'd like to fix it properly so that we stop having these problems.

In the preferences a user can choose to format dates using "application locale", in this case Italian, and this will use the Italian strings our translators provide, not only for the UI but when we construct a string like "9–15 Settembre 2024" for the week view. When we just format a date using `Intl.DateTimeFormatter`, the Italian strings are provided by toolkit to get "9 settembre 2024".

*Or* the user can choose "regional settings locale", which still uses Italian strings to create "9–15 Settembre 2024", but English strings for "9 September 2024".

I think the thing to do is convert *all* of our date/time formatting to use `Intl.DateTimeFormatter`, and this will magically obey the preference, but where do we draw the line? Just the dates and times? What about week day labels? Is it weird that the rest of the calendar UI will be in Italian? The view selection will still be Giorno/Settimana/Multi-settimana/Mese, for example.
Is "burn it all to the ground" a helpful suggestion?

I'm going to ramble on a bit here because calendar localisation is … complicated. While we're here I'd like to fix it properly so that we stop having these problems.

In the preferences a user can choose to format dates using "application locale", in this case Italian, and this will use the Italian strings our translators provide, not only for the UI but when we construct a string like "9–15 Settembre 2024" for the week view. When we just format a date using `Intl.DateTimeFormatter`, the Italian strings are provided by toolkit to get "9 settembre 2024".

*Or* the user can choose "regional settings locale", which still uses Italian strings to create "9–15 Settembre 2024", but English strings for "9 September 2024".

I think the thing to do is convert *all* of our date/time formatting to use `Intl.DateTimeFormatter`, and this will magically obey the preference (after restarting), but where do we draw the line? Just the dates and times? What about week day labels? Is it weird that the rest of the calendar UI will be in Italian? The view selection will still be Giorno/Settimana/Multi-settimana/Mese, for example.

Back to Bug 1917411 Comment 3