Skip to content

Commit

Permalink
dup translations right after lookup in I18n::Backend::Base. based on …
Browse files Browse the repository at this point in the history
…a suggestion from Erik Andrejko, https://gist.github.com/31e5aa46c8d5544df994
  • Loading branch information
Erik Andrejko authored and Sven Fuchs committed Apr 5, 2010
1 parent 41ee0db commit 0ca7703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/i18n/backend/base.rb
Expand Up @@ -117,7 +117,7 @@ def lookup(locale, key, scope = [], options = {})
return nil unless result.is_a?(Hash) && result.has_key?(key)
result = result[key]
result = resolve(locale, key, result, options) if result.is_a?(Symbol)
result
String === result ? result.dup : result
end
end

Expand Down

0 comments on commit 0ca7703

Please sign in to comment.