Module: Pageflow::Admin::EntryTranslationsHelper Private
- Includes:
- PublicI18n::LocalesHelper
- Defined in:
- app/helpers/pageflow/admin/entry_translations_helper.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
Instance Method Details
#entry_translation_display_locale(entry) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
7 8 9 10 11 12 13 14 15 |
# File 'app/helpers/pageflow/admin/entry_translations_helper.rb', line 7 def entry_translation_display_locale(entry) display_locale = public_locale_name_for((entry.published_revision || entry.draft).locale) if entry.default_translation? t('pageflow.admin.entry_translations.default_translation', display_locale:) else display_locale end end |