Created
May 21, 2014 13:55
-
-
Save terlar/43089820df3638cfba10 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FakeTranslationBackend < I18n::Backend::Simple | |
# rubocop:disable ParameterLists | |
def lookup(locale, key, scope = [ ], options = { }) | |
I18n.normalize_keys(locale, key, scope, options[:separator]).join('.') | |
end | |
end | |
def setup | |
I18n.backend = FakeTranslationBackend.new | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment