Skip to content

[Bug] Portal renders English for every locale, even though <html lang> and dir are correct #487

Description

@ColdFire87

Related to the locale note at the bottom of #483, but this one is about Accept-Language rather than the querystring, since the docs say the portal should switch language automatically from the header.

With my browser set to German the portal detects the locale fine, but every string still renders in English. What I see:

  • <html lang="de" dir="ltr"> is set correctly
  • with an Arabic browser I get <html lang="ar" dir="rtl">, so the RTL flip works too
  • the SSR payload contains acceptLanguageLocale: "de"
  • the client does fetch the German catalogue (de-*.js from /assets)
  • but the visible text never changes, and the HTML response is exactly the same size as the en-US one (37859 bytes both)

So detection, lang and dir all work. It looks like only the message catalogue never gets applied to the rendered output.

Repro, no login needed since the portal shell renders for anonymous requests:

  1. Set your browser's preferred language to German (or Arabic)
  2. Open the portal
  3. document.documentElement.lang is de, but the UI still says "Suggest a feature or report a bug...", "Trending", "Top", "New", "Search", "Filter"

A few things I checked and ruled out, in case it saves you time: de is in SUPPORTED_LOCALES, the German catalogue does ship in the image, user.locale is null for all my users, and there's no locale column on settings. My CDN forwards Accept-Language and has caching disabled, and I can see the correct value arriving in the SSR payload, so it isn't a caching or header-stripping problem on my side.

Self-hosted 0.13.2.

Thanks!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions