Aqara_localizable 0.0.4 → 0.0.5

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: 3e185047e44e6f2725b74df836dbe0b2de830e53dd5d85b1a6faef00a58875ef
4
- data.tar.gz: cba3fa71759dc51d181472b7becc91f73b44b0c6fd16fc1076b75ae1186b9909
3
+ metadata.gz: bbf09c7da40f156a14ad3a0dbfdc5305ebac729efea9f0bdc8f2b6001661263e
4
+ data.tar.gz: b03412d3bd6aeb77abcfd6e9aec48fbbca7995198c2feb7e1841747a752b3fd0
5
5
  SHA512:
6
- metadata.gz: ecdc6009aee99d99997ad0f81de1c54c64d51aa13dd731e2ed06cffda39e7e291002ec1cc22b871892cdf91ad33f0c36602613f19bc1b1e99850f5a912fedfcc
7
- data.tar.gz: 663a414aa2886f6cdaeee31f499cfbadd56180d13a7e77ddcfeae32c0afb440516aea2646847212100b740ff85fb0f308ab3c88d7d10379ba7ea200d4c8ece5a
6
+ metadata.gz: 34f0034ad3d38935d4b98914e5285c518d1216c22e78b7a6f8d1675de844c820f8b2cae98278ece624115ba65f368edcfc5202b5c1aba1523f9d927048ad9a79
7
+ data.tar.gz: 57371e5c944b00fdb18e7579eade2d2cececf20a9281f53d5cf9b20a4f906f7f30b08dc63bb9a6003344a04ded75a124cdfe14dff681b96c57dc0ac026e9317e
@@ -4,7 +4,6 @@ module AqaraLocalizable
4
4
  class Command
5
5
  class Gen < Command
6
6
  self.summary = '开始下载多语言平台的代码并替换项目多语言文件'
7
-
8
7
  def initialize(argv)
9
8
  super
10
9
  project_directory = argv.option('project-directory')
@@ -1,3 +1,3 @@
1
1
  module AqaraLocalizable
2
- VERSION = '0.0.4'.freeze unless defined? AqaraLocalizable::VERSION
2
+ VERSION = '0.0.5'.freeze unless defined? AqaraLocalizable::VERSION
3
3
  end
@@ -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(len(platformUniteStrDict))
94
+ print(f'\033[4;36m多语言Key总数:{len(platformUniteStrDict)}\033[0m')
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'校对下替换的位置是否正确====={codePath}')
141
+ print(f'\033[1;35m校对下替换的位置是否正确:{codePath}\033[0m')
142
142
  if os.path.exists(codePath):
143
143
  copyLocalizedToDestPath(iosStringListPath,codePath)
144
144
 
@@ -164,7 +164,6 @@ def readXlsxFileToDict(filepath):
164
164
  for cell in ws.rows:
165
165
 
166
166
  key = cell[1].value
167
- print(key)
168
167
  if key == None or key == 'key':
169
168
  continue
170
169
  chinese_simp = cell[Language.CHI_SIMPLE.value].value
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
4
+ version: 0.0.5
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-22 00:00:00.000000000 Z
11
+ date: 2022-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler