Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
feat(i18n): add Vietnamese translation (#383)
Browse files Browse the repository at this point in the history
Co-authored-by: Dillon <[email protected]>
  • Loading branch information
quyleanh and dillonzq authored May 28, 2020
1 parent aa48df5 commit 7a942f2
Show file tree
Hide file tree
Showing 6 changed files with 206 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions README.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ LoveIt 支持下列语言:
* 塞尔维亚语
* 俄语
* 罗马尼亚语
* 越南语
* [贡献一种新的语言](https://github.com/dillonzq/LoveIt/pulls)

[语言兼容性](https://hugoloveit.com/zh-cn/theme-documentation-basics/#language-compatibility)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
|:-------------------- |:---------:|:---------------------:|:-----------------------------:|:-----------------------------:|
Expand All @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
|:-------------------- |:---------:|:---------------------:|:-----------------------------:|:-----------------------------:|
Expand All @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 支持 |
|:---- |:----:|:----:|:----:|:----:|
Expand All @@ -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 基本配置

Expand Down
198 changes: 198 additions & 0 deletions i18n/vi.toml
Original file line number Diff line number Diff line change
@@ -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 ===

0 comments on commit 7a942f2

Please sign in to comment.