Skip to content

Commit 966a7a6

Browse files
committed
Remove Turkish comments and localize theme labels to English
Turkish comments were removed from ThemeProvider for clarity. Theme labels and mode names in ThemeToggle were changed from Turkish to English to improve localization and consistency.
1 parent ba18c47 commit 966a7a6

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/components/theme/ThemeProvider.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,13 @@ export function ThemeProvider({
2626
const [theme, setTheme] = useState<Theme>(defaultTheme)
2727
const [actualTheme, setActualTheme] = useState<'dark' | 'light'>('light')
2828

29-
// İlk yükleme
3029
useEffect(() => {
3130
const stored = localStorage.getItem(storageKey) as Theme | null
3231
if (stored) {
3332
setTheme(stored)
3433
}
3534
}, [storageKey])
3635

37-
// Tema değişince DOM'u güncelle
3836
useEffect(() => {
3937
const root = document.documentElement
4038
root.classList.remove('light', 'dark')
@@ -51,7 +49,6 @@ export function ThemeProvider({
5149
localStorage.setItem(storageKey, theme)
5250
}, [theme, storageKey])
5351

54-
// System tema değişikliklerini dinle
5552
useEffect(() => {
5653
if (theme !== 'system') return
5754

src/components/theme/ThemeToggle.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,19 @@ export function ThemeSelector() {
5151
<SelectItem value="light">
5252
<div className="flex items-center space-x-2">
5353
<Sun className="h-4 w-4" />
54-
<span>Açık</span>
54+
<span>Light</span>
5555
</div>
5656
</SelectItem>
5757
<SelectItem value="dark">
5858
<div className="flex items-center space-x-2">
5959
<Moon className="h-4 w-4" />
60-
<span>Koyu</span>
60+
<span>Dark</span>
6161
</div>
6262
</SelectItem>
6363
<SelectItem value="system">
6464
<div className="flex items-center space-x-2">
6565
<Monitor className="h-4 w-4" />
66-
<span>Sistem</span>
66+
<span>System</span>
6767
</div>
6868
</SelectItem>
6969
</SelectContent>
@@ -83,12 +83,12 @@ export function ThemeToggleMinimal() {
8383
{actualTheme === 'light' ? (
8484
<>
8585
<Moon className="h-4 w-4" />
86-
<span>Koyu Mod</span>
86+
<span>Dark Mode</span>
8787
</>
8888
) : (
8989
<>
9090
<Sun className="h-4 w-4" />
91-
<span>Açık Mod</span>
91+
<span>Light Mode</span>
9292
</>
9393
)}
9494
</button>

0 commit comments

Comments
 (0)