Skip to content

Commit

Permalink
docs(i18n): Add Simplified Chinese docs to the website and README.md (s…
Browse files Browse the repository at this point in the history
  • Loading branch information
matchai authored Feb 5, 2020
1 parent dd73e6d commit 2b53490
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 41 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
><img height="20" src="https://raw.githubusercontent.com/starship/starship/master/media/flag-de.png" alt="Deutsch"
/></a>
&nbsp;
<a href="https://translate.starship.rs/project/starship-prompt/zh-CN"
<a href="https://github.com/starship/starship/blob/master/docs/zh-CN/guide/README.md"
><img height="20" src="https://raw.githubusercontent.com/starship/starship/master/media/flag-cn.png" alt="简体中文"
/></a>
&nbsp;
Expand Down
106 changes: 66 additions & 40 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,31 @@ module.exports = {
title: "Starship",
description: "The cross-shell prompt for astronauts"
},
"/ja-JP/": {
lang: "ja-JP",
"/de-DE/": {
lang: "de-DE",
title: "Starship",
description: "The cross-shell prompt for astronauts"
},
"/zh-TW/": {
lang: "zh-TW",
"/ru-RU/": {
lang: "ru-RU",
title: "Starship",
description: "The cross-shell prompt for astronauts"
},
"/ru-RU/": {
lang: "ru-RU",
"/ja-JP/": {
lang: "ja-JP",
title: "Starship",
description: "The cross-shell prompt for astronauts"
},
"/de-DE/": {
lang: "de-DE",
"/zh-CN/": {
lang: "zh-CN",
title: "Starship",
description: "The cross-shell prompt for astronauts"
}
},
"/zh-TW/": {
lang: "zh-TW",
title: "Starship",
description: "The cross-shell prompt for astronauts"
},
},
// prettier-ignore
head: [
Expand Down Expand Up @@ -71,6 +76,44 @@ module.exports = {
["/presets/", "Presets"]
]
},
"/de-DE/": {
// text for the language dropdown
selectText: "Sprachen",
// label for this locale in the language dropdown
label: "Deutsch",
// Custom text for edit link. Defaults to "Edit this page"
editLinkText: "Bearbeite diese Seite auf GitHub",
// Custom navbar values
nav: [{ text: "Konfiguration", link: "/config/" }],
// Custom sidebar values
sidebar: [
"/de-DE/",
["/de-DE/guide/", "Anleitung"],
["/de-DE/config/", "Konfiguration"],
["/de-DE/advanced-config/", "Erweiterte Konfiguration"],
["/de-DE/faq/", "Häufig gestellte Fragen"],
["/de-DE/presets/", "Konfigurations-Beispiele"]
]
},
"/ru-RU/": {
// text for the language dropdown
selectText: "Языки",
// label for this locale in the language dropdown
label: "Русский",
// Custom text for edit link. Defaults to "Edit this page"
editLinkText: "Редактировать эту страницу на GitHub",
// Custom navbar values
nav: [{ text: "Настройка", link: "/ru-RU/config/" }],
// Custom sidebar values
sidebar: [
"/ru-RU/",
["/ru-RU/guide/", "Руководство"],
["/ru-RU/config/", "Настройка"],
["/ru-RU/advanced-config/", "Расширенная Настройка"],
["/ru-RU/faq/", "Часто Задаваемые Вопросы"],
["/ru-RU/presets/", "Предустановки"]
]
},
"/ja-JP/": {
// text for the language dropdown
selectText: "言語",
Expand All @@ -85,7 +128,9 @@ module.exports = {
"/ja-JP/",
["/ja-JP/guide/", "ガイド"],
["/ja-JP/config/", "設定"],
["/ja-JP/advanced-config/", "高度な設定"]
["/ja-JP/advanced-config/", "高度な設定"],
["/ru-RU/faq/", "FAQ"],
["/ru-RU/presets/", "準備するもの"]
]
},
"/zh-TW/": {
Expand All @@ -105,44 +150,25 @@ module.exports = {
["/zh-TW/advanced-config/", "進階設定"]
]
},
"/ru-RU/": {
"/zh-CN/": {
// text for the language dropdown
selectText: "Языки",
selectText: "语言",
// label for this locale in the language dropdown
label: "Русский",
label: "简体中文",
// Custom text for edit link. Defaults to "Edit this page"
editLinkText: "Редактировать эту страницу на GitHub",
editLinkText: "GitHub 上修改此页",
// Custom navbar values
nav: [{ text: "Настройка", link: "/ru-RU/config/" }],
nav: [{ text: "配置", link: "/zh-CN/config/" }],
// Custom sidebar values
sidebar: [
"/ru-RU/",
["/ru-RU/guide/", "Руководство"],
["/ru-RU/config/", "Настройка"],
["/ru-RU/advanced-config/", "Расширенная Настройка"],
["/ru-RU/faq/", "Часто Задаваемые Вопросы"],
["/ru-RU/presets/", "Предустановки"]
"/zh-CN/",
["/zh-CN/guide/", "指南"],
["/zh-CN/config/", "配置"],
["/zh-CN/advanced-config/", "高级配置"],
["/zh-CN/faq/", "常见问题"],
["/zh-CN/presets/", "社区配置分享"]
]
},
"/de-DE/": {
// text for the language dropdown
selectText: "Sprachen",
// label for this locale in the language dropdown
label: "Deutsch",
// Custom text for edit link. Defaults to "Edit this page"
editLinkText: "Bearbeite diese Seite auf GitHub",
// Custom navbar values
nav: [{ text: "Konfiguration", link: "/config/" }],
// Custom sidebar values
sidebar: [
"/de-DE/",
["/de-DE/guide/", "Anleitung"],
["/de-DE/config/", "Konfiguration"],
["/de-DE/advanced-config/", "Erweiterte Konfiguration"],
["/de-DE/faq/", "Häufig gestellte Fragen"],
["/de-DE/presets/", "Konfigurations-Beispiele"]
]
}
}
},
plugins: [
Expand Down
Binary file modified media/flag-cn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2b53490

Please sign in to comment.