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: 684f4c2501351b3da314fdd9449887d4c2bebec9a2de71431f57df39b4adf6e4
4
- data.tar.gz: 7a917081fe187bd578d3462c01c0119c4c01a24cf9a5ba26df6e43ea8c25cecc
3
+ metadata.gz: 1a8eb2365bbae431685e1ce13b6267ab4fdcf438262b81ece37be7cb6c5a848f
4
+ data.tar.gz: b1db13f9a813ff819c6bd81cade9924f7110b67273a00484025eed778b2f0511
5
5
  SHA512:
6
- metadata.gz: 7dbafa82cc14bc3eb7cfc8496b2064e722ca06faaaf13341bcabfe0edb409608527aa1564dca43c64c7cbd35e522f651e5f8b50097cfad603ef62e1fca9f4dba
7
- data.tar.gz: 94d95f0d430226602091974f545d6f4a89c7c2620b432dccf6b8c8bc7c5a786c8045ad17ddd8a54de878be566a66be9aefe69aa779d51964e3eee6d73981c482
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
- key = object[key_name]
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"
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Lokalise
3
- VERSION = "2.0.5"
3
+ VERSION = "2.0.6"
4
4
  end
5
5
  end
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.5
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-03-18 00:00:00.000000000 Z
11
+ date: 2019-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry