@gooddata/util 11.15.0-alpha.2 → 11.15.0-alpha.3
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/esm/translationUtils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// (C) 2007-
|
|
1
|
+
// (C) 2007-2025 GoodData Corporation
|
|
2
2
|
/**
|
|
3
3
|
* Given an object containing the parsed translation bundle, this function creates a new object which contains
|
|
4
4
|
* only key → value mapping between translation key and the actual value.
|
|
@@ -11,7 +11,7 @@ export function removeMetadata(translationsWithMetadata) {
|
|
|
11
11
|
Object.keys(translationsWithMetadata).forEach((key) => {
|
|
12
12
|
translations[key] =
|
|
13
13
|
typeof translationsWithMetadata[key] === "object"
|
|
14
|
-
? translationsWithMetadata[key].
|
|
14
|
+
? translationsWithMetadata[key].text
|
|
15
15
|
: translationsWithMetadata[key];
|
|
16
16
|
});
|
|
17
17
|
return translations;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translationUtils.js","sourceRoot":"","sources":["../src/translationUtils.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAAC,wBAA6C;IACxE,MAAM,YAAY,GAA2B,EAAE,CAAC;IAChD,MAAM,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QAClD,YAAY,CAAC,GAAG,CAAC;YACb,OAAO,wBAAwB,CAAC,GAAG,CAAC,KAAK,QAAQ;gBAC7C,CAAC,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"translationUtils.js","sourceRoot":"","sources":["../src/translationUtils.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAAC,wBAA6C;IACxE,MAAM,YAAY,GAA2B,EAAE,CAAC;IAChD,MAAM,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QAClD,YAAY,CAAC,GAAG,CAAC;YACb,OAAO,wBAAwB,CAAC,GAAG,CAAC,KAAK,QAAQ;gBAC7C,CAAC,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC,IAAI;gBACpC,CAAC,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;IACH,OAAO,YAAY,CAAC;AACxB,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,UAAkB,EAAU,EAAE;IAClE,IAAI,UAAU,KAAK,SAAS,IAAI,UAAU,KAAK,SAAS,IAAI,UAAU,KAAK,OAAO,EAAE,CAAC;QACjF,OAAO,OAAO,CAAC;IACnB,CAAC;IACD,OAAO,UAAU,CAAC;AACtB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/util",
|
|
3
|
-
"version": "11.15.0-alpha.
|
|
3
|
+
"version": "11.15.0-alpha.3",
|
|
4
4
|
"description": "GoodData Utility Functions",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"prettier": "^3.6.2",
|
|
47
47
|
"typescript": "5.8.3",
|
|
48
48
|
"vitest": "3.2.4",
|
|
49
|
-
"@gooddata/eslint-config": "11.15.0-alpha.
|
|
49
|
+
"@gooddata/eslint-config": "11.15.0-alpha.3"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"_phase:build": "npm run build",
|