fastlane-plugin-lokalise 2.0.5 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a8eb2365bbae431685e1ce13b6267ab4fdcf438262b81ece37be7cb6c5a848f
|
4
|
+
data.tar.gz: b1db13f9a813ff819c6bd81cade9924f7110b67273a00484025eed778b2f0511
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 925a058f8cbde947e227978b6922c1bd97bf22bbde8902c9ee2e7c125c4aafa7ebbfcb2960e582e93ac1ebb0f197c071053bb88041481918777c3dc3dfab17ea
|
7
|
+
data.tar.gz: a6434e3419547d45fe8e210618967eb0ae3c22face943f97d292705a747c46fb62cada19fa9b8808c4c6c16061ad1a6453f16e117dd4afa1b4a26a3cc8249bf8
|
@@ -284,7 +284,11 @@ module Fastlane
|
|
284
284
|
if valid_languages.include?(lang)
|
285
285
|
translations = {}
|
286
286
|
translation_objects.each { |object|
|
287
|
-
|
287
|
+
# The key can named differently depending on how the Lokalise Project was set up
|
288
|
+
key = object[key_name]
|
289
|
+
if !key
|
290
|
+
key = object['key']
|
291
|
+
end
|
288
292
|
translation = object["translation"]
|
289
293
|
if valid_keys.include?(key) && translation != nil && translation.empty? == false
|
290
294
|
translations[key] = translation
|
@@ -306,7 +310,7 @@ module Fastlane
|
|
306
310
|
hash[key] = text unless text.empty?
|
307
311
|
rescue => exception
|
308
312
|
raise exception
|
309
|
-
end
|
313
|
+
end
|
310
314
|
end
|
311
315
|
|
312
316
|
|
@@ -369,6 +373,8 @@ module Fastlane
|
|
369
373
|
|
370
374
|
def self.itunes_to_lokalise_language_map()
|
371
375
|
return {
|
376
|
+
"nl-NL" => "nl",
|
377
|
+
"en-US" => "en",
|
372
378
|
"hi" => "hi_IN",
|
373
379
|
"zh-Hans" => "zh_CN",
|
374
380
|
"zh-Hant" => "zh_TW"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-lokalise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abbas Jaffery
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|