From d30a2c2705d7c90d66b715678cc9a6ac6f6661b8 Mon Sep 17 00:00:00 2001 From: Matan Kushner Date: Sat, 2 Nov 2019 20:12:46 +0900 Subject: docs(i18n): Update documentation translations (#575) --- docs/de-DE/advanced-config/README.md | 8 +- docs/de-DE/config/README.md | 130 +++++++------ docs/de-DE/guide/README.md | 10 +- docs/fr-FR/README.md | 22 +-- docs/fr-FR/config/README.md | 73 ++++--- docs/fr-FR/guide/README.md | 4 + docs/ja-JP/README.md | 2 +- docs/ja-JP/config/README.md | 109 ++++++----- docs/ja-JP/guide/README.md | 12 +- docs/ru-RU/advanced-config/README.md | 2 +- docs/ru-RU/config/README.md | 357 ++++++++++++++++++----------------- docs/ru-RU/guide/README.md | 6 +- docs/zh-CN/config/README.md | 67 ++++--- docs/zh-CN/guide/README.md | 36 ++-- docs/zh-TW/config/README.md | 76 +++++--- docs/zh-TW/guide/README.md | 4 + 16 files changed, 522 insertions(+), 396 deletions(-) diff --git a/docs/de-DE/advanced-config/README.md b/docs/de-DE/advanced-config/README.md index 37d945860..f10ce127a 100644 --- a/docs/de-DE/advanced-config/README.md +++ b/docs/de-DE/advanced-config/README.md @@ -61,7 +61,7 @@ Um die Funktion dauerhaft zu machen, schreiben Sie diese in die Shell-Konfigurat ## Style-Strings -Style strings are a list of words, separated by whitespace. The words are not case sensitive (i.e. `bold` and `BoLd` are considered the same string). Each word can be one of the following: +Style strings are a list of words, separated by whitespace. The words are not case sensitive (i.e. `bold` and `BoLd` are considered the same string). Jedes Wort kann eines der folgenden sein: - `bold` - `underline` @@ -71,14 +71,14 @@ Style strings are a list of words, separated by whitespace. The words are not ca - `` - `none` -where `` is a color specifier (discussed below). `fg:` and `` currently do the same thing , though this may change in the future. The order of words in the string does not matter. +where `` is a color specifier (discussed below). `fg:` and `` currently do the same thing , though this may change in the future. Die Reihenfolge der Wörter in der Zeichenkette spielt keine Rolle. The `none` token overrides all other tokens in a string, so that e.g. `fg:red none fg:blue` will still create a string with no styling. It may become an error to use `none` in conjunction with other tokens in the future. A color specifier can be one of the following: - One of the standard terminal colors: `black`, `red`, `green`, `blue`, `yellow`, `purple`, `cyan`, `white`. You can optionally prefix these with `bright-` to get the bright version (e.g. `bright-white`). - - A `#` followed by a six-digit hexadecimal number. This specifies an [RGB color hex code](https://www.w3schools.com/colors/colors_hexadecimal.asp). - - A number between 0-255. This specifies an [8-bit ANSI Color Code](https://i.stack.imgur.com/KTSQa.png). + - Eine `#` gefolgt von einer sechsstelligen Hexadezimalnummer. This specifies an [RGB color hex code](https://www.w3schools.com/colors/colors_hexadecimal.asp). + - Eine Zahl zwischen 0-255. This specifies an [8-bit ANSI Color Code](https://i.stack.imgur.com/KTSQa.png). If multiple colors are specified for foreground/background, the last one in the string will take priority. diff --git a/docs/de-DE/config/README.md b/docs/de-DE/config/README.md index b3f09ea4b..276d424a3 100644 --- a/docs/de-DE/config/README.md +++ b/docs/de-DE/config/README.md @@ -29,11 +29,11 @@ disabled = true ### Terminologie -**Module**: Eine Komponente in der Konsole, die auf kontextualisierte Informationen des OS basiert. Zum Beispiel das "nodejs" Modul zeigt die version von NodeJS, die derzeit auf deinem Rechner installiert ist, wenn dein Arbeitsordner ein NodeJS Projekt umfasst. +**Module**: Eine Komponente in der Konsole, die auf kontextualisierte Informationen des OS basiert. Zum Beispiel zeigt das Modul "nodejs" die Version von NodeJS, die derzeit auf Ihrem Computer installiert ist, wenn Ihr aktuelles Verzeichnis ein NodeJS-Projekt ist. -**Segment**: Kleinere Sub-Komponente die ein Modul ergeben. Zum Beispiel, das "symbol" Segment im "nodejs" Modul beinhaltet das Symbol das vor der Versionsnummer gezeigt wird (Standard: ⬢). +**Segment**: Kleinere Unterkomponenten, die ein Modul erstellen. Zum Beispiel, das "symbol" Segment im "nodejs" Modul beinhaltet das Symbol das vor der Versionsnummer gezeigt wird (Standard: ⬢). -Hier ist die Darstellung des Node Moduls. Im folgenden Beispiel betrachten wir die Segmente "symbol" und "version". Jedes Modul hat auch einen Prefix und einen Suffix, das auf die Standardfarbe des Terminals gesetzt ist. +Hier eine Darstellung des Node-Moduls. Im folgenden Beispiel betrachten wir die Segmente "symbol" und "version". Jedes Modul hat einen Präfix und einen Suffix, welche auf die Standardfarbe des Terminals gesetzt sind. ``` [prefix] [symbol] [version] [suffix] @@ -42,16 +42,16 @@ Hier ist die Darstellung des Node Moduls. Im folgenden Beispiel betrachten wir d ### Style-Strings -Die meisten Module in starship lassen dich den Darstellungsstil verändern. Dies passiert meistens an einem bestimmten Eintrag (gewöhnlich `style` genannt), der einen String mit den Einstellungen darstellt. Es folgen ein paar Beispiele für solche Strings zusammen mit Beschreibungen was sie bewirken. Details zur vollen Syntax findest du im [Erweiterten Einstellungshandbuch](/advanced-config/). +Die meisten Module in Starship lassen dich den Darstellungsstil verändern. Dies passiert meistens an einem bestimmten Eintrag (gewöhnlich `style` genannt), der einen String mit den Einstellungen darstellt. Es folgen ein paar Beispiele für solche Strings zusammen mit Beschreibungen was sie bewirken. Details zur vollen Syntax findest du im [Erweiterten Konfigurationshandbuch](/advanced-config/). - `"fg:green bg:blue"` setzt grünen Text auf blauen Hintergrund - `"bg:blue fg:bright-green"` setzt hell-grünen Text auf blauen Hintergrund - `"bold fg:27"` setzt dicke Schrift auf [ANSI Farbe](https://i.stack.imgur.com/KTSQa.png) 27 - `"underline bg:#bf5700"` setzt unterstrichenen Text auf einen orangenen Hintergrund -- `"bold italic fg:purple"` setzt dicke Kursivschrift lila -- `""` deativiert explizit jeden Stil +- `"bold italic fg:purple"` setzt dicke lila Kursivschrift +- `""` deaktiviert explizit jeden Stil -Wie genau sich diese Konfiguration auswirkt liegt an deinem Shell Emulator. Einige Emulatoren zum Beispiel werden die Farben erhellen statt Text dick zu machen, und ein paar Farbthemata benutzen dieselben werte für normale und helle Farben. Für kursiven Text muss dein Terminal Kursivschrift unterstützen. +Wie genau sich diese Konfiguration auswirkt liegt an deinem Terminal-Emulator. Einige Emulatoren zum Beispiel werden die Farben erhellen statt Text dick zu machen, und ein paar Farbthemen benutzen dieselben Werte für normale und helle Farben. Für kursiven Text muss dein Terminal Kursivschrift unterstützen. ## Prompt @@ -63,22 +63,24 @@ Dies ist eine Liste mit Prompt-weiten Konfigurationsoptionen. | -------------- | ----------------------------- | ------------------------------------------------------------------ | | `add_newline` | `true` | Neuer Zeilenumbruch bei Start des Prompts. | | `prompt_order` | [link](#default-prompt-order) | Stelle die Reihenfolge ein, in der die Module den prompt aufbauen. | +| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). | ### Beispiel ```toml # ~/.config/starship.toml -# Kein Zeilenumbruch am Anfang der Eingabe +# Disable the newline at the start of the prompt add_newline = false - -# Überscheibt die Standard-Reihenfolge und nutzt die folgende +# Overwrite a default_prompt_order and use custom prompt_order prompt_order=["rust","line_break","package","line_break","character"] +# Wait 10 milliseconds for starship to check files under the current directory. +scan_timeout = 10 ``` -### Default Promp Order +### Standard-Promptreihenfolge -Die Standard `prompt_order` wird benutzt um die Reihenfolge der Module im Prompt zu definieren, falls `prompt_order` leer oder nicht gesetzt ist. Der default sieht wie folgt aus: +Die Standard `prompt_order` wird benutzt um die Reihenfolge der Module im Prompt zu definieren, falls `prompt_order` leer oder nicht gesetzt ist. Die Standardwerte sind folgende: ```toml prompt_order = [ @@ -117,11 +119,11 @@ Das `aws`-Modul zeigt das aktuelle AWS-Profil an. Dies basiert auf den Umgebungs ### Optionen -| Variable | Standardwert | Beschreibung | -| ---------- | --------------- | ------------------------------------------------------------------- | -| `symbol` | `"☁️ "` | Symbol das vor der Anzahl des aktuellen AWS-Profils angezeigt wird. | -| `style` | `"bold yellow"` | Stil für dieses Modul. | -| `disabled` | `false` | Deaktiviert das `aws`-Modul. | +| Variable | Standardwert | Beschreibung | +| ---------- | --------------- | ------------------------------------------------------- | +| `symbol` | `"☁️ "` | Symbol das vor dem aktuellen AWS-Profil angezeigt wird. | +| `style` | `"bold yellow"` | Stil für dieses Modul. | +| `disabled` | `false` | Deaktiviert das `aws`-Modul. | ### Beispiel @@ -148,9 +150,9 @@ Das `battery` Modul zeigt, wie hoch der Akku des Geräts geladen ist und den akt | `disabled` | `false` | Wenn der Wert auf `true` steht, wird das Akkustand-Modul deaktiviert. |
-Das Batterie-Modul unterstützt auch einige ungewöhnliche Zustände. +Das Batterie-Modul unterstützt auch einige untypische Zustände. -| Variable | Description | +| Variable | Beschreibung | | ---------------- | --------------------------------------------------- | | `unknown_symbol` | The symbol shown when the battery state is unknown. | | `empty_symbol` | The symbol shown when the battery state is empty. | @@ -172,7 +174,7 @@ discharging_symbol = "💀" ### Anzeige des Akkustandes -Die `display` Konfiguration "threshold" stellt ein ab wann die Akkuanzeige eingeblendet wird. Mit "style" wird das Erscheinungsbild festgelegt. Wenn `display` nicht angegeben ist. Werden die folgenden Standardwerte verwendet: +Die `display` Konfiguration "threshold" stellt ein ab wann die Akkuanzeige eingeblendet wird. Mit "style" wird das Erscheinungsbild festgelegt. Wenn `display` nicht angegeben ist. Die Standardwerte sind folgende: ```toml [[battery.display]] @@ -235,7 +237,7 @@ use_symbol_for_status = true ## Befehlsdauer -The `cmd_duration` module shows how long the last command took to execute. The module will be shown only if the command took longer than two seconds, or the `min_time` config value, if it exists. +Das `cmd_duration` Modul zeigt an wie lange der letzte Befehl ausgeführt wurde. Das Modul wird nur angezeigt wenn der letzte Befehl länger als zwei Sekunden ausgeführt wurde. Mit der `min_time` Option kann die Zeit eingestellt werden ab der <0>cmd_duration angezeigt wird. ::: warning Nicht die DEBUG-trap in der Bash hooken @@ -436,25 +438,39 @@ cherry_pick = "🍒 PICKING" The `git_status` module shows symbols representing the state of the repo in your current directory. -### Options - -| Variable | Standardwert | Beschreibung | -| ----------------- | ------------ | ------------------------------------------------------- | -| `conflicted` | `"="` | This branch has merge conflicts. | -| `ahead` | `"⇡"` | This branch is ahead of the branch being tracked. | -| `behind` | `"⇣"` | This branch is behind of the branch being tracked. | -| `diverged` | `"⇕"` | This branch has diverged from the branch being tracked. | -| `untracked` | `"?"` | There are untracked files in the working directory. | -| `stashed` | `"$"` | A stash exists for the local repository. | -| `modified` | `"!"` | There are file modifications in the working directory. | -| `staged` | `"+"` | A new file has been added to the staging area. | -| `renamed` | `"»"` | A renamed file has been added to the staging area. | -| `deleted` | `"✘"` | A file's deletion has been added to the staging area. | -| `show_sync_count` | `false` | Show ahead/behind count of the branch being tracked. | -| `prefix` | `[` | Prefix to display immediately before git status. | -| `suffix` | `]` | Suffix to display immediately after git status. | -| `style` | `"bold red"` | Stil für dieses Modul. | -| `disabled` | `false` | Deaktiviert das `git_status`-Modul. | +### Optionen + +| Variable | Standardwert | Beschreibung | +| ------------------ | -------------------------- | ------------------------------------------------------- | +| `conflicted` | `"="` | This branch has merge conflicts. | +| `conflicted_count` | [link](#git-status-counts) | Show and style the number of conflicts. | +| `ahead` | `"⇡"` | This branch is ahead of the branch being tracked. | +| `behind` | `"⇣"` | This branch is behind of the branch being tracked. | +| `diverged` | `"⇕"` | This branch has diverged from the branch being tracked. | +| `untracked` | `"?"` | There are untracked files in the working directory. | +| `untracked_count` | [link](#git-status-counts) | Show and style the number of untracked files. | +| `stashed` | `"$"` | A stash exists for the local repository. | +| `modified` | `"!"` | There are file modifications in the working directory. | +| `modified_count` | [link](#git-status-counts) | Show and style the number of modified files. | +| `staged` | `"+"` | A new file has been added to the staging area. | +| `staged_count` | [link](#git-status-counts) | Show and style the number of files staged files. | +| `renamed` | `"»"` | A renamed file has been added to the staging area. | +| `renamed_count` | [link](#git-status-counts) | Show and style the number of renamed files. | +| `deleted` | `"✘"` | A file's deletion has been added to the staging area. | +| `deleted_count` | [link](#git-status-counts) | Show and style the number of deleted files. | +| `show_sync_count` | `false` | Show ahead/behind count of the branch being tracked. | +| `prefix` | `[` | Prefix to display immediately before git status. | +| `suffix` | `]` | Suffix to display immediately after git status. | +| `style` | `"bold red"` | Stil für dieses Modul. | +| `disabled` | `false` | Deaktiviert das `git_status`-Modul. | + +#### Git Status Counts + +| Variable | Standardwert | Beschreibung | +| --------- | ------------ | ------------------------------------------------------ | +| `enabled` | `false` | Show the number of files | +| `style` | | Optionally style the count differently than the module | + ### Beispiel @@ -469,7 +485,10 @@ diverged = "😵" untracked = "🤷‍" stashed = "📦" modified = "📝" -staged = "➕" +staged.value = "++" +staged.style = "green" +staged_count.enabled = true +staged_count.style = "green" renamed = "👅" deleted = "🗑" ``` @@ -515,8 +534,8 @@ Das `hostname`-Modul zeigt den Hostnamen des Systems an. | `prefix` | `""` | Prefix der unmittelbar vor dem Hostnamen angezeigt wird. | | `suffix` | `""` | Suffix der unmittelbar nach dem Hostnamen angezeigt wird. | | `trim_at` | `"."` | String that the hostname is cut off at, after the first match. `"."` will stop after the first dot. `""` will disable any truncation | -| `style` | `"bold dimmed green"` | The style for the module. | -| `disabled` | `false` | Disables the `hostname` module. | +| `style` | `"bold dimmed green"` | Stil für dieses Modul. | +| `disabled` | `false` | Deaktiviert das `hostname`-Modul. | ### Beispiel @@ -554,11 +573,9 @@ symbol = "+ " threshold = 4 ``` - ## Kubernetes -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`. +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 @@ -585,7 +602,6 @@ style = "dim green" disabled = false ``` - ## Zeilenumbruch Das `line_break`-Modul unterteilt den Prompt in zwei Zeilen. @@ -669,7 +685,7 @@ style = "bold dimmed green" ## Java -The `java` module shows the currently installed version of Java. The module will be shown if any of the following conditions are met: +Das `java` Modul zeigt die derzeit installierte Version von Java an. Das Modul wird nur dann angezeigt, wenn eine der folgenden Bedingungen zutrifft: - 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 @@ -693,9 +709,9 @@ symbol = "🌟 " ## NodeJS -The `nodejs` module shows the currently installed version of NodeJS. The module will be shown if any of the following conditions are met: +Das `nodejs` Modul zeigt die derzeit installierte Version von NodeJS. Das Modul wird nur dann angezeigt, wenn eine der folgenden Bedingungen zutrifft: -- The current directory contains a `package.json` file +- Das aktuelle Verzeichnis enthält eine `package.json`-Datei - The current directory contains a `node_modules` directory - The current directory contains a file with the `.js` extension @@ -751,14 +767,14 @@ If `pyenv_version_name` is set to `true`, it will display the pyenv version name Otherwise, it will display the version number from `python --version` and show the current Python virtual environment if one is activated. -The module will be shown if any of the following conditions are met: +Das Modul wird nur dann angezeigt, wenn eine der folgenden Bedingungen zutrifft: - The current directory contains a `.python-version` file -- The current directory contains a `requirements.txt` file -- The current directory contains a `pyproject.toml` file +- Das aktuelle Verzeichnis enthält eine `requirements.txt`-Datei +- Das aktuelle Verzeichnis enthält eine `pyproject.toml`-Datei - The current directory contains a file with the `.py` extension - The current directory contains a `Pipfile` file -- The current directory contains a `tox.ini` file +- Das aktuelle Verzeichnis enthält eine `tox.ini`-Datei ### Optionen @@ -783,7 +799,7 @@ pyenv_prefix = "foo " ## Ruby -The `ruby` module shows the currently installed version of Ruby. The module will be shown if any of the following conditions are met: +The `ruby` module shows the currently installed version of Ruby. Das Modul wird nur dann angezeigt, wenn eine der folgenden Bedingungen zutrifft: - The current directory contains a `Gemfile` file - The current directory contains a `.rb` file @@ -807,7 +823,7 @@ symbol = "🔺 " ## Rust -The `rust` module shows the currently installed version of Rust. The module will be shown if any of the following conditions are met: +The `rust` module shows the currently installed version of Rust. Das Modul wird nur dann angezeigt, wenn eine der folgenden Bedingungen zutrifft: - The current directory contains a `Cargo.toml` file - The current directory contains a file with the `.rs` extension @@ -843,7 +859,7 @@ Dieses Modul ist standardmäßig deaktiviert. Setze in deiner Konfiguration `dis | Variable | Standardwert | Beschreibung | | ----------------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | -| `12hr` | `false` | Aktiviert die Formatierung der Uhrzeit im 12-Stunden-Format. | +| `use_12hr` | `false` | Aktiviert die Formatierung der Uhrzeit im 12-Stunden-Format. | | `format` | Siehe unten | Das Format zum Anzeigen der Uhrzeit in [chrono-Formatierung](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html). | | `style` | `bold yellow` | Stil für dieses Modul. | | `disabled` | `true` | Deaktiviert das `time`-Modul. | diff --git a/docs/de-DE/guide/README.md b/docs/de-DE/guide/README.md index 395e2db98..6ee7fa4de 100644 --- a/docs/de-DE/guide/README.md +++ b/docs/de-DE/guide/README.md @@ -20,12 +20,12 @@ All Contributors + alt="Alle Mitwirkenden" /> Chat on Discord + alt="Auf Discord chatten" />

@@ -123,7 +123,7 @@ ``` - #### Rust (v1.38 oder höher) + #### Rust (v1.38 oder neuer) ```sh $ cargo install starship @@ -290,6 +290,10 @@ Danke an diese wunderbaren Leute ([emoji-Schlüssel](https://allcontributors.org Carl Summers
Carl Summers

📖 + Yushan Lin
Yushan Lin

🌍 + Weihang Lo
Weihang Lo

🌍 + pinshan
pinshan

🌍 + Brian Low
Brian Low

💻 📖 ⚠️ diff --git a/docs/fr-FR/README.md b/docs/fr-FR/README.md index 2e3d3e403..59d6ef0b6 100644 --- a/docs/fr-FR/README.md +++ b/docs/fr-FR/README.md @@ -9,15 +9,15 @@ footer: ISC licencié | Copyright © 2019-present Starship Contributors

Compatibilité d'abord

-

Works on the most common shells on the most common operating systems. Use it everywhere!

+

Fonctionne sur tous les principaux shells et système d'exploitation. Utilisez-le partout !

-

Rust-Powered

-

Brings the best-in-class speed and safety of Rust, to make your prompt as quick and reliable as possible.

+

Propulsé par Rust

+

Profiter de toute la rapidité et la securité de Rust, pour rendre votre prompt le plus rapide et fiable possible.

-

Customizable

-

Every little detail is customizable to your liking, to make this prompt as minimal or feature-rich as you'd like it to be.

+

Personnalisable

+

Tous les petits détails sont personnalisable à votre goût, pour rendre votre prompt aussi léger ou complet que le vous souhaitez.

@@ -28,11 +28,11 @@ footer: ISC licencié | Copyright © 2019-present Starship Contributors -### Quick Install +### Installation -1. Install the **starship** binary: +1. Installer le binaire **starship** : - **[Download archives of precompiled binaries](https://github.com/starship/starship/releases)** if you don't use the platforms below. + **[Télécharger les archives des binaires précompilés](https://github.com/starship/starship/releases)** si vous n'utilisez pas une des plateformes citées ci-dessous. #### Homebrew @@ -42,7 +42,7 @@ footer: ISC licencié | Copyright © 2019-present Starship Contributors ``` - #### Rust (v1.38 or higher) + #### Rust (v1.38 ou plus) ```sh $ cargo install starship @@ -51,14 +51,14 @@ footer: ISC licencié | Copyright © 2019-present Starship Contributors #### Arch Linux (AUR) - Starship is available on the AUR under the name `starship`. Install it with `yay` or your favorite AUR helper. + Starship is disponible sur AUR sous le nom `starship`. Installer le avec `yay` ou votre client AUR favori. ```sh $ yay -S starship ``` - #### Nix (unstable) + #### Nix (non stable) ```sh $ nix-env --install starship diff --git a/docs/fr-FR/config/README.md b/docs/fr-FR/config/README.md index c876c45a1..21646394b 100644 --- a/docs/fr-FR/config/README.md +++ b/docs/fr-FR/config/README.md @@ -40,7 +40,7 @@ Voici la représentation du module node. Dans l'exemple suivant, "symbol" et "ve "via " "⬢" "v10.4.1" "" ``` -### Style Strings +### Chaînes de style Most modules in starship allow you to configure their display styles. This is done with an entry (usually called `style`) which is a string specifying the configuration. Here are some examples of style strings along with what they do. For details on the full syntax, consult the [advanced config guide](/advanced-config/). @@ -63,6 +63,7 @@ This is the list of prompt-wide configuration options. | -------------- | ----------------------------- | ------------------------------------------------------ | | `add_newline` | `true` | Add a new line before the start of the prompt. | | `prompt_order` | [link](#default-prompt-order) | Configure the order in which the prompt module occurs. | +| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). | ### Example @@ -73,6 +74,8 @@ This is the list of prompt-wide configuration options. add_newline = false # Overwrite a default_prompt_order and use custom prompt_order prompt_order=["rust","line_break","package","line_break","character"] +# Wait 10 milliseconds for starship to check files under the current directory. +scan_timeout = 10 ``` ### Default Prompt Order @@ -118,7 +121,7 @@ The `aws` module shows the current AWS region and profile. This is based on `AWS | Variable | Default | Description | | ---------- | --------------- | ---------------------------------------------------------- | -| `symbol` | `"☁️ "` | The symbol used before displaying the current AWS profile. | +| `symbol` | `"☁️ "` | The symbol used before displaying the current AWS profile. | | `style` | `"bold yellow"` | The style for the module. | | `disabled` | `false` | Disables the `AWS` module. | @@ -437,23 +440,37 @@ The `git_status` module shows symbols representing the state of the repo in your ### Options -| Variable | Default | Description | -| ----------------- | ------------ | ------------------------------------------------------- | -| `conflicted` | `"="` | This branch has merge conflicts. | -| `ahead` | `"⇡"` | This branch is ahead of the branch being tracked. | -| `behind` | `"⇣"` | This branch is behind of the branch being tracked. | -| `diverged` | `"⇕"` | This branch has diverged from the branch being tracked. | -| `untracked` | `"?"` | There are untracked files in the working directory. | -| `stashed` | `"$"` | A stash exists for the local repository. | -| `modified` | `"!"` | There are file modifications in the working directory. | -| `staged` | `"+"` | A new file has been added to the staging area. | -| `renamed` | `"»"` | A renamed file has been added to the staging area. | -| `deleted` | `"✘"` | A file's deletion has been added to the staging area. | -| `show_sync_count` | `false` | Show ahead/behind count of the branch being tracked. | -| `prefix` | `[` | Prefix to display immediately before git status. | -| `suffix` | `]` | Suffix to display immediately after git status. | -| `style` | `"bold red"` | The style for the module. | -| `disabled` | `false` | Disables the `git_status` module. | +| Variable | Default | Description | +| ------------------ | -------------------------- | ------------------------------------------------------- | +| `conflicted` | `"="` | This branch has merge conflicts. | +| `conflicted_count` | [link](#git-status-counts) | Show and style the number of conflicts. | +| `ahead` | `"⇡"` | This branch is ahead of the branch being tracked. | +| `behind` | `"⇣"` | This branch is behind of the branch being tracked. | +| `diverged` | `"⇕"` | This branch has diverged from the branch being tracked. | +| `untracked` | `"?"` | There are untracked files in the working directory. | +| `untracked_count` | [link](#git-status-counts) | Show and style the number of untracked files. | +| `stashed` | `"$"` | A stash exists for the local repository. | +| `modified` | `"!"` | There are file modifications in the working directory. | +| `modified_count` | [link](#git-status-counts) | Show and style the number of modified files. | +| `staged` | `"+"` | A new file has been added to the staging area. | +| `staged_count` | [link](#git-status-counts) | Show and style the number of files staged files. | +| `renamed` | `"»"` | A renamed file has been added to the staging area. | +| `renamed_count` | [link](#git-status-counts) | Show and style the number of renamed files. | +| `deleted` | `"✘"` | A file's deletion has been added to the staging area. | +| `deleted_count` | [link](#git-status-counts) | Show and style the number of deleted files. | +| `show_sync_count` | `false` | Show ahead/behind count of the branch being tracked. | +| `prefix` | `[` | Prefix to display immediately before git status. | +| `suffix` | `]` | Suffix to display immediately after git status. | +| `style` | `"bold red"` | The style for the module. | +| `disabled` | `false` | Disables the `git_status` module. | + +#### Git Status Counts + +| Variable | Default | Description | +| --------- | ------- | ------------------------------------------------------ | +| `enabled` | `false` | Show the number of files | +| `style` | | Optionally style the count differently than the module | + ### Example @@ -468,7 +485,10 @@ diverged = "😵" untracked = "🤷‍" stashed = "📦" modified = "📝" -staged = "➕" +staged.value = "++" +staged.style = "green" +staged_count.enabled = true +staged_count.style = "green" renamed = "👅" deleted = "🗑" ``` @@ -553,13 +573,11 @@ symbol = "+ " threshold = 4 ``` - ## Kubernetes -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`. +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 +::: remarque This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file. @@ -584,7 +602,6 @@ style = "dim green" disabled = false ``` - ## Line Break The `line_break` module separates the prompt into two lines. @@ -636,7 +653,7 @@ The `memory_usage` module shows current system memory and swap usage. By default the swap usage is displayed if the total system swap is non-zero. -::: tip +::: remarque This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file. @@ -832,7 +849,7 @@ symbol = "⚙️ " The `time` module shows the current **local** time. The `format` configuration value is used by the [`chrono`](https://crates.io/crates/chrono) crate to control how the time is displayed. Take a look [at the chrono strftime docs](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) to see what options are available. -::: tip +::: remarque This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file. @@ -842,7 +859,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y | Variable | Default | Description | | ----------------- | ------------- | ------------------------------------------------------------------------------------------------------------------- | -| `12hr` | `false` | Enables 12 hour formatting | +| `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. | diff --git a/docs/fr-FR/guide/README.md b/docs/fr-FR/guide/README.md index 1ec7b8aff..b1a407f1e 100644 --- a/docs/fr-FR/guide/README.md +++ b/docs/fr-FR/guide/README.md @@ -290,6 +290,10 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d Carl Summers
Carl Summers

📖 + Yushan Lin
Yushan Lin

🌍 + Weihang Lo
Weihang Lo

🌍 + pinshan
pinshan

🌍 + Brian Low
Brian Low

💻 📖 ⚠️ diff --git a/docs/ja-JP/README.md b/docs/ja-JP/README.md index ebee747a5..bc076e375 100644 --- a/docs/ja-JP/README.md +++ b/docs/ja-JP/README.md @@ -109,7 +109,7 @@ footer: ISC Licensed | Copyright © 2019-present Starship Contributors #### Powershell - Add the following to the end of `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` (or `~/.config/powershell/Microsoft.PowerShell_profile.ps1` on -Nix): + `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` (それか Nix上の `~/.config/powershell/Microsoft.PowerShell_profile.ps1` )の末尾に以下を追加してください。 ```sh # ~\Documents\PowerShell\Profile.ps1 diff --git a/docs/ja-JP/config/README.md b/docs/ja-JP/config/README.md index 7254daced..b72c7773b 100644 --- a/docs/ja-JP/config/README.md +++ b/docs/ja-JP/config/README.md @@ -59,20 +59,23 @@ Starshipのほとんどのモジュールでは、表示スタイルを設定で ### オプション -| 変数 | デフォルト | 説明 | -| -------------- | ----------------------- | ------------------------ | -| `add_newline` | `true` | プロンプトの開始前に新しい行を追加します。 | -| `prompt_order` | [link](#デフォルトのプロンプト表示順) | プロンプトモジュールを出力する順序を設定します。 | +| 変数 | デフォルト | 説明 | +| -------------- | ----------------------- | ----------------------------------------------------- | +| `add_newline` | `true` | プロンプトの開始前に新しい行を追加します。 | +| `prompt_order` | [link](#デフォルトのプロンプト表示順) | プロンプトモジュールを出力する順序を設定します。 | +| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). | ### 設定例 ```toml # ~/.config/starship.toml -# プロンプト表示の改行を無効にする +# Disable the newline at the start of the prompt add_newline = false -# デフォルトのプロンプト表示順を書き換える +# Overwrite a default_prompt_order and use custom prompt_order prompt_order=["rust","line_break","package","line_break","character"] +# Wait 10 milliseconds for starship to check files under the current directory. +scan_timeout = 10 ``` ### デフォルトのプロンプト表示順 @@ -112,13 +115,13 @@ prompt_order = [ ## AWS -The `aws` module shows the current AWS region and profile. This is based on `AWS_REGION`, `AWS_DEFAULT_REGION`, and `AWS_PROFILE` env var with `~/.aws/config` file. +`aws` モジュールは現在のAWSプロファイルが表示されます。 これは `~/.aws/config` に記述されている `AWS_REGION`, `AWS_DEFAULT_REGION`, and `AWS_PROFILE` 環境変数に基づいています。 ### オプション | 変数 | デフォルト | 説明 | | ---------- | --------------- | ----------------------------- | -| `symbol` | `"☁️ "` | 現在のAWSプロファイルを表示する前に表示される記号です。 | +| `symbol` | `"☁️ "` | 現在のAWSプロファイルを表示する前に表示される記号です。 | | `style` | `"bold yellow"` | モジュールのスタイルです。 | | `disabled` | `false` | `aws`モジュールを無効にします。 | @@ -266,7 +269,7 @@ prefix = "underwent " ## Conda -`$CONDA_DEFAULT_ENV`が設定されている場合、`conda`モジュールは現在のcondaの環境を表示します。 Note: This does not suppress conda's own prompt modifier, you may want to run `conda config --set changeps1 False` +`$CONDA_DEFAULT_ENV`が設定されている場合、`conda`モジュールは現在のcondaの環境を表示します。 Note: これはconda自身の プロンプト修飾子 を抑制しません。`conda config --set changeps1 False` で実行することができます。 ### オプション @@ -331,12 +334,12 @@ This module will only be shown in your prompt when one of the following files ar ### オプション -| 変数 | デフォルト | 説明 | -| ----------- | ------------- | ----------------------------------------------------- | -| `symbol` | `•NET "` | dotnetのバージョンを表示する前に使用される記号です。 | -| `style` | `"bold blue"` | モジュールのスタイルです。 | -| `heuristic` | `true` | Use faster version detection to keep starship snappy. | -| `disabled` | `false` | `dotnet`モジュールを無効にします。 | +| 変数 | デフォルト | 説明 | +| ----------- | ------------- | ------------------------------------ | +| `symbol` | `•NET "` | dotnetのバージョンを表示する前に使用される記号です。 | +| `style` | `"bold blue"` | モジュールのスタイルです。 | +| `heuristic` | `true` | より高速なバージョン検出を使用して、starshipの動作を維持します。 | +| `disabled` | `false` | `dotnet`モジュールを無効にします。 | ### 設定例 @@ -438,23 +441,37 @@ cherry_pick = "🍒 PICKING" ### オプション -| 変数 | デフォルト | 説明 | -| ----------------- | ------------ | ------------------------------ | -| `conflicted` | `"="` | このブランチにはマージの競合があります。 | -| `ahead` | `"⇡"` | このブランチは、追跡されるブランチよりも先にあります。 | -| `behind` | `"⇣"` | このブランチは、追跡されているブランチの背後にあります。 | -| `diverged` | `"⇕"` | このブランチは、追跡されているブランチから分岐しています。 | -| `untracked` | `"?"` | 作業ディレクトリに追跡されていないファイルがあります。 | -| `stashed` | `"$"` | ローカルリポジトリ用のスタッシュが存在します。 | -| `modified` | `"!"` | 作業ディレクトリにファイルの変更があります。 | -| `staged` | `"+"` | 新しいファイルがステージング領域に追加されました。 | -| `renamed` | `"»"` | 名前が変更されたファイルがステージング領域に追加されました。 | -| `deleted` | `"✘"` | ファイルの削除がステージング領域に追加されました。 | -| `show_sync_count` | `false` | 追跡されているブランチの先行/後方カウントを表示します。 | -| `prefix` | `[` | このモジュールの先頭に表示される文字列です。 | -| `suffix` | `]` | このモジュールの末尾に表示される文字列です。 | -| `style` | `"bold red"` | モジュールのスタイルです。 | -| `disabled` | `false` | `git_status`モジュールを無効にします。 | +| 変数 | デフォルト | 説明 | +| ------------------ | -------------------------- | ------------------------------------------------ | +| `conflicted` | `"="` | このブランチにはマージの競合があります。 | +| `conflicted_count` | [link](#git-status-counts) | Show and style the number of conflicts. | +| `ahead` | `"⇡"` | このブランチは、追跡されるブランチよりも先にあります。 | +| `behind` | `"⇣"` | このブランチは、追跡されているブランチの背後にあります。 | +| `diverged` | `"⇕"` | このブランチは、追跡されているブランチから分岐しています。 | +| `untracked` | `"?"` | 作業ディレクトリに追跡されていないファイルがあります。 | +| `untracked_count` | [link](#git-status-counts) | Show and style the number of untracked files. | +| `stashed` | `"$"` | ローカルリポジトリ用のスタッシュが存在します。 | +| `modified` | `"!"` | 作業ディレクトリにファイルの変更があります。 | +| `modified_count` | [link](#git-status-counts) | Show and style the number of modified files. | +| `staged` | `"+"` | 新しいファイルがステージング領域に追加されました。 | +| `staged_count` | [link](#git-status-counts) | Show and style the number of files staged files. | +| `renamed` | `"»"` | 名前が変更されたファイルがステージング領域に追加されました。 | +| `renamed_count` | [link](#git-status-counts) | Show and style the number of renamed files. | +| `deleted` | `"✘"` | ファイルの削除がステージング領域に追加されました。 | +| `deleted_count` | [link](#git-status-counts) | Show and style the number of deleted files. | +| `show_sync_count` | `false` | 追跡されているブランチの先行/後方カウントを表示します。 | +| `prefix` | `[` | このモジュールの先頭に表示される文字列です。 | +| `suffix` | `]` | このモジュールの末尾に表示される文字列です。 | +| `style` | `"bold red"` | モジュールのスタイルです。 | +| `disabled` | `false` | `git_status`モジュールを無効にします。 | + +#### Git Status Counts + +| 変数 | デフォルト | 説明 | +| --------- | ------- | ------------------------------------------------------ | +| `enabled` | `false` | Show the number of files | +| `style` | | Optionally style the count differently than the module | + ### 設定例 @@ -469,7 +486,10 @@ diverged = "😵" untracked = "🤷‍" stashed = "📦" modified = "📝" -staged = "➕" +staged.value = "++" +staged.style = "green" +staged_count.enabled = true +staged_count.style = "green" renamed = "👅" deleted = "🗑" ``` @@ -554,11 +574,9 @@ symbol = "+ " threshold = 4 ``` - ## Kubernetes -現在のKubernetesコンテキスト名と、設定されている場合は、kubeconfigファイルに基づいてネームスペースを表示します。 ネームスペースはkubeconfigファイルで設定する必要があります。`kubectl config set-context starship-cluster --namespace -astronaut`。 `$KUBECONFIG` 環境変数が設定されている場合、モジュールはそれを使用します `~/.kube/config` は使用しません。 +現在のKubernetesコンテキスト名と、設定されている場合は、kubeconfigファイルに基づいてネームスペースを表示します。 The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-cluster --namespace astronaut`. `$KUBECONFIG` 環境変数が設定されている場合、モジュールはそれを使用します `~/.kube/config` は使用しません。 ::: tip @@ -585,7 +603,6 @@ style = "dim green" disabled = false ``` - ## 改行 `line_break`モジュールは、プロンプトを2行に分割します。 @@ -842,15 +859,15 @@ symbol = "⚙️ " ### オプション -| 変数 | デフォルト | 説明 | -| ----------------- | ------------- | ------------------------------------------------------------------------------------------------------------------- | -| `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. | +| 変数 | デフォルト | 説明 | +| ----------------- | -------------- | ---------------------------------------------------------------------------------------------------------------- | +| `use_12hr` | `false` | 12時間のフォーマットを有効にします。 | +| `format` | この表の下を参照してください | 時刻のフォーマットに使用される[クロノフォーマット文字列](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) です。 | +| `style` | `bold yellow` | モジュールのスタイルです。 | +| `disabled` | `true` | `time`モジュールを無効にします。 | +| `utc_time_offset` | `local` | Sets the UTC offset to use. Range from -24 < x < 24. Allows floats to accommodate 30/45 minute timezone offsets. | -`use_12hr`が`true`の場合、`format`のデフォルトは`"%r"`です。 それ以外の場合、デフォルトは`"%T"`です。 Manually setting `format` will override the `use_12hr` setting. +`use_12hr`が`true`の場合、`format`のデフォルトは`"%r"`です。 それ以外の場合、デフォルトは`"%T"`です。 `format`を手動で設定すると、`use_12hr`の設定が上書きされます。 ### 設定例 @@ -874,7 +891,7 @@ utc_time_offset = -5 ### オプション -| Variable | Default | Description | +| 変数 | デフォルト | 説明 | | ------------- | --------------- | ------------------------- | | `style_root` | `"bold red"` | ユーザーがrootのときに使用されるスタイルです。 | | `style_user` | `"bold yellow"` | 非rootユーザーに使用されるスタイルです。 | diff --git a/docs/ja-JP/guide/README.md b/docs/ja-JP/guide/README.md index 7c570ec61..1e027a1af 100644 --- a/docs/ja-JP/guide/README.md +++ b/docs/ja-JP/guide/README.md @@ -101,7 +101,7 @@ - 閾値を超えた際の、コマンドの実行時間 - バックグラウンドジョブのインジケーター (`✦`) - 現在のKubernetesクラスタとネームスペース (`☸`) -- Current AWS profile (`☁️`) +- 現在のAWSプロファイル (`☁️`) ## 🚀 インストール @@ -153,9 +153,9 @@ ``` - #### Other x86-64 Linux Platforms + #### 他の x86-64 Linux プラットフォーム - Download a prebuilt binary and place in /usr/local/bin/ + ビルド済みのバイナリをダウンロードして、/usr/local/bin/ に配置します ```sh $ wget -q --show-progress https://github.com/starship/starship/releases/latest/download/starship-x86_64-unknown-linux-gnu.tar.gz @@ -201,7 +201,7 @@ #### Powershell - Add the following to the end of `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` (or `~/.config/powershell/Microsoft.PowerShell_profile.ps1` on -Nix): + `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` (それか Nix上の `~/.config/powershell/Microsoft.PowerShell_profile.ps1` )の末尾に以下を追加してください。 ```sh # ~\Documents\PowerShell\Profile.ps1 @@ -290,6 +290,10 @@ Starship の設定方法の詳細に関しては、[ドキュメント](https:// Carl Summers
Carl Summers

📖 + Yushan Lin
Yushan Lin

🌍 + Weihang Lo
Weihang Lo

🌍 + pinshan
pinshan

🌍 + Brian Low
Brian Low

💻 📖 ⚠️ diff --git a/docs/ru-RU/advanced-config/README.md b/docs/ru-RU/advanced-config/README.md index d5d27031f..50b4070af 100644 --- a/docs/ru-RU/advanced-config/README.md +++ b/docs/ru-RU/advanced-config/README.md @@ -59,7 +59,7 @@ precmd_functions+=(set_win_title) If you like the result, add these lines to your shell configuration file (`~/.bashrc` or `~/.zsrhc`) to make it permanent. -## Style Strings +## Стиль строк Style strings are a list of words, separated by whitespace. The words are not case sensitive (i.e. `bold` and `BoLd` are considered the same string). Each word can be one of the following: diff --git a/docs/ru-RU/config/README.md b/docs/ru-RU/config/README.md index e0100a59e..2cbb970a5 100644 --- a/docs/ru-RU/config/README.md +++ b/docs/ru-RU/config/README.md @@ -1,83 +1,86 @@ -# Configuration +# Конфигурация ::: tip -🔥 Configuration is currently being worked on. Many new configuration options will be available in coming releases. +🔥 Конфигурация все еще находится в стадии разработки. Много новых опций будут доступны в будущих версиях. ::: -To get started configuring starship, create the following file: `~/.config/starship.toml`. +Чтобы начать конфигурацию Starship, создайте следующий файл: `~/.config/starship.toml`. ```shell $ touch ~/.config/starship.toml ``` -All configuration for starship is done in this [TOML](https://github.com/toml-lang/toml) file: +Вся конфигурация Starship выполняется в этом файле [TOML](https://github.com/toml-lang/toml): ```toml -# Don't print a new line at the start of the prompt +# Не добавлять пустую строку в начале ввода add_newline = false -# Replace the "❯" symbol in the prompt with "➜" -[character] # The name of the module we are configuring is "character" -symbol = "➜" # The "symbol" segment is being set to "➜" +# Поменять символ "❯" на символ "➜" +[character] # Имя настраемого модуля - "character" +symbol = "➜" # Сегменту "symbol" присваеваем значение "➜" -# Disable the package module, hiding it from the prompt completely +# Отключить модуль пакетов, полностью скрывая его из терминала [package] disabled = true ``` -### Terminology +### Терминология -**Module**: A component in the prompt giving information based on contextual information from your OS. For example, the "nodejs" module shows the version of NodeJS that is currently installed on your computer, if your current directory is a NodeJS project. +**Модуль**: Компонент строки, дающий информацию на основе контекстной информации вашей ОС. Например, модуль "nodejs" показывает установленную версию NodeJS на вашем компьютере, если вы находитесь в директории проекта NodeJS. -**Segment**: Smaller sub-components that compose a module. For example, the "symbol" segment in the "nodejs" module contains the character that is shown before the version number (⬢ by default). +**Сегмент**: Меньшие подкомпоненты, составляющие модуль. Например, сегмент "symbol" в модуле "nodejs" хранит символ, показываемый перед версией NodeJS (⬢, по умолчанию). -Here is the representation of the node module. In the following example, "symbol" and "version" are segments within it. Every module also has a prefix and suffix that are the default terminal color. +Вот представление модуля "nodejs". В примере, "symbol" и "version" - его сегменты. Также, каждый модуль имеет префикс и суффикс, являющиеся цветом терминала по умолчанию. ``` [prefix] [symbol] [version] [suffix] "via " "⬢" "v10.4.1" "" ``` -### Style Strings +### Стиль строк -Most modules in starship allow you to configure their display styles. This is done with an entry (usually called `style`) which is a string specifying the configuration. Here are some examples of style strings along with what they do. For details on the full syntax, consult the [advanced config guide](/advanced-config/). +В Starship, большинство модулей позволяют настроить стили отображения. Это делается записью (обычно называется `style`), которая представляет собой строку, определяющую конфигурацию. Ниже приведены несколько примеров стилей строк, а также, их действия. Подробнее о полном синтаксисе можно прочитать в [расширенном разделе конфигурации](/advanced-config/). -- `"fg:green bg:blue"` sets green text on a blue background -- `"bg:blue fg:bright-green"` sets bright green text on a blue background -- `"bold fg:27"` sets bold text with [A