Aqara_localizable 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09a449fc1292307f320eddddff6a932b037e9f1dcb13aa351515cd18fc69d940'
|
4
|
+
data.tar.gz: '0584cabf4ab85e64cd27d40fc1e29b3a99561cc9fc981c5b343b9490a782628e'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b054b7e2700f7272b995d96b1c1f34a4603ecca009c6f3901084cd7217610b3c15ddd276783f1df342f3840aed39fafea4673e8901b2e1ccb53dbd6c61f43d65
|
7
|
+
data.tar.gz: b941dcf749aa31a9a67caea5ed929dd691e3ba1627ebc608109f4e3ce7f5af4e6cc4603b0a1095b43f38284e76a4982e8e843d8be61215ed1082f91ed0a2abf7
|
@@ -38,7 +38,7 @@ def DownLatestLocalizableSource(targetPath):
|
|
38
38
|
session = requests.Session()
|
39
39
|
headers = MakeHeader(myheader)
|
40
40
|
params = '{"projectIdList":[5],"langIds":[1,2,3,9,10,11,12,13,14,15],"fileTypeList":["excel"],"auditState":1,"valueState":0,"userId":"","value":"","tagIds":null,"bizUseTagIds":null,"pkeys":[]}'
|
41
|
-
response = session.post("https://intl-lang.aqara.com/v1.0/lumi/language/file/export", headers = headers, data=params, timeout=
|
41
|
+
response = session.post("https://intl-lang.aqara.com/v1.0/lumi/language/file/export", headers = headers, data=params, timeout=20)
|
42
42
|
with open(f'{targetPath}/localizable' + ".zip","wb") as code:
|
43
43
|
# 将 response 保存成本地文件
|
44
44
|
code.write(response.content)
|
@@ -91,7 +91,7 @@ if __name__ == '__main__':
|
|
91
91
|
filepath = f'{target_path}/hit_all_str.xlsx'
|
92
92
|
|
93
93
|
platformUniteStrDict = file_util.readXlsxFileToDict(filepath)
|
94
|
-
print(f'
|
94
|
+
print(f'多语言Key总数:{len(platformUniteStrDict)}')
|
95
95
|
isIndexLan = False
|
96
96
|
if isIndexLan:
|
97
97
|
addIndex(platformUniteStrDict)
|
@@ -138,7 +138,7 @@ if __name__ == '__main__':
|
|
138
138
|
ifs.close()
|
139
139
|
|
140
140
|
codePath = f'{localizable_path}/AqaraHome/Common/Frameworks/LMFramework.bundle'
|
141
|
-
print(f'
|
141
|
+
print(f'校对下替换的位置是否正确:{codePath}')
|
142
142
|
if os.path.exists(codePath):
|
143
143
|
copyLocalizedToDestPath(iosStringListPath,codePath)
|
144
144
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Aqara_localizable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- zhaoxifan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|