Skip to content

pat-filemanager: use current page language to render the datetime#1607

Merged
MrTango merged 3 commits into
masterfrom
fix-filemanager-date-locale
Jun 23, 2026
Merged

pat-filemanager: use current page language to render the datetime#1607
MrTango merged 3 commits into
masterfrom
fix-filemanager-date-locale

Conversation

@erral

@erral erral commented Jun 17, 2026

Copy link
Copy Markdown
Member
  • I signed and returned the Plone Contributor Agreement, and received and accepted an invitation to join a team in the Plone GitHub organization.
  • I verified there aren't any other open pull requests for the same change.
  • I followed the guidelines in Contributing to Plone.
  • I successfully ran code quality checks on my changes locally.
  • I successfully ran tests on my changes locally.
  • If needed, I added new tests for my changes.
  • If needed, I added documentation for my changes.
  • I included a change log entry in my commits.

My personal war here: the datetime in the new filemanager is shown in the browser language (because of the undefined first parameter to Intl.DateTimeFormat).

That's why I introduce a getLang and get the language of the content.

@erral erral requested review from MrTango and petschki June 17, 2026 13:17

@MrTango MrTango left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MrTango MrTango merged commit 2f55374 into master Jun 23, 2026
3 checks passed
@MrTango MrTango deleted the fix-filemanager-date-locale branch June 23, 2026 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants