govuk_app_config 4.1.0 → 4.2.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: 035dcbe366b0f0f062233f632cbdd44363f0fd145da5bf8d1f567c8827f6ef7f
4
- data.tar.gz: 8a3eda8f28a196cf032e437369b08505a9c71d7ec6ee1c11e4ff8489ad51cec9
3
+ metadata.gz: f1c91ef4af1e3ddee565df434c56247bd49948c2c610a37add40f2f1c9ecfd58
4
+ data.tar.gz: 653a72692c7fbbe97f5717adac39d282a54834e05b2d934d6c2d5c22a8671000
5
5
  SHA512:
6
- metadata.gz: 17439c255bc340863a3ea220021920a9ad4081bad08cfee2101ff618715fb21ddc6c8c1579826c53a7e05e41d85654c5a23de3be01678a85b8c842887fc611cd
7
- data.tar.gz: 2e285f5737b24f5e1407a4f6112e25d73da1a055ba27fda7f97d60efaeccefea145455be97409c6f4b52f833234a3f0b2b8d445eb7c21699a2be20facce9422c
6
+ metadata.gz: ba9588d5172ca683b37ebbe74768fa1fc040c2b7b7aedf7bb7c794f14f15ae5c0b16689293a601ad3d8247d20155fb18f53d8c76aef6ffe6a769549bf1162aca
7
+ data.tar.gz: b23829fa60d1c5cb50f0ace75d5c26e8dd6daab88344bdb4dfb33e6690fd70c959885e23c3996240474fd27de4b0aa02f11f151570424a5c0b9cd99bdfb666f5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 4.2.0
2
+
3
+ - Add pluralisation rules for Azerbaijani, Persian, Georgian, and Turkish. ([#219](https://github.com/alphagov/govuk_app_config/pull/219))
4
+
1
5
  # 4.1.0
2
6
 
3
7
  - Add Puma to dependencies ([#214](https://github.com/alphagov/govuk_app_config/pull/214)).
@@ -1,10 +1,14 @@
1
1
  module GovukI18n
2
2
  def self.plurals
3
3
  {
4
+ # Azerbaijani
5
+ az: { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } },
4
6
  # Dari - this isn't an iso code. Probably should be 'prs' as per ISO 639-3.
5
7
  dr: { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } },
6
8
  # Latin America and Caribbean Spanish
7
9
  "es-419": { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } },
10
+ # Persian
11
+ fa: { i18n: { plural: { keys: %i[one other], rule: ->(n) { [0, 1].include?(n) ? :one : :other } } } },
8
12
  # Scottish Gaelic
9
13
  gd: { i18n: { plural: { keys: %i[one two few other],
10
14
  rule:
@@ -21,12 +25,16 @@ module GovukI18n
21
25
  end } } },
22
26
  # Armenian
23
27
  hy: { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } },
28
+ # Georgian
29
+ ka: { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } },
24
30
  # Kazakh
25
31
  kk: { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } },
26
32
  # Punjabi Shahmukhi
27
33
  "pa-pk": { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } },
28
34
  # Sinhalese
29
35
  si: { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } },
36
+ # Turkish
37
+ tr: { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } },
30
38
  # Uzbek
31
39
  uz: { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } },
32
40
  # Chinese Hong Kong
@@ -1,3 +1,3 @@
1
1
  module GovukAppConfig
2
- VERSION = "4.1.0".freeze
2
+ VERSION = "4.2.0".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_app_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-10-26 00:00:00.000000000 Z
11
+ date: 2022-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstasher