@trackunit/translations-machine-type 1.4.30 → 1.4.32

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/index.cjs.js CHANGED
@@ -1018,7 +1018,7 @@ const useMachineInsightsTranslations = () => {
1018
1018
  }
1019
1019
  }, [t]);
1020
1020
  const getInsightSubType = (type, subtype) => {
1021
- switch (type) {
1021
+ switch (stringTs.replaceAll(type, "_", "")) {
1022
1022
  case "AFTERTREATMENTDIESELPARTICULATEFILTERACTIVEREGENERATIONSTATE":
1023
1023
  switch (subtype) {
1024
1024
  case "ACTIVE":
package/index.esm.js CHANGED
@@ -1016,7 +1016,7 @@ const useMachineInsightsTranslations = () => {
1016
1016
  }
1017
1017
  }, [t]);
1018
1018
  const getInsightSubType = (type, subtype) => {
1019
- switch (type) {
1019
+ switch (replaceAll(type, "_", "")) {
1020
1020
  case "AFTERTREATMENTDIESELPARTICULATEFILTERACTIVEREGENERATIONSTATE":
1021
1021
  switch (subtype) {
1022
1022
  case "ACTIVE":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/translations-machine-type",
3
- "version": "1.4.30",
3
+ "version": "1.4.32",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -10,8 +10,8 @@
10
10
  "react": "19.0.0",
11
11
  "jest-fetch-mock": "^3.0.3",
12
12
  "string-ts": "^2.0.0",
13
- "@trackunit/i18n-library-translation": "1.4.29",
14
- "@trackunit/react-test-setup": "1.1.23"
13
+ "@trackunit/i18n-library-translation": "1.4.30",
14
+ "@trackunit/react-test-setup": "1.1.24"
15
15
  },
16
16
  "module": "./index.esm.js",
17
17
  "main": "./index.cjs.js",