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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 88a8005b63d44287a6b4f6714e79f95cb23507b20c40f6c820f6083df57974a2
4
- data.tar.gz: b950196cbf26f350cfb647b7fa73ce08cd33dfe8b0cf0be495054026028fcd33
3
+ metadata.gz: 2aa895f7f002e9dcdff8ba5045941330e07e7ce1c9cdf7a48a16c2b4204a9007
4
+ data.tar.gz: 669562fc19838c73730d102b440b032c058e48bd6570c124f371fcb3609d0ea8
5
5
  SHA512:
6
- metadata.gz: 5e23a034927b87e801534648c43ef87b60abb7c77f86f4375e4e80d2f564e64370c9cb1343ae9627b2daa91f71f3d548b7bcd430e91fbb1be0484d9638861837
7
- data.tar.gz: 540599c674e466a3424608758b7f508b4ee15c05c25d0bd34913fa2f5f17ced6eb5c6e456f472a29a9282e95a16919ead28bd5921fe9785c685b590a43ab66d9
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 = transform @backend.send(: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>.
@@ -1,5 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ ## https://github.com/stevekinney/pizza/issues/103#issuecomment-136052789
4
+ ## https://github.com/docker-library/ruby/issues/45
5
+ Encoding.default_external = 'UTF-8'
6
+
3
7
  require 'pp'
4
8
  require 'i18n'
5
9
  require 'active_support'
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.1.2
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-09-03 00:00:00.000000000 Z
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.1.2
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.1.2
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.