The i18n support when working with adaptation projects is only partially working.
When can preview my adaptation project in a different language by e.g. adding sap-language=de as query parameter to the preview url then I correctly get translated strings from the backend as well as my local translations are loaded from e.g. the i18n_de.properties file, however, this does not work when starting the editor.
Title and description in the FLP tile in the preview always show only { instead of the text (independent of the language settings).
Steps to Reproduce
Steps to reproduce the behavior:
Take a working adaptation project
Copy the webapp/i18n/i18n.properties file to webapp/i18n/i18n_de.properties
Modify the title in the webapp/i18n/i18n_de.properties file to e.g. Der Title.
Start the editor
Add ?sap-language=de to the editor url and refresh
For the 2nd issue, just open the local FLP in your project without an intent so that the shell is visible.
Expected results
My adapted German title and everything else in German as well.
Actual results
Everything is in English.
Screenshots
If applicable, add screenshots to help explain the problem.
Version/Components/Environment
Add any other context about the problem here
OS:
[x] Mac OS
[x] Windows
[ ] Other
Root Cause Analysis
Problem
(1) the url parameter sap-language from the url is not used in the iframe loading the app
(2) The same issue was fixed for Fiori apps but it seems the fix does not work for adaptation projects
Related Feature
Feature request: issue number
Description
The i18n support when working with adaptation projects is only partially working.
sap-language=de
as query parameter to the preview url then I correctly get translated strings from the backend as well as my local translations are loaded from e.g. thei18n_de.properties
file, however, this does not work when starting the editor.{
instead of the text (independent of the language settings).Steps to Reproduce
Steps to reproduce the behavior:
webapp/i18n/i18n.properties
file towebapp/i18n/i18n_de.properties
webapp/i18n/i18n_de.properties
file to e.g.Der Title
.?sap-language=de
to the editor url and refreshFor the 2nd issue, just open the local FLP in your project without an intent so that the shell is visible.
Expected results
My adapted German title and everything else in German as well.
Actual results
Everything is in English.
Screenshots
If applicable, add screenshots to help explain the problem.
Version/Components/Environment
Add any other context about the problem here OS:
Root Cause Analysis
Problem
(1) the url parameter
sap-language
from the url is not used in the iframe loading the app (2) The same issue was fixed for Fiori apps but it seems the fix does not work for adaptation projectsFix
(1) Set all url parameters starting with
sap-
also on the iframe (2) Review https://github.com/SAP/open-ux-tools/commit/25ecdb902bc73657e5499f03eff15c7187d25c59 and enhance it for adaptation projectsWhy was it missed
{Some explanation why this issue might have been missed during normal development/testing cycle}
How can we avoid this
{if we don’t want to see this type of issues anymore what we should do to prevent}