Skip to content

Commit c3647f1

Browse files
authored
Merge pull request #24 from animyrch/Fix-forgotten-backtick-ANI
Fix forgotten backtick ani
2 parents 800ef65 + 1d3d7b1 commit c3647f1

16 files changed

+11048
-10049
lines changed

_config.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
# Site
66
title: Vue.js
77
subtitle:
8-
description: "The Progressive JavaScript Framework"
8+
description: "Kademeli JavaScript Uygulama Çerçevesi"
99
author: Evan You
1010
email:
1111
language:
1212

1313
# URL
1414
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
15-
url: https://vuejs.org
16-
root: /
15+
url: https://animyrch.github.io/tr.vuejs.org/
16+
root: /tr.vuejs.org/
1717
permalink: :year/:month/:day/:title/
1818
tag_dir: tags
1919
archive_dir: archives
@@ -139,7 +139,7 @@ offline:
139139
## Docs: http://zespia.tw/hexo/docs/deployment.html
140140
deploy:
141141
type: git
142-
repository: [email protected]:vuejs/vuejs.org.git
142+
repository: [email protected]:animyrch/tr.vuejs.org.git
143143

144144
feed:
145145
type: atom

src/v2/guide/index.md

+89-89
Large diffs are not rendered by default.

src/v2/guide/installation.md

+73-73
Large diffs are not rendered by default.

src/v2/guide/instance.md

+39-39
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
---
2-
title: The Vue Instance
2+
title: Vue Örneği
33
type: guide
44
order: 3
55
---
66

7-
## Creating a Vue Instance
7+
## Bir Vue Örneği Oluşturmak
88

9-
Every Vue application starts by creating a new **Vue instance** with the `Vue` function:
9+
Her Vue uygulaması `Vue` fonksiyonu kullanılarak yeni bir **Vue örneğinin** oluşturulması ile başlar:
1010

1111
```js
1212
var vm = new Vue({
13-
// options
13+
// seçenekler
1414
})
1515
```
1616

