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

Commit

Permalink
chore(docs): update docs for i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonzq committed May 12, 2020
1 parent fcba159 commit 13b051b
Show file tree
Hide file tree
Showing 25 changed files with 23 additions and 5 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ LoveIt supports the following languages:
* Spanish
* German
* Serbian
* Russian
* Romanian
* [Contribute with a new language](https://github.com/dillonzq/LoveIt/pulls)

[Languages Compatibility](https://hugoloveit.com/theme-documentation-basics/#language-compatibility)
Expand Down
2 changes: 2 additions & 0 deletions README.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ LoveIt 支持下列语言:
* 西班牙语
* 德语
* 塞尔维亚语
* 俄语
* 罗马尼亚语
* [贡献一种新的语言](https://github.com/dillonzq/LoveIt/pulls)

[语言兼容性](https://hugoloveit.com/zh-cn/theme-documentation-basics/#language-compatibility)
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ In `config/css/_custom.scss`, you can add some css style code to customize the s

### 4.1 Compatibility {#language-compatibility}

{{< version 0.2.6 changed >}}
{{< version 0.2.7 changed >}}

| Language | Hugo Code | HTML `lang` Attribute | Theme Docs | Lunr.js Support |
|:-------------------- |:---------:|:---------------------:|:-----------------------------:|:-----------------------------:|
Expand All @@ -857,6 +857,8 @@ In `config/css/_custom.scss`, you can add some css style code to customize the s
| German | `de` | `de` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
| German | `de` | `de` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
| 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): |

### 4.2 Basic Configuration

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ In `config/css/_custom.scss`, you can add some css style code to customize the s

### 4.1 Compatibility {#language-compatibility}

{{< version 0.2.6 changed >}}
{{< version 0.2.7 changed >}}

| Language | Hugo Code | HTML `lang` Attribute | Theme Docs | Lunr.js Support |
|:-------------------- |:---------:|:---------------------:|:-----------------------------:|:-----------------------------:|
Expand All @@ -861,6 +861,8 @@ In `config/css/_custom.scss`, you can add some css style code to customize the s
| Spanish | `es` | `es` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
| German | `de` | `de` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
| 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): |

### 4.2 Basic Configuration

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ $code-font-family: Fira Mono, Source Code Pro, Menlo, Consolas, Monaco, monospac

### 4.1 兼容性 {#language-compatibility}

{{< version 0.2.6 changed >}}
{{< version 0.2.7 changed >}}

| 语言 | Hugo 代码 | HTML `lang` 属性 | 主题文档 | Lunr.js 支持 |
|:---- |:----:|:----:|:----:|:----:|
Expand All @@ -860,6 +860,8 @@ $code-font-family: Fira Mono, Source Code Pro, Menlo, Consolas, Monaco, monospac
| 西班牙语 | `es` | `es` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
| 德语 | `de` | `de` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
| 塞尔维亚语 | `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): |

### 4.2 基本配置

Expand Down
6 changes: 5 additions & 1 deletion i18n/ro.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Translations for Romanian
# Traduceri pentru limba română
# https://gohugo.io/content-management/multilingual/#translation-of-strings

# === baseof ==
Expand Down Expand Up @@ -54,7 +55,7 @@ other = "Temă"

# === partials/comment.html ===
[valineLang]
other = "ro"
other = "en"

[valinePlaceholder]
other = "Comentariul dvs ..."
Expand Down Expand Up @@ -82,6 +83,9 @@ other = "Nici un rezultat gasit"
[lunrLanguageCode]
other = "ro"

[lunrLanguageLib]
other = "lib/lunr/lunr.ro.js"

[copyToClipboard]
other = "Copiați în clipboard"
# === partials/assets.html ===
Expand Down
6 changes: 5 additions & 1 deletion i18n/ru.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Translations for Russian
# Переводы на русский
# https://gohugo.io/content-management/multilingual/#translation-of-strings

# === baseof ==
Expand Down Expand Up @@ -54,7 +55,7 @@ other = "Тема"

# === partials/comment.html ===
[valineLang]
other = "ru"
other = "en"

[valinePlaceholder]
other = "Ваш комментарий ..."
Expand Down Expand Up @@ -82,6 +83,9 @@ other = "Результатов не найдено"
[lunrLanguageCode]
other = "ru"

[lunrLanguageLib]
other = "lib/lunr/lunr.ru.js"

[copyToClipboard]
other = "Копировать в буфер обмена"
# === partials/assets.html ===
Expand Down

0 comments on commit 13b051b

Please sign in to comment.