Skip to content

fix(login): hide the language switcher when only one language is allowed - #12966

Open
shadoath wants to merge 1 commit into
zitadel:mainfrom
shadoath:fix/login-hide-single-language-switcher
Open

shadoath wants to merge 1 commit into
zitadel:mainfrom
shadoath:fix/login-hide-single-language-switcher

Conversation

@shadoath

Copy link
Copy Markdown

Summary

  • Done when an instance with a single allowed language shows no language dropdown on the login pages; with two or more it still shows.
  • The login layout rendered the switcher unconditionally, so a restricted instance showed a dropdown with one option. It now renders only when there is a choice.
  • How this could fail: if the allowed-languages lookup errors, the code already falls back to the full list, so the switcher still appears; the change does not touch that path.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XXosQZvfoutdVzAGrUFms2

When the instance restricts allowed languages to a single entry, the login still rendered a dropdown with one option. Render the switcher only when there is a choice to make.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XXosQZvfoutdVzAGrUFms2
@vercel

vercel Bot commented Oct 20, 2026

Copy link
Copy Markdown

@shadoath is attempting to deploy a commit to the zitadel Team on Vercel.

A member of the Team first needs to authorize it.

@hifabienne hifabienne added the os-contribution This is a contribution from our open-source community label Oct 20, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

os-contribution This is a contribution from our open-source community

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants