diff --git a/app/helpers/locales_helper.rb b/app/helpers/locales_helper.rb index 717be9e9b..78ab25189 100644 --- a/app/helpers/locales_helper.rb +++ b/app/helpers/locales_helper.rb @@ -3,6 +3,8 @@ module LocalesHelper def name_for_locale(locale) default = I18n.t("locale", locale: locale) I18n.backend.translate(locale, "i18n.language.name", default: default) + rescue + nil end -end \ No newline at end of file +end diff --git a/app/views/admin/site_customization/pages/index.html.erb b/app/views/admin/site_customization/pages/index.html.erb index a629a8a8d..dd9cfd3ad 100644 --- a/app/views/admin/site_customization/pages/index.html.erb +++ b/app/views/admin/site_customization/pages/index.html.erb @@ -28,7 +28,7 @@