r18n-rails-api 3.1.2 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/r18n-rails-api/loader.rb +4 -1
- data/spec/spec_helper.rb +4 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2aa895f7f002e9dcdff8ba5045941330e07e7ce1c9cdf7a48a16c2b4204a9007
|
4
|
+
data.tar.gz: 669562fc19838c73730d102b440b032c058e48bd6570c124f371fcb3609d0ea8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8729f0e5cc0f67756bad45f5d5b8ac9c338cd196df7f03b32a01671d7ad974c0e63ca60e3a5c10fc23960a312879d9af89747cd94fbd01afd00f0702a389f4f9
|
7
|
+
data.tar.gz: 60f983d9fadfdd661f64e42c4a4ae68a8397e67e1d32c684a820781dbb2e2f9508e20fb63c000bfd374ffb9408bba5c4ffd23339628a3c65d20b769c2a79a7b4
|
@@ -60,7 +60,10 @@ module R18n
|
|
60
60
|
@last_path = ::I18n.load_path.clone
|
61
61
|
@backend.reload!
|
62
62
|
@backend.send(:init_translations)
|
63
|
-
@translations =
|
63
|
+
@translations =
|
64
|
+
Utils.hash_map(@backend.send(:translations)) do |locale, values|
|
65
|
+
[R18n::Locale.sanitize_code(locale), transform(values)]
|
66
|
+
end
|
64
67
|
end
|
65
68
|
|
66
69
|
# Return hash for object and <tt>I18n.load_path</tt>.
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: r18n-rails-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrey Sitnik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 3.
|
33
|
+
version: 3.2.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 3.
|
40
|
+
version: 3.2.0
|
41
41
|
description: |2
|
42
42
|
R18n backend for Rails I18n and R18n filters and loader to support Rails
|
43
43
|
translation format.
|