@ledvance/base 1.3.51 → 1.3.52
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 +15 -1
- package/package.json +1 -1
- package/src/components/PressActionView.tsx +8 -7
- package/src/i18n/strings.ts +466 -61
- package/translateKey.txt +15 -1
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
|
@@ -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: '
|
|
61
|
+
title: I18n.getLang('switch_singlepress'), onPress: () => toRoutinesPage(PressType.Single)
|
|
61
62
|
},
|
|
62
63
|
{
|
|
63
|
-
title: '
|
|
64
|
+
title: I18n.getLang('switch_doublepress'), onPress: () => toRoutinesPage(PressType.Double)
|
|
64
65
|
},
|
|
65
66
|
{
|
|
66
|
-
title: '
|
|
67
|
+
title: I18n.getLang('switch_longpress'), onPress: () => toRoutinesPage(PressType.Long)
|
|
67
68
|
},
|
|
68
69
|
]
|
|
69
70
|
} else {
|
|
70
71
|
data = [
|
|
71
72
|
{
|
|
72
|
-
title: '
|
|
73
|
+
title: I18n.getLang('switch_4channelfunctions1'),
|
|
73
74
|
onPress: () => toSettingPage(0)
|
|
74
75
|
},
|
|
75
76
|
{
|
|
76
|
-
title: '
|
|
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: '
|
|
84
|
+
title: I18n.getLang('switch_4channelfunctions3'),
|
|
84
85
|
onPress: () => toSettingPage(2)
|
|
85
86
|
},
|
|
86
87
|
{
|
|
87
|
-
title: '
|
|
88
|
+
title: I18n.getLang('switch_4channelfunctions4'),
|
|
88
89
|
onPress: () => toSettingPage(3)
|
|
89
90
|
}
|
|
90
91
|
)
|