17-
Although not strictly associated with the [MVVM pattern](https://en.wikipedia.org/wiki/Model_View_ViewModel), Vue's design was partly inspired by it. As a convention, we often use the variable `vm` (short for ViewModel) to refer to our Vue instance.
17+
Her ne kadar [MVVM deseni](https://en.wikipedia.org/wiki/Model_View_ViewModel)'ni sıkı sıkıya takip etmese de Vue'nin tasarımı kısmen bu desenden ilham almıştır. Teknik jargon olarak Vue örneğine hitap etmek için genellikle `vm` (ViewModel'in kısaltması) değişkenini kullanırız.
1818

19-
When you create a Vue instance, you pass in an **options object**. The majority of this guide describes how you can use these options to create your desired behavior. For reference, you can also browse the full list of options in the [API reference](../api/#Options-Data).
19+
Bir Vue örneği oluşturduğunuzda bir **seçenekler nesnesi** parametre olarak girilir. Bu kılavuzun büyük bir çoğunluğu söz konusu bu seçenekleri arzu ettiğiniz davranışı elde etmek üzere nasıl kullanabileceğinizi tarif eder. Referans olarak kullanmak üzere seçeneklerin tam bir listesini [API referansı](../api/#Options-Data)nda bulabilirsiniz.
2020

21-
A Vue application consists of a **root Vue instance** created with `new Vue`, optionally organized into a tree of nested, reusable components. For example, a todo app's component tree might look like this:
21+
Bir Vue uygulaması `new Vue` komutu ile yaratılan bir **ana Vue örneğinden** oluşur ve arzu edildiği takdirde birbiri içerisinde ve farklı projelerde kullanılabilen bileşenler halinde organize edilebilir. Örneğin bir yapılacaklar listesi uygulamasının bileşen ağacı şuna benzeyebilir:
2222

2323
```
24-
Root Instance
24+
Ana Örnek
2525
└─ TodoList
2626
├─ TodoItem
2727
│ ├─ DeleteTodoButton
@@ -31,42 +31,42 @@ Root Instance
3131
└─ TodoListStatistics
3232
```
3333

34-
We'll talk about [the component system](components.html) in detail later. For now, just know that all Vue components are also Vue instances, and so accept the same options object (except for a few root-specific options).
34+
[Bileşenler sistemine](components.html) ileride daha detaylı bir şekilde değineceğiz. Şimdilik her Vue bileşeninin aynı zamanda bir Vue örneği olduğunu ve dolayısıyla aynı seçenekler nesnesini (ana örneğe özgü birkaç seçenek dışında) kabul ettiğini aklınızda bulundurun.
3535

36-
## Data and Methods
36+
## Veriler ve Metodlar
3737

38-
When a Vue instance is created, it adds all the properties found in its `data` object to Vue's **reactivity system**. When the values of those properties change, the view will "react", updating to match the new values.
38+
Bir Vue örneği oluşturulduğunda `data` nesnesi içerisindeki tüm nitelikler Vue'nin **otomatik tepki sistemine** eklenir. Bu niteliklerin değeri değiştiğinde ekrana yansıtılan görüntü "tepki gösterecek" ve yeni değerleri yansıtmak üzere kendisini güncelleyecektir.
3939

4040
```js
41-
// Our data object
41+
// Data nesnemiz
4242
var data = { a: 1 }
4343

44-
// The object is added to a Vue instance
44+
// Nesneyi, Vue örneğine ekliyoruz
4545
var vm = new Vue({
4646
data: data
4747
})
4848

49-
// Getting the property on the instance
50-
// returns the one from the original data
49+
// Örnek içerisindeki nitelik çağrıldığında
50+
// orijinal veriye ait değer elde edilecektir
5151
vm.a == data.a // => true
5252

53-
// Setting the property on the instance
54-
// also affects the original data
53+
// Örnek içerisinde nitelik değiştirildiğinde
54+
// orijinal data nesnesi de bundan etkilenir
5555
vm.a = 2
5656
data.a // => 2
5757

58-
// ... and vice-versa
58+
// ... bunun tam tersi de geçerlidir
5959
data.a = 3
6060
vm.a // => 3
6161
```
6262

63-
When this data changes, the view will re-render. It should be noted that properties in `data` are only **reactive** if they existed when the instance was created. That means if you add a new property, like:
63+
Bu veri nesnesi değişir değişmez ekrana yansıtılan görüntü de güncellenecektir. `data` içerisindeki niteliklerin **reaktif** olabilmeleri için söz konusu örnek yaratıldığı sırada mevcut olmaları gerektiğini unutmayın. Mesela aşağıdaki şekilde yeni bir nitelik eklediğimizi farz edelim:
6464

6565
```js
66-
vm.b = 'hi'
66+
vm.b = 'selam'
6767
```
6868

69-
Then changes to `b` will not trigger any view updates. If you know you'll need a property later, but it starts out empty or non-existent, you'll need to set some initial value. For example:
69+
Bu durumda `b` üzerinde gerçekleştirilen değişiklikler herhangi bir görüntü güncellemesini tetiklemeyecektir. Eğer ileride bir niteliğe ihtiyaç duyacağınızı biliyorsanız fakat bu niteliğin başlangıçta boş olması veya mevcut olmaması gerekiyorsa bir başlangıç değeri belirlemeniz gerekecektir. Örneğin:
7070

7171
```js
7272
data: {
@@ -78,7 +78,7 @@ data: {
7878
}
7979
```
8080

81-
The only exception to this being the use of `Object.freeze()`, which prevents existing properties from being changed, which also means the reactivity system can't _track_ changes.
81+
Bunun tek istisnası `Object.freeze()` komutunun kullanılmasıdır. Bu durumda mevcut niteliklerdeki değişimler engellenir ve otomatik tepki sistemi değişiklikleri _takip edemez_.
8282

8383
```js
8484
var obj = {
@@ -96,12 +96,12 @@ new Vue({
9696
```html
9797
<div id="app">
9898
<p>{{ foo }}</p>
99-
<!-- this will no longer update `foo`! -->
100-
<button v-on:click="foo = 'baz'">Change it</button>
99+
<!-- aşağıdaki işlem `foo`yu güncelleyemecektir! -->
100+
<button v-on:click="foo = 'baz'">Değiştir</button>
101101
</div>
102102
```
103103

104-
In addition to data properties, Vue instances expose a number of useful instance properties and methods. These are prefixed with `$` to differentiate them from user-defined properties. For example:
104+
Veri niteliklerine ek olarak Vue örnekleri birçok farklı örnek niteliklerini ve metodlarını kullanıma sunar. Kullanıcı tarafından belirlenen niteliklerden ayırt edilmeleri amacıyla `$` ön eki ile kullanılırlar. Örneğin:
105105

106106
```js
107107
var data = { a: 1 }
@@ -113,39 +113,39 @@ var vm = new Vue({
113113
vm.$data === data // => true
114114
vm.$el === document.getElementById('example') // => true
115115

116-
// $watch is an instance method
116+
// $watch bir örnek metodudur
117117
vm.$watch('a', function (newValue, oldValue) {
118-
// This callback will be called when `vm.a` changes
118+
// Bu callback metodu `vm.a` değiştiğinde çağrılacaktır
119119
})
120120
```
121121

122-
In the future, you can consult the [API reference](../api/#Instance-Properties) for a full list of instance properties and methods.
122+
İhtiyaç duyduğunuzda [API referansı](../api/#Instance-Properties) sayfasında örnek niteliklerinin ve metodlarının tam bir listesini bulabilirsiniz.
123123

124-
## Instance Lifecycle Hooks
124+
## Örneklerin Yaşam Döngüsü Kancaları
125125

126-
Each Vue instance goes through a series of initialization steps when it's created - for example, it needs to set up data observation, compile the template, mount the instance to the DOM, and update the DOM when data changes. Along the way, it also runs functions called **lifecycle hooks**, giving users the opportunity to add their own code at specific stages.
126+
Her Vue örneği yaratıldığı sırada bir dizi başlatma adımlarından geçer - Örneğin veri gözlem mekanizmasını kurar, şablon derlemesini gerçekleştirir, örneği DOM'a enjekte eder ve veri değiştiğinde DOM'u günceller. Bu sırada kullanıcıların belirli aşamalarda kendi kodlarını ekleyebilmesi için **yaşam döngüsü kancaları** adı verilen fonksiyonları yerine getirir.
127127

128-
For example, the [`created`](../api/#created) hook can be used to run code after an instance is created:
128+
Örneğin [`created`](../api/#created) kancası belirli bir kodun bir örnek yaratıldıktan sonra işleme alınması için kullanılabilir:
129129

130130
```js
131131
new Vue({
132132
data: {
133133
a: 1
134134
},
135135
created: function () {
136-
// `this` points to the vm instance
137-
console.log('a is: ' + this.a)
136+
// `this` ıfadesi mevcut vm örneğini temsil eder
137+
console.log('a'nın değeri: ' + this.a)
138138
}
139139
})
140-
// => "a is: 1"
140+
// => "a'nın değeri: 1" 1"
141141
```
142142
143-
There are also other hooks which will be called at different stages of the instance's lifecycle, such as [`mounted`](../api/#mounted), [`updated`](../api/#updated), and [`destroyed`](../api/#destroyed). All lifecycle hooks are called with their `this` context pointing to the Vue instance invoking it.
143+
Örneklerin yaşam döngüsünün farklı aşamalarında çağrılan diğer birçok kanca vardır. Örneğin [`mounted`](../api/#mounted), [`updated`](../api/#updated), ve [`destroyed`](../api/#destroyed). Bütün yaşam döngüsü kancaları ait oldukları Vue örneğini temsil eden `this` bağlamı ile çağrılır.
144144
145-
<p class="tip">Don't use [arrow functions](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Functions/Arrow_functions) on an options property or callback, such as `created: () => console.log(this.a)` or `vm.$watch('a', newValue => this.myMethod())`. Since an arrow function doesn't have a `this`, `this` will be treated as any other variable and lexically looked up through parent scopes until found, often resulting in errors such as `Uncaught TypeError: Cannot read property of undefined` or `Uncaught TypeError: this.myMethod is not a function`.</p>
145+
<p class="tip">Seçenek nitelikleri ve callback metodları üzerinde `created: () => console.log(this.a)` veya `vm.$watch('a', newValue => this.myMethod())` gibi [ok fonksiyonları](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Functions/Arrow_functions) kullanmayın. Ok fonksiyonları bir üst seviyedeki bağlama ait olduklarından `this` ifadesi umduğunuz gibi Vue örneğine karşılık gelmeyecektir ve sık sık `Uncaught TypeError: Cannot read property of undefined` ve `Uncaught TypeError: this.myMethod is not a function` gibi hatalara neden olacaktır.</p>
146146

147-
## Lifecycle Diagram
147+
## Yaşam Döngüsü Şeması
148148

149-
Below is a diagram for the instance lifecycle. You don't need to fully understand everything going on right now, but as you learn and build more, it will be a useful reference.
149+
Aşağıda örneklerin yaşam döngüsüne ait bir şema bulabilirsiniz. Burada olup biten her şeyi tam olarak anlamanız gerekmiyor. Fakat öğrenme sürecinizde ve projelerinizde yararlı bir referans olacaktır.
150150

151-
![The Vue Instance Lifecycle](/images/lifecycle.png)
151+
![Vue Örneği Yaşam Döngüsü](/images/lifecycle.png)

0 commit comments

Comments
 (0)