Skip to content

Commit 0e29890

Browse files
Merge pull request #66 from ps0305/translation-SyntheticEvent-hi
translation: SyntheticEvent
2 parents 94da984 + 374b838 commit 0e29890

File tree

1 file changed

+70
-73
lines changed

1 file changed

+70
-73
lines changed

Diff for: content/docs/reference-events.md

+70-73
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ layout: docs
66
category: Reference
77
---
88

9-
This reference guide documents the `SyntheticEvent` wrapper that forms part of React's Event System. See the [Handling Events](/docs/handling-events.html) guide to learn more.
9+
यह निर्देशिका `SyntheticEvent` आवरण को निर्देशित करता है जो React इवेंट सिस्टम का एक हिस्सा है। अधिक जानने के लिए [Handling Events](/docs/handling-events.html) गाइड देखें।
1010

11-
## Overview {#overview}
11+
## ओवरव्यू {#overview}
1212

13-
Your event handlers will be passed instances of `SyntheticEvent`, a cross-browser wrapper around the browser's native event. It has the same interface as the browser's native event, including `stopPropagation()` and `preventDefault()`, except the events work identically across all browsers.
13+
आपके ईवेंट हैंडलर को `SyntheticEvent` के उदाहरण के तौर पर, ब्राउज़र के नेटिव ईवेंट के चारों ओर एक क्रॉस-ब्राउज़र रैपर दिया जाएगा। यह ब्राउज़र के नेटिव ईवेंट के समान है, जिसमें `stopPropagation()` और `preventDefault()` शामिल हैं, पर यह इवेंट्स सभी ब्राउज़रों में समान रूप से काम करते हैं।
1414

15-
If you find that you need the underlying browser event for some reason, simply use the `nativeEvent` attribute to get it. Every `SyntheticEvent` object has the following attributes:
15+
यदि किसी कारण से आप पाते हैं कि आपको अंतर्निहित ब्राउज़र इवेंट की आवश्यकता है, तो इसे प्राप्त करने के लिए `nativeEvent` एट्रिब्यूट का उपयोग करें। प्रत्येक `SyntheticEvent` ऑब्जेक्ट में निम्न विशेषताएँ होती हैं।
1616

1717
```javascript
1818
boolean bubbles
@@ -32,15 +32,15 @@ number timeStamp
3232
string type
3333
```
3434

35-
> Note:
35+
> ध्यान दें:
3636
>
37-
> As of v0.14, returning `false` from an event handler will no longer stop event propagation. Instead, `e.stopPropagation()` or `e.preventDefault()` should be triggered manually, as appropriate.
37+
> v0.14 से, किसी इवेंट हैंडलर द्वारा `false` लौटाने पर event propagation नहीं रुकेगा। इसके बजाय, `e.stopPropagation()` या `e.preventDefault()` को ज़रूरत के अनुसार मैन्युअल रूप से इस्तेमाल करना चाहिए।
3838
39-
### Event Pooling {#event-pooling}
39+
### इवेंट इकट्ठा करना {#event-pooling}
4040

41-
The `SyntheticEvent` is pooled. This means that the `SyntheticEvent` object will be reused and all properties will be nullified after the event callback has been invoked.
42-
This is for performance reasons.
43-
As such, you cannot access the event in an asynchronous way.
41+
`SyntheticEvent` को इकट्ठा किया जाता है। इसका मतलब यह है कि `SyntheticEvent` ऑब्जेक्ट का पुन: उपयोग किया जाएगा और ईवेंट कॉलबैक लागू होने के बाद सभी प्रॉपर्टीज को nullify कर दिया जाता है।
42+
यह परफॉरमेंस कारणों से है।
43+
जैसे की, हम ईवेंट को asynchronous तरीके से एक्सेस नहीं कर सकते हैं।
4444

4545
```javascript
4646
function onClick(event) {
@@ -61,15 +61,15 @@ function onClick(event) {
6161
}
6262
```
6363

