From 3b9f95745ebaa6e7e8e0f57364ab4146aaebe26b Mon Sep 17 00:00:00 2001 From: f Date: Sat, 20 Jul 2024 13:11:53 -0300 Subject: [PATCH] fix: locale --- app/views/devise/shared/_links.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/devise/shared/_links.haml b/app/views/devise/shared/_links.haml index 8d7e9a42..f623ce8a 100644 --- a/app/views/devise/shared/_links.haml +++ b/app/views/devise/shared/_links.haml @@ -1,6 +1,6 @@ %hr/ -- locale = pluck_param(:locale, optional: true).to_h +- locale = { locale: (pluck_param(:locale, optional: true) || I18n.locale) } - if controller_name != 'sessions' = link_to t('.sign_in'), new_session_path(resource_name, params: locale),