inertia_i18n 0.7.0 → 0.8.0

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: 4e612133c6b6af1e6269626c3af83a4c27c846b50f2b75f1a12d51559425a3d5
4
- data.tar.gz: f2524dc747a6314a7a482566b086cc854b1a1276ae048b04cb8002946d5a4910
3
+ metadata.gz: 8fff908129863e5abaa3435f3fd95784cb1b4650df33b53e4c1a718b55fb4b30
4
+ data.tar.gz: 92e5aa1a324971ea01ccb927739e288c8e3e561280bfe299dc45831a52f63b7b
5
5
  SHA512:
6
- metadata.gz: e2675724ebf16a84ce0a13c3b7d09cc7d16b4c587f79c5ba05840100e796f16d86193e590011f08c6685d557926f63966191456c7bb72d4345397013d4fee80f
7
- data.tar.gz: 166504db3b51629f77c9fb112c53f5ba87e661d1558f72beb22f2849996ded50dbee7c94a8879cfe07fd54590291df22ac97bd87e28a6a39c956b5e1e19a323a
6
+ metadata.gz: b1af7279fe121eeb94089ad337b640e93af1c07bb8ed181e14741105d5798f5aafbcbd0c4df0154c1f1fd84b08425b152dec493b7c1ea614322359d16e533bbe
7
+ data.tar.gz: 644b8f5ccfb33f2eb9eca6acc2bee339f8446b9292d2786c61c866aa46380dc5c6ccc3695148ffcb5aeffc40debb5e9a2d4f18030fbb891910598942eb5bcc50
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.8.0] - 2026-02-27
4
+
5
+ ### Added
6
+
7
+ - **Full Pluralization Support:** `Converter` now fully supports parsing `zero`, `one`, `two`, `few`, `many`, and `other` plural forms from YAML into i18next JSON syntax.
8
+ - **Smart Plural Syncing:** `health` check `unsync` and `unused` commands now group plural keys (e.g. `apples_one`, `apples_few`) under a single `apples (plural forms)` message. This prevents false positives when locales have differing sets of pluralization rules (e.g. Russian vs. English) and drastically reduces warning noise.
9
+
3
10
  ## [0.7.0] - 2026-02-27
4
11
 
5
12
  ### Added
data/README.md CHANGED
@@ -217,6 +217,8 @@ en:
217
217
  }
218
218
  ```
219
219
 
220
+ *Note: The converter supports all standard plural forms (`zero`, `one`, `two`, `few`, `many`, `other`) and maps them to the syntax expected by i18next.*
221
+
220
222
  ### Smart Scanning
221
223
 
222
224
  Detects translation usage in:
@@ -152,7 +152,7 @@ module InertiaI18n
152
152
 
153
153
  def normalize_keys_for_sync(keys)
154
154
  plural_suffixes = %w[_zero _one _two _few _many _other]
155
-
155
+
156
156
  normalized = Set.new
157
157
  keys.each do |key|
158
158
  suffix = plural_suffixes.find { |s| key.end_with?(s) }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InertiaI18n
4
- VERSION = "0.7.0"
4
+ VERSION = "0.8.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inertia_i18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Poimtsev