missing_translation 0.2.0 → 0.2.1

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: 4c45b827695eff0dec6447bd5eb42a2e52a7796fd55c1ad70d65825a536a3ba0
4
- data.tar.gz: b18c56a5647d1b68939e5a542f461314aaf35fabe214fba9149e03bf965957ab
3
+ metadata.gz: 5935fba9f02fe6b32f835ce25ce5bd32ff8d477ccfa292ffa77ffac437568cb3
4
+ data.tar.gz: eedafc5365f8cf312326cf9afaeb05d5d28a1eb10c92fe780472a1b0004859f3
5
5
  SHA512:
6
- metadata.gz: bc298f0e829a78ae4f3df5fc38282e07e0a508e96b6f294594bea671e49923efbcaeef3623e022d11ba250304c6a15033e3cbca08741aca8e9fe4440734eb02a
7
- data.tar.gz: 755e0c279bb3b7ab8062c3fd687f7d023e78dd77084ece3285fbed59fe885f7c0857dcaf8b9c4a1f64626fe7f18324f693b0aa5356a8a06d4243f81bee676616
6
+ metadata.gz: 10a5418ce724f2a5fbf289eee0056a1916fbdf1db0f2a81952525c05484fa6d70dd8a45c5c3cb5f1bd453c2001917341544d589e0f207c061ad16e426afcf2bc
7
+ data.tar.gz: 59fb636dfce9eeb21a1b105100b8dac67874119651952aae124eb61afe4b486137f7e450f79b6f3834fa44bd90fc918b515c7a195c9d87967522d3d4bb4a6207
@@ -17,8 +17,11 @@ module MissingTranslation
17
17
 
18
18
  def to_json
19
19
  return nil unless @content
20
-
21
- @content.to_hash
20
+
21
+ hash_content = @content.to_hash
22
+ return hash_content[language] if hash_content.has_key?(language)
23
+
24
+ hash_content
22
25
  end
23
26
 
24
27
  def group
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MissingTranslation
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: missing_translation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Clercin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-31 00:00:00.000000000 Z
11
+ date: 2022-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor