Created
January 17, 2013 07:46
-
-
Save vdv/4554390 to your computer and use it in GitHub Desktop.
show in rails logger all i18n keys for current page
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
if Rails.env.development? | |
module I18n | |
class << self | |
alias :translate_orig :translate | |
def translate(*options) | |
Rails.logger.debug options.inspect | |
translate_orig *options | |
end | |
alias :localize_orig :localize | |
def localize(*options) | |
Rails.logger.debug options.inspect | |
localize_orig *options | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment