Skip to content

Commit 9a9192c

Browse files
committed
docs: translate korean to english
1 parent 26874b5 commit 9a9192c

File tree

1 file changed

+41
-41
lines changed

1 file changed

+41
-41
lines changed

docs/src/pages/Demos.mdx

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Made with [@egjs/grid](https://github.com/naver/egjs-grid)
6969
## Reactive API demo
7070

7171
### Pagination
72-
> `currentPanelIndex`, `totalPanelCount` 를 이용하여 Flicking과 Pagination을 연동시킬 수 있습니다.
72+
> You can synchronize Flicking with Pagination using `currentPanelIndex` and `totalPanelCount`.
7373
7474
<Columns>
7575
<ColumnItem is={12} className="is-flex is-flex-direction-column is-align-items-center">
@@ -108,7 +108,7 @@ import Flicking, { connectFlickingReactiveAPI } from "@egjs/flicking";
108108
const flicking = new Flicking(".flicking-viewport");
109109
const reactiveObj = connectFlickingReactiveAPI(flicking);
110110

111-
// Pagination 컴포넌트와 연동
111+
// Connect with Pagination component
112112
const pagination = document.querySelector(".pagination");
113113
const pageNums = Array.from({ length: reactiveObj.totalPanelCount }, (_, i) => {
114114
const div = document.createElement("div");
@@ -123,7 +123,7 @@ const pageNums = Array.from({ length: reactiveObj.totalPanelCount }, (_, i) => {
123123

124124
pagination.append(...pageNums);
125125

126-
// 현재 페이지 업데이트
126+
// Update current page
127127
reactiveObj.subscribe("currentPanelIndex", (nextValue) => {
128128
pageNums.forEach((v, i) => {
129129
v.classList.remove("active");
@@ -151,7 +151,7 @@ export default function PaginationExample() {
151151
} = useFlickingReactiveAPI(flickingRef);
152152

153153
const handlePageChange = (event, page) => {
154-
moveTo(page - 1); // MUI Pagination은 1부터 시작
154+
moveTo(page - 1); // MUI Pagination starts from 1
155155
};
156156

157157
return (
@@ -201,10 +201,10 @@ export default function PaginationExample() {
201201

202202
<div class="controls">
203203
<button @click="handlePrev" :disabled="isReachStart" class="btn">
204-
이전
204+
Prev
205205
</button>
206206
<button @click="handleNext" :disabled="isReachEnd" class="btn">
207-
다음
207+
Next
208208
</button>
209209
</div>
210210

@@ -221,11 +221,11 @@ export default function PaginationExample() {
221221
</div>
222222

223223
<div class="status">
224-
<p>총 패널 수: {{ totalPanelCount }}</p>
225-
<p>현재 인덱스: {{ currentPanelIndex }}</p>
226-
<p>진행률: {{ progress.toFixed(1) }}%</p>
227-
<p>첫 번째 패널: {{ isReachStart ? '도달' : '미도달' }}</p>
228-
<p>마지막 패널: {{ isReachEnd ? '도달' : '미도달' }}</p>
224+
<p>Total panels: {{ totalPanelCount }}</p>
225+
<p>Current index: {{ currentPanelIndex }}</p>
226+
<p>Progress: {{ progress.toFixed(1) }}%</p>
227+
<p>First panel: {{ isReachStart ? 'Reached' : 'Not reached' }}</p>
228+
<p>Last panel: {{ isReachEnd ? 'Reached' : 'Not reached' }}</p>
229229
</div>
230230
</div>
231231
</template>
@@ -242,7 +242,7 @@ export default {
242242
Flicking
243243
},
244244
setup() {
245-
// 반응형 데이터
245+
// Reactive data
246246
const panels = ref([
247247
{ id: 1, text: '패널 1', color: '#ff6b6b' },
248248
{ id: 2, text: '패널 2', color: '#4ecdc4' },
@@ -251,18 +251,18 @@ export default {
251251
{ id: 5, text: '패널 5', color: '#feca57' }
252252
])
253253

254-
// Flicking 옵션
254+
// Flicking options
255255
const flickingOptions = ref({
256256
circular: false,
257257
bound: false,
258258
duration: 500,
259259
defaultIndex: 0,
260260
})
261261

262-
// Flicking 인스턴스 참조
262+
// Flicking instance reference
263263
const flickingRef = ref(null)
264264

265-
// Reactive API 훅 사용
265+
// Use Reactive API hook
266266
const {
267267
currentPanelIndex,
268268
totalPanelCount,
@@ -272,7 +272,7 @@ export default {
272272
moveTo
273273
} = useFlickingReactiveAPI(flickingRef)
274274

275-
// 메서드들
275+
// Methods
276276
const handlePrev = () => {
277277
if (!isReachStart.value) {
278278
moveTo(currentPanelIndex.value - 1)
@@ -285,7 +285,7 @@ export default {
285285
}
286286
}
287287

288-
// 라이프사이클 훅
288+
// Lifecycle hook
289289
onMounted(() => {
290290
if (flickingRef.value) {
291291
console.log('Flicking 인스턴스가 마운트되었습니다')
@@ -338,10 +338,10 @@ export default {
338338

339339
<div class="controls">
340340
<button @click="handlePrev" :disabled="isReachStart" class="btn">
341-
이전
341+
Prev
342342
</button>
343343
<button @click="handleNext" :disabled="isReachEnd" class="btn">
344-
다음
344+
Next
345345
</button>
346346
</div>
347347

@@ -358,11 +358,11 @@ export default {
358358
</div>
359359

360360
<div class="status">
361-
<p>총 패널 수: {{ totalPanelCount }}</p>
362-
<p>현재 인덱스: {{ currentPanelIndex }}</p>
363-
<p>진행률: {{ progress.toFixed(1) }}%</p>
364-
<p>첫 번째 패널: {{ isReachStart ? '도달' : '미도달' }}</p>
365-
<p>마지막 패널: {{ isReachEnd ? '도달' : '미도달' }}</p>
361+
<p>Total panels: {{ totalPanelCount }}</p>
362+
<p>Current index: {{ currentPanelIndex }}</p>
363+
<p>Progress: {{ progress.toFixed(1) }}%</p>
364+
<p>First panel: {{ isReachStart ? 'Reached' : 'Not reached' }}</p>
365+
<p>Last panel: {{ isReachEnd ? 'Reached' : 'Not reached' }}</p>
366366
</div>
367367
</div>
368368
</template>
@@ -373,10 +373,10 @@ import { ref, reactive, onMounted } from 'vue'
373373
import Flicking from '../src/Flicking'
374374
import { useFlickingReactiveAPI } from "../src/reactive";
375375

376-
// Flicking 인스턴스 참조
376+
// Flicking instance reference
377377
const flickingRef = ref(null)
378378

379-
// 반응형 데이터
379+
// Reactive data
380380
const panels = reactive([
381381
{ id: 1, text: 'Panel 1', color: '#ff6b6b' },
382382
{ id: 2, text: 'Panel 2', color: '#4ecdc4' },
@@ -385,15 +385,15 @@ const panels = reactive([
385385
{ id: 5, text: 'Panel 5', color: '#feca57' }
386386
])
387387

388-
// Flicking 옵션
388+
// Flicking options
389389
const flickingOptions = reactive({
390390
circular: false,
391391
bound: false,
392392
duration: 500,
393393
defaultIndex: 0,
394394
})
395395

396-
// Reactive API 훅 사용
396+
// Use Reactive API hook
397397
const {
398398
currentPanelIndex,
399399
totalPanelCount,
@@ -403,7 +403,7 @@ const {
403403
moveTo
404404
} = useFlickingReactiveAPI(flickingRef)
405405

406-
// 메서드들
406+
// Methods
407407
const handlePrev = () => {
408408
if (!isReachStart.value) {
409409
moveTo(currentPanelIndex.value - 1)
@@ -416,7 +416,7 @@ const handleNext = () => {
416416
}
417417
}
418418

419-
// 라이프사이클 훅
419+
// Lifecycle hook
420420
onMounted(() => {
421421
if (flickingRef.value) {
422422
console.log('Flicking instance mounted')
@@ -428,7 +428,7 @@ onMounted(() => {
428428
</Tabs>
429429

430430
### Prev / Next Button
431-
> `isReachStart`, `isReachEnd` 를 이용하여 Flicking과 Prev, Next Button의 비활성화 여부를 연동시킬 수 있습니다.
431+
> You can synchronize Flicking with Prev/Next buttons using `isReachStart` and `isReachEnd`.
432432
433433
<Columns>
434434
<ColumnItem is={12} className="is-flex is-flex-direction-column is-align-items-center">
@@ -470,7 +470,7 @@ import Flicking, { connectFlickingReactiveAPI } from "@egjs/flicking";
470470
const flicking = new Flicking(".flicking-viewport");
471471
const reactiveObj = connectFlickingReactiveAPI(flicking);
472472

473-
// Prev/Next 버튼과 연동
473+
// Connect with Prev/Next button
474474
const prevBtn = document.querySelector(".prev-btn");
475475
const nextBtn = document.querySelector(".next-btn");
476476

@@ -486,7 +486,7 @@ nextBtn.addEventListener("click", () => {
486486
}
487487
});
488488

489-
// 버튼 상태 업데이트
489+
// Update button state
490490
reactiveObj.subscribe("isReachStart", (nextValue) => {
491491
prevBtn.disabled = nextValue;
492492
});
@@ -744,7 +744,7 @@ onMounted(() => {
744744
</Tabs>
745745

746746
### Progress Bar
747-
> `progress`를 이용하여 Flicking과 Progress Bar를 연동시킬 수 있습니다.
747+
> You can synchronize Flicking with Progress Bar using `progress`.
748748
749749
<Columns>
750750
<ColumnItem is={12} className="is-flex is-flex-direction-column is-align-items-center">
@@ -788,7 +788,7 @@ const flicking = new Flicking(".flicking-viewport", {
788788
});
789789
const reactiveObj = connectFlickingReactiveAPI(flicking);
790790

791-
// Progress Bar와 연동
791+
// Connect with Progress Bar
792792
const progressBar = document.querySelector(".progress-bar");
793793
const progressText = document.querySelector(".progress-text");
794794

@@ -976,7 +976,7 @@ onMounted(() => {
976976
</Tabs>
977977

978978
### Parallax
979-
> `indexProgress`를 이용하여 각 Panel의 Parallax 효과를 만들 수 있습니다.
979+
> You can create a Parallax effect for each panel using `indexProgress`.
980980
981981
<Columns>
982982
<ColumnItem is={12} className="is-flex is-flex-direction-column is-align-items-center">
@@ -1043,7 +1043,7 @@ import Flicking, { connectFlickingReactiveAPI } from "@egjs/flicking";
10431043
const flicking = new Flicking(".flicking-viewport");
10441044
const reactiveObj = connectFlickingReactiveAPI(flicking);
10451045

1046-
// Parallax 효과 구현
1046+
// Implement Parallax effect
10471047
reactiveObj.subscribe("indexProgress", (nextValue) => {
10481048
const panels = document.querySelectorAll(".flicking-panel");
10491049
panels.forEach((panel, index) => {
@@ -1285,7 +1285,7 @@ onMounted(() => {
12851285
</Tabs>
12861286

12871287
### Slide Over
1288-
> `indexProgress`를 이용하여 Slide Over 효과를 만들 수 있습니다.
1288+
> You can create a Slide Over effect using `indexProgress`.
12891289
12901290
<Columns>
12911291
<ColumnItem is={12} className="is-flex is-flex-direction-column is-align-items-center">
@@ -1327,7 +1327,7 @@ const reactiveObj = connectFlickingReactiveAPI(flicking);
13271327
const panels = document.querySelectorAll(".flicking-panel");
13281328
const length = panels.length;
13291329

1330-
// Slide Over 효과 구현
1330+
// Implement Slide Over effect
13311331
reactiveObj.subscribe("indexProgress", (nextValue) => {
13321332
panels.forEach((panel, index) => {
13331333
const childProgress = (index - nextValue + length * 1.5) % length - length * 0.5;
@@ -1482,7 +1482,7 @@ const getSlideOverStyle = (index) => {
14821482
</Tabs>
14831483

14841484
### Cover flow
1485-
> `indexProgress`를 이용하여 Cover flow UI를 만들 수 있습니다.
1485+
> You can create a Cover flow UI using `indexProgress`.
14861486
14871487
<Columns>
14881488
<ColumnItem is={12} className="is-flex is-flex-direction-column is-align-items-center">
@@ -1524,7 +1524,7 @@ const reactiveObj = connectFlickingReactiveAPI(flicking);
15241524
const panels = document.querySelectorAll(".flicking-panel");
15251525
const length = panels.length;
15261526

1527-
// Cover flow 효과 구현
1527+
// Implement Cover flow effect
15281528
reactiveObj.subscribe("indexProgress", (nextValue) => {
15291529
panels.forEach((panel, index) => {
15301530
const childProgress = (index - nextValue + length * 1.5) % length - length * 0.5;

0 commit comments

Comments
 (0)