Skip to content

feat: add language selector and indicator to page creation#5092

Merged
Pavel910 merged 3 commits intonextfrom
feat/wb-language-selector
Apr 11, 2026
Merged

feat: add language selector and indicator to page creation#5092
Pavel910 merged 3 commits intonextfrom
feat/wb-language-selector

Conversation

@Pavel910
Copy link
Copy Markdown
Collaborator

@Pavel910 Pavel910 commented Apr 10, 2026

Summary

  • Add language selector to the "Create Page" dialog, driven by the languages module. Shows a dropdown when multiple languages exist, auto-assigns when only one is configured, hidden otherwise.
  • Display a language code tag (LanguageCodeTag) in the page editor title bar and pages list table.
  • Refactor CreatePage dialog into a standalone CreatePageDialog registered via AdminConfig.Dialog, replacing the inline useDialogs-based approach.
  • Extract reusable PageType.Language, PageType.Title, and PageType.Path sub-components for composing page type forms.
  • Add shared useLanguages hook and LanguageSelector component; deduplicate language fetching in TranslatePageDialog.
  • Fix concurrent language fetches in ListLanguagesRepository with request deduplication.

Test plan

  • Create a page with multiple languages configured — verify language dropdown appears and selected language is prepended to the path
  • Create a page with a single language — verify no dropdown, language is auto-assigned
  • Create a page with no languages — verify no language UI appears
  • Open page editor — verify language code tag shows next to the title
  • Translate a page — verify the new page copy is in the selected folder and the right language assigned

🤖 Generated with Claude Code

@Pavel910 Pavel910 self-assigned this Apr 10, 2026
@Pavel910 Pavel910 added this to the 6.2.0 milestone Apr 10, 2026
@Pavel910 Pavel910 merged commit 5765ff0 into next Apr 11, 2026
18 checks passed
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.

1 participant