Skip to content

Commit e4e3ebb

Browse files
Merge pull request #601 from bilalkarakollu/main
translate paragraphs and fixes
2 parents 4cb4086 + c36138b commit e4e3ebb

File tree

6 files changed

+66
-68
lines changed

6 files changed

+66
-68
lines changed

src/content/reference/react/useDeferredValue.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ function SearchPage() {
3636

3737
#### Parametreler {/*parameters*/}
3838

39-
* `value`: The value you want to defer. It can have any type.
40-
* **optional** `initialValue`: A value to use during the initial render of a component. If this option is omitted, `useDeferredValue` will not defer during the initial render, because there's no previous version of `value` that it can render instead.
39+
* `value`: Ertelemek istediğiniz değer. Herhangi bir türde olabilir.
40+
* **isteğe bağlı** `initialValue`: Bir bileşenin ilk render'ı sırasında kullanılacak bir değer. Bu seçenek atlanırsa, `useDeferredValue` ilk render sırasında erteleme yapmaz, çünkü yerine render edebileceği bir önceki `value` versiyonu yoktur.
4141

4242

4343
#### Dönüş değeri {/*returns*/}
4444

45-
- `currentValue`: During the initial render, the returned deferred value will be the `initialValue`, or the same as the value you provided. During updates, React will first attempt a re-render with the old value (so it will return the old value), and then try another re-render in the background with the new value (so it will return the updated value).
45+
- `currentValue`: İlk render sırasında, döndürülen ertelenmiş değer `initialValue` olacaktır veya sağladığınız değerle aynı olur. Güncellemeler sırasında, React önce eski değerle yeniden render yapmayı dener (bu yüzden eski değeri döndürecektir), ardından arka planda yeni değerle bir başka yeniden render yapmayı dener (bu yüzden güncellenmiş değeri döndürecektir).
4646

4747
#### Dikkat edilmesi gerekenler {/*caveats*/}
4848

@@ -146,9 +146,9 @@ export default function SearchResults({ query }) {
146146
```
147147

148148
```js src/data.js hidden
149-
// Note: the way you would do data fetching depends on
150-
// the framework that you use together with Suspense.
151-
// Normally, the caching logic would be inside a framework.
149+
// Not: Veri çekme işlemi, birlikte kullandığınız framework'e bağlıdır
150+
// ve Suspense ile birlikte çalışır.
151+
// Normalde, önbellekleme mantığı bir framework içinde yer alır.
152152

153153
let cache = new Map();
154154

@@ -163,12 +163,12 @@ async function getData(url) {
163163
if (url.startsWith('/search?q=')) {
164164
return await getSearchResults(url.slice('/search?q='.length));
165165
} else {
166-
throw Error('Not implemented');
166+
throw Error('Uygulanmadı');
167167
}
168168
}
169169

170170
async function getSearchResults(query) {
171-
// Add a fake delay to make waiting noticeable.
171+
// Beklemeyi fark edilebilir hale getirmek için sahte bir gecikme ekleyin.
172172
await new Promise(resolve => {
173173
setTimeout(resolve, 1000);
174174
});
@@ -316,9 +316,9 @@ export default function SearchResults({ query }) {
316316
```
317317

318318
```js src/data.js hidden
319-
// Note: the way you would do data fetching depends on
320-
// the framework that you use together with Suspense.
321-
// Normally, the caching logic would be inside a framework.
319+
// Not: Veri çekme işlemi, birlikte kullandığınız framework'e bağlıdır
320+
// ve Suspense ile birlikte çalışır.
321+
// Normalde, önbellekleme mantığı bir framework içinde yer alır.
322322

323323
let cache = new Map();
324324

@@ -338,7 +338,7 @@ async function getData(url) {
338338
}
339339

340340
async function getSearchResults(query) {
341-
// Add a fake delay to make waiting noticeable.
341+
// Beklemeyi fark edilebilir hale getirmek için sahte bir gecikme ekleyin.
342342
await new Promise(resolve => {
343343
setTimeout(resolve, 1000);
344344
});
@@ -500,9 +500,9 @@ export default function SearchResults({ query }) {
500500
```
501501

502502
```js src/data.js hidden
503-
// Note: the way you would do data fetching depends on
504-
// the framework that you use together with Suspense.
505-
// Normally, the caching logic would be inside a framework.
503+
// Not: Veri çekme işlemi, birlikte kullandığınız framework'e bağlıdır
504+
// ve Suspense ile birlikte çalışır.
505+
// Normalde, önbellekleme mantığı bir framework içinde yer alır.
506506

507507
let cache = new Map();
508508

@@ -522,7 +522,7 @@ async function getData(url) {
522522
}
523523

524524
async function getSearchResults(query) {
525-
// Add a fake delay to make waiting noticeable.
525+
// Beklemeyi fark edilebilir hale getirmek için sahte bir gecikme ekleyin.
526526
await new Promise(resolve => {
527527
setTimeout(resolve, 1000);
528528
});
@@ -673,7 +673,7 @@ export default function App() {
673673
import { memo } from 'react';
674674

675675
const SlowList = memo(function SlowList({ text }) {
676-
// Log once. The actual slowdown is inside SlowItem.
676+
// Bir kez logla. Gerçek yavaşlama SlowItem içinde.
677677
console.log('[ARTIFICIALLY SLOW] Rendering 250 <SlowItem />');
678678

679679
let items = [];
@@ -690,7 +690,7 @@ const SlowList = memo(function SlowList({ text }) {
690690
function SlowItem({ text }) {
691691
let startTime = performance.now();
692692
while (performance.now() - startTime < 1) {
693-
// Do nothing for 1 ms per item to emulate extremely slow code
693+
// Her öğe için 1 ms hiçbir şey yapma, aşırı yavaş kodu taklit etmek için.
694694
}
695695

696696
return (

src/content/reference/react/useImperativeHandle.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ function MyInput({ ref }) {
3838
3939
#### Parametreler {/*parameters*/}
4040
41-
* `ref`: The `ref` you received as a prop to the `MyInput` component.
41+
* `ref`: `MyInput` bileşenine prop olarak aldığınız `ref`.
4242
4343
* `createHandle`: Herhangi bir argüman almayan ve açığa çıkarmak istediğiniz ref tanımlayıcısını döndüren bir fonksiyondur. Bu ref tanımlayıcısı herhangi bir tipte olabilir. Genellikle, açığa çıkarmak istediğiniz metotların bulunduğu bir nesne döndürürsünüz.
4444
4545
* **isteğe bağlı** `dependencies`: `createHandle` kodu içinde referans alınan tüm tepkisel değerlerin listesidir. Tepkisel değerler, prop'lar, state ve bileşeninizin doğrudan içerisinde bildirilen tüm değişkenler ve fonskiyonlar gibi değerleri içerir. Eğer linter'ınız [React için yapılandırılmışsa](/learn/editor-setup#linting), her tepkisel değerin doğru bir şekilde bağımlılık(dependency) olarak belirtildiğini doğrular. Bağımlılık listesi, sabit bir sayıda öğeye sahip olmalı ve `[dep1, dep2, dep3]` gibi iç içe yazılmalıdır. React, her bir bağımlılığı önceki değeriyle [`Object.is`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is) karşılaştırması kullanarak karşılaştırır. Eğer bir yeniden render'lama, bazı bağımlılıklarda değişikliğe neden olduysa veya bu argümanı atladıysanız, `createHandle` fonksiyonunuz yeniden çalıştırılır ve yeni oluşturulan tanımlayıcı ref'e atanır.
4646
4747
<Note>
4848
49-
Starting with React 19, [`ref` is available a prop.](/blog/2024/12/05/react-19#ref-as-a-prop) In React 18 and earlier, it was necessary to get the `ref` from [`forwardRef`.](/reference/react/forwardRef)
49+
React 19 ile birlikte, [`ref` bir prop olarak mevcuttur.](/blog/2024/12/05/react-19#ref-as-a-prop) React 18 ve öncesinde, `ref`'i [`forwardRef`'den](/reference/react/forwardRef) almak gerekiyordu.
5050
5151
</Note>
5252
@@ -60,15 +60,15 @@ Starting with React 19, [`ref` is available a prop.](/blog/2024/12/05/react-19#r
6060
6161
### Özel bir ref tanımlayıcısını üst elemana açığa çıkarma {/*exposing-a-custom-ref-handle-to-the-parent-component*/}
6262
63-
To expose a DOM node to the parent element, pass in the `ref` prop to the node.
63+
Bir DOM düğümünü ebeveyn elemana açığa çıkarmak için, `ref` prop'unu düğüme iletin.
6464
6565
```js {2}
6666
function MyInput({ ref }) {
6767
return <input ref={ref} />;
6868
};
6969
```
7070
71-
With the code above, [a ref to `MyInput` will receive the `<input>` DOM node.](/learn/manipulating-the-dom-with-refs) However, you can expose a custom value instead. To customize the exposed handle, call `useImperativeHandle` at the top level of your component:
71+
Yukarıdaki kodla, [`MyInput`'e ait bir ref, `<input>` DOM düğümünü alacaktır.](/learn/manipulating-the-dom-with-refs) Ancak bunun yerine özel bir değer de açığa çıkarabilirsiniz. Açığa çıkan handle'ı özelleştirmek için, bileşeninizin üst seviyesinde `useImperativeHandle` çağırın:
7272
7373
```js {4-8}
7474
import { useImperativeHandle } from 'react';
@@ -84,7 +84,7 @@ function MyInput({ ref }) {
8484
};
8585
```
8686
87-
Note that in the code above, the `ref` is no longer passed to the `<input>`.
87+
Yukarıdaki kodda, `ref`'in artık `<input>`'a iletilmediğine dikkat edin.
8888
8989
Örneğin, `<input>` DOM düğümünün tamamını açığa çıkarmak istemiyorsunuz, ancak `focus` ve `scrollIntoView` gibi iki metodu açığa çıkarmak istiyorsunuz. Bunun için gerçek tarayıcı DOM'unu ayrı bir ref içinde tutun. Ardından, yalnızca üst elemanın çağırmasını istediğiniz metotlara sahip bir tanımlayıcıyı açığa çıkarmak için `useImperativeHandle`'ı kullanın:
9090

src/content/reference/react/useRef.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ button { display: block; margin-bottom: 20px; }
449449

450450
#### Kendi bileşeninize bir ref'i açığa çıkarma {/*exposing-a-ref-to-your-own-component*/}
451451
452-
Sometimes, you may want to let the parent component manipulate the DOM inside of your component. For example, maybe you're writing a `MyInput` component, but you want the parent to be able to focus the input (which the parent has no access to). You can create a `ref` in the parent and pass the `ref` as prop to the child component. Read a [detailed walkthrough](/learn/manipulating-the-dom-with-refs#accessing-another-components-dom-nodes) here.
452+
Bazen, ebeveyn bileşenin, bileşeninizin içindeki DOM'u manipüle etmesine izin vermek isteyebilirsiniz. Örneğin, belki bir `MyInput` bileşeni yazıyorsunuz, ancak ebeveynin input'a odaklanabilmesini (ebeveynin buna erişimi yoktur) istiyorsunuz. Ebeveyn içinde bir `ref` oluşturabilir ve `ref`'i prop olarak çocuk bileşene iletebilirsiniz. [Detaylı bir rehber için buraya bakın.](/learn/manipulating-the-dom-with-refs#accessing-another-components-dom-nodes)
453453

454454
<Sandpack>
455455

@@ -556,7 +556,7 @@ Konsolda bir hata alabilirsiniz:
556556
557557
<ConsoleBlock level="error">
558558
559-
TypeError: Cannot read properties of null
559+
TypeError: Null'un özellikleri okunamıyor
560560

561561
</ConsoleBlock>
562562

@@ -575,7 +575,7 @@ export default function MyInput({ value, onChange }) {
575575
}
576576
```
577577
578-
And then add `ref` to the list of props your component accepts and pass `ref` as a prop to the relevent child [built-in component](/reference/react-dom/components/common) like this:
578+
Ve ardından `ref`'i, bileşeninizin kabul ettiği props listesine ekleyin ve `ref`'i ilgili [yerleşik bileşene](/reference/react-dom/components/common) prop olarak iletin, şöyle:
579579
580580
```js {1,6}
581581
function MyInput({ value, onChange, ref }) {

src/content/reference/rsc/directives.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: Directives
2+
title: Direktifler
33
---
44

55
<RSC>
66

7-
Directives are for use in [React Server Components](/learn/start-a-new-react-project#bleeding-edge-react-frameworks).
7+
Direktifler, [React Sunucu Bileşenleri](/learn/start-a-new-react-project#bleeding-edge-react-frameworks) içinde kullanılmak içindir.
88

99
</RSC>
1010

src/content/reference/rsc/use-client.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ titleForTitleTag: "'use client' directive"
55

66
<RSC>
77

8-
`'use client'` is for use with [React Server Components](/learn/start-a-new-react-project#bleeding-edge-react-frameworks).
8+
`'use client'`, [React Sunucu Bileşenleri](/learn/start-a-new-react-project#bleeding-edge-react-frameworks) ile kullanmak içindir.
99

1010
</RSC>
1111

0 commit comments

Comments
 (0)