splendeo_translator 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. data/lib/splendeo_translator.rb +3 -3
  2. metadata +3 -3
@@ -107,10 +107,10 @@ module SplendeoTranslator
107
107
  break if scope.pop.nil?
108
108
  end
109
109
  end
110
-
111
- # return the key itself if translator is on key_fallback mode
112
- str ||= key if SplendeoTranslator.key_fallback?
113
110
 
111
+ # set the default value to key if key_fallback is active
112
+ options[:default] ||= key if SplendeoTranslator.key_fallback?
113
+
114
114
  # If a string is not yet found, potentially check the default locale if in fallback mode.
115
115
  if str.nil? && SplendeoTranslator.fallback? && (I18n.locale != I18n.default_locale) && options[:locale].nil?
116
116
  # Recurse original request, but in the context of the default locale
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: splendeo_translator
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mike Champion