fix(dashboard): restore Turkish diacritics in vehicle + category pages

Strings displayed to users were missing Turkish characters (ö, ç, ğ, ş, ı, ü).
Affects vehicle detail header/info card, category detail page, view-mode tooltips,
and the "category not found" empty state in the tree component.

Phase 1/8 of the UX audit follow-up.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-23 20:44:28 +03:00
parent 6520d7ecb1
commit 3478144c87
3 changed files with 12 additions and 12 deletions

View File

@@ -31,7 +31,7 @@ export function CategoryTree({
variantSearch?: { body?: string; engine?: string; gearbox?: string };
}) {
if (!categories || categories.length === 0) {
return <p className="py-4 text-center text-sm text-muted-foreground">Kategori bulunamadi.</p>;
return <p className="py-4 text-center text-sm text-muted-foreground">Kategori bulunamadı.</p>;
}
return (
<div className="space-y-1">

View File

@@ -80,11 +80,11 @@ function VehicleCategoryPage() {
{/* Header */}
<div className="flex items-center justify-between">
<div className="flex items-center gap-3">
<Button variant="ghost" size="icon" onClick={handleBack} title="Geri don">
<Button variant="ghost" size="icon" onClick={handleBack} title="Geri dön">
<ArrowLeft className="h-4 w-4" />
</Button>
<div>
<h1 className="text-xl font-bold">{data?.name || "Kategori Detayi"}</h1>
<h1 className="text-xl font-bold">{data?.name || "Kategori Detayı"}</h1>
{data?.description && (
<p className="text-sm text-muted-foreground">{data.description}</p>
)}
@@ -110,7 +110,7 @@ function VehicleCategoryPage() {
"rounded p-1.5",
viewMode === "tree" ? "bg-accent" : "text-muted-foreground hover:text-foreground",
)}
title="Agac"
title="Ağaç"
>
<List className="h-4 w-4" />
</button>
@@ -123,7 +123,7 @@ function VehicleCategoryPage() {
? "bg-accent"
: "text-muted-foreground hover:text-foreground",
)}
title="Sutun"
title="Sütun"
>
<Columns2 className="h-4 w-4" />
</button>
@@ -134,7 +134,7 @@ function VehicleCategoryPage() {
{/* Error state */}
{error && (
<div className="rounded-lg border border-destructive/50 bg-destructive/10 p-4 text-sm text-destructive">
Veriler yuklenirken bir hata olustu. Lutfen tekrar deneyin.
Veriler yüklenirken bir hata oluştu. Lütfen tekrar deneyin.
</div>
)}

View File

@@ -54,7 +54,7 @@ function VehicleDetailPage() {
<div className="mx-auto max-w-4xl space-y-6">
{/* Header */}
<div className="flex items-center gap-3">
<Button variant="ghost" size="icon" onClick={() => window.history.back()} title="Geri don">
<Button variant="ghost" size="icon" onClick={() => window.history.back()} title="Geri dön">
<ArrowLeft className="h-4 w-4" />
</Button>
<div className="flex items-center gap-3">
@@ -73,7 +73,7 @@ function VehicleDetailPage() {
{/* Vehicle Info */}
<Card>
<CardHeader>
<CardTitle className="text-base">Arac Bilgileri</CardTitle>
<CardTitle className="text-base">Araç Bilgileri</CardTitle>
</CardHeader>
<CardContent>
<VehicleAttributes vehicle={vehicle} />
@@ -83,7 +83,7 @@ function VehicleDetailPage() {
{/* Categories */}
<Card>
<CardHeader className="flex flex-row items-center justify-between">
<CardTitle className="text-base">Yedek Parca Kategorileri</CardTitle>
<CardTitle className="text-base">Yedek Parça Kategorileri</CardTitle>
<div className="flex items-center gap-1">
<button
type="button"
@@ -103,7 +103,7 @@ function VehicleDetailPage() {
"p-1.5 rounded",
viewMode === "tree" ? "bg-accent" : "text-muted-foreground hover:text-foreground",
)}
title="Agac"
title="Ağaç"
>
<List className="h-4 w-4" />
</button>
@@ -116,7 +116,7 @@ function VehicleDetailPage() {
? "bg-accent"
: "text-muted-foreground hover:text-foreground",
)}
title="Sutun"
title="Sütun"
>
<Columns2 className="h-4 w-4" />
</button>
@@ -170,7 +170,7 @@ function VehicleAttributes({ vehicle }: { vehicle: any }) {
const fallback = [
{ label: "Marka", value: vehicle?.brandName },
{ label: "Model", value: vehicle?.model },
{ label: "Yil", value: vehicle?.year },
{ label: "Yıl", value: vehicle?.year },
{ label: "Motor", value: vehicle?.engine },
{ label: "Vites", value: vehicle?.transmission },
{ label: "Kasa", value: vehicle?.bodyType },