@ledvance/base 1.3.51 → 1.3.53

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/localazy.json CHANGED
@@ -1112,7 +1112,21 @@
1112
1112
  "MATCH:curtain_calibration_success_text",
1113
1113
  "MATCH:curtain_calibration_failed_text",
1114
1114
  "MATCH:curtain_calibration_progress_text",
1115
- "MATCH:curtain_calibration_tryagin_text"
1115
+ "MATCH:curtain_calibration_tryagin_text",
1116
+ "MATCH:switchname_1channel",
1117
+ "MATCH:switchname_2channel",
1118
+ "MATCH:switchname_4channel",
1119
+ "MATCH:switch_4channelfunctions1",
1120
+ "MATCH:switch_4channelfunctions2",
1121
+ "MATCH:switch_4channelfunctions3",
1122
+ "MATCH:switch_4channelfunctions4",
1123
+ "MATCH:switch_singlepress",
1124
+ "MATCH:switch_doublepress",
1125
+ "MATCH:switch_longpress",
1126
+ "MATCH:switch_4channels1setting",
1127
+ "MATCH:switch_4channels2setting",
1128
+ "MATCH:switch_4channels3setting",
1129
+ "MATCH:switch_4channels4setting"
1116
1130
  ],
1117
1131
  "replacements": {
1118
1132
  "REGEX:% %1\\$s.*?\\)%": "{0}",
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "@ledvance/base",
5
5
  "pid": [],
6
6
  "uiid": "",
7
- "version": "1.3.51",
7
+ "version": "1.3.53",
8
8
  "scripts": {
9
9
  "prepublishOnly": "python update-localazy.py"
10
10
  },
@@ -65,4 +65,4 @@ const ApplyForDeviceList = (props: ApplyForDeviceListProps) => {
65
65
  </View>
66
66
  }
67
67
 
68
- export default withTheme(ApplyForDeviceList)
68
+ export default withTheme(ApplyForDeviceList) as React.ComponentType<ApplyForDeviceListProps>
@@ -6,6 +6,7 @@ import Spacer from './Spacer';
6
6
  import ThemeType from '../config/themeType';
7
7
  import {useNavigation} from '@react-navigation/core';
8
8
  import {NativeApi} from "../api/native";
9
+ import I18n from "../i18n/index";
9
10
 
10
11
  const cx = Utils.RatioUtils.convertX;
11
12
  const {withTheme} = Utils.ThemeUtils;
@@ -57,34 +58,34 @@ const PressActionView = (props: PressActionProps) => {
57
58
  if (props.channel === 1) {
58
59
  data = [
59
60
  {
60
- title: 'Single Press', onPress: () => toRoutinesPage(PressType.Single)
61
+ title: I18n.getLang('switch_singlepress'), onPress: () => toRoutinesPage(PressType.Single)
61
62
  },
62
63
  {
63
- title: 'Double Press', onPress: () => toRoutinesPage(PressType.Double)
64
+ title: I18n.getLang('switch_doublepress'), onPress: () => toRoutinesPage(PressType.Double)
64
65
  },
65
66
  {
66
- title: 'Long Press', onPress: () => toRoutinesPage(PressType.Long)
67
+ title: I18n.getLang('switch_longpress'), onPress: () => toRoutinesPage(PressType.Long)
67
68
  },
68
69
  ]
69
70
  } else {
70
71
  data = [
71
72
  {
72
- title: 'Switch 1',
73
+ title: I18n.getLang('switch_4channelfunctions1'),
73
74
  onPress: () => toSettingPage(0)
74
75
  },
75
76
  {
76
- title: 'Switch 2',
77
+ title: I18n.getLang('switch_4channelfunctions2'),
77
78
  onPress: () => toSettingPage(1)
78
79
  },
79
80
  ]
80
81
  if (props.channel === 4) {
81
82
  data = data.concat(
82
83
  {
83
- title: 'Switch 3',
84
+ title: I18n.getLang('switch_4channelfunctions3'),
84
85
  onPress: () => toSettingPage(2)
85
86
  },
86
87
  {
87
- title: 'Switch 4',
88
+ title: I18n.getLang('switch_4channelfunctions4'),
88
89
  onPress: () => toSettingPage(3)
89
90
  }
90
91
  )
@@ -92,4 +92,4 @@ function SocketItem(props: SocketItemProps) {
92
92
  )
93
93
  }
94
94
 
95
- export default withTheme(SocketItem)
95
+ export default withTheme(SocketItem) as React.ComponentType<SocketItemProps>
@@ -149,6 +149,7 @@ const composeLayout = (component: React.ComponentType) => {
149
149
  config: {},
150
150
  groupDevices: []
151
151
  },
152
+ initialDps: {...dps, ...JSON.parse(ldvDevInfo.dps)},
152
153
  familyName: ldvDevInfo.familyName,
153
154
  role: ldvDevInfo.role,
154
155
  moods: [],