mirror of
https://github.com/we-promise/sure.git
synced 2026-05-30 15:59:02 +00:00
fix(modules): i18n the intro nav item (sure-design R5)
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.).
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -8,6 +8,7 @@ en:
|
||||
assistant: Assistant
|
||||
budgets: Budgets
|
||||
home: Home
|
||||
intro: Intro
|
||||
reports: Reports
|
||||
transactions: Transactions
|
||||
auth:
|
||||
|
||||
Reference in New Issue
Block a user