i18n-js 3.9.1 → 3.9.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 +4 -4
- data/.github/workflows/tests.yaml +1 -0
- data/Appraisals +4 -0
- data/CHANGELOG.md +13 -4
- data/app/assets/javascripts/i18n.js +1 -1
- data/gemfiles/i18n_1_10.gemfile +7 -0
- data/lib/i18n/js/version.rb +1 -1
- data/package.json +1 -1
- data/spec/js/pluralization.spec.js +9 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d3a003954d81c9cbb7c2f18791ed8baf068f3fbbe6587ce59cd893b7852d1f2
|
4
|
+
data.tar.gz: d9fcb2bf3de34987021c2ac556ae65bcecbdfe6cbb638455d6e7919e03268d8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07b6670d05343e82e44041379917a56ee72b185b1bfdcceefe6ae8eae9a1eece1852db7a378eaf8a38f5769ec76587737b200bfb22e50444a02e14bbb4b78793
|
7
|
+
data.tar.gz: afe058283a6af31ab843ba2c0da1f1949d37623a3e0823c786cb947b252eac51ffc25c4f856c01e9e1ec87546dd31dddf4705e1f6b5597a3edd02e950e674ed2
|
data/Appraisals
CHANGED
data/CHANGELOG.md
CHANGED
@@ -18,6 +18,14 @@ This project adheres to [Semantic Versioning](https://semver.org/).
|
|
18
18
|
- Nothing
|
19
19
|
|
20
20
|
|
21
|
+
## [3.9.2] - 2022-03-31
|
22
|
+
|
23
|
+
### Fixed
|
24
|
+
|
25
|
+
- [JS] Fix pluralization fallback in i18n.js
|
26
|
+
(PR: https://github.com/fnando/i18n-js/pull/645)
|
27
|
+
|
28
|
+
|
21
29
|
## [3.9.1] - 2022-02-08
|
22
30
|
|
23
31
|
### Changed
|
@@ -26,7 +34,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
|
|
26
34
|
(PR: https://github.com/fnando/i18n-js/pull/638)
|
27
35
|
|
28
36
|
|
29
|
-
## [3.9.0]
|
37
|
+
## [3.9.0] - 2021-07-30
|
30
38
|
|
31
39
|
### Added
|
32
40
|
|
@@ -34,7 +42,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
|
|
34
42
|
(PR: https://github.com/fnando/i18n-js/pull/617)
|
35
43
|
|
36
44
|
|
37
|
-
## [3.8.4]
|
45
|
+
## [3.8.4] - 2021-07-27
|
38
46
|
|
39
47
|
### Fixed
|
40
48
|
|
@@ -42,7 +50,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
|
|
42
50
|
(PR: https://github.com/fnando/i18n-js/pull/591)
|
43
51
|
|
44
52
|
|
45
|
-
## [3.8.3]
|
53
|
+
## [3.8.3] - 2021-05-21
|
46
54
|
|
47
55
|
### Changed
|
48
56
|
|
@@ -525,7 +533,8 @@ And today is not April Fools' Day
|
|
525
533
|
|
526
534
|
|
527
535
|
|
528
|
-
[Unreleased]: https://github.com/fnando/i18n-js/compare/v3.9.
|
536
|
+
[Unreleased]: https://github.com/fnando/i18n-js/compare/v3.9.2...HEAD
|
537
|
+
[3.9.2]: https://github.com/fnando/i18n-js/compare/v3.9.1...v3.9.2
|
529
538
|
[3.9.1]: https://github.com/fnando/i18n-js/compare/v3.9.0...v3.9.1
|
530
539
|
[3.9.0]: https://github.com/fnando/i18n-js/compare/v3.8.4...v3.9.0
|
531
540
|
[3.8.4]: https://github.com/fnando/i18n-js/compare/v3.8.3...v3.8.4
|
data/lib/i18n/js/version.rb
CHANGED
data/package.json
CHANGED
@@ -148,6 +148,15 @@ describe("Pluralization", function(){
|
|
148
148
|
expect(I18n.p(5, "inbox", { count: 5 })).toEqual('You have 5 messages');
|
149
149
|
});
|
150
150
|
|
151
|
+
it("fallback to default locale when I18n.fallbacks is enabled and value is null", function() {
|
152
|
+
I18n.locale = "pt-BR";
|
153
|
+
I18n.fallbacks = true;
|
154
|
+
I18n.translations["pt-BR"].inbox = null;
|
155
|
+
expect(I18n.p(0, "inbox", { count: 0 })).toEqual("You have no messages");
|
156
|
+
expect(I18n.p(1, "inbox", { count: 1 })).toEqual("You have 1 message");
|
157
|
+
expect(I18n.p(5, "inbox", { count: 5 })).toEqual("You have 5 messages");
|
158
|
+
});
|
159
|
+
|
151
160
|
it("fallback to 'other' scope", function() {
|
152
161
|
I18n.locale = "pt-BR";
|
153
162
|
I18n.fallbacks = true;
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: i18n-js
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.9.
|
4
|
+
version: 3.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nando Vieira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|
@@ -121,6 +121,7 @@ files:
|
|
121
121
|
- gemfiles/i18n_0_9.gemfile
|
122
122
|
- gemfiles/i18n_1_0.gemfile
|
123
123
|
- gemfiles/i18n_1_1.gemfile
|
124
|
+
- gemfiles/i18n_1_10.gemfile
|
124
125
|
- gemfiles/i18n_1_2.gemfile
|
125
126
|
- gemfiles/i18n_1_3.gemfile
|
126
127
|
- gemfiles/i18n_1_4.gemfile
|
@@ -229,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
229
230
|
- !ruby/object:Gem::Version
|
230
231
|
version: '0'
|
231
232
|
requirements: []
|
232
|
-
rubygems_version: 3.3.
|
233
|
+
rubygems_version: 3.3.10
|
233
234
|
signing_key:
|
234
235
|
specification_version: 4
|
235
236
|
summary: It's a small library to provide the Rails I18n translations on the Javascript.
|