i18n_translation_spawner 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/i18n_translation_spawner.rb +2 -2
- metadata +4 -4
@@ -20,7 +20,7 @@ module I18n
|
|
20
20
|
def initialize
|
21
21
|
@skip_locales = []
|
22
22
|
@removable_prefixes = []
|
23
|
-
@default_translations = {}
|
23
|
+
@default_translations = {}.with_indifferent_access
|
24
24
|
end
|
25
25
|
|
26
26
|
lambda_accessor :translation_for_key, :file_path_decoder
|
@@ -74,7 +74,7 @@ module I18n
|
|
74
74
|
if translations_handler.respond_to?(:call)
|
75
75
|
translations_handler(key, locale, self)
|
76
76
|
else
|
77
|
-
_key = key.dup
|
77
|
+
_key = key.to_s.dup
|
78
78
|
while _key.present?
|
79
79
|
if (val = default_translations[_key]).present?
|
80
80
|
if val.is_a?(Hash)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: i18n_translation_spawner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 61
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 17
|
10
|
+
version: 0.0.17
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "B\xC5\x82a\xC5\xBCej --Stevo-- Kosmowski"
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-11-03 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: ya2yaml
|