Files
grecia/app/helpers/site_customization_helper.rb
Javi Martín b451a251fc Rename methods that returns an array of locales
Having `_languages` in the method name made it harder to know what that
method was returning.
2024-06-05 16:10:55 +02:00

11 lines
362 B
Ruby

module SiteCustomizationHelper
def site_customization_enable_translation?(locale)
I18nContentTranslation.existing_locales.include?(locale) || locale == I18n.locale
end
def information_texts_tabs
[:basic, :debates, :community, :proposals, :polls, :legislation, :budgets, :layouts, :mailers,
:management, :welcome, :machine_learning]
end
end