Aqara_localizable 0.0.5 → 0.0.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bbf09c7da40f156a14ad3a0dbfdc5305ebac729efea9f0bdc8f2b6001661263e
4
- data.tar.gz: b03412d3bd6aeb77abcfd6e9aec48fbbca7995198c2feb7e1841747a752b3fd0
3
+ metadata.gz: '09a449fc1292307f320eddddff6a932b037e9f1dcb13aa351515cd18fc69d940'
4
+ data.tar.gz: '0584cabf4ab85e64cd27d40fc1e29b3a99561cc9fc981c5b343b9490a782628e'
5
5
  SHA512:
6
- metadata.gz: 34f0034ad3d38935d4b98914e5285c518d1216c22e78b7a6f8d1675de844c820f8b2cae98278ece624115ba65f368edcfc5202b5c1aba1523f9d927048ad9a79
7
- data.tar.gz: 57371e5c944b00fdb18e7579eade2d2cececf20a9281f53d5cf9b20a4f906f7f30b08dc63bb9a6003344a04ded75a124cdfe14dff681b96c57dc0ac026e9317e
6
+ metadata.gz: b054b7e2700f7272b995d96b1c1f34a4603ecca009c6f3901084cd7217610b3c15ddd276783f1df342f3840aed39fafea4673e8901b2e1ccb53dbd6c61f43d65
7
+ data.tar.gz: b941dcf749aa31a9a67caea5ed929dd691e3ba1627ebc608109f4e3ce7f5af4e6cc4603b0a1095b43f38284e76a4982e8e843d8be61215ed1082f91ed0a2abf7
@@ -1,3 +1,3 @@
1
1
  module AqaraLocalizable
2
- VERSION = '0.0.5'.freeze unless defined? AqaraLocalizable::VERSION
2
+ VERSION = '0.0.6'.freeze unless defined? AqaraLocalizable::VERSION
3
3
  end
@@ -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=3)
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'\033[4;36m多语言Key总数:{len(platformUniteStrDict)}\033[0m')
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'\033[1;35m校对下替换的位置是否正确:{codePath}\033[0m')
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.5
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-24 00:00:00.000000000 Z
11
+ date: 2022-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler