Skip to content

BUG - Unable to load i18n bundle when started with CDS #3721

@longieirl

Description

@longieirl

Description

UI frontend is unable to load the i18n bundles when loaded via a CAP project.

i18n property function is loaded with a path of . instead of ./app/<project-name>.

}
info fiori-tools-proxy Using UI5 version 1.140.0 based on manifest.json
info fiori-tools-proxy Starting fiori-tools-proxy using following configuration:
info fiori-tools-proxy proxy: 'undefined'
info fiori-tools-proxy ignoreCertErrors: 'false'
info fiori-tools-proxy backend: undefined
info fiori-tools-proxy ui5: [{"path":"/resources","url":"https://sapui5.hana.ondemand.com","version":"1.140.0"},{"path":"/test-resources","url":"https://sapui5.hana.ondemand.com","version":"1.140.0"}]
info fiori-tools-proxy debug: 'false'
info fiori-tools-appreload Livereload middleware started for port 35729 and path /Users/Downloads/cap-app/app/translation-ui/webapp
warn fiori-tools-preview Failed to load i18n properties bundle
warn fiori-tools-preview Failed to load i18n properties bundle

This is not an issue when deployed, only impacts SAPUI5 apps when rendered locally.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Generate a CAP project;
cds init managedAppCAPProject && cd  managedAppCAPProject && npm install && cds add tiny-sample && cds add hana && cds add mta && cds add xsuaa && cds add connectivity && cds add destination && cds add html5-repo && cds build --for hana && cp gen/db/package.json db && npm i
  1. Append a SAPUI5 UI app using SAP Fiori tools generator
  2. Start the server using npm run start

Expected results

i18n bundle is loaded

Actual results

i18n fails to load since the project path is . and the UI app is not found in that path.

Screenshots

If applicable, add screenshots to help explain the problem.

Version/Components/Environment

Add any other context about the problem here
OS:

  • Mac OS
  • Windows
  • Other

Root Cause Analysis

Problem

{describe the problem}

Fix

{describe the fix}

Why 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}

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingproject-accessTickets related to @sap-ux/project-access

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions