You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ShellBarSearch: Cancel button not translated when language is set to non-English (e.g. German) #14298
When the UI language is set to German (de) — either via the data-ui5-config script tag, setLanguage("de"), or the Storybook globals=language:de parameter — the Cancel button rendered by ShellBarSearch in its collapsed/mobile state still displays "Cancel" (English) instead of the expected German translation "Abbrechen".
Other ShellBar strings (e.g. "Suche öffnen" for the search icon tooltip, "Benutzermenü" for the profile avatar) are correctly translated. Only the ShellBarSearch cancel button text remains untranslated.
Confirm the toolbar shows German (de) as the active language.
Click the search icon ("Suche öffnen") to open the search field.
Resize the browser window to a narrow width (≤ ~500px) so the ShellBar enters its responsive/collapsed mode — the full-width search bar with Cancel button becomes visible.
Observe the Cancel button label.
Expected behavior
The Cancel button should display "Abbrechen" (the correct German translation).
Actual behavior
The Cancel button displays "Cancel" (English fallback), even though:
The German (de) language is active in Storybook globals.
Other ShellBar i18n strings are correctly translated.
The German message bundle (messagebundle_de.json) loads successfully (HTTP 200).
The ShellBarSearch cancel button text appears to be rendered synchronously during initial component connection, before the async German i18n bundle fetch completes. When setLanguage("de") is called, it triggers an async fetch of messagebundle_de.json; by the time the bundle arrives, the cancel button's text node has already been stamped into the shadow DOM with the English default and is not re-invalidated/re-rendered.
Activity
LidiyaGeorgieva commentedon Nov 17, 2026
Hello @UI5/ui5-team-ctr-pir I am forwarding this issue to you, because the text of the "Cancel" button is not translated.