forked from External/greenlight
Localized js is now served as json (#784)
This commit is contained in:
committed by
Jesus Federico
parent
061b69f962
commit
390ccf71c2
@ -102,7 +102,7 @@ module ApplicationHelper
|
||||
# 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] || {}
|
||||
@translations[I18n.locale].with_indifferent_access
|
||||
end
|
||||
|
||||
# Returns the page that the logo redirects to when clicked on
|
||||
|
Reference in New Issue
Block a user