Skip to content

Commit 67d3489

Browse files
committed
translate fourth challenge
1 parent 5ab3f29 commit 67d3489

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/content/learn/preserving-and-resetting-state.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1551,7 +1551,7 @@ label { display: block; margin: 10px 0; }
15511551
15521552
#### Bilgi formunu sıfırla {/*reset-a-detail-form*/}
15531553
1554-
Bu düzenlenebilir bir kişi listesidir. Seçtiğiniz kişinin bilgilerini düzenleyip "Kaydet" tuşu ile kaydedebilir ya da "Sıfırla" tuşu ile değişiklikleri geri alabilirsiniz.
1554+
Bu düzenlenebilir bir kişi listesidir. Seçtiğiniz kişinin bilgilerini düzenleyip "Kaydet" butonu ile kaydedebilir ya da "Sıfırla" butonu ile değişiklikleri geri alabilirsiniz.
15551555
15561556
Farklı bir kişi seçtiğiniz zaman (örneğin Alice), state güncellenmektedir ancak form bir önceki kişinin bilgilerini göstermektedir. Seçilen kişi değiştiği zaman formun sıfırlanmasını sağlayacak şekilde düzeltin.
15571557
@@ -1858,13 +1858,13 @@ button {
18581858
18591859
</Solution>
18601860
1861-
#### Clear an image while it's loading {/*clear-an-image-while-its-loading*/}
1861+
#### Bir görüntüyü yüklenirken temizle {/*clear-an-image-while-its-loading*/}
18621862
1863-
When you press "Next", the browser starts loading the next image. However, because it's displayed in the same `<img>` tag, by default you would still see the previous image until the next one loads. This may be undesirable if it's important for the text to always match the image. Change it so that the moment you press "Next", the previous image immediately clears.
1863+
"Sonraki" butonuna bastığınızda, tarayıcı sonraki görüntüyü yüklemeye başalar. Ancak, aynı `<img>` tag'inde görüntülendiğinden dolayı, varsayılan olarak bir sonraki görüntü yüklenene kadar önceki görüntüyü görmeye devam edersiniz. Metnin her zaman görüntüyle eşleşmesi önemliyse bu istenmeyen bir durum olabilir. "Sonraki" butonuna bastığınız anda bir önceki görüntünün temizlenmesini sağlayacak şekilde düzenleyin.
18641864
18651865
<Hint>
18661866
1867-
Is there a way to tell React to re-create the DOM instead of reusing it?
1867+
React'e DOM'u tekrar kullanmak yerine yeniden oluşturmasını söylemenin bir yolu var mı?
18681868
18691869
</Hint>
18701870
@@ -1889,10 +1889,10 @@ export default function Gallery() {
18891889
return (
18901890
<>
18911891
<button onClick={handleClick}>
1892-
Next
1892+
Sonraki
18931893
</button>
18941894
<h3>
1895-
Image {index + 1} of {images.length}
1895+
Görüntü {index + 1} / {images.length}
18961896
</h3>
18971897
<img src={image.src} />
18981898
<p>
@@ -1934,7 +1934,7 @@ img { width: 150px; height: 150px; }
19341934
19351935
<Solution>
19361936
1937-
You can provide a `key` to the `<img>` tag. When that `key` changes, React will re-create the `<img>` DOM node from scratch. This causes a brief flash when each image loads, so it's not something you'd want to do for every image in your app. But it makes sense if you want to ensure the image always matches the text.
1937+
`<img>` tag'ine `anahtar` (`key`) iletebilirsiniz. O `key` değiştiği zaman, React `<img>` DOM node'unu sıfırdan tekrar oluşturacaktır. Bu, her görüntü yüklendiğinde kısa bir flaşa neden olur, dolayısıyla uygulamanızdaki her görüntü için yapmak isteyeceğiniz bir şey değildir. Ancak görüntünün her zaman metinle eşleşmesini sağlamak istiyorsanız mantıklı bir yoldur.
19381938
19391939
<Sandpack>
19401940
@@ -1957,10 +1957,10 @@ export default function Gallery() {
19571957
return (
19581958
<>
19591959
<button onClick={handleClick}>
1960-
Next
1960+
Sonraki
19611961
</button>
19621962
<h3>
1963-
Image {index + 1} of {images.length}
1963+
Görüntü {index + 1} / {images.length}
19641964
</h3>
19651965
<img key={image.src} src={image.src} />
19661966
<p>

0 commit comments

Comments
 (0)