loco_tool 0.1.2 → 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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -1
  3. data/lib/helper.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1146ef7af84b83e69fb35703d8aca54c75307f72bac634e0fb24de0f2096263d
4
- data.tar.gz: 2c7e25f0184813b5405ec9c49e7a6df014654677c1ab6d9480c153be22d7fa7b
3
+ metadata.gz: bb7acfbf180e88ff2c907df0e3693b81a638b84b5496664405464f6896f6b43e
4
+ data.tar.gz: b0bcb5897fdb6ae131fa305be90c1ff6c495033c75ae893f098840f65b0b272f
5
5
  SHA512:
6
- metadata.gz: f7e94d5a7cfcca72a7c54b1f30ca9be2b4d80f5d882792645b22970a308d63ceea6aeb5c565ba99ddc893a089bc7e980c3fb28444667dc7c5c2104e1c5788387
7
- data.tar.gz: 3c9ee9310a20358454765523a738d3044028af0af1f6a6c1aa52d640a49e30d8981e87ad2fddcfb87e777a66c5cfdd4d22396724a8a6c5ecab1a1b9f3c02e875
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 transform [PATH_A] [PATH_B] -s [SORT] -c [CASE]
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
- strings_b_file.update(target_key, source_string.value)
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.2
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-06-27 00:00:00.000000000 Z
11
+ date: 2023-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: loco_strings