Skip to content

Commit 23a9e49

Browse files
author
HuynhThiKhanhLinh
committed
translate into Vietnamese
1 parent fbbeff1 commit 23a9e49

38 files changed

+514
-515
lines changed

.vitepress/config.js

+41-37
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22

33
const Guide = [
44
{
5-
text: 'Why Slidev',
5+
text: 'Tại sao chọn Slidev',
66
link: '/guide/why',
77
},
88
{
9-
text: 'Getting Started',
9+
text: 'Bắt đầu',
1010
link: '/guide/',
1111
},
1212
{
13-
text: 'Installation',
13+
text: 'Cài đặt',
1414
link: '/guide/install',
1515
},
1616
{
17-
text: 'Markdown Syntax',
17+
text: 'Cú pháp Markdown',
1818
link: '/guide/syntax',
1919
},
2020
{
@@ -26,19 +26,19 @@ const Guide = [
2626
link: '/guide/animations',
2727
},
2828
{
29-
text: 'Exporting',
29+
text: 'Xuất trang trình bày',
3030
link: '/guide/exporting',
3131
},
3232
{
33-
text: 'Record Presentation',
33+
text: 'Ghi lại bản trình bày',
3434
link: '/guide/recording',
3535
},
3636
{
37-
text: 'Presenter Mode',
37+
text: 'Chế độ trình bày',
3838
link: '/guide/presenter-mode',
3939
},
4040
{
41-
text: 'Editor Integrations',
41+
text: 'Tích hợp trình soạn thảo',
4242
link: '/guide/editors',
4343
},
4444
{
@@ -49,22 +49,26 @@ const Guide = [
4949

5050
const Theme = [
5151
{
52-
text: 'Use Theme',
52+
text: 'Sử dụng chủ đề',
5353
link: '/themes/use',
5454
},
5555
{
56-
text: 'Theme Gallery',
56+
text: 'Thư viện chủ đề',
5757
link: '/themes/gallery',
5858
},
5959
{
60-
text: 'Write a Theme',
60+
text: 'Viết chủ đề mới',
6161
link: '/themes/write-a-theme',
6262
},
6363
]
6464

6565
const Translations = [
66+
{
67+
text: 'Việt Nam'
68+
},
6669
{
6770
text: 'English',
71+
link: 'https://sli.dev{{pathname}}',
6872
},
6973
{
7074
text: '简体中文',
@@ -86,47 +90,47 @@ const Translations = [
8690

8791
const Customizations = [
8892
{
89-
text: 'Customizations',
93+
text: 'Tùy chỉnh',
9094
link: '/custom/',
9195
},
9296
{
93-
text: 'Directory Structure',
97+
text: 'Cấu trúc thư mục',
9498
link: '/custom/directory-structure',
9599
},
96100
{
97-
text: 'Fonts',
101+
text: 'Font',
98102
link: '/custom/fonts',
99103
},
100104
{
101-
text: 'Highlighters',
105+
text: 'Đánh dấu',
102106
link: '/custom/highlighters',
103107
},
104108
{
105-
text: 'Configure Vue',
109+
text: 'Cấu hình Vue',
106110
link: '/custom/config-vue',
107111
},
108112
{
109-
text: 'Configure Vite',
113+
text: 'Cấu hình Vite',
110114
link: '/custom/config-vite',
111115
},
112116
{
113-
text: 'Configure Windi CSS',
117+
text: 'Cấu hình Windi CSS',
114118
link: '/custom/config-windicss',
115119
},
116120
{
117-
text: 'Configure Monaco',
121+
text: 'Cấu hình Monaco',
118122
link: '/custom/config-monaco',
119123
},
120124
{
121-
text: 'Configure KaTeX',
125+
text: 'Cấu hình KaTeX',
122126
link: '/custom/config-katex',
123127
},
124128
{
125-
text: 'Configure Mermaid',
129+
text: 'Cấu hình Mermaid',
126130
link: '/custom/config-mermaid',
127131
},
128132
{
129-
text: 'Configure Shortcuts',
133+
text: 'Cấu hình Phím tắt',
130134
link: '/custom/config-shortcuts',
131135
},
132136
{
@@ -145,33 +149,33 @@ const Resources = [
145149
link: '/showcases',
146150
},
147151
{
148-
text: 'Curated Covers',
152+
text: 'Quản lý slide',
149153
link: '/resources/covers',
150154
},
151155
]
152156

153157
const slidebars = [
154158
{
155-
text: 'Guide',
159+
text: 'Hướng dẫn',
156160
children: Guide,
157161
},
158162
{
159-
text: 'Themes',
163+
text: 'Chủ đề',
160164
children: Theme,
161165
},
162166
{
163-
text: 'Customizations',
167+
text: 'Các tùy chỉnh',
164168
children: Customizations,
165169
},
166170
{
167-
text: 'Built-in',
171+
text: 'Tích hợp',
168172
children: [
169173
{
170-
text: 'Components',
174+
text: 'Component',
171175
link: '/builtin/components',
172176
},
173177
{
174-
text: 'Layouts',
178+
text: 'Layout',
175179
link: '/builtin/layouts',
176180
},
177181
],
@@ -183,13 +187,13 @@ const slidebars = [
183187
*/
184188
module.exports = {
185189
title: 'Slidev',
186-
description: 'Presentation slides for developers',
190+
description: 'Trang trình bày dành cho nhà lập trình',
187191
head: [
188192
['link', { rel: 'icon', type: 'image/png', href: '/favicon.png' }],
189193
['meta', { name: 'author', content: 'Anthony Fu' }],
190194
['meta', { property: 'og:title', content: 'Slidev' }],
191195
['meta', { property: 'og:image', content: 'https://sli.dev/og-image.png' }],
192-
['meta', { property: 'og:description', content: 'Presentation slides for developers' }],
196+
['meta', { property: 'og:description', content: 'Trang trình bày dành cho nhà lập trình' }],
193197
['meta', { name: 'twitter:card', content: 'summary_large_image' }],
194198
['meta', { name: 'twitter:creator', content: '@slidevjs' }],
195199
['meta', { name: 'twitter:image', content: 'https://sli.dev/og-image.png' }],
@@ -202,27 +206,27 @@ module.exports = {
202206
logo: '/logo.svg',
203207
docsBranch: 'main',
204208
editLinks: true,
205-
editLinkText: 'Suggest changes to this page',
209+
editLinkText: 'Đề xuất các thay đổi cho trang này',
206210

207211
nav: [
208212
{
209-
text: 'Guide',
213+
text: 'Hướng dẫn',
210214
items: Guide,
211215
},
212216
{
213-
text: 'Theme',
217+
text: 'Chủ đề',
214218
items: Theme,
215219
},
216220
{
217-
text: 'Customize',
221+
text: 'Tùy chỉnh',
218222
items: Customizations,
219223
},
220224
{
221-
text: 'Resources',
225+
text: 'Tài nguyên',
222226
items: Resources,
223227
},
224228
{
225-
text: 'English',
229+
text: 'Việt Nam',
226230
items: Translations,
227231
},
228232
],

.vitepress/theme/components/Environment.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ defineProps<{ type: 'node' | 'client' }>()
77
<template>
88
<details class="px-4 py-3 mt-4 rounded bg-gray-400 bg-opacity-10">
99
<summary class="outline-none">
10-
Environment:
10+
Môi trường:
1111
<span class="capitalize" :class="type === 'node' ? 'text-orange-400' : 'text-green-400'">{{ type }}</span>
1212
</summary>
1313

1414
<div class="mt-2 opacity-75">
1515
<span v-if="type === 'node'">
16-
This setup function will only run on Node.js environment, you can have access to Node's API.
16+
Hàm cài đặt này sẽ chỉ chạy trên môi trường Node.js, bạn có thể có quyền truy cập vào API của Node.
1717
</span>
1818
<span v-else>
19-
This setup function will only run on client side. Make sure the browser compatibility when importing packages.
19+
Hàm cài đặt này sẽ chỉ chạy ở phía client. Đảm bảo tính tương thích của trình duyệt khi nhập các gói. Đảm bảo tính tương thích của trình duyệt khi thêm các package.
2020
</span>
2121
</div>
2222
</details>

.vitepress/theme/components/HomeHero.vue

+3-4
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@
99
<br />
1010
</p>
1111
<div class="description !-mt-4">
12-
Presentation
13-
<b>Sli</b>des for
14-
<b>Dev</b>elopers
12+
<b>Trang trình bày </b>dành cho
13+
<b>Nhà lập trình</b>
1514
<sup class="opacity-50">Beta</sup>
1615
</div>
1716

@@ -31,7 +30,7 @@
3130

3231
<div class="mt-5 flex">
3332
<div class="mx-auto">
34-
<p>or try it now</p>
33+
<p>hoặc thử ngay bây giờ</p>
3534
<div class="language-bash mt-2">
3635
<pre><code><span class="opacity-50">$ </span><span class="token function">npm init</span> <span class="token text-[#408c9e] font-500">slidev</span></code></pre>
3736
</div>

.vitepress/theme/components/WorkingInProgress.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const dismissed = useStorage('sldiev-docs-wip-dismissed', false)
1717
border="~ orange-400 rounded-md"
1818
>
1919
<div class="m-auto">
20-
Slidev is still under heavy development. API and usages are not set in stone yet.
20+
Slidev vẫn đang được phát triển mạnh. API và cách sử dụng chưa được thiết lập.
2121
</div>
2222
<div
2323
class="cursor-pointer"

.vitepress/theme/components/demo/Demo.vue

+6-6
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ onMounted(() => {
7373
code.value = JSON.parse(JSON.stringify(block.value!.innerText.replace('|', '')))
7474
},
7575
})
76-
.type('<br><span class="token title"># Welcome to Slidev!</span><br><br>', { delay: 400 })
77-
.type('Presentation Slides for Developers', { delay: 400 })
76+
.type('<br><span class="token title"># Chào mừng đến với Slidev!</span><br><br>', { delay: 400 })
77+
.type('Trang trình bày dành cho lập trình viên', { delay: 400 })
7878
.move('START', { speed: 0 })
7979
.type('<br>')
8080
.move('START')
@@ -100,10 +100,10 @@ onMounted(() => {
100100
.type('<br><br><span class="token punctuation">---</span><br><br>', { delay: 400 })
101101
.exec(resume)
102102
.exec(() => setTimeout(() => page.value = 1))
103-
.type('<span class="token title"># Page 2</span><br><br>', { delay: 400 })
104-
.type('- 📄 Write slides in a single Markdown file<br>', { delay: 800 })
105-
.type('- 🌈 Themes, code blocks, interactive components<br>', { delay: 800 })
106-
.type('- 😎 Read the docs to learn more!', { delay: 800 })
103+
.type('<span class="token title"># Trang 2</span><br><br>', { delay: 400 })
104+
.type('- 📄 Viết các trang trình bày trong một file Markdown duy nhất<br>', { delay: 800 })
105+
.type('- 🌈 Chủ đề, đoạn code, component tương tác<br>', { delay: 800 })
106+
.type('- 😎 Đọc tài liệu để tìm hiểu thêm!', { delay: 800 })
107107
.exec(() => setTimeout(() => page.value = 0))
108108
.go()
109109
})

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# [sli.dev](https://sli.dev)
22

3-
Documentation for [Slidev](https://github.com/slidevjs/slidev)
3+
Tài liệu cho [Slidev](https://github.com/slidevjs/slidev)
44

5-
## Translations
5+
## Ngôn ngữ
66

77
| | Repo | Site | Maintainers |
88
|---|---|---:|---|
@@ -21,11 +21,11 @@ pnpm i
2121
pnpm run dev
2222
```
2323

24-
And then visit `http://localhost:3000`
24+
Và sau đó truy cập `http://localhost:3000`
2525

26-
Or install the [Vite extension for VS Code](https://marketplace.visualstudio.com/items?itemName=antfu.vite) to edit side-by-side.
26+
Hoặc cài đặt [Vite extension cho VS Code](https://marketplace.visualstudio.com/items?itemName=antfu.vite) để chỉnh sửa song song.
2727

28-
## Help on Translating
28+
## Trợ giúp về phiên dịch
2929

3030
<!-- For translations maintainers: You don't need to translate this port -->
3131

builtin/components.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
# Components
1+
# Component
22

3-
## Built-in Components
3+
## Tích hợp Component
44

5-
> The documentations of this section is still working in progress. Before that, you can take a look at the [source code](https://github.com/slidevjs/slidev/blob/main/packages/client/builtin) directly.
5+
> Các tài liệu của phần này vẫn đang được hoàn thiện. Trước đó, bạn có thể xem trực tiếp tại [source code](https://github.com/slidevjs/slidev/blob/main/packages/client/builtin).
66
7-
## Custom Components
7+
## Tùy chỉnh Component
88

9-
Create a directory `components/` under your project root, and simply put your custom Vue components under it, then you can use it with the same name in your markdown file!
9+
Tạo một thư mục `components/` trong dự án gốc của bạn và chỉ cần đặt các component Vue tùy chỉnh của bạn bên trong nó, sau đó bạn có thể sử dụng nó với cùng tên trong file markdown của mình!
1010

11-
Read more in the [Customization](/custom/directory-structure#components) section.
11+
Đọc thêm trong phần [Tùy chỉnh](/custom/directory-structure#components).
1212

13-
## Theme-provided Components
13+
## Component do Chủ đề cung cấp
1414

15-
Themes can provide components as well. Please read their documentations for what they have provided.
15+
Chủ đề cũng có thể cung cấp các component. Vui lòng đọc tài liệu về nó để biết những gì nó cung cấp.
1616

17-
Check more in the [directory structure](/custom/directory-structure) section.
17+
Kiểm tra thêm trong phần [Cấu trúc thư mục](/custom/directory-structure).

builtin/layouts.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# Layouts
1+
# Layout
22

3-
## Built-in Layouts
3+
## Tích hợp Layout
44

5-
> The documentations of this section is still working in progress. Before that, you can take a look at the [source code](https://github.com/slidevjs/slidev/blob/main/packages/client/layouts) directly.
5+
> Các tài liệu của phần này vẫn đang được hoàn thiện. Trước đó, bạn có thể xem trực tiếp tại [source code](https://github.com/slidevjs/slidev/blob/main/packages/client/layouts).
66
7-
## Custom Layouts
7+
## Tùy chỉnh Layout
88

9-
Create a directory `layouts/` under your project root, and simply put your custom Vue layout components under it.
9+
Tạo một thư mục `layouts/` trong dự án gốc của bạn và chỉ cần đặt các component layout Vue tùy chỉnh của bạn bên trong nó.
1010

11-
Read more in the [Customization](/custom/directory-structure#layouts) section.
11+
Đọc thêm trong phần [Các tùy chỉnh](/custom/directory-structure#layouts).
1212

13-
## Theme-provided Layouts
13+
## Layout do Chủ đề cung cấp
1414

15-
Themes can provide layouts or override existing ones. Please read their documentation for what they have provided.
15+
Chủ đề có thể cung cấp các layout hoặc ghi đè các layout hiện có. Vui lòng đọc tài liệu về nó để biết những gì nó cung cấp.

custom/config-katex.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Configure KaTeX
1+
# Cấu hình KaTeX
22

33
<Environment type="node" />
44

5-
Create `./setup/katex.ts` with the following content:
5+
Tạo `./setup/katex.ts` với nội dung sau:
66

77
```ts
88
import { defineKatexSetup } from '@slidev/types'
@@ -14,4 +14,4 @@ export default defineKatexSetup(() => {
1414
})
1515
```
1616

17-
With the setup, you can provide the custom setting for [KaTex Options](https://katex.org/docs/options.html). Refer to the type definitions and their documentation for more details.
17+
Trong quá trình thiết lập, bạn có thể cung cấp cài đặt tùy chỉnh cho [Các lựa chọn KaTex](https://katex.org/docs/options.html). Tham khảo định nghĩa loại và tài liệu của chúng để biết thêm chi tiết.

0 commit comments

Comments
 (0)