i18 cleanup
This commit is contained in:
@@ -106,7 +106,7 @@
|
||||
<button
|
||||
class="rounded-lg p-2 text-slate-600 transition-colors hover:bg-slate-100 md:hidden"
|
||||
on:click={handleHamburgerClick}
|
||||
aria-label={$t.common?.toggle_menu || "Toggle menu"}
|
||||
aria-label={$t.common?.toggle_menu }
|
||||
>
|
||||
<Icon name="menu" size={22} />
|
||||
</button>
|
||||
@@ -119,7 +119,7 @@
|
||||
<span class="mr-2 inline-flex h-9 w-9 items-center justify-center rounded-xl bg-gradient-to-br from-sky-500 via-cyan-500 to-indigo-600 text-white shadow-sm">
|
||||
<Icon name="layers" size={18} strokeWidth={2.1} />
|
||||
</span>
|
||||
<span>Superset Tools</span>
|
||||
<span>{$t.common?.brand }</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -129,7 +129,7 @@
|
||||
type="text"
|
||||
class="w-full px-4 py-2 bg-gray-100 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-ring transition-all
|
||||
{isSearchFocused ? 'bg-white border border-primary-ring' : ''}"
|
||||
placeholder={$t.common.search || "Search..."}
|
||||
placeholder={$t.common.search }
|
||||
on:focus={handleSearchFocus}
|
||||
on:blur={handleSearchBlur}
|
||||
/>
|
||||
@@ -143,8 +143,8 @@
|
||||
<button
|
||||
class="rounded-lg p-2 text-slate-600 transition-colors hover:bg-slate-100"
|
||||
on:click={handleAssistantClick}
|
||||
aria-label={$t.assistant?.open || "Open assistant"}
|
||||
title={$t.assistant?.title || "AI Assistant"}
|
||||
aria-label={$t.assistant?.open }
|
||||
title={$t.assistant?.title }
|
||||
>
|
||||
<Icon name="clipboard" size={22} />
|
||||
</button>
|
||||
@@ -157,7 +157,7 @@
|
||||
(e.key === "Enter" || e.key === " ") && handleActivityClick()}
|
||||
role="button"
|
||||
tabindex="0"
|
||||
aria-label={$t.common?.activity || "Activity"}
|
||||
aria-label={$t.common?.activity }
|
||||
>
|
||||
<Icon name="activity" size={22} />
|
||||
{#if activeCount > 0}
|
||||
@@ -177,7 +177,7 @@
|
||||
(e.key === "Enter" || e.key === " ") && toggleUserMenu(e)}
|
||||
role="button"
|
||||
tabindex="0"
|
||||
aria-label={$t.common?.user_menu || "User menu"}
|
||||
aria-label={$t.common?.user_menu }
|
||||
>
|
||||
{#if user}
|
||||
<span
|
||||
@@ -195,7 +195,7 @@
|
||||
: 'hidden'}"
|
||||
>
|
||||
<div class="px-4 py-2 text-sm text-gray-700">
|
||||
<strong>{user?.username || ($t.common?.user || "User")}</strong>
|
||||
<strong>{user?.username || ($t.common?.user )}</strong>
|
||||
</div>
|
||||
<div class="border-t border-gray-200 my-1"></div>
|
||||
<div
|
||||
@@ -209,7 +209,7 @@
|
||||
role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
{$t.nav?.settings || "Settings"}
|
||||
{$t.nav?.settings }
|
||||
</div>
|
||||
<div
|
||||
class="px-4 py-2 text-sm text-destructive hover:bg-destructive-light cursor-pointer"
|
||||
@@ -219,7 +219,7 @@
|
||||
role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
{$t.common?.logout || "Logout"}
|
||||
{$t.common?.logout }
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user