fix(i18n): mobile menu sign_out key + nav translations for user section
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
bc4c3afebb
commit
c596e47476
5 changed files with 9 additions and 6 deletions
|
|
@ -136,14 +136,14 @@ export default function AppLayout({ children }: { children?: React.ReactNode })
|
|||
onClick={() => setMobileOpen(false)}
|
||||
>
|
||||
<User className="h-4 w-4" />
|
||||
My account
|
||||
{t('nav.my_account', 'My account')}
|
||||
</NavLink>
|
||||
<button
|
||||
onClick={() => { logout(); navigate('/'); setMobileOpen(false); }}
|
||||
className="flex items-center gap-2.5 px-3 py-2.5 rounded-xl text-sm font-medium text-destructive hover:bg-destructive/10 transition-all text-left w-full"
|
||||
>
|
||||
<LogOut className="h-4 w-4" />
|
||||
Sign out
|
||||
{t('nav.sign_out', 'Sign out')}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -187,7 +187,7 @@ export default function Header() {
|
|||
onClick={() => { logout(); navigate('/'); setMobileOpen(false); }}
|
||||
className="w-full px-4 py-2.5 rounded-xl text-sm font-medium border border-border text-muted-foreground hover:text-foreground hover:bg-secondary/50 transition-all"
|
||||
>
|
||||
Sign out
|
||||
{t('nav.sign_out', 'Sign out')}
|
||||
</button>
|
||||
</>
|
||||
) : (
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@
|
|||
"app_personas": "Personas",
|
||||
"app_focus_groups": "Focus Groups",
|
||||
"app_billing": "Billing",
|
||||
"app_admin": "Admin"
|
||||
"app_admin": "Admin",
|
||||
"sign_out": "Sign out"
|
||||
},
|
||||
"hero": {
|
||||
"badge": "Synthetic Research Platform",
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@
|
|||
"app_personas": "Персоны",
|
||||
"app_focus_groups": "Фокус-группы",
|
||||
"app_billing": "Биллинг",
|
||||
"app_admin": "Админ"
|
||||
"app_admin": "Админ",
|
||||
"sign_out": "Выйти"
|
||||
},
|
||||
"hero": {
|
||||
"badge": "Платформа синтетических исследований",
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@
|
|||
"app_personas": "Персони",
|
||||
"app_focus_groups": "Фокус-групи",
|
||||
"app_billing": "Білінг",
|
||||
"app_admin": "Адмін"
|
||||
"app_admin": "Адмін",
|
||||
"sign_out": "Вийти"
|
||||
},
|
||||
"hero": {
|
||||
"badge": "Платформа синтетичних досліджень",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue