cocoapods-aqara-localzedLoader 0.1.1 → 0.1.3
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 75940b0bd61a992f0087f2f04e716760afe9b81db4ca69bf4b00dae69a2fc049
|
|
4
|
+
data.tar.gz: 0c8699c864eaf4d62039e8b8750e85d33d1028bb9624c0b7518e2959c8b62449
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d48a49e4cfc9b10f5123bc813be10752e7ad88bd45d1a804733a24a1b2e59e2145759d2edba27cbe9bee6ed7021ad52bc54550d2653295e57a0e6d2e90ba02f6
|
|
7
|
+
data.tar.gz: 93b484b3729ef1ef06ac8f1373909f3d10b707c382dd7c764ef6731c9b8e93550d538f2d195722831495ee86a63b1f0671f3c1dfe39e3f7285d007d691079d13
|
data/Gemfile.lock
CHANGED
|
@@ -18,18 +18,27 @@ class File_util
|
|
|
18
18
|
workbook = RubyXL::Parser.parse filename
|
|
19
19
|
worksheet = workbook[0]
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
21
|
+
if crowdin
|
|
22
|
+
first_row = worksheet[0]
|
|
23
|
+
zh_cn_col = first_row.cells.index { |c| c && c.value == 'zh-CN' }
|
|
24
|
+
|
|
25
|
+
if zh_cn_col
|
|
26
|
+
worksheet.each do |row|
|
|
27
|
+
row&.cells&.delete_at(zh_cn_col)
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
last_col_index = worksheet[0].cells.size # 当前最后一列索引+1
|
|
32
|
+
|
|
33
|
+
# 遍历 B 列(索引 1)所有行
|
|
34
|
+
worksheet.each_with_index do |row, row_index|
|
|
35
|
+
b_value = row && row[1] ? row[1].value : nil
|
|
36
|
+
worksheet.add_cell(row_index, last_col_index, b_value)
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
worksheet[0].cells[last_col_index] = worksheet.add_cell(0, last_col_index, 'zh-CN')
|
|
40
|
+
workbook.write(filename)
|
|
41
|
+
end
|
|
33
42
|
|
|
34
43
|
row1 = worksheet[0]
|
|
35
44
|
@key_hash = getkeyHash(row1)
|
|
@@ -237,6 +237,7 @@ class BundleGenerater
|
|
|
237
237
|
def self.handleValue(value='',stringElement = nil)
|
|
238
238
|
#替换{=}
|
|
239
239
|
value = self.replace_placeholders value
|
|
240
|
+
value = value.gsub('%s', '%@')
|
|
240
241
|
value = value.gsub(/{#}/,"%@")
|
|
241
242
|
value = value.gsub(/""/,'"')
|
|
242
243
|
value = value.gsub(/\\"/,'"')
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cocoapods-aqara-localzedLoader
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- zhaoxifan
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-12-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|