From 8c6dfb969330d329039f87a3d3b7c16513cdd766 Mon Sep 17 00:00:00 2001 From: Guillem Arias Date: Sat, 23 May 2026 13:27:50 +0200 Subject: [PATCH] fix(modules): i18n the intro nav item (sure-design R5) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hardcoded "Intro" was rendering verbatim as a nav-item label — sure-design's DS Drift Patrol caught it on the latest scan (rule R5: i18n bypass). Extract to `layouts.application.nav.intro` to match the rest of the nav block (Home, Reports, Budgets, etc.). --- app/helpers/navigation_helper.rb | 2 +- config/locales/views/layout/en.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/helpers/navigation_helper.rb b/app/helpers/navigation_helper.rb index a2b5c7e2d..8123259e3 100644 --- a/app/helpers/navigation_helper.rb +++ b/app/helpers/navigation_helper.rb @@ -25,7 +25,7 @@ module NavigationHelper def intro_nav_items [ { name: t("layouts.application.nav.home"), path: chats_path, icon: "home", icon_custom: false, active: page_active?(chats_path) }, - { name: "Intro", path: intro_path, icon: "sparkles", icon_custom: false, active: page_active?(intro_path) } + { name: t("layouts.application.nav.intro"), path: intro_path, icon: "sparkles", icon_custom: false, active: page_active?(intro_path) } ] end end diff --git a/config/locales/views/layout/en.yml b/config/locales/views/layout/en.yml index e5702c5e7..64a8dd3dc 100644 --- a/config/locales/views/layout/en.yml +++ b/config/locales/views/layout/en.yml @@ -8,6 +8,7 @@ en: assistant: Assistant budgets: Budgets home: Home + intro: Intro reports: Reports transactions: Transactions auth: