Skip to content

Commit cc32c72

Browse files
authored
docs(i18n): New Crowdin updates (starship#2834)
1 parent 9f337d1 commit cc32c72

File tree

56 files changed

+1658
-503
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1658
-503
lines changed

docs/ar-SA/README.md

+13
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,16 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
138138

139139
eval `starship init tcsh`
140140
```
141+
142+
#### Nushell
143+
144+
::: warning This will change in the future. Only nu version v0.33 or higher is supported. ::: Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
145+
146+
```toml
147+
startup = [
148+
"mkdir ~/.cache/starship",
149+
"starship init nu | save ~/.cache/starship/init.nu",
150+
"source ~/.cache/starship/init.nu"
151+
]
152+
prompt = "starship_prompt"
153+
```

docs/ar-SA/config/README.md

+47-6
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ A conditional format string wrapped in `(` and `)` will not render if all variab
102102

103103
For example:
104104

105-
- `(@$region)` will show nothing if the variable `region` is `None`, otherwise `@` followed by the value of region.
105+
- `(@$region)` will show nothing if the variable `region` is `None` or empty string, otherwise `@` followed by the value of region.
106106
- `(some text)` will always show nothing since there are no variables wrapped in the braces.
107107
- When `$all` is a shortcut for `\[$a$b\]`, `($all)` will show nothing only if `$a` and `$b` are both `None`. This works the same as `(\[$a$b\] )`.
108108

@@ -185,6 +185,7 @@ $vcsh\
185185
$git_branch\
186186
$git_commit\
187187
$git_state\
188+
$git_metrics\
188189
$git_status\
189190
$hg_branch\
190191
$docker_context\
@@ -391,7 +392,7 @@ By default it only changes color. If you also want to change its shape take a lo
391392

392393
::: warning
393394

394-
`error_symbol` is not supported on elvish shell.
395+
`error_symbol` is not supported on elvish and nu shell.
395396

396397
:::
397398

@@ -745,7 +746,7 @@ truncation_symbol = "…/"
745746

746747
## Docker Context
747748

748-
The `docker_context` module shows the currently active [Docker context](https://docs.docker.com/engine/context/working-with-contexts/) if it's not set to `default`.
749+
The `docker_context` module shows the currently active [Docker context](https://docs.docker.com/engine/context/working-with-contexts/) if it's not set to `default` or if the `DOCKER_HOST` or `DOCKER_CONTEXT` environment variables are set (as they are meant to override the context in use).
749750

750751
### Options
751752

@@ -804,7 +805,7 @@ The module will also show the Target Framework Moniker (<https://docs.microsoft.
804805

805806
| Option | Default | Description |
806807
| ------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
807-
| `format` | `"[$symbol($version )(🎯 $tfm )]($style)"` | The format for the module. |
808+
| `format` | `"via [$symbol($version )(🎯 $tfm )]($style)"` | The format for the module. |
808809
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
809810
| `symbol` | `".NET "` | The symbol used before displaying the version of dotnet. |
810811
| `heuristic` | `true` | Use faster version detection to keep starship snappy. |
@@ -1169,6 +1170,46 @@ format = '[\($state( $progress_current of $progress_total)\)]($style) '
11691170
cherry_pick = "[🍒 PICKING](bold red)"
11701171
```
11711172

1173+
## Git Metrics
1174+
1175+
The `git_metrics` module will show the number of added and deleted lines in the current git repository.
1176+
1177+
::: tip
1178+
1179+
This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
1180+
1181+
:::
1182+
1183+
### Options
1184+
1185+
| Option | Default | Description |
1186+
| --------------- | -------------------------------------------------------- | ---------------------------------- |
1187+
| `added_style` | `"bold green"` | The style for the added count. |
1188+
| `deleted_style` | `"bold red"` | The style for the deleted count. |
1189+
| `format` | `'[+$added]($added_style) [-$deleted]($deleted_style) '` | The format for the module. |
1190+
| `disabled` | `true` | Disables the `git_metrics` module. |
1191+
1192+
### Variables
1193+
1194+
| Variable | Example | Description |
1195+
| ----------------- | ------- | ------------------------------------------- |
1196+
| added | `1` | The current number of added lines |
1197+
| deleted | `2` | The current number of deleted lines |
1198+
| added_style\* | | Mirrors the value of option `added_style` |
1199+
| deleted_style\* | | Mirrors the value of option `deleted_style` |
1200+
1201+
\*: This variable can only be used as a part of a style string
1202+
1203+
### Example
1204+
1205+
```toml
1206+
# ~/.config/starship.toml
1207+
1208+
[git_metrics]
1209+
added_style = "bold blue"
1210+
format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
1211+
```
1212+
11721213
## Git Status
11731214

11741215
The `git_status` module shows symbols representing the state of the repo in your current directory.
@@ -1416,7 +1457,7 @@ The `jobs` module shows the current number of jobs running. The module will be s
14161457

14171458
::: warning
14181459

1419-
This module is not supported on tcsh.
1460+
This module is not supported on tcsh and nu.
14201461

14211462
:::
14221463

@@ -2505,7 +2546,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
25052546

25062547
:::
25072548

2508-
::: warning This module is not supported on elvish shell. :::
2549+
::: warning This module is not supported on elvish and nu shell. :::
25092550

25102551
### Options
25112552

docs/ar-SA/guide/README.md

+14
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,20 @@
263263
eval `starship init tcsh`
264264
```
265265

266+
267+
#### Nushell
268+
269+
**Warning** This will change in the future. Only nu version v0.33 or higher is supported. Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
270+
271+
```toml
272+
startup = [
273+
"mkdir ~/.cache/starship",
274+
"starship init nu | save ~/.cache/starship/init.nu",
275+
"source ~/.cache/starship/init.nu"
276+
]
277+
prompt = "starship_prompt"
278+
```
279+
266280
## 🤝 Contributing
267281

268282
We are always looking for contributors of **all skill levels**! If you're looking to ease your way into the project, try out a [good first issue](https://github.com/starship/starship/labels/🌱%20good%20first%20issue).

docs/ckb-IR/README.md

+13
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,16 @@ description: 'Starship: یەکێ لە promptـە سوکەڵە، خێرا، و ب
138138

139139
eval `starship init tcsh`
140140
```
141+
142+
#### Nushell
143+
144+
::: warning This will change in the future. Only nu version v0.33 or higher is supported. ::: Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
145+
146+
```toml
147+
startup = [
148+
"mkdir ~/.cache/starship",
149+
"starship init nu | save ~/.cache/starship/init.nu",
150+
"source ~/.cache/starship/init.nu"
151+
]
152+
prompt = "starship_prompt"
153+
```

docs/ckb-IR/config/README.md

+47-6
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ A conditional format string wrapped in `(` and `)` will not render if all variab
102102

103103
For example:
104104

105-
- `(@$region)` will show nothing if the variable `region` is `None`, otherwise `@` followed by the value of region.
105+
- `(@$region)` will show nothing if the variable `region` is `None` or empty string, otherwise `@` followed by the value of region.
106106
- `(some text)` will always show nothing since there are no variables wrapped in the braces.
107107
- When `$all` is a shortcut for `\[$a$b\]`, `($all)` will show nothing only if `$a` and `$b` are both `None`. This works the same as `(\[$a$b\] )`.
108108

@@ -185,6 +185,7 @@ $vcsh\
185185
$git_branch\
186186
$git_commit\
187187
$git_state\
188+
$git_metrics\
188189
$git_status\
189190
$hg_branch\
190191
$docker_context\
@@ -391,7 +392,7 @@ By default it only changes color. If you also want to change its shape take a lo
391392

392393
::: warning
393394

394-
`error_symbol` is not supported on elvish shell.
395+
`error_symbol` is not supported on elvish and nu shell.
395396

396397
:::
397398

@@ -745,7 +746,7 @@ truncation_symbol = "…/"
745746

746747
## Docker Context
747748

748-
The `docker_context` module shows the currently active [Docker context](https://docs.docker.com/engine/context/working-with-contexts/) if it's not set to `default`.
749+
The `docker_context` module shows the currently active [Docker context](https://docs.docker.com/engine/context/working-with-contexts/) if it's not set to `default` or if the `DOCKER_HOST` or `DOCKER_CONTEXT` environment variables are set (as they are meant to override the context in use).
749750

750751
### Options
751752

@@ -804,7 +805,7 @@ The module will also show the Target Framework Moniker (<https://docs.microsoft.
804805

805806
| Option | Default | Description |
806807
| ------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
807-
| `format` | `"[$symbol($version )(🎯 $tfm )]($style)"` | The format for the module. |
808+
| `format` | `"via [$symbol($version )(🎯 $tfm )]($style)"` | The format for the module. |
808809
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
809810
| `symbol` | `".NET "` | The symbol used before displaying the version of dotnet. |
810811
| `heuristic` | `true` | Use faster version detection to keep starship snappy. |
@@ -1169,6 +1170,46 @@ format = '[\($state( $progress_current of $progress_total)\)]($style) '
11691170
cherry_pick = "[🍒 PICKING](bold red)"
11701171
```
11711172

1173+
## Git Metrics
1174+
1175+
The `git_metrics` module will show the number of added and deleted lines in the current git repository.
1176+
1177+
::: tip
1178+
1179+
This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
1180+
1181+
:::
1182+
1183+
### Options
1184+
1185+
| Option | Default | Description |
1186+
| --------------- | -------------------------------------------------------- | ---------------------------------- |
1187+
| `added_style` | `"bold green"` | The style for the added count. |
1188+
| `deleted_style` | `"bold red"` | The style for the deleted count. |
1189+
| `format` | `'[+$added]($added_style) [-$deleted]($deleted_style) '` | The format for the module. |
1190+
| `disabled` | `true` | Disables the `git_metrics` module. |
1191+
1192+
### Variables
1193+
1194+
| Variable | Example | Description |
1195+
| ----------------- | ------- | ------------------------------------------- |
1196+
| added | `1` | The current number of added lines |
1197+
| deleted | `2` | The current number of deleted lines |
1198+
| added_style\* | | Mirrors the value of option `added_style` |
1199+
| deleted_style\* | | Mirrors the value of option `deleted_style` |
1200+
1201+
\*: This variable can only be used as a part of a style string
1202+
1203+
### Example
1204+
1205+
```toml
1206+
# ~/.config/starship.toml
1207+
1208+
[git_metrics]
1209+
added_style = "bold blue"
1210+
format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
1211+
```
1212+
11721213
## Git Status
11731214

11741215
The `git_status` module shows symbols representing the state of the repo in your current directory.
@@ -1416,7 +1457,7 @@ The `jobs` module shows the current number of jobs running. The module will be s
14161457

14171458
::: warning
14181459

1419-
This module is not supported on tcsh.
1460+
This module is not supported on tcsh and nu.
14201461

14211462
:::
14221463

@@ -2505,7 +2546,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
25052546

25062547
:::
25072548

2508-
::: warning This module is not supported on elvish shell. :::
2549+
::: warning This module is not supported on elvish and nu shell. :::
25092550

25102551
### Options
25112552

docs/ckb-IR/guide/README.md

+14
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,20 @@
259259
eval `starship init tcsh`
260260
```
261261

262+
263+
#### Nushell
264+
265+
**Warning** This will change in the future. Only nu version v0.33 or higher is supported. Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
266+
267+
```toml
268+
startup = [
269+
"mkdir ~/.cache/starship",
270+
"starship init nu | save ~/.cache/starship/init.nu",
271+
"source ~/.cache/starship/init.nu"
272+
]
273+
prompt = "starship_prompt"
274+
```
275+
262276
## 🤝 بەژداریکردن
263277

264278
ئێمە هەموو کات ئەگەڕێین بۆ بەژداریکەرێک لە هەر **ئاست و توانایەکدا بێت**! ئەگەر بەدوای ئەوەوەی کە بێیتە ئەم پڕۆژەیەوە [good first issue](https://github.com/starship/starship/labels/🌱%20good%20first%20issue) تاقیبکەرەوە.

docs/de-DE/README.md

+13
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,16 @@ description: Starship ist eine minimale, super schnelle, und extrem anpassbare P
138138

139139
eval `starship init tcsh`
140140
```
141+
142+
#### Nushell
143+
144+
::: warning This will change in the future. Only nu version v0.33 or higher is supported. ::: Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
145+
146+
```toml
147+
startup = [
148+
"mkdir ~/.cache/starship",
149+
"starship init nu | save ~/.cache/starship/init.nu",
150+
"source ~/.cache/starship/init.nu"
151+
]
152+
prompt = "starship_prompt"
153+
```

0 commit comments

Comments
 (0)