@trackunit/translations-machine-type 1.0.8 → 1.0.11

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
@@ -956,7 +956,6 @@ const useMachineInsightsTranslations = () => {
956
956
  }
957
957
  };
958
958
  const getInsightUnitText = react.useCallback((key) => {
959
- // eslint-disable-next-line sonarjs/max-switch-cases
960
959
  switch (key) {
961
960
  case "DEGREE_ANGLE":
962
961
  return t("pages.machines.insights.sections.insights.units.DEGREE");
@@ -1021,7 +1020,6 @@ const useMachineInsightsTranslations = () => {
1021
1020
  const getInsightSubType = (type, subtype) => {
1022
1021
  switch (type) {
1023
1022
  case "AFTERTREATMENTDIESELPARTICULATEFILTERACTIVEREGENERATIONSTATE":
1024
- // eslint-disable-next-line sonarjs/no-nested-switch
1025
1023
  switch (subtype) {
1026
1024
  case "ACTIVE":
1027
1025
  case "NOT_ACTIVE":
@@ -1031,7 +1029,6 @@ const useMachineInsightsTranslations = () => {
1031
1029
  return t("pages.machines.insights.sections.insights.insightNames.unknown");
1032
1030
  }
1033
1031
  case "AFTERTREATMENTDIESELPARTICULATEFILTERSTATE":
1034
- // eslint-disable-next-line sonarjs/no-nested-switch
1035
1032
  switch (subtype) {
1036
1033
  case "REGENERATION_NOT_NEEDED":
1037
1034
  case "REGENERATION_NEEDED_LOWEST_LEVEL":
package/index.esm.js CHANGED
@@ -954,7 +954,6 @@ const useMachineInsightsTranslations = () => {
954
954
  }
955
955
  };
956
956
  const getInsightUnitText = useCallback((key) => {
957
- // eslint-disable-next-line sonarjs/max-switch-cases
958
957
  switch (key) {
959
958
  case "DEGREE_ANGLE":
960
959
  return t("pages.machines.insights.sections.insights.units.DEGREE");
@@ -1019,7 +1018,6 @@ const useMachineInsightsTranslations = () => {
1019
1018
  const getInsightSubType = (type, subtype) => {
1020
1019
  switch (type) {
1021
1020
  case "AFTERTREATMENTDIESELPARTICULATEFILTERACTIVEREGENERATIONSTATE":
1022
- // eslint-disable-next-line sonarjs/no-nested-switch
1023
1021
  switch (subtype) {
1024
1022
  case "ACTIVE":
1025
1023
  case "NOT_ACTIVE":
@@ -1029,7 +1027,6 @@ const useMachineInsightsTranslations = () => {
1029
1027
  return t("pages.machines.insights.sections.insights.insightNames.unknown");
1030
1028
  }
1031
1029
  case "AFTERTREATMENTDIESELPARTICULATEFILTERSTATE":
1032
- // eslint-disable-next-line sonarjs/no-nested-switch
1033
1030
  switch (subtype) {
1034
1031
  case "REGENERATION_NOT_NEEDED":
1035
1032
  case "REGENERATION_NEEDED_LOWEST_LEVEL":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/translations-machine-type",
3
- "version": "1.0.8",
3
+ "version": "1.0.11",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -10,7 +10,7 @@
10
10
  "react": "18.3.1",
11
11
  "jest-fetch-mock": "^3.0.3",
12
12
  "string-ts": "^2.0.0",
13
- "@trackunit/i18n-library-translation": "^1.0.8"
13
+ "@trackunit/i18n-library-translation": "^1.0.11"
14
14
  },
15
15
  "module": "./index.esm.js",
16
16
  "main": "./index.cjs.js",