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:
- Set your browser's preferred language to German (or Arabic)
- Open the portal
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!
Related to the locale note at the bottom of #483, but this one is about
Accept-Languagerather 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<html lang="ar" dir="rtl">, so the RTL flip works tooacceptLanguageLocale: "de"de-*.jsfrom/assets)en-USone (37859 bytes both)So detection,
langanddirall 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:
document.documentElement.langisde, 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:
deis inSUPPORTED_LOCALES, the German catalogue does ship in the image,user.localeis null for all my users, and there's no locale column onsettings. My CDN forwardsAccept-Languageand 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!