Theme Cosmos - Left Navigation Pane Not Fully Updating Locale in Cosmos After Language Toggle
We are implementing a language toggle (English/French) in our Theme Cosmos portal. The toggle is shown in the HomeHeader section and is based on a boolean property (IsFrenchToggled). On change, we’re calling the OOTB UpdateLocaleSettings activity to change the locale at runtime. What We Tried
To apply the locale change across the UI, we tried the following: 1. Refresh harness 2. Refresh section using JS (document.querySelector-based) 3. Reload current portal using pega.desktop.infinity.relaunchPortal() 4. Redirect to SSO login with pyLocale in URL:
/prweb/PRAuth/XXXX?pyLocale=fr
What Works • Locale change is successful – confirmed by checking pxRequestor.pxLocale • Right pane (main content area) is translated correctly after toggle • Some left navigation items (like Recents, My Application) also get translated What Doesn’t Work • Other left navigation items (like Home, My Work) remain in English, even after full portal relaunch or redirect via OIDC with pyLocale • Refreshing the page or portal doesn’t help in updating those labels • These labels do use Field Values (pyCaption), and corresponding French versions exist
We are implementing a language toggle (English/French) in our Theme Cosmos portal. The toggle is shown in the HomeHeader section and is based on a boolean property (IsFrenchToggled). On change, we’re calling the OOTB UpdateLocaleSettings activity to change the locale at runtime. What We Tried
To apply the locale change across the UI, we tried the following: 1. Refresh harness 2. Refresh section using JS (document.querySelector-based) 3. Reload current portal using pega.desktop.infinity.relaunchPortal() 4. Redirect to SSO login with pyLocale in URL:
/prweb/PRAuth/XXXX?pyLocale=fr
What Works • Locale change is successful – confirmed by checking pxRequestor.pxLocale • Right pane (main content area) is translated correctly after toggle • Some left navigation items (like Recents, My Application) also get translated What Doesn’t Work • Other left navigation items (like Home, My Work) remain in English, even after full portal relaunch or redirect via OIDC with pyLocale • Refreshing the page or portal doesn’t help in updating those labels • These labels do use Field Values (pyCaption), and corresponding French versions exist
Questions • Are these labels cached in a way that ignores runtime locale changes? • Is there a known limitation in Cosmos shell where some parts of the navigation aren’t dynamically localized? • Is there a way to fully flush and reload the portal shell so that all left navigation labels respect the updated locale immediately? Any help or recommended approach would be appreciated. We’re on Pega 24 with Theme Cosmos and using OIDC for SSO. Thanks in advance!