forked from External/greenlight
Added mailer i18n (#436)
* Added mailer i18n * Added translation to mailer in the JS Also added a generic way to add JS translation through a javascript entry in the locale file * Moved line-breaks from translations to JS file
This commit is contained in:
committed by
Jesus Federico
parent
88776eaadb
commit
822dd27509
@ -89,4 +89,10 @@ module ApplicationHelper
|
||||
false
|
||||
end
|
||||
end
|
||||
|
||||
# Return all the translations available in the client side through javascript
|
||||
def current_translations
|
||||
@translations ||= I18n.backend.send(:translations)
|
||||
@translations[I18n.locale].with_indifferent_access[:javascript] || {}
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user