1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-12-01 01:04:00 +00:00

docs(i18n): Add Simplified Chinese docs to the website and README.md (#906)

This commit is contained in:
Matan Kushner 2020-02-04 23:57:11 -05:00 committed by GitHub
parent dd73e6dc04
commit 2b53490e9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 75 additions and 49 deletions

View File

@ -58,7 +58,7 @@
><img height="20" src="https://raw.githubusercontent.com/starship/starship/master/media/flag-de.png" alt="Deutsch" ><img height="20" src="https://raw.githubusercontent.com/starship/starship/master/media/flag-de.png" alt="Deutsch"
/></a> /></a>
&nbsp; &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="简体中文" ><img height="20" src="https://raw.githubusercontent.com/starship/starship/master/media/flag-cn.png" alt="简体中文"
/></a> /></a>
&nbsp; &nbsp;

View File

@ -5,13 +5,8 @@ module.exports = {
title: "Starship", title: "Starship",
description: "The cross-shell prompt for astronauts" description: "The cross-shell prompt for astronauts"
}, },
"/ja-JP/": { "/de-DE/": {
lang: "ja-JP", lang: "de-DE",
title: "Starship",
description: "The cross-shell prompt for astronauts"
},
"/zh-TW/": {
lang: "zh-TW",
title: "Starship", title: "Starship",
description: "The cross-shell prompt for astronauts" description: "The cross-shell prompt for astronauts"
}, },
@ -20,11 +15,21 @@ module.exports = {
title: "Starship", title: "Starship",
description: "The cross-shell prompt for astronauts" description: "The cross-shell prompt for astronauts"
}, },
"/de-DE/": { "/ja-JP/": {
lang: "de-DE", lang: "ja-JP",
title: "Starship", title: "Starship",
description: "The cross-shell prompt for astronauts" description: "The cross-shell prompt for astronauts"
} },
"/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 // prettier-ignore
head: [ head: [
@ -71,38 +76,23 @@ module.exports = {
["/presets/", "Presets"] ["/presets/", "Presets"]
] ]
}, },
"/ja-JP/": { "/de-DE/": {
// text for the language dropdown // text for the language dropdown
selectText: "言語", selectText: "Sprachen",
// label for this locale in the language dropdown // label for this locale in the language dropdown
label: "日本語", label: "Deutsch",
// Custom text for edit link. Defaults to "Edit this page" // Custom text for edit link. Defaults to "Edit this page"
editLinkText: "GitHub で編集する", editLinkText: "Bearbeite diese Seite auf GitHub",
// Custom navbar values // Custom navbar values
nav: [{ text: "設定", link: "/ja-JP/config/" }], nav: [{ text: "Konfiguration", link: "/config/" }],
// Custom sidebar values // Custom sidebar values
sidebar: [ sidebar: [
"/ja-JP/", "/de-DE/",
["/ja-JP/guide/", "ガイド"], ["/de-DE/guide/", "Anleitung"],
["/ja-JP/config/", "設定"], ["/de-DE/config/", "Konfiguration"],
["/ja-JP/advanced-config/", "高度な設定"] ["/de-DE/advanced-config/", "Erweiterte Konfiguration"],
] ["/de-DE/faq/", "Häufig gestellte Fragen"],
}, ["/de-DE/presets/", "Konfigurations-Beispiele"]
"/zh-TW/": {
// 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: "/zh-TW/config/" }],
// Custom sidebar values
sidebar: [
"/zh-TW/",
["/zh-TW/guide/", "指引"],
["/zh-TW/config/", "設定"],
["/zh-TW/advanced-config/", "進階設定"]
] ]
}, },
"/ru-RU/": { "/ru-RU/": {
@ -124,25 +114,61 @@ module.exports = {
["/ru-RU/presets/", "Предустановки"] ["/ru-RU/presets/", "Предустановки"]
] ]
}, },
"/de-DE/": { "/ja-JP/": {
// text for the language dropdown // text for the language dropdown
selectText: "Sprachen", selectText: "言語",
// label for this locale in the language dropdown // label for this locale in the language dropdown
label: "Deutsch", label: "日本語",
// Custom text for edit link. Defaults to "Edit this page" // Custom text for edit link. Defaults to "Edit this page"
editLinkText: "Bearbeite diese Seite auf GitHub", editLinkText: "GitHub で編集する",
// Custom navbar values // Custom navbar values
nav: [{ text: "Konfiguration", link: "/config/" }], nav: [{ text: "設定", link: "/ja-JP/config/" }],
// Custom sidebar values // Custom sidebar values
sidebar: [ sidebar: [
"/de-DE/", "/ja-JP/",
["/de-DE/guide/", "Anleitung"], ["/ja-JP/guide/", "ガイド"],
["/de-DE/config/", "Konfiguration"], ["/ja-JP/config/", "設定"],
["/de-DE/advanced-config/", "Erweiterte Konfiguration"], ["/ja-JP/advanced-config/", "高度な設定"],
["/de-DE/faq/", "Häufig gestellte Fragen"], ["/ru-RU/faq/", "FAQ"],
["/de-DE/presets/", "Konfigurations-Beispiele"] ["/ru-RU/presets/", "準備するもの"]
] ]
} },
"/zh-TW/": {
// 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: "/zh-TW/config/" }],
// Custom sidebar values
sidebar: [
"/zh-TW/",
["/zh-TW/guide/", "指引"],
["/zh-TW/config/", "設定"],
["/zh-TW/advanced-config/", "進階設定"]
]
},
"/zh-CN/": {
// 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: "/zh-CN/config/" }],
// Custom sidebar values
sidebar: [
"/zh-CN/",
["/zh-CN/guide/", "指南"],
["/zh-CN/config/", "配置"],
["/zh-CN/advanced-config/", "高级配置"],
["/zh-CN/faq/", "常见问题"],
["/zh-CN/presets/", "社区配置分享"]
]
},
} }
}, },
plugins: [ plugins: [

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 990 B