feat(i18n): add Vietnamese translation (#383)

Co-authored-by: Dillon <dillonzq@outlook.com>
This commit is contained in:
quyleanh 2020-05-28 19:29:28 +07:00 committed by GitHub
parent aa48df5edd
commit 7a942f2d56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 206 additions and 3 deletions

View file

@ -139,6 +139,7 @@ LoveIt supports the following languages:
* Serbian
* Russian
* Romanian
* Vietnamese
* [Contribute with a new language](https://github.com/dillonzq/LoveIt/pulls)
[Languages Compatibility](https://hugoloveit.com/theme-documentation-basics/#language-compatibility)

View file

@ -134,6 +134,7 @@ LoveIt 支持下列语言:
* 塞尔维亚语
* 俄语
* 罗马尼亚语
* 越南语
* [贡献一种新的语言](https://github.com/dillonzq/LoveIt/pulls)
[语言兼容性](https://hugoloveit.com/zh-cn/theme-documentation-basics/#language-compatibility)

View file

@ -838,7 +838,7 @@ In `assets/css/_custom.scss`, you can add some css style code to customize the s
### 4.1 Compatibility {#language-compatibility}
{{< version 0.2.7 changed >}}
{{< version 0.2.10 changed >}}
| Language | Hugo Code | HTML `lang` Attribute | Theme Docs | Lunr.js Support |
|:-------------------- |:---------:|:---------------------:|:-----------------------------:|:-----------------------------:|
@ -854,6 +854,7 @@ In `assets/css/_custom.scss`, you can add some css style code to customize the s
| Serbian | `sr` | `sr` | :(far fa-square fa-fw): | :(far fa-square fa-fw): |
| Russian | `ru` | `ru` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
| Romanian | `ro` | `ro` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
| Vietnamese | `vi` | `vi` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
### 4.2 Basic Configuration

View file

@ -843,7 +843,7 @@ In `assets/css/_custom.scss`, you can add some css style code to customize the s
### 4.1 Compatibility {#language-compatibility}
{{< version 0.2.7 changed >}}
{{< version 0.2.10 changed >}}
| Language | Hugo Code | HTML `lang` Attribute | Theme Docs | Lunr.js Support |
|:-------------------- |:---------:|:---------------------:|:-----------------------------:|:-----------------------------:|
@ -859,6 +859,7 @@ In `assets/css/_custom.scss`, you can add some css style code to customize the s
| Serbian | `sr` | `sr` | :(far fa-square fa-fw): | :(far fa-square fa-fw): |
| Russian | `ru` | `ru` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
| Romanian | `ro` | `ro` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
| Vietnamese | `vi` | `vi` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
### 4.2 Basic Configuration

View file

@ -842,7 +842,7 @@ $code-font-family: Fira Mono, Source Code Pro, Menlo, Consolas, Monaco, monospac
### 4.1 兼容性 {#language-compatibility}
{{< version 0.2.7 changed >}}
{{< version 0.2.10 changed >}}
| 语言 | Hugo 代码 | HTML `lang` 属性 | 主题文档 | Lunr.js 支持 |
|:---- |:----:|:----:|:----:|:----:|
@ -857,6 +857,7 @@ $code-font-family: Fira Mono, Source Code Pro, Menlo, Consolas, Monaco, monospac
| 塞尔维亚语 | `pl` | `pl` | :(far fa-square fa-fw): | :(far fa-square fa-fw): |
| 俄语 | `ru` | `ru` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
| 罗马尼亚语 | `ro` | `ro` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
| 越南语 | `vi` | `vi` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
### 4.2 基本配置

198
i18n/vi.toml Normal file
View file

@ -0,0 +1,198 @@
# Translations for Vietnamese
# https://gohugo.io/content-management/multilingual/#translation-of-strings
# === baseof ==
[backToTop]
other = "Lên trên"
[viewComments]
other = "Xem bình luận"
# === baseof ==
# === Post ===
[posts]
other = "Bài viết"
# === Post ===
# === Taxonomy ===
[allSome]
other = "Tất cả {{ .Some }}"
[tag]
other = "Nhãn"
[tags]
other = "Nhãn"
[category]
other = "Danh mục"
[categories]
other = "Danh mục"
# === Taxonomy ===
# === Pagination ===
[more]
other = "Thêm"
# === Pagination ===
# === partials/header.html ===
[selectLanguage]
other = "Chọn Ngôn ngữ"
[switchTheme]
other = "Đổi chủ đề"
# === partials/header.html ===
# === partials/footer.html ===
[poweredBySome]
other = "Cung cấp bởi {{ .Hugo }} | Chủ đề - {{ .Theme }}"
# === partials/footer.html ===
# === partials/comment.html ===
[valineLang]
other = "en"
[valinePlaceholder]
other = "Bình luận của bạn ..."
[facebookLanguageCode]
other = "vi"
# === partials/comment.html ===
# === partials/assets.html ===
[search]
other = "Tìm kiếm"
[searchPlaceholder]
other = "Tìm tiêu đề hoặc nội dung..."
[clear]
other = "Xoá"
[cancel]
other = "Huỷ"
[noResultsFound]
other = "Không tìm thấy"
[lunrLanguageCode]
other = "vi"
[lunrLanguageLib]
other = "lib/lunr/lunr.vi.js"
[copyToClipboard]
other = "Sao chép vào bộ nhớ tạm"
[cookieconsentMessage]
other = "Trang web này sử dụng Cookies để cải thiện trải nghiệm của bạn."
[cookieconsentDismiss]
other = "Đã hiểu!"
[cookieconsentLink]
other = "Tìm hiểu thêm"
# === partials/assets.html ===
# === partials/plugin/share.html ===
[shareOn]
other = "Chia sẻ trên"
# === partials/plugin/share.html ===
# === posts/single.html ===
[contents]
other = "Nội dung"
[publishedOnDate]
other = "đăng ngày {{ .Date }}"
[includedInCategories]
other = "trong {{ .Categories }}"
[wordCount]
one = "One word"
other = "{{ .Count }} từ"
[readingTime]
one = "One minute"
other = "{{ .Count }} phút"
[views]
other = "lượt xem"
[author]
other = "Tác giả"
[updatedOnDate]
other = "Cập nhật ngày {{ .Date }}"
[readMarkdown]
other = "Đọc với định dạng Markdown"
[back]
other = "Quay lại"
[home]
other = "Trang chủ"
[readMore]
other = "Đọc thêm"
# === posts/single.html ===
# === 404.html ===
[pageNotFound]
other = "Không tìm thấy trang"
[pageNotFoundText]
other = "Trang bạn đang tìm kiếm không tồn tại. Xin lỗi."
# === 404.html ===
# === shortcodes/admonition.html ===
[note]
other = "Ghi chú"
[abstract]
other = "Tóm tắt"
[info]
other = "Thông tin"
[tip]
other = "Mẹo"
[success]
other = "Thành công"
[question]
other = "Câu hỏi"
[warning]
other = "Cảnh báo"
[failure]
other = "Thất bại"
[danger]
other = "Nguy hiểm"
[bug]
other = "Lỗi"
[example]
other = "Ví dụ"
[quote]
other = "Trích dẫn"
# === shortcodes/admonition.html ===
# === shortcodes/version.html ===
[new]
other = "MỚI"
[changed]
other = "THAY ĐỔI"
[deleted]
other = "XOÁ"
# === shortcodes/version.html ===