Skip to content

Add validator for default_language in language control panel#6811

Merged
sneridagh merged 4 commits intomainfrom
addValidatorForDefaultLanguage
Mar 12, 2025
Merged

Add validator for default_language in language control panel#6811
sneridagh merged 4 commits intomainfrom
addValidatorForDefaultLanguage

Conversation

@sneridagh
Copy link
Member

@sneridagh sneridagh commented Mar 5, 2025

Fixes the use case that you can save a new default language without adding it to the list of available languages.
Now it complains, on blur and on save.
Probably, it would need a server side validator too.

Depends on plone/plone.i18n#73 but not requires it.

Also fixes a section of the docs that was incorrect.


📚 Documentation preview 📚: https://volto--6811.org.readthedocs.build/

@netlify
Copy link

netlify bot commented Mar 5, 2025

Deploy Preview for plone-components canceled.

Name Link
🔨 Latest commit 189301e
🔍 Latest deploy log https://app.netlify.com/sites/plone-components/deploys/67c84bf5ada3f300086110a3

@sneridagh sneridagh requested review from a team and stevepiercy March 5, 2025 11:29
@github-project-automation github-project-automation bot moved this from Needs discussion to Work approved in Volto Team Meeting Mar 11, 2025
@sneridagh sneridagh merged commit 7bf8445 into main Mar 12, 2025
76 checks passed
@sneridagh sneridagh deleted the addValidatorForDefaultLanguage branch March 12, 2025 08:22
@github-project-automation github-project-automation bot moved this from Work approved to Done in Volto Team Meeting Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants