class HyperI18n::I18n
Public Class Methods
initial_data_json()
click to toggle source
# File lib/hyper-i18n/i18n.rb, line 82 def initial_data_json if @server_data_cache @server_data_cache.as_json.to_json else { t: {}, l: {} }.to_json end end
no_initial_data?()
click to toggle source
# File lib/hyper-i18n/i18n.rb, line 78 def no_initial_data? `typeof window.HyperI18nInitialData === 'undefined'` end