@cap-js/ord 1.3.11 → 1.3.12

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/lib/interopCsn.js CHANGED
@@ -19,6 +19,7 @@ function add_i18n_texts(csn) {
19
19
  // get all texts of the app
20
20
  const i18n = [...(localize.bundles4(csn) || [])]
21
21
  .filter(([locale]) => !!locale)
22
+ .map(([locale, value]) => [locale.replaceAll('_', '-'), value]) // CSN interop uses '-' as separator
22
23
  .reduce((all, [locale, value]) => ({ ...all, [locale]: value }), {});
23
24
 
24
25
  // get all i18n keys referenced in the csn
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cap-js/ord",
3
- "version": "1.3.11",
3
+ "version": "1.3.12",
4
4
  "description": "CAP Plugin for generating ORD document.",
5
5
  "repository": "cap-js/ord",
6
6
  "author": "SAP SE (https://www.sap.com)",