So that individual form partials don't depend on the implementation of how translations are deleted.
10 lines
333 B
Ruby
10 lines
333 B
Ruby
module SiteCustomizationHelper
|
|
def site_customization_enable_translation?(locale)
|
|
I18nContentTranslation.existing_languages.include?(neutral_locale(locale)) || locale == I18n.locale
|
|
end
|
|
|
|
def site_customization_display_translation?(locale)
|
|
site_customization_enable_translation?(locale) ? "" : "display: none"
|
|
end
|
|
end
|