@sap-ux/adp-tooling 1.0.18 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/preview/adp-preview.js +11 -0
- package/package.json +1 -1
|
@@ -183,6 +183,17 @@ export class AdpPreview {
|
|
|
183
183
|
else if (req.path === '/Component-preload.js') {
|
|
184
184
|
res.status(404).send();
|
|
185
185
|
}
|
|
186
|
+
else if (req.path.startsWith('/i18n/') && req.path.endsWith('.properties')) {
|
|
187
|
+
// i18n .properties files (default, locale variants, and per-page bundles such
|
|
188
|
+
// as /i18n/ListReport/<entity>/i18n.properties) must always fall through to
|
|
189
|
+
// the base app's resource server. The ADP webapp may also contain an
|
|
190
|
+
// i18n.properties file with prefixed customer keys, but those are merged
|
|
191
|
+
// into the model at runtime via appdescr_ui5_addNewModelEnhanceWith — not
|
|
192
|
+
// by substituting the entire bundle here. Substituting hides the base app's
|
|
193
|
+
// translations and breaks {@i18n>...} lookups (e.g. column header labels in
|
|
194
|
+
// UI.LineItem).
|
|
195
|
+
next();
|
|
196
|
+
}
|
|
186
197
|
else {
|
|
187
198
|
// check if the requested file exists in the file system (replace .js with .* for typescript)
|
|
188
199
|
const files = await this.project.byGlob(req.path.replace('.js', '.*'));
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"bugs": {
|
|
11
11
|
"url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Aadp-tooling"
|
|
12
12
|
},
|
|
13
|
-
"version": "1.0.
|
|
13
|
+
"version": "1.0.19",
|
|
14
14
|
"license": "Apache-2.0",
|
|
15
15
|
"author": "@SAP/ux-tools-team",
|
|
16
16
|
"main": "dist/index.js",
|