Skip to content

Commit

Permalink
docs(i18n): Update doc translations (starship#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
matchai authored Oct 11, 2019
1 parent cc6c4d6 commit cb4a92f
Show file tree
Hide file tree
Showing 31 changed files with 1,841 additions and 207 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
><img height="20" src="https://raw.githubusercontent.com/starship/starship/master/media/flag-us.png" alt="English"
/></a>
&#0020;
<a href="https://github.com/starship/starship/blob/master/translations/README.ja.md"
<a href="https://github.com/starship/starship/blob/master/docs/translations/ja-JP/guide/README.md"
><img height="20" src="https://raw.githubusercontent.com/starship/starship/master/media/flag-jp.png" alt="日本語"
/></a>
&#0020;
Expand Down
14 changes: 7 additions & 7 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
title: "Starship",
description: "The cross-shell prompt for astronauts"
},
"/ja/": {
"/ja-JP/": {
lang: "ja-JP",
title: "Starship",
description: "The cross-shell prompt for astronauts"
Expand Down Expand Up @@ -40,21 +40,21 @@ module.exports = {
["/advanced-config/", "Advanced Configuration"]
],
},
"/ja/": {
"/ja-JP/": {
// 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: "/ja/config/" }],
nav: [{ text: "設定", link: "/ja-JP/config/" }],
// Custom sidebar values
sidebar: [
"/ja/",
["/ja/guide/", "ガイド"],
["/ja/config/", "設定"],
["/ja/advanced-config/", "高度な設定"]
"/ja-JP/",
["/ja-JP/guide/", "ガイド"],
["/ja-JP/config/", "設定"],
["/ja-JP/advanced-config/", "高度な設定"]
],
},
}
Expand Down
File renamed without changes.
File renamed without changes.
50 changes: 40 additions & 10 deletions docs/de/config/README.md → docs/de-DE/config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ prompt_order = [
"ruby",
"rust",
"nix_shell",
"conda",
"memory_usage",
"aws",
"env_var",
Expand Down Expand Up @@ -262,6 +263,27 @@ min_time = 4
prefix = "underwent "
```

## Conda

The `conda` module shows the current conda environment, if `$CONDA_DEFAULT_ENV` is set. Note: This does not suppress conda's own prompt modifier, you may want to run `conda config --set changeps1 False`

### Options

| Variable | Default | Description |
| ---------- | -------------- | -------------------------------------------- |
| `symbol` | `"C "` | The symbol used before the environment name. |
| `style` | `"bold green"` | The style for the module. |
| `disabled` | `false` | Disables the `conda` module. |

### Example

```toml
# ~/.config/starship.toml

[conda]
style = "dimmed green"
```

## Directory

The `directory` module shows the path to your current directory, truncated to three parent folders. Your directory will also be truncated to the root of the git repo that you're currently in.
Expand Down Expand Up @@ -514,7 +536,7 @@ The `jobs` module shows the current number of jobs running. The module will be s

| Variable | Default | Description |
| ----------- | ------------- | ----------------------------------------------------- |
| `symbol` | `"✦ "` | The symbol used before displaying the number of jobs. |
| `symbol` | `"✦"` | The symbol used before displaying the number of jobs. |
| `threshold` | `1` | Show number of jobs if exceeded. |
| `style` | `"bold blue"` | The style for the module. |
| `disabled` | `false` | Disables the `jobs` module. |
Expand All @@ -535,13 +557,19 @@ threshold = 4
Displays the current Kubernetes context name and, if set, the namespace from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-cluster --namespace
astronaut`. If the `$KUBECONFIG` env var is set the module will use that if not it will use the `~/.kube/config`.

::: tip

This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.

:::

### Options

| Variable | Default | Description |
| ---------- | ------------- | --------------------------------------------------- |
| `symbol` | `"☸ "` | The symbol used before displaying the Cluster info. |
| `style` | `"bold blue"` | The style for the module. |
| `disabled` | `false` | Disables the `kubernetes` module |
| `disabled` | `true` | Disables the `kubernetes` module |

### Example

Expand All @@ -551,7 +579,7 @@ astronaut`. If the `$KUBECONFIG` env var is set the module will use that if not
[kubernetes]
symbol = ""
style = "dim green"
disabled = true
disabled = false
```


Expand Down Expand Up @@ -640,7 +668,7 @@ style = "bold dimmed green"

The `java` module shows the currently installed version of Java. The module will be shown if any of the following conditions are met:

- The current directory contains a `pom.xml` or `build.gradle` file
- The current directory contains a `pom.xml`, `build.gradle` or `build.sbt` file
- The current directory contains a file with the `.java`, `.class` or `.jar` extension

### Options
Expand Down Expand Up @@ -810,12 +838,13 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y

### Options

| Variable | Default | Description |
| ---------- | ------------- | ------------------------------------------------------------------------------------------------------------------- |
| `use_12hr` | `false` | Enables 12 hour formatting |
| `format` | see below | The [chrono format string](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) used to format the time. |
| `style` | `bold yellow` | The style for the module time |
| `disabled` | `true` | Disables the `time` module. |
| Variable | Default | Description |
| ----------------- | ------------- | ------------------------------------------------------------------------------------------------------------------- |
| `12hr` | `false` | Enables 12 hour formatting |
| `format` | see below | The [chrono format string](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) used to format the time. |
| `style` | `bold yellow` | The style for the module time |
| `disabled` | `true` | Disables the `time` module. |
| `utc_time_offset` | `local` | Sets the UTC offset to use. Range from -24 < x < 24. Allows floats to accommodate 30/45 minute timezone offsets. |

If `use_12hr` is `true`, then `format` defaults to `"%r"`. Otherwise, it defaults to `"%T"`. Manually setting `format` will override the `use_12hr` setting.

Expand All @@ -827,6 +856,7 @@ If `use_12hr` is `true`, then `format` defaults to `"%r"`. Otherwise, it default
[time]
disabled = false
format = "🕙[ %T ]"
utc_time_offset = -5
```

## Username
Expand Down
71 changes: 48 additions & 23 deletions translations/README.de.md → docs/de-DE/guide/README.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,30 @@
<p align="center">
<br />
<img
<br /><img
width="400"
src="https://raw.githubusercontent.com/starship/starship/master/media/logo.png"
alt="Starship – Cross-shell prompt" />
</p>
<p align="center">
<a href="https://crates.io/crates/starship">
<img src="https://badgen.net/crates/v/starship" alt="Crates.io version" />
</a>
<a href="https://dev.azure.com/starship-control/starship/_build">
<img
src="https://badgen.net/azure-pipelines/starship-control/starship/Starship%20Test%20Suite"
alt="Azure Pipelines Build Status" />
</a>
<a href="https://repology.org/project/starship/versions">
<img src="https://repology.org/badge/tiny-repos/starship.svg" alt="Packaging status">
</a><br>
<a href="#contributors">
<img
src="https://badgen.net/badge/all%20contributors/20/orange"
alt="All Contributors" />
</a>
<a href="https://discord.gg/8Jzqu3T">
<img
<a href="https://github.com/starship/starship/actions"
><img
src="https://github.com/starship/starship/workflows/Main%20workflow/badge.svg"
alt="GitHub Actions workflow status" /></a>
<a href="https://crates.io/crates/starship"
><img src="https://badgen.net/crates/v/starship" alt="Crates.io version" /></a>
<a href="https://repology.org/project/starship/versions"
><img
src="https://repology.org/badge/tiny-repos/starship.svg"
alt="Packaging status" /></a
><br /><a href="#contributors"
><img
src="https://badgen.net/badge/all%20contributors/35/orange"
alt="All Contributors" /></a>
<a href="https://discord.gg/8Jzqu3T"
><img
src="https://badgen.net/badge/chat/on%20discord/7289da"
alt="Chat on Discord" />
</a>
alt="Chat on Discord" /></a>
</p>

<h4 align="center">
<br />
<a href="https://starship.rs">Website</a>
Expand All @@ -36,6 +33,28 @@
·
<a href="https://starship.rs/config/">Configuration</a>
</h4>
<p align="center">
<a href="https://github.com/starship/starship/blob/master/README.md"
><img height="20" src="https://raw.githubusercontent.com/starship/starship/master/media/flag-us.png" alt="English" /></a>
&#0020;
<a href="https://github.com/starship/starship/blob/master/translations/README.ja.md"
><img height="20" src="https://raw.githubusercontent.com/starship/starship/master/media/flag-jp.png" alt="日本語" /></a>
&#0020;
<a href="https://translate.starship.rs/project/starship-prompt/zh-CN"
><img height="20" src="https://raw.githubusercontent.com/starship/starship/master/media/flag-cn.png" alt="简体中文" /></a>
&#0020;
<a href="https://translate.starship.rs/project/starship-prompt/zh-TW"
><img height="20" src="https://raw.githubusercontent.com/starship/starship/master/media/flag-tw.png" alt="繁體中文" /></a>
&#0020;
<a href="https://translate.starship.rs/project/starship-prompt/de"
><img height="20" src="https://raw.githubusercontent.com/starship/starship/master/media/flag-de.png" alt="Deutsch" /></a>
&#0020;
<a href="https://translate.starship.rs/project/starship-prompt/fr"
><img height="20" src="https://raw.githubusercontent.com/starship/starship/master/media/flag-fr.png" alt="Français" /></a>
&#0020;
<a href="https://translate.starship.rs/project/starship-prompt/ru"
><img height="20" src="https://raw.githubusercontent.com/starship/starship/master/media/flag-ru.png" alt="Русский" /></a>
</p>

<h1></h1>

Expand Down Expand Up @@ -209,7 +228,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<td align="center"><a href="https://github.com/iamsauravsharma"><img src="https://avatars0.githubusercontent.com/u/38726015?v=4" width="100px;" alt="Saurav Sharma" /><br /><sub><b>Saurav Sharma</b></sub></a><br /><a href="https://github.com/starship/starship/commits?author=iamsauravsharma" title="Code">💻</a> <a href="https://github.com/starship/starship/commits?author=iamsauravsharma" title="Documentation">📖</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/andytom"><img src="https://avatars1.githubusercontent.com/u/108836?v=4" width="100px;" alt="Thomas O'Donnell" /><br /><sub><b>Thomas O'Donnell</b></sub></a><br /><a href="https://github.com/starship/starship/commits?author=andytom" title="Code">💻</a> <a href="https://github.com/starship/starship/commits?author=andytom" title="Tests">⚠️</a> <a href="https://github.com/starship/starship/commits?author=andytom" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/andytom"><img src="https://avatars1.githubusercontent.com/u/108836?v=4" width="100px;" alt="Thomas O'Donnell" /><br /><sub><b>Thomas O'Donnell</b></sub></a><br /><a href="https://github.com/starship/starship/commits?author=andytom" title="Code">💻</a> <a href="https://github.com/starship/starship/commits?author=andytom" title="Tests">⚠️</a> <a href="https://github.com/starship/starship/commits?author=andytom" title="Documentation">📖</a> <a href="#review-andytom" title="Reviewed Pull Requests">👀</a></td>
<td align="center"><a href="https://github.com/bbigras"><img src="https://avatars1.githubusercontent.com/u/24027?v=4" width="100px;" alt="Bruno Bigras" /><br /><sub><b>Bruno Bigras</b></sub></a><br /><a href="https://github.com/starship/starship/commits?author=bbigras" title="Code">💻</a> <a href="#review-bbigras" title="Reviewed Pull Requests">👀</a></td>
<td align="center"><a href="https://neilkistner.com/"><img src="https://avatars1.githubusercontent.com/u/186971?v=4" width="100px;" alt="Neil Kistner" /><br /><sub><b>Neil Kistner</b></sub></a><br /><a href="https://github.com/starship/starship/commits?author=wyze" title="Code">💻</a> <a href="https://github.com/starship/starship/commits?author=wyze" title="Tests">⚠️</a> <a href="#review-wyze" title="Reviewed Pull Requests">👀</a></td>
<td align="center"><a href="http://ca.linkedin.com/in/qstrahl"><img src="https://avatars3.githubusercontent.com/u/2235277?v=4" width="100px;" alt="Quinn Strahl" /><br /><sub><b>Quinn Strahl</b></sub></a><br /><a href="https://github.com/starship/starship/commits?author=qstrahl" title="Code">💻</a> <a href="https://github.com/starship/starship/commits?author=qstrahl" title="Tests">⚠️</a></td>
Expand All @@ -235,6 +254,12 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<td align="center"><a href="https://github.com/TsubasaKawajiri"><img src="https://avatars2.githubusercontent.com/u/39114857?v=4" width="100px;" alt="TsubasaKawajiri" /><br /><sub><b>TsubasaKawajiri</b></sub></a><br /><a href="#translation-TsubasaKawajiri" title="Translation">🌍</a></td>
<td align="center"><a href="https://github.com/qryxip"><img src="https://avatars2.githubusercontent.com/u/14125495?v=4" width="100px;" alt="Ryo Yamashita" /><br /><sub><b>Ryo Yamashita</b></sub></a><br /><a href="https://github.com/starship/starship/commits?author=qryxip" title="Code">💻</a></td>
</tr>
<tr>
<td align="center"><a href="https://pbzweihander.github.io"><img src="https://avatars2.githubusercontent.com/u/15262528?v=4" width="100px;" alt="Thomas Lee" /><br /><sub><b>Thomas Lee</b></sub></a><br /><a href="https://github.com/starship/starship/commits?author=pbzweihander" title="Code">💻</a></td>
<td align="center"><a href="https://pt2121.github.io"><img src="https://avatars0.githubusercontent.com/u/616399?v=4" width="100px;" alt="(´⌣`ʃƪ)"/><br /><sub><b>(´⌣`ʃƪ)</b></sub></a><br /><a href="https://github.com/starship/starship/commits?author=pt2121" title="Code">💻</a></td>
<td align="center"><a href="https://southcla.ws"><img src="https://avatars1.githubusercontent.com/u/1636971?v=4" width="100px;" alt="Barnaby Keene" /><br /><sub><b>Barnaby Keene</b></sub></a><br /><a href="https://github.com/starship/starship/commits?author=Southclaws" title="Code">💻</a></td>
<td align="center"><a href="http://keawade.io/"><img src="https://avatars2.githubusercontent.com/u/7308850?v=4" width="100px;" alt="Keith Wade" /><br /><sub><b>Keith Wade</b></sub></a><br /><a href="https://github.com/starship/starship/commits?author=keawade" title="Code">💻</a> <a href="https://github.com/starship/starship/commits?author=keawade" title="Tests">⚠️</a></td>
</tr>
</table>

<!-- ALL-CONTRIBUTORS-LIST:END -->
Expand Down
1 change: 0 additions & 1 deletion docs/de/guide/README.md

This file was deleted.

File renamed without changes.
File renamed without changes.
Loading

0 comments on commit cb4a92f

Please sign in to comment.