Assertion failed: could not find any translatable text for key '…' in bundle './i18n/i18n.properties'
See original GitHub issueOpenUI5 version: 1.82.1
Browser/version (+device/version): Chrome 87 DEV
Any other tested browsers/devices(OK/FAIL): Fail, Edge 86 REL
URL (minimal example if possible): http://localhost:3000/#/overview
Steps to reproduce the problem:
- I’m running locally the OpenUI5 app based on Node.js
I have just single i18n_en.properties, no i18n.properties.
The manifest.json fragment:
"_version": "1.27.0",
"sap.app": {
"_version": "1.13.0",
"applicationVersion": {
"version": "0.0.1"
},
"description": "{{appDescription}}",
"i18n": {
"bundleUrl": "i18n/i18n.properties",
"fallbackLocale": "en",
"supportedLocales": [
"en"
]
},
"id": "webapp",
"title": "{{appTitle}}",
"type": "application"
},
"sap.ui5": {
"_version": "1.12.0",
"contentDensities": {
"compact": true,
"cozy": true
},
"dependencies": {
"libs": {
"sap.m": {}
},
"minUI5Version": "1.82.0"
},
"flexEnabled": false,
"models": {
"i18n": {
"settings": {
"bundleName": "webapp.i18n.i18n",
"bundleUrl": "i18n/i18n.properties",
"fallbackLocale": "en",
"supportedLocales": [
"en"
]
},
"type": "sap.ui.model.resource.ResourceModel"
}
},
}
What is the expected result? No “Assertion failed: could not find any translatable text for key ‘…’ in bundle ‘./i18n/i18n.properties’”
What happens instead? Assertion failed: could not find any translatable text for key ‘…’ in bundle ‘./i18n/i18n.properties’
Any other information? (attach screenshot if possible):

Perhaps related issue:
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Assertion failed: could not find any translatable text for key ...
When checking the browser console log, an error like the following is noticed: Assertion failed: could not find any translatable text for key...
Read more >i18n model not displaying translated text - Stack Overflow
It displays "TABLE_ItemCateg" rather than "Item Category" . And in i18n.properties , I have no data saved. Also I receive below error: could...
Read more >Step 8: Translatable Texts - Documentation - SAPUI5 SDK
The resolved bundle name is sap.ui.demo.walkthrough.i18n , as we will see later. The properties file for texts contains name-value pairs for each element....
Read more >typesafe-i18n - npm
Click here to see an interactive demo of typesafe-i18n showing some key ... gives me the Error Property 'XYZ' does not exist on...
Read more >Localization, i18n - SAP Capire
You can define the keys of your properties entries. Learn more about annotations in CSN. Then you can translate the texts in localized...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Cool, glad to hear that.
It’s in general better to discuss separate topics in separate issues.
The ui5loader supports only AMD or native global scripts, but no ES6 modules. A two-way, seamless integration of ES6 modules and AMD (without transpiling) is tricky, as ES6 has a different dependency resolution model than AMD (the most tricky part is to make AMD’s asynchronous dependency resolution transparent for ES6 code). We experimented a while with such a mixture, but don’t see a satisfying solution.
We therefore rather suggest to transpile app sources. One (older) example how to do this can be found here. There are more alternatives, e.g. using Rollup to convert ES6 modules to UI5’s AMD flavour. @petermuessig wasn’t there a public example somewhere around the ui5lab?