You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In the CMSUI/sidebar dates are shown in US date format even if the user or site language is set to English UK.
This seems to be caused by two things. The translation of the CMSUI is tied to the language of the content not the user which is wrong (#1408) and also it seems like language variants like English UK are being ignored in Volto.
To Reproduce
go to language control panel
set language to English United Kingom
go to content and edit
notice the date is in US Format (wrong way round from any sensible perspective with the month first)
Note that setting the content language to English UK also doesn't fix the problem.
Expected behavior
Dates such as publication date in theh page settings should have the day first.
Dates in the contents view, history view etc should also be in UK format.
you should be able to pick a language variant for the user preference
Screenshots
Software (please complete the following information):
OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Volto Version 16
Plone Version 6
Plone REST API Version [e.g. 7.0.1]
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
At the Axolote Sprint, @gil-cano showed me that the browser's native type="date" input widget always uses the browser's locale and there's no way for a website to override this. (see also plone/mockup#1328) Does that explain this?
@davisagli don't think volo is using the native date control. It is ignoring the browser locale and using the locale of the content. So first thing is to free it from the locale of the content for sidebar input and for contents view.
On top the locale translations for non American English are missing from volto.
Describe the bug
In the CMSUI/sidebar dates are shown in US date format even if the user or site language is set to English UK.
This seems to be caused by two things. The translation of the CMSUI is tied to the language of the content not the user which is wrong (#1408) and also it seems like language variants like English UK are being ignored in Volto.
To Reproduce
Note that setting the content language to English UK also doesn't fix the problem.
Expected behavior
Screenshots
Software (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: