pat-datetime-picker relies on browser language configuration instead of Plone configuration
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- html, javascript
- Domain
- frontend, internationalization
Research direction
Start by tracing the pat-datetime-picker pattern and how it falls back to the HTML5 date picker in Plone 6. Compare the browser-dependent rendering described for Firefox and Chrome, then determine how the content language should control the picker and input format. Done means the date picker and datetime format follow Plone configuration consistently across browsers.
Written by the indexing model from the issue text.
Description
I don't know if I should open this here or in Patternslib...
The pat-datetime-picker pattern used in Plone 6 relies on browser interface language to render itself, producing different output in at least Firefox and Chrome.
This is Firefox configured to have the interface in basque:
This is Chrome configured to have the interface in english (I can't set basque as interface language)
As you can see, not only the date picker shows in English, but the datetime format of the input box is also formatted in English.
It looks like the pat-datetime-picker degrades to HTML5 date picker which relies on the browser language.
I would say this is a bug. The date picker should be rendered not in the browser language but in the content language. I don't know if this can be set in the HTML5 standard date-picker (I don't see how here, so perhaps we should render the JS date-picker anyway?
cc: @libargutxi
- Dominant language
- JavaScript
- Stars
- 57
- Forks
- 103
- Avg merge
- 6d 15h
- Merged PRs (30d)
- 5
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from plone/mockup
-
wrong description text in the tinymce image insert modal dialogMay be free again @anya-xcode claimed this 447 days ago, and no pull request is open. Open
Difficulty 1/5 Under an hour Newbie friendliness 62/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
04 type: enhancement
Difficulty 3/5 1-2 days Newbie friendliness 55/100
Similar issues
-
fix(套件): test_bundle 往仓库的 preset/skills 写哨兵,并发跑的 test_installer 拷贝时撞 ENOENT(CI 红)Possibly taken @Miaotofu01 claimed this today. Openneeds-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Miaotofu01/Study-Mate#216 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
-
beginner-friendly category:fixtures community enhancement first-timers-only good first issue hacktoberfest help wanted low hanging fruit micro-contribution type: task up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Berserk-hub150/skillhawk#229 · 1 comment ·
Maintainers usually reply within 8 days
-
WlanConfUpdateSensor falsely reports wifi interface appearing when sysfs inode cache is reclaimedOpen
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
firewalla/firerouter#2180 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
andromarces/agent-loops#976 ·
Maintainers usually reply within 1 day