Skip to content

bug: Accept-Language: pl not recognized by Logto Cloud language detection #7238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Green7 opened this issue Apr 4, 2025 · 1 comment
Open
Labels
bug Something isn't working feature-request Something cool or not cool status/planned We decided to do it.

Comments

@Green7
Copy link

Green7 commented Apr 4, 2025

Describe the bug

I've noticed that Logto Cloud's automatic language detection does not recognize pl (Polish) as a valid language for the UI.

How to reproduce?

Using the Accept-Language header in the browser:

es → UI appears in Spanish ✅

pl-PL → UI appears in Polish ✅

pl → UI falls back to English ❌

This is inconsistent, as pl is a valid and commonly used language code. Most systems treat pl and pl-PL as equivalent or fallback-compatible.

@Green7 Green7 added the bug Something isn't working label Apr 4, 2025
@Green7 Green7 changed the title bug: bug: Accept-Language: pl not recognized by Logto Cloud language detection Apr 4, 2025
@darcyYe
Copy link
Contributor

darcyYe commented Apr 8, 2025

Thank you for reporting this, the team will take a look.

@simeng-li simeng-li added feature-request Something cool or not cool bug Something isn't working and removed bug Something isn't working labels Apr 23, 2025
@gao-sun gao-sun added the status/planned We decided to do it. label May 8, 2025 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature-request Something cool or not cool status/planned We decided to do it.
Development

No branches or pull requests

4 participants