From 13b051b5859157f61dd60f694f12fbe48ddbefb9 Mon Sep 17 00:00:00 2001 From: Dillon Date: Tue, 12 May 2020 21:11:20 +0800 Subject: [PATCH] chore(docs): update docs for i18n --- README.md | 2 ++ README.zh-cn.md | 2 ++ exampleSite/content/{about.en.md => about/index.en.md} | 0 exampleSite/content/{about.fr.md => about/index.fr.md} | 0 .../content/{about.zh-cn.md => about/index.zh-cn.md} | 0 .../index.en.md} | 0 .../index.fr.md} | 0 .../index.zh-cn.md} | 0 .../{emoji-support.en.md => emoji-support/index.en.md} | 0 .../{emoji-support.fr.md => emoji-support/index.fr.md} | 0 .../index.zh-cn.md} | 0 .../index.en.md} | 4 +++- .../index.fr.md} | 4 +++- .../index.zh-cn.md} | 4 +++- .../index.en.md} | 0 .../index.fr.md} | 0 .../index.zh-cn.md} | 0 .../index.en.md} | 0 .../index.fr.md} | 0 .../index.zh-cn.md} | 0 .../index.en.md} | 0 .../index.fr.md} | 0 .../index.zh-cn.md} | 0 i18n/ro.toml | 6 +++++- i18n/ru.toml | 6 +++++- 25 files changed, 23 insertions(+), 5 deletions(-) rename exampleSite/content/{about.en.md => about/index.en.md} (100%) rename exampleSite/content/{about.fr.md => about/index.fr.md} (100%) rename exampleSite/content/{about.zh-cn.md => about/index.zh-cn.md} (100%) rename exampleSite/content/posts/{basic-markdown-syntax.en.md => basic-markdown-syntax/index.en.md} (100%) rename exampleSite/content/posts/{basic-markdown-syntax.fr.md => basic-markdown-syntax/index.fr.md} (100%) rename exampleSite/content/posts/{basic-markdown-syntax.zh-cn.md => basic-markdown-syntax/index.zh-cn.md} (100%) rename exampleSite/content/posts/{emoji-support.en.md => emoji-support/index.en.md} (100%) rename exampleSite/content/posts/{emoji-support.fr.md => emoji-support/index.fr.md} (100%) rename exampleSite/content/posts/{emoji-support.zh-cn.md => emoji-support/index.zh-cn.md} (100%) rename exampleSite/content/posts/{theme-documentation-basics.en.md => theme-documentation-basics/index.en.md} (99%) rename exampleSite/content/posts/{theme-documentation-basics.fr.md => theme-documentation-basics/index.fr.md} (99%) rename exampleSite/content/posts/{theme-documentation-basics.zh-cn.md => theme-documentation-basics/index.zh-cn.md} (99%) rename exampleSite/content/posts/{theme-documentation-built-in-shortcodes.en.md => theme-documentation-built-in-shortcodes/index.en.md} (100%) rename exampleSite/content/posts/{theme-documentation-built-in-shortcodes.fr.md => theme-documentation-built-in-shortcodes/index.fr.md} (100%) rename exampleSite/content/posts/{theme-documentation-built-in-shortcodes.zh-cn.md => theme-documentation-built-in-shortcodes/index.zh-cn.md} (100%) rename exampleSite/content/posts/{theme-documentation-content.en.md => theme-documentation-content/index.en.md} (100%) rename exampleSite/content/posts/{theme-documentation-content.fr.md => theme-documentation-content/index.fr.md} (100%) rename exampleSite/content/posts/{theme-documentation-content.zh-cn.md => theme-documentation-content/index.zh-cn.md} (100%) rename exampleSite/content/posts/{theme-documentation-extended-shortcodes.en.md => theme-documentation-extended-shortcodes/index.en.md} (100%) rename exampleSite/content/posts/{theme-documentation-extended-shortcodes.fr.md => theme-documentation-extended-shortcodes/index.fr.md} (100%) rename exampleSite/content/posts/{theme-documentation-extended-shortcodes.zh-cn.md => theme-documentation-extended-shortcodes/index.zh-cn.md} (100%) diff --git a/README.md b/README.md index dadb5756..b958d874 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/README.zh-cn.md b/README.zh-cn.md index d68d0b71..c078e89d 100644 --- a/README.zh-cn.md +++ b/README.zh-cn.md @@ -130,6 +130,8 @@ LoveIt 支持下列语言: * 西班牙语 * 德语 * 塞尔维亚语 +* 俄语 +* 罗马尼亚语 * [贡献一种新的语言](https://github.com/dillonzq/LoveIt/pulls) [语言兼容性](https://hugoloveit.com/zh-cn/theme-documentation-basics/#language-compatibility) diff --git a/exampleSite/content/about.en.md b/exampleSite/content/about/index.en.md similarity index 100% rename from exampleSite/content/about.en.md rename to exampleSite/content/about/index.en.md diff --git a/exampleSite/content/about.fr.md b/exampleSite/content/about/index.fr.md similarity index 100% rename from exampleSite/content/about.fr.md rename to exampleSite/content/about/index.fr.md diff --git a/exampleSite/content/about.zh-cn.md b/exampleSite/content/about/index.zh-cn.md similarity index 100% rename from exampleSite/content/about.zh-cn.md rename to exampleSite/content/about/index.zh-cn.md diff --git a/exampleSite/content/posts/basic-markdown-syntax.en.md b/exampleSite/content/posts/basic-markdown-syntax/index.en.md similarity index 100% rename from exampleSite/content/posts/basic-markdown-syntax.en.md rename to exampleSite/content/posts/basic-markdown-syntax/index.en.md diff --git a/exampleSite/content/posts/basic-markdown-syntax.fr.md b/exampleSite/content/posts/basic-markdown-syntax/index.fr.md similarity index 100% rename from exampleSite/content/posts/basic-markdown-syntax.fr.md rename to exampleSite/content/posts/basic-markdown-syntax/index.fr.md diff --git a/exampleSite/content/posts/basic-markdown-syntax.zh-cn.md b/exampleSite/content/posts/basic-markdown-syntax/index.zh-cn.md similarity index 100% rename from exampleSite/content/posts/basic-markdown-syntax.zh-cn.md rename to exampleSite/content/posts/basic-markdown-syntax/index.zh-cn.md diff --git a/exampleSite/content/posts/emoji-support.en.md b/exampleSite/content/posts/emoji-support/index.en.md similarity index 100% rename from exampleSite/content/posts/emoji-support.en.md rename to exampleSite/content/posts/emoji-support/index.en.md diff --git a/exampleSite/content/posts/emoji-support.fr.md b/exampleSite/content/posts/emoji-support/index.fr.md similarity index 100% rename from exampleSite/content/posts/emoji-support.fr.md rename to exampleSite/content/posts/emoji-support/index.fr.md diff --git a/exampleSite/content/posts/emoji-support.zh-cn.md b/exampleSite/content/posts/emoji-support/index.zh-cn.md similarity index 100% rename from exampleSite/content/posts/emoji-support.zh-cn.md rename to exampleSite/content/posts/emoji-support/index.zh-cn.md diff --git a/exampleSite/content/posts/theme-documentation-basics.en.md b/exampleSite/content/posts/theme-documentation-basics/index.en.md similarity index 99% rename from exampleSite/content/posts/theme-documentation-basics.en.md rename to exampleSite/content/posts/theme-documentation-basics/index.en.md index 9980639b..092eb61d 100644 --- a/exampleSite/content/posts/theme-documentation-basics.en.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.en.md @@ -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 | |:-------------------- |:---------:|:---------------------:|:-----------------------------:|:-----------------------------:| @@ -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 diff --git a/exampleSite/content/posts/theme-documentation-basics.fr.md b/exampleSite/content/posts/theme-documentation-basics/index.fr.md similarity index 99% rename from exampleSite/content/posts/theme-documentation-basics.fr.md rename to exampleSite/content/posts/theme-documentation-basics/index.fr.md index a9a5d652..6951bec5 100644 --- a/exampleSite/content/posts/theme-documentation-basics.fr.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.fr.md @@ -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 | |:-------------------- |:---------:|:---------------------:|:-----------------------------:|:-----------------------------:| @@ -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 diff --git a/exampleSite/content/posts/theme-documentation-basics.zh-cn.md b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md similarity index 99% rename from exampleSite/content/posts/theme-documentation-basics.zh-cn.md rename to exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md index f5b5db0d..0ea875c3 100644 --- a/exampleSite/content/posts/theme-documentation-basics.zh-cn.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md @@ -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 支持 | |:---- |:----:|:----:|:----:|:----:| @@ -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 基本配置 diff --git a/exampleSite/content/posts/theme-documentation-built-in-shortcodes.en.md b/exampleSite/content/posts/theme-documentation-built-in-shortcodes/index.en.md similarity index 100% rename from exampleSite/content/posts/theme-documentation-built-in-shortcodes.en.md rename to exampleSite/content/posts/theme-documentation-built-in-shortcodes/index.en.md diff --git a/exampleSite/content/posts/theme-documentation-built-in-shortcodes.fr.md b/exampleSite/content/posts/theme-documentation-built-in-shortcodes/index.fr.md similarity index 100% rename from exampleSite/content/posts/theme-documentation-built-in-shortcodes.fr.md rename to exampleSite/content/posts/theme-documentation-built-in-shortcodes/index.fr.md diff --git a/exampleSite/content/posts/theme-documentation-built-in-shortcodes.zh-cn.md b/exampleSite/content/posts/theme-documentation-built-in-shortcodes/index.zh-cn.md similarity index 100% rename from exampleSite/content/posts/theme-documentation-built-in-shortcodes.zh-cn.md rename to exampleSite/content/posts/theme-documentation-built-in-shortcodes/index.zh-cn.md diff --git a/exampleSite/content/posts/theme-documentation-content.en.md b/exampleSite/content/posts/theme-documentation-content/index.en.md similarity index 100% rename from exampleSite/content/posts/theme-documentation-content.en.md rename to exampleSite/content/posts/theme-documentation-content/index.en.md diff --git a/exampleSite/content/posts/theme-documentation-content.fr.md b/exampleSite/content/posts/theme-documentation-content/index.fr.md similarity index 100% rename from exampleSite/content/posts/theme-documentation-content.fr.md rename to exampleSite/content/posts/theme-documentation-content/index.fr.md diff --git a/exampleSite/content/posts/theme-documentation-content.zh-cn.md b/exampleSite/content/posts/theme-documentation-content/index.zh-cn.md similarity index 100% rename from exampleSite/content/posts/theme-documentation-content.zh-cn.md rename to exampleSite/content/posts/theme-documentation-content/index.zh-cn.md diff --git a/exampleSite/content/posts/theme-documentation-extended-shortcodes.en.md b/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.en.md similarity index 100% rename from exampleSite/content/posts/theme-documentation-extended-shortcodes.en.md rename to exampleSite/content/posts/theme-documentation-extended-shortcodes/index.en.md diff --git a/exampleSite/content/posts/theme-documentation-extended-shortcodes.fr.md b/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.fr.md similarity index 100% rename from exampleSite/content/posts/theme-documentation-extended-shortcodes.fr.md rename to exampleSite/content/posts/theme-documentation-extended-shortcodes/index.fr.md diff --git a/exampleSite/content/posts/theme-documentation-extended-shortcodes.zh-cn.md b/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.zh-cn.md similarity index 100% rename from exampleSite/content/posts/theme-documentation-extended-shortcodes.zh-cn.md rename to exampleSite/content/posts/theme-documentation-extended-shortcodes/index.zh-cn.md diff --git a/i18n/ro.toml b/i18n/ro.toml index c5e5065b..c9f3d2b7 100644 --- a/i18n/ro.toml +++ b/i18n/ro.toml @@ -1,4 +1,5 @@ # Translations for Romanian +# Traduceri pentru limba română # https://gohugo.io/content-management/multilingual/#translation-of-strings # === baseof == @@ -54,7 +55,7 @@ other = "Temă" # === partials/comment.html === [valineLang] -other = "ro" +other = "en" [valinePlaceholder] other = "Comentariul dvs ..." @@ -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 === diff --git a/i18n/ru.toml b/i18n/ru.toml index b30b482b..bfb7dc3e 100644 --- a/i18n/ru.toml +++ b/i18n/ru.toml @@ -1,4 +1,5 @@ # Translations for Russian +# Переводы на русский # https://gohugo.io/content-management/multilingual/#translation-of-strings # === baseof == @@ -54,7 +55,7 @@ other = "Тема" # === partials/comment.html === [valineLang] -other = "ru" +other = "en" [valinePlaceholder] other = "Ваш комментарий ..." @@ -82,6 +83,9 @@ other = "Результатов не найдено" [lunrLanguageCode] other = "ru" +[lunrLanguageLib] +other = "lib/lunr/lunr.ru.js" + [copyToClipboard] other = "Копировать в буфер обмена" # === partials/assets.html ===