mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
docs(i18n): Update translations (#683)
This commit is contained in:
+99
-19
@@ -89,8 +89,10 @@ prompt_order = [
|
||||
"kubernetes",
|
||||
"directory",
|
||||
"git_branch",
|
||||
"git_commit",
|
||||
"git_state",
|
||||
"git_status",
|
||||
"hg_branch",
|
||||
"package",
|
||||
"dotnet",
|
||||
"golang",
|
||||
@@ -121,7 +123,7 @@ prompt_order = [
|
||||
|
||||
| Переменная | По умолчанию | Описание |
|
||||
| ----------------- | --------------- | ---------------------------------------------------------------- |
|
||||
| `symbol` | `"☁️ "` | Символ перед отображением текущего профиля AWS. |
|
||||
| `symbol` | `"☁️ "` | Символ перед отображением текущего профиля AWS. |
|
||||
| `style` | `"bold yellow"` | Стиль модуля. |
|
||||
| `disabled` | `false` | Отключение модуля `AWS`. |
|
||||
| `displayed_items` | `all` | Выбор элементов. Возможные значения [`all`, `profile`, `region`] |
|
||||
@@ -339,8 +341,8 @@ truncation_length = 8
|
||||
| Переменная | По умолчанию | Описание |
|
||||
| ----------- | ------------- | ----------------------------------------------------------------- |
|
||||
| `symbol` | `"•NET "` | Символ перед отображением текущей версии dotnet. |
|
||||
| `style` | `"bold blue"` | Стиль модуля. |
|
||||
| `heuristic` | `true` | Использовать быстрое определение версии, для сохранения скорости. |
|
||||
| `style` | `"bold blue"` | Стиль модуля. |
|
||||
| `disabled` | `false` | Отключает модуль `dotnet`. |
|
||||
|
||||
### Пример
|
||||
@@ -370,7 +372,7 @@ The `env_var` module displays the current value of a selected environment variab
|
||||
| `по умолчанию` | | The default value to be displayed when the selected variable is not defined. |
|
||||
| `prefix` | `""` | Prefix to display immediately before the variable value. |
|
||||
| `suffix` | `""` | Suffix to display immediately after the variable value. |
|
||||
| `style` | `"dimmed black"` | The style for the module. |
|
||||
| `style` | `"dimmed black"` | Стиль модуля. |
|
||||
| `disabled` | `false` | Disables the `env_var` module. |
|
||||
|
||||
### Пример
|
||||
@@ -394,7 +396,7 @@ The `git_branch` module shows the active branch of the repo in your current dire
|
||||
| `symbol` | `" "` | The symbol used before the branch name of the repo in your current directory. |
|
||||
| `truncation_length` | `2^63 - 1` | Truncates a git branch to X graphemes |
|
||||
| `truncation_symbol` | `"…"` | The symbol used to indicate a branch name was truncated. You can use "" for no symbol |
|
||||
| `style` | `"bold purple"` | The style for the module. |
|
||||
| `style` | `"bold purple"` | Стиль модуля. |
|
||||
| `disabled` | `false` | Disables the `git_branch` module. |
|
||||
|
||||
### Пример
|
||||
@@ -408,6 +410,36 @@ truncation_length = 4
|
||||
truncation_symbol = ""
|
||||
```
|
||||
|
||||
## Git Commit
|
||||
|
||||
The `git_commit` module shows the active branch of the repo in your current directory.
|
||||
|
||||
::: tip
|
||||
|
||||
This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
|
||||
|
||||
:::
|
||||
|
||||
### Опции
|
||||
|
||||
| Переменная | По умолчанию | Описание |
|
||||
| -------------------- | -------------- | ------------------------------------------------ |
|
||||
| `commit_hash_length` | `7` | The length of the displayed git commit hash. |
|
||||
| `prefix` | `(` | Prefix to display immediately before git commit. |
|
||||
| `suffix` | `)` | Suffix to display immediately after git commit. |
|
||||
| `style` | `"bold green"` | Стиль модуля. |
|
||||
| `disabled` | `true` | Disables the `git_commit` module. |
|
||||
|
||||
### Пример
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[git_commit]
|
||||
disabled = false
|
||||
commit_hash_length = 4
|
||||
```
|
||||
|
||||
## Git State
|
||||
|
||||
The `git_state` module will show in directories which are part of a git repository, and where there is an operation in progress, such as: _REBASING_, _BISECTING_, etc. If there is progress information (e.g., REBASING 3/10), that information will be shown too.
|
||||
@@ -424,7 +456,7 @@ The `git_state` module will show in directories which are part of a git reposito
|
||||
| `am` | `"AM"` | The text displayed when an `apply-mailbox` (`git am`) is in progress. |
|
||||
| `am_or_rebase` | `"AM/REBASE"` | The text displayed when an ambiguous `apply-mailbox` or `rebase` is in progress. |
|
||||
| `progress_divider` | `"/"` | The symbol or text which will separate the current and total progress amounts. (e.g., `" of "`, for `"3 of 10"`) |
|
||||
| `style` | `"bold yellow"` | The style for the module. |
|
||||
| `style` | `"bold yellow"` | Стиль модуля. |
|
||||
| `disabled` | `false` | Disables the `git_state` module. |
|
||||
|
||||
### Пример
|
||||
@@ -464,7 +496,7 @@ The `git_status` module shows symbols representing the state of the repo in your
|
||||
| `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. |
|
||||
| `style` | `"bold red"` | Стиль модуля. |
|
||||
| `disabled` | `false` | Disables the `git_status` module. |
|
||||
|
||||
#### Git Status Counts
|
||||
@@ -474,7 +506,6 @@ The `git_status` module shows symbols representing the state of the repo in your
|
||||
| `enabled` | `false` | Show the number of files |
|
||||
| `style` | | Optionally style the count differently than the module |
|
||||
|
||||
|
||||
### Пример
|
||||
|
||||
```toml
|
||||
@@ -513,7 +544,7 @@ The `golang` module shows the currently installed version of Golang. The module
|
||||
| Переменная | По умолчанию | Описание |
|
||||
| ---------- | ------------- | -------------------------------------------------------- |
|
||||
| `symbol` | `"🐹 "` | The symbol used before displaying the version of Golang. |
|
||||
| `style` | `"bold cyan"` | The style for the module. |
|
||||
| `style` | `"bold cyan"` | Стиль модуля. |
|
||||
| `disabled` | `false` | Disables the `golang` module. |
|
||||
|
||||
### Пример
|
||||
@@ -525,6 +556,31 @@ The `golang` module shows the currently installed version of Golang. The module
|
||||
symbol = "🏎💨 "
|
||||
```
|
||||
|
||||
## Mercurial Branch
|
||||
|
||||
The `hg_branch` module shows the active branch of the repo in your current directory.
|
||||
|
||||
### Опции
|
||||
|
||||
| Переменная | По умолчанию | Описание |
|
||||
| ------------------- | --------------- | -------------------------------------------------------------------------------------------- |
|
||||
| `symbol` | `" "` | The symbol used before the hg bookmark or branch name of the repo in your current directory. |
|
||||
| `truncation_length` | `2^63 - 1` | Truncates the hg branch name to X graphemes |
|
||||
| `truncation_symbol` | `"…"` | The symbol used to indicate a branch name was truncated. |
|
||||
| `style` | `"bold purple"` | Стиль модуля. |
|
||||
| `disabled` | `true` | Disables the `hg_branch` module. |
|
||||
|
||||
### Пример
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[hg_branch]
|
||||
symbol = "🌱 "
|
||||
truncation_length = 4
|
||||
truncation_symbol = ""
|
||||
```
|
||||
|
||||
## Hostname
|
||||
|
||||
The `hostname` module shows the system hostname.
|
||||
@@ -537,7 +593,7 @@ The `hostname` module shows the system hostname.
|
||||
| `prefix` | `""` | Prefix to display immediately before the hostname. |
|
||||
| `suffix` | `""` | Suffix to display immediately after the hostname. |
|
||||
| `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. |
|
||||
| `style` | `"bold dimmed green"` | Стиль модуля. |
|
||||
| `disabled` | `false` | Disables the `hostname` module. |
|
||||
|
||||
### Пример
|
||||
@@ -563,7 +619,7 @@ The `jobs` module shows the current number of jobs running. The module will be s
|
||||
| ----------- | ------------- | ----------------------------------------------------- |
|
||||
| `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. |
|
||||
| `style` | `"bold blue"` | Стиль модуля. |
|
||||
| `disabled` | `false` | Disables the `jobs` module. |
|
||||
|
||||
### Пример
|
||||
@@ -591,7 +647,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
|
||||
| Переменная | По умолчанию | Описание |
|
||||
| ---------- | ------------- | --------------------------------------------------- |
|
||||
| `symbol` | `"☸ "` | The symbol used before displaying the Cluster info. |
|
||||
| `style` | `"bold blue"` | The style for the module. |
|
||||
| `style` | `"bold blue"` | Стиль модуля. |
|
||||
| `disabled` | `true` | Disables the `kubernetes` module |
|
||||
|
||||
### Пример
|
||||
@@ -635,7 +691,7 @@ The `nix_shell` module shows the nix-shell environment. The module will be shown
|
||||
| `use_name` | `false` | Display the name of the nix-shell. |
|
||||
| `impure_msg` | `impure` | Customize the "impure" msg. |
|
||||
| `pure_msg` | `pure` | Customize the "pure" msg. |
|
||||
| `style` | `"bold red"` | The style for the module. |
|
||||
| `style` | `"bold red"` | Стиль модуля. |
|
||||
| `disabled` | `false` | Disables the `nix_shell` module. |
|
||||
|
||||
### Пример
|
||||
@@ -671,7 +727,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
|
||||
| `threshold` | `75` | Hide the memory usage unless it exceeds this percentage. |
|
||||
| `symbol` | `"🐏 "` | The symbol used before displaying the memory usage. |
|
||||
| `separator` | `" | "` | The symbol or text that will seperate the ram and swap usage. |
|
||||
| `style` | `"bold dimmed white"` | The style for the module. |
|
||||
| `style` | `"bold dimmed white"` | Стиль модуля. |
|
||||
| `disabled` | `true` | Disables the `memory_usage` module. |
|
||||
|
||||
### Пример
|
||||
@@ -700,7 +756,7 @@ The `java` module shows the currently installed version of Java. The module will
|
||||
| Переменная | По умолчанию | Описание |
|
||||
| ---------- | -------------- | ------------------------------------------------------ |
|
||||
| `symbol` | `"☕ "` | The symbol used before displaying the version of Java. |
|
||||
| `style` | `"dimmed red"` | The style for the module. |
|
||||
| `style` | `"dimmed red"` | Стиль модуля. |
|
||||
| `disabled` | `false` | Disables the `java` module. |
|
||||
|
||||
### Пример
|
||||
@@ -725,7 +781,7 @@ The `nodejs` module shows the currently installed version of NodeJS. The module
|
||||
| Переменная | По умолчанию | Описание |
|
||||
| ---------- | -------------- | -------------------------------------------------------- |
|
||||
| `symbol` | `"⬢ "` | The symbol used before displaying the version of NodeJS. |
|
||||
| `style` | `"bold green"` | The style for the module. |
|
||||
| `style` | `"bold green"` | Стиль модуля. |
|
||||
| `disabled` | `false` | Disables the `nodejs` module. |
|
||||
|
||||
### Пример
|
||||
@@ -752,7 +808,7 @@ The `package` module is shown when the current directory is the repository for a
|
||||
| Переменная | По умолчанию | Описание |
|
||||
| ---------- | ------------ | ---------------------------------------------------------- |
|
||||
| `symbol` | `"📦 "` | The symbol used before displaying the version the package. |
|
||||
| `style` | `"bold red"` | The style for the module. |
|
||||
| `style` | `"bold red"` | Стиль модуля. |
|
||||
| `disabled` | `false` | Disables the `package` module. |
|
||||
|
||||
### Пример
|
||||
@@ -764,6 +820,30 @@ The `package` module is shown when the current directory is the repository for a
|
||||
symbol = "🎁 "
|
||||
```
|
||||
|
||||
## PHP
|
||||
|
||||
The `php` module shows the currently installed version of PHP. The module will be shown if any of the following conditions are met:
|
||||
|
||||
- The current directory contains a `composer.json` file
|
||||
- The current directory contains a `.php` file
|
||||
|
||||
### Опции
|
||||
|
||||
| Переменная | По умолчанию | Описание |
|
||||
| ---------- | ------------ | ----------------------------------------------------- |
|
||||
| `symbol` | `"🐘 "` | The symbol used before displaying the version of PHP. |
|
||||
| `style` | `"bold red"` | Стиль модуля. |
|
||||
| `disabled` | `false` | Disables the `php` module. |
|
||||
|
||||
### Пример
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[php]
|
||||
symbol = "🔹 "
|
||||
```
|
||||
|
||||
## Python
|
||||
|
||||
The `python` module shows the currently installed version of Python.
|
||||
@@ -789,7 +869,7 @@ The module will be shown if any of the following conditions are met:
|
||||
| `symbol` | `"🐍 "` | The symbol used before displaying the version of Python. |
|
||||
| `pyenv_version_name` | `false` | Use pyenv to get Python version |
|
||||
| `pyenv_prefix` | `"pyenv "` | Prefix before pyenv version display (default display is `pyenv MY_VERSION`) |
|
||||
| `style` | `"bold yellow"` | The style for the module. |
|
||||
| `style` | `"bold yellow"` | Стиль модуля. |
|
||||
| `disabled` | `false` | Disables the `python` module. |
|
||||
|
||||
### Пример
|
||||
@@ -815,7 +895,7 @@ The `ruby` module shows the currently installed version of Ruby. The module will
|
||||
| Переменная | По умолчанию | Описание |
|
||||
| ---------- | ------------ | ------------------------------------------------------ |
|
||||
| `symbol` | `"💎 "` | The symbol used before displaying the version of Ruby. |
|
||||
| `style` | `"bold red"` | The style for the module. |
|
||||
| `style` | `"bold red"` | Стиль модуля. |
|
||||
| `disabled` | `false` | Disables the `ruby` module. |
|
||||
|
||||
### Пример
|
||||
@@ -839,7 +919,7 @@ The `rust` module shows the currently installed version of Rust. The module will
|
||||
| Переменная | По умолчанию | Описание |
|
||||
| ---------- | ------------ | ------------------------------------------------------ |
|
||||
| `symbol` | `"🦀 "` | The symbol used before displaying the version of Rust. |
|
||||
| `style` | `"bold red"` | The style for the module. |
|
||||
| `style` | `"bold red"` | Стиль модуля. |
|
||||
| `disabled` | `false` | Disables the `rust` module. |
|
||||
|
||||
### Пример
|
||||
|
||||
Reference in New Issue
Block a user