Skip to content

Commit 6c30a00

Browse files
committed
예제 번역: /examples/todomvc
1 parent 1cb2561 commit 6c30a00

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

ko-KR/src/examples/src/todomvc/App/composition.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ const filters = {
1010

1111
export default {
1212
setup() {
13-
// state
13+
// 상태
1414
const todos = ref(JSON.parse(localStorage.getItem(STORAGE_KEY) || '[]'))
1515
const visibility = ref('all')
1616
const editedTodo = ref()
1717

18-
// derived state
18+
// 파생된 상태(계산된 속성)
1919
const filteredTodos = computed(() => filters[visibility.value](todos.value))
2020
const remaining = computed(() => filters.active(todos.value).length)
2121

22-
// handle routing
22+
// 라우팅 핸들링
2323
window.addEventListener('hashchange', onHashChange)
2424
onHashChange()
2525

26-
// persist state
26+
// 상태 저장
2727
watchEffect(() => {
2828
localStorage.setItem(STORAGE_KEY, JSON.stringify(todos.value))
2929
})

ko-KR/src/examples/src/todomvc/App/options.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ const filters = {
77
}
88

99
export default {
10-
// app initial state
10+
// 상태 초기화
1111
data: () => ({
1212
todos: JSON.parse(localStorage.getItem(STORAGE_KEY) || '[]'),
1313
editedTodo: null,
1414
visibility: 'all'
1515
}),
1616

17-
// watch todos change for localStorage persistence
17+
// todos의 변경사항을 감지하여 localStorage에 저장
1818
watch: {
1919
todos: {
2020
handler(todos) {
@@ -38,8 +38,8 @@ export default {
3838
}
3939
},
4040

41-
// methods that implement data logic.
42-
// note there's no DOM manipulation here at all.
41+
// 데이터 로직을 구현하는 메소드.
42+
// 여기에는 DOM 조작이 전혀 없습니다.
4343
methods: {
4444
toggleAll(e) {
4545
this.todos.forEach((todo) => (todo.completed = e.target.checked))

ko-KR/src/examples/src/todomvc/App/template.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<section class="todoapp">
22
<header class="header">
3-
<h1>todos</h1>
3+
<h1>해야 할 일</h1>
44
<input
55
class="new-todo"
66
autofocus
7-
placeholder="What needs to be done?"
7+
placeholder="무엇을 해야 하나요?"
88
@keyup.enter="addTodo"
99
>
1010
</header>
@@ -16,7 +16,7 @@ <h1>todos</h1>
1616
:checked="remaining === 0"
1717
@change="toggleAll"
1818
>
19-
<label for="toggle-all">Mark all as complete</label>
19+
<label for="toggle-all">모두 완료로 표시</label>
2020
<ul class="todo-list">
2121
<li
2222
v-for="todo in filteredTodos"
@@ -45,21 +45,21 @@ <h1>todos</h1>
4545
<footer class="footer" v-show="todos.length">
4646
<span class="todo-count">
4747
<strong>{{ remaining }}</strong>
48-
<span>{{ remaining === 1 ? 'item' : 'items' }} left</span>
48+
<span>개 남음</span>
4949
</span>
5050
<ul class="filters">
5151
<li>
52-
<a href="#/all" :class="{ selected: visibility === 'all' }">All</a>
52+
<a href="#/all" :class="{ selected: visibility === 'all' }">전체</a>
5353
</li>
5454
<li>
55-
<a href="#/active" :class="{ selected: visibility === 'active' }">Active</a>
55+
<a href="#/active" :class="{ selected: visibility === 'active' }">해야할 일</a>
5656
</li>
5757
<li>
58-
<a href="#/completed" :class="{ selected: visibility === 'completed' }">Completed</a>
58+
<a href="#/completed" :class="{ selected: visibility === 'completed' }">완료된 일</a>
5959
</li>
6060
</ul>
6161
<button class="clear-completed" @click="removeCompleted" v-show="todos.length > remaining">
62-
Clear completed
62+
완료된 것 삭제
6363
</button>
6464
</footer>
6565
</section>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
A fully spec-compliant TodoMVC implementation
1+
완벽히 구현된 TodoMVC
22
https://todomvc.com/

0 commit comments

Comments
 (0)