loco_tool 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -1
- data/lib/helper.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb7acfbf180e88ff2c907df0e3693b81a638b84b5496664405464f6896f6b43e
|
4
|
+
data.tar.gz: b0bcb5897fdb6ae131fa305be90c1ff6c495033c75ae893f098840f65b0b272f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3563ec7bf3d3929600cd78c79877fbe0d1fa93246daf3d0a00787da567e1f5853c283afdc3215df31aa36cb176458b76146e1f8473e19356bd0425bbf65a9aca
|
7
|
+
data.tar.gz: b3e43a621bc994bc16cf8186392def9184dc85918c480c0bfa0fb5446bd52910524ca8e78c981f75da4ff09ca19855170527962ad3a5d3574a723136b21e7769
|
data/README.md
CHANGED
@@ -54,11 +54,19 @@ This command automatically finds and syncs iOS localization files in the specifi
|
|
54
54
|
### Transform Localization Files
|
55
55
|
|
56
56
|
```
|
57
|
-
$ locotool
|
57
|
+
$ locotool export [PATH_A] [PATH_B] -s [SORT] -c [CASE]
|
58
58
|
```
|
59
59
|
|
60
60
|
This command transforms localization files from `PATH_A` to `PATH_B`. It can sort the keys in the output files (`SORT`) and change the case of the keys (`CASE`). The `SORT` parameter can be set to `asc`, or `desc`. The `CASE` parameter can be set to `lower`, or `upper`. Both parameters are optional.
|
61
61
|
|
62
|
+
## Examples
|
63
|
+
|
64
|
+
Export Localization file from iOS to Android
|
65
|
+
|
66
|
+
```sh
|
67
|
+
$ locotool export en.lproj/Localizable.strings en.xml -s asc -c lower
|
68
|
+
```
|
69
|
+
|
62
70
|
## Contributing
|
63
71
|
|
64
72
|
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request on the [LocoTool GitHub repository](https://github.com/ftp27/loco_tool).
|
data/lib/helper.rb
CHANGED
@@ -60,7 +60,7 @@ class Helper
|
|
60
60
|
next unless target_key
|
61
61
|
next unless lost_keys.include?(target_key)
|
62
62
|
|
63
|
-
|
63
|
+
_target.update(target_key, source_string.value)
|
64
64
|
lost_keys.delete(target_key)
|
65
65
|
Logger.string_value(target_key, source_string.value)
|
66
66
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: loco_tool
|
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
|
- Aleksei Cherepanov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: loco_strings
|