-
+
setName(e.target.value)}
- placeholder="e.g., My Bank Account"
+ placeholder={t.walletDialog.namePlaceholder}
required
/>
-
+
{kind === "money" ? (
-
+
-
+
No currency found.
@@ -222,37 +224,37 @@ export function WalletDialog({ open, onOpenChange, wallet, onSuccess }: WalletDi
) : (
<>
-
+
setUnit(e.target.value)}
- placeholder="e.g., shares, kg, pieces"
+ placeholder={t.walletDialog.unitPlaceholder}
/>
-
+
setPricePerUnit(e.target.value)}
- placeholder="0.00"
+ placeholder={t.walletDialog.pricePerUnitPlaceholder}
/>
>
)}
-
+
setInitialAmount(e.target.value)}
- placeholder="0.00"
+ placeholder={t.walletDialog.initialAmountPlaceholder}
/>
@@ -264,10 +266,10 @@ export function WalletDialog({ open, onOpenChange, wallet, onSuccess }: WalletDi
diff --git a/apps/web/src/components/layout/AppSidebar.tsx b/apps/web/src/components/layout/AppSidebar.tsx
index 66d1746..2f836c1 100644
--- a/apps/web/src/components/layout/AppSidebar.tsx
+++ b/apps/web/src/components/layout/AppSidebar.tsx
@@ -1,5 +1,6 @@
import { Home, Wallet, Receipt, User, LogOut } from "lucide-react"
import { Logo } from "../Logo"
+import { LanguageToggle } from "../LanguageToggle"
import {
Sidebar,
SidebarContent,
@@ -13,31 +14,9 @@ import {
useSidebar,
} from "@/components/ui/sidebar"
import { useAuth } from "@/contexts/AuthContext"
+import { useLanguage } from "@/contexts/LanguageContext"
import { getAvatarUrl } from "@/lib/utils"
-const items = [
- {
- title: "Overview",
- url: "/",
- icon: Home,
- },
- {
- title: "Wallets",
- url: "/wallets",
- icon: Wallet,
- },
- {
- title: "Transactions",
- url: "/transactions",
- icon: Receipt,
- },
- {
- title: "Profile",
- url: "/profile",
- icon: User,
- },
-]
-
interface AppSidebarProps {
currentPage: string
onNavigate: (page: string) => void
@@ -46,6 +25,30 @@ interface AppSidebarProps {
export function AppSidebar({ currentPage, onNavigate }: AppSidebarProps) {
const { user, logout } = useAuth()
const { isMobile, setOpenMobile } = useSidebar()
+ const { t } = useLanguage()
+
+ const items = [
+ {
+ title: t.nav.overview,
+ url: "/",
+ icon: Home,
+ },
+ {
+ title: t.nav.wallets,
+ url: "/wallets",
+ icon: Wallet,
+ },
+ {
+ title: t.nav.transactions,
+ url: "/transactions",
+ icon: Receipt,
+ },
+ {
+ title: t.nav.profile,
+ url: "/profile",
+ icon: User,
+ },
+ ]
return (
@@ -109,13 +112,16 @@ export function AppSidebar({ currentPage, onNavigate }: AppSidebarProps) {