diff --git a/app/views/layouts/_breadcrumb.haml b/app/views/layouts/_breadcrumb.haml index 6281404a..11f7f005 100644 --- a/app/views/layouts/_breadcrumb.haml +++ b/app/views/layouts/_breadcrumb.haml @@ -30,4 +30,4 @@ - params.permit! - I18n.available_locales.each do |locale| - next if locale == I18n.locale - = link_to t(locale), params.to_h.merge(change_locale_to: locale) + = link_to t("switch_locale.#{locale}"), params.to_h.merge(change_locale_to: locale) diff --git a/config/locales/en.yml b/config/locales/en.yml index 22dafbe1..3f7dd1f1 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1,8 +1,10 @@ en: dir: ltr en: English - es: Castellano - es-AR: Castellano rioplatense + es: Castellano + es-AR: Castellano rioplatense + switch_locale: + es: "Cambiar a castellano" locales: es: name: Castillian Spanish diff --git a/config/locales/es.yml b/config/locales/es.yml index aeb385e0..90def099 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -3,6 +3,8 @@ es: en: English es-AR: Castellano Rioplatense dir: ltr + switch_locale: + en: "Switch to English" locales: es: name: Castellano