64-
> Note:
64+
> ध्यान दें:
6565
>
66-
> If you want to access the event properties in an asynchronous way, you should call `event.persist()` on the event, which will remove the synthetic event from the pool and allow references to the event to be retained by user code.
66+
> यदि आप asynchronous तरीके से इवेंट के प्रॉपर्टीज का उपयोग करना चाहते हैं, तो आपको इवेंट पर `event.persist()` को कॉल करना चाहिए, जो पूल से सिंथेटिक इवेंट को हटा देगा और यूजर कोड द्वारा इवेंट के रेफरेन्सेस को बनाये रखेगा।
6767
68-
## Supported Events {#supported-events}
68+
## समर्थित इवेंट्स {#supported-events}
6969

70-
React normalizes events so that they have consistent properties across different browsers.
70+
React नोर्मलिज़ेस इवेंट्स, ताकि उनके विभिन्न ब्राउज़रों में सुसंगत गुण हों।
7171

72-
The event handlers below are triggered by an event in the bubbling phase. To register an event handler for the capture phase, append `Capture` to the event name; for example, instead of using `onClick`, you would use `onClickCapture` to handle the click event in the capture phase.
72+
नीचे दिए गए इवेंट हैंडलर्स को bubbling फेज में एक इवेंट द्वारा ट्रिगर किया गया है। कैप्चर फेज में कोई ईवेंट हैंडलर रजिस्टर करने के लिए, ईवेंट नाम में `Capture` जोड़ें, उदाहरण के लिए, `onClick` का उपयोग करने के बजाय, कैप्चर फेज में click इवेंट को संभालने के लिए `onClickCapture` का उपयोग होता है।
7373

7474
- [Clipboard Events](#clipboard-events)
7575
- [Composition Events](#composition-events)
@@ -91,33 +91,33 @@ The event handlers below are triggered by an event in the bubbling phase. To reg
9191

9292
* * *
9393

94-
## Reference {#reference}
94+
## संदर्भ {#reference}
9595

96-
### Clipboard Events {#clipboard-events}
96+
### क्लिपबोर्ड इवेंट्स {#clipboard-events}
9797

98-
Event names:
98+
इवेंट्स के नाम:
9999

100100
```
101101
onCopy onCut onPaste
102102
```
103103

104-
Properties:
104+
प्रॉपर्टीज:
105105

106106
```javascript
107107
DOMDataTransfer clipboardData
108108
```
109109

110110
* * *
111111

112-
### Composition Events {#composition-events}
112+
### कम्पोजीशन इवेंट्स {#composition-events}
113113

114-
Event names:
114+
इवेंट्स के नाम:
115115

116116
```
117117
onCompositionEnd onCompositionStart onCompositionUpdate
118118
```
119119

120-
Properties:
120+
प्रॉपर्टीज:
121121

122122
```javascript
123123
string data
@@ -126,15 +126,15 @@ string data
126126

127127
* * *
128128

129-
### Keyboard Events {#keyboard-events}
129+
### कीबोर्ड इवेंट्स {#keyboard-events}
130130

131-
Event names:
131+
इवेंट्स के नाम:
132132

133133
```
134134
onKeyDown onKeyPress onKeyUp
135135
```
136136

137-
Properties:
137+
प्रॉपर्टीज:
138138

139139
```javascript
140140
boolean altKey
@@ -151,63 +151,60 @@ boolean shiftKey
151151
number which
152152
```
153153

154-
The `key` property can take any of the values documented in the [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#named-key-attribute-values).
154+
`key` प्रॉपर्टी, [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#named-key-attribute-values) में प्रलेखित किसी भी वैल्यू को ले सकती है।
155155

156156
* * *
157157

158-
### Focus Events {#focus-events}
158+
### फोकस इवेंट्स {#focus-events}
159159

160-
Event names:
160+
इवेंट्स के नाम:
161161

162162
```
163163
onFocus onBlur
164164
```
165165

166-
These focus events work on all elements in the React DOM, not just form elements.
166+
ये फ़ोकस इवेंट React DOM में सभी एलिमेंट्स पर काम करते हैं, न कि केवल फार्म एलिमेंट्स पर।
167167

168-
Properties:
168+
प्रॉपर्टीज:
169169

170170
```javascript
171171
DOMEventTarget relatedTarget
172172
```
173173

174174
* * *
175175

176-
### Form Events {#form-events}
176+
### फार्म इवेंट्स {#form-events}
177177

178-
Event names:
178+
इवेंट्स के नाम:
179179

180180
```
181181
onChange onInput onInvalid onReset onSubmit
182182
```
183183

184-
For more information about the onChange event, see [Forms](/docs/forms.html).
184+
onChange ईवेंट के बारे में अधिक जानकारी के लिए [फॉर्म्स](/docs/forms.html) देखें।
185185

186-
* * *
187186

188-
### Generic Events {#generic-events}
187+
### सामान्य इवेंट्स {#generic-events}
189188

190-
Event names:
189+
इवेंट्स के नाम:
191190

192191
```
193192
onError onLoad
194193
```
195194

196-
* * *
197-
198-
### Mouse Events {#mouse-events}
195+
### माउस इवेंट्स {#mouse-events}
199196

200-
Event names:
197+
इवेंट्स के नाम:
201198

202199
```
203200
onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit
204201
onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave
205202
onMouseMove onMouseOut onMouseOver onMouseUp
206203
```
207204

208-
The `onMouseEnter` and `onMouseLeave` events propagate from the element being left to the one being entered instead of ordinary bubbling and do not have a capture phase.
205+
`onMouseEnter` और `onMouseLeave` इवेंट्स, साधारण बब्बलीन्ग के बजाय एलिमेंट के छोड़े जाने से दर्ज किये जाने पर प्रचारित होते हैं और इनमें कैप्चर फेज नहीं होता है।
209206

210-
Properties:
207+
प्रॉपर्टीज:
211208

212209
```javascript
213210
boolean altKey
@@ -228,20 +225,20 @@ boolean shiftKey
228225

229226
* * *
230227

231-
### Pointer Events {#pointer-events}
228+
### पॉइंटर इवेंट्स {#pointer-events}
232229

233-
Event names:
230+
इवेंट्स के नाम:
234231

235232
```
236233
onPointerDown onPointerMove onPointerUp onPointerCancel onGotPointerCapture
237234
onLostPointerCapture onPointerEnter onPointerLeave onPointerOver onPointerOut
238235
```
239236

240-
The `onPointerEnter` and `onPointerLeave` events propagate from the element being left to the one being entered instead of ordinary bubbling and do not have a capture phase.
237+
`onMouseEnter` और `onMouseLeave` इवेंट्स, साधारण बब्बलीन्ग के बजाय एलिमेंट के छोड़े जाने से दर्ज किये जाने पर प्रचारित होते हैं और इनमें कैप्चर फेज नहीं होता है।
241238

242-
Properties:
239+
प्रॉपर्टीज:
243240

244-
As defined in the [W3 spec](https://www.w3.org/TR/pointerevents/), pointer events extend [Mouse Events](#mouse-events) with the following properties:
241+
जैसा कि [W3 विनिर्देश](https://www.w3.org/TR/pointerevents/) में परिभाषित किया गया है, पॉइंटर इवेंट्स निम्नलिखित गुणों के साथ [माउस इवेंट्स](#mouse-events) का विस्तार करते हैं:
245242

246243
```javascript
247244
number pointerId
@@ -256,33 +253,33 @@ string pointerType
256253
boolean isPrimary
257254
```
258255

259-
A note on cross-browser support:
256+
क्रॉस-ब्राउज़र समर्थन पर एक नोट:
260257

261-
Pointer events are not yet supported in every browser (at the time of writing this article, supported browsers include: Chrome, Firefox, Edge, and Internet Explorer). React deliberately does not polyfill support for other browsers because a standard-conform polyfill would significantly increase the bundle size of `react-dom`.
258+
पॉइंटर ईवेंट्स अभी तक हर ब्राउज़र में सपोर्टेड नहीं हैं (इस लेख को लिखने के समय, सपोर्टेड ब्राउज़र में Chrome, Firefox, Edge और Internet Explorer शामिल हैं। `react-dom` के बंडल आकार में काफी वृद्धि न हो इसलिए React जानबूझकर अन्य ब्राउज़रों के लिए पॉलीफिल समर्थन नहीं करता।
262259

263-
If your application requires pointer events, we recommend adding a third party pointer event polyfill.
260+
यदि आपके एप्लिकेशन को पॉइंटर इवेंट्स की आवश्यकता है, तो हम थर्ड पार्टी पॉइंटर इवेंट पॉलीफिल जोड़ने की सलाह देते हैं।
264261

265262
* * *
266263

267-
### Selection Events {#selection-events}
264+
### चयन इवेंट्स {#selection-events}
268265

269-
Event names:
266+
इवेंट्स के नाम:
270267

271268
```
272269
onSelect
273270
```
274271

275272
* * *
276273

277-
### Touch Events {#touch-events}
274+
### टच इवेंट्स {#touch-events}
278275

279-
Event names:
276+
इवेंट्स के नाम:
280277

281278
```
282279
onTouchCancel onTouchEnd onTouchMove onTouchStart
283280
```
284281

285-
Properties:
282+
प्रॉपर्टीज:
286283

287284
```javascript
288285
boolean altKey
@@ -297,15 +294,15 @@ DOMTouchList touches
297294

298295
* * *
299296

300-
### UI Events {#ui-events}
297+
### UI इवेंट्स {#ui-events}
301298

302-
Event names:
299+
इवेंट्स के नाम:
303300

304301
```
305302
onScroll
306303
```
307304

308-
Properties:
305+
प्रॉपर्टीज:
309306

310307
```javascript
311308
number detail
@@ -314,15 +311,15 @@ DOMAbstractView view
314311

315312
* * *
316313

317-
### Wheel Events {#wheel-events}
314+
### व्हील इवेंट्स {#wheel-events}
318315

319-
Event names:
316+
इवेंट्स के नाम:
320317

321318
```
322319
onWheel
323320
```
324321

325-
Properties:
322+
प्रॉपर्टीज:
326323

327324
```javascript
328325
number deltaMode
@@ -333,9 +330,9 @@ number deltaZ
333330

334331
* * *
335332

336-
### Media Events {#media-events}
333+
### मीडिया इवेंट्स {#media-events}
337334

338-
Event names:
335+
इवेंट्स के नाम:
339336

340337
```
341338
onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted
@@ -346,25 +343,25 @@ onTimeUpdate onVolumeChange onWaiting
346343

347344
* * *
348345

349-
### Image Events {#image-events}
346+
### इमेज इवेंट्स {#image-events}
350347

351-
Event names:
348+
इवेंट्स के नाम:
352349

353350
```
354351
onLoad onError
355352
```
356353

357354
* * *
358355

359-
### Animation Events {#animation-events}
356+
### एनीमेशन इवेंट्स {#animation-events}
360357

361-
Event names:
358+
इवेंट्स के नाम:
362359

363360
```
364361
onAnimationStart onAnimationEnd onAnimationIteration
365362
```
366363

367-
Properties:
364+
प्रॉपर्टीज:
368365

369366
```javascript
370367
string animationName
@@ -374,15 +371,15 @@ float elapsedTime
374371

375372
* * *
376373

377-
### Transition Events {#transition-events}
374+
### ट्रांज़िशन इवेंट्स {#transition-events}
378375

379-
Event names:
376+
इवेंट्स के नाम:
380377

381378
```
382379
onTransitionEnd
383380
```
384381

385-
Properties:
382+
प्रॉपर्टीज:
386383

387384
```javascript
388385
string propertyName
@@ -392,9 +389,9 @@ float elapsedTime
392389

393390
* * *
394391

395-
### Other Events {#other-events}
392+
### अन्य इवेंट्स {#other-events}
396393

397-
Event names:
394+
इवेंट्स के नाम:
398395

399396
```
400397
onToggle

0 commit comments

Comments
 (0)