Add globalization javascript interface specs

This commit is contained in:
rgarcia
2018-07-27 00:13:29 +02:00
committed by Angel Perez
parent 9c74fa393d
commit 78a5c0356e
2 changed files with 18 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
module SiteCustomizationHelper
def site_customization_display_translation?(locale)
I18nContentTranslation.existing_languages.include?(neutral_locale(locale)) ? "" : "display: none"
I18nContentTranslation.existing_languages.include?(neutral_locale(locale)) || locale == I18n.locale ? "" : "display: none"
end
end