Sha256: 941483e0aabedb704d8ddba14aa4cfa93e2d249013ee608e9b71243100d59345
Contents?: true
Size: 533 Bytes
Versions: 10
Compression:
Stored size: 533 Bytes
Contents
module Pageflow module PublicI18nHelper def public_i18n_javascript_tag(entry) render('pageflow/public_i18n/javascript_tag', entry_locale: entry.locale, translations: public_i18n_translations(entry)) end def public_i18n_translations(entry) { pageflow: { public: I18n.t('pageflow.public', locale: entry.locale) .dup .deep_merge(I18n.t('pageflow.public', locale: I18n.default_locale)) } } end end end
Version data entries
10 entries across 10 versions & 1 rubygems