Sha256: 197d79336c2879e315996d3a73a816b7d3b7a2dd3f2ca6230234b00cee99a888
Contents?: true
Size: 533 Bytes
Versions: 7
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: I18n.default_locale) .dup .deep_merge(I18n.t('pageflow.public', locale: entry.locale)) } } end end end
Version data entries
7 entries across 7 versions & 1 rubygems