pixab 1.3.1 → 1.3.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c8a6813998f3505f0d331e04c263dbd774d930dfccb8427cbdb5e2d63cd0f95c
4
- data.tar.gz: 9cd068595fc87fae2848a60edffec01b643d19a979e68a04af41394178f5cbff
3
+ metadata.gz: db8fb090c2334b6836f98ecf5528afa80a4a2eeb364694b4e31f0c98dc14a6ea
4
+ data.tar.gz: 6b0aa882413d538a5b4d6c880eee05666db9e410f44eda6b2bb4a1e6720e4317
5
5
  SHA512:
6
- metadata.gz: 867831964a673527b7ad61b1630ed26b1c8f0de6f83b63215925b40b8a192f9fee62b956e7dcd6742858e1d44fedd97653b0ac9ee1848c95a9bf017e1e207141
7
- data.tar.gz: 54176108087fee9abd768f5f8c3bceca020947e4fa32d0d71313996a317176d4f5e2f171162f3d7cd4b36c86e5397b6d14a51bca52acd670d084336c3c9e8e12
6
+ metadata.gz: 26bbbb84362df52c76641aa493d779295fd148fd1dbdcfe965334783372420829edb0b5343ce7fdaef6a74a862802c72363a7a2fd53f759973d488dff6085f7c
7
+ data.tar.gz: 1007ff4c51939e3bcd469e52cb6af692177fd29b60577ce17f7871f31c9f97e76ba8b3590621a566914a3035330d04cfc9126a20c570fac357c1bb8090d91d77
data/lib/Localization.rb CHANGED
@@ -115,7 +115,12 @@ module Pixab
115
115
  localized_infos = []
116
116
  localized_info_category[locale_name] = localized_infos
117
117
  end
118
- localized_infos.push({'key' => "#{object['key']['name']}", 'value' => "#{object['content']}"})
118
+ local_key = object['key']
119
+ local_key_name = local_key['name']
120
+ if local_key['plural']
121
+ local_key_name += ".#{object['plural_suffix']}"
122
+ end
123
+ localized_infos.push({'key' => local_key_name, 'value' => "#{object['content']}"})
119
124
  end
120
125
  return localized_info_category
121
126
  end
data/lib/pixab/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pixab
4
- VERSION = "1.3.1"
4
+ VERSION = "1.3.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pixab
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - 廖再润
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-17 00:00:00.000000000 Z
11
+ date: 2023-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colored2