From 7a942f2d56470d79e16a195369b2de3e37121f9c Mon Sep 17 00:00:00 2001 From: quyleanh Date: Thu, 28 May 2020 19:29:28 +0700 Subject: [PATCH] feat(i18n): add Vietnamese translation (#383) Co-authored-by: Dillon --- README.md | 1 + README.zh-cn.md | 1 + .../theme-documentation-basics/index.en.md | 3 +- .../theme-documentation-basics/index.fr.md | 3 +- .../theme-documentation-basics/index.zh-cn.md | 3 +- i18n/vi.toml | 198 ++++++++++++++++++ 6 files changed, 206 insertions(+), 3 deletions(-) create mode 100644 i18n/vi.toml diff --git a/README.md b/README.md index 3784b970..acf6e092 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/README.zh-cn.md b/README.zh-cn.md index 2c27295f..628e9a19 100644 --- a/README.zh-cn.md +++ b/README.zh-cn.md @@ -134,6 +134,7 @@ LoveIt 支持下列语言: * 塞尔维亚语 * 俄语 * 罗马尼亚语 +* 越南语 * [贡献一种新的语言](https://github.com/dillonzq/LoveIt/pulls) [语言兼容性](https://hugoloveit.com/zh-cn/theme-documentation-basics/#language-compatibility) diff --git a/exampleSite/content/posts/theme-documentation-basics/index.en.md b/exampleSite/content/posts/theme-documentation-basics/index.en.md index 2a405dc4..6db97742 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.en.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.en.md @@ -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 diff --git a/exampleSite/content/posts/theme-documentation-basics/index.fr.md b/exampleSite/content/posts/theme-documentation-basics/index.fr.md index 2adc50f8..17399361 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.fr.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.fr.md @@ -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 diff --git a/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md index 8cbc5add..225c672f 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md @@ -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 基本配置 diff --git a/i18n/vi.toml b/i18n/vi.toml new file mode 100644 index 00000000..04ac1ca6 --- /dev/null +++ b/i18n/vi.toml @@ -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 ===