diff options
author | Matan Kushner <hello@matchai.dev> | 2021-12-21 00:05:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-20 16:05:59 -0500 |
commit | 5de3f18bcef92cabb2d7a4552abcff295422f26c (patch) | |
tree | ad30252ae3257835ba64e9721b7b8fb32aa23015 | |
parent | 006fbf0dd5b28f2d2f4f69a82c9a5a9a5344ac26 (diff) |
docs(i18n): new Crowdin updates (#3218)
81 files changed, 7641 insertions, 6253 deletions
diff --git a/docs/ar-SA/config/README.md b/docs/ar-SA/config/README.md index f561d0dca..7d894985e 100644 --- a/docs/ar-SA/config/README.md +++ b/docs/ar-SA/config/README.md @@ -61,9 +61,9 @@ Format strings are the format that a module prints all its variables with. Most #### Variable -A variable contains a `$` symbol followed by the name of the variable. The name of a variable only contains letters, numbers and `_`. +A variable contains a `$` symbol followed by the name of the variable. The name of a variable can only contain letters, numbers and `_`. -For example: +على سبيل المثال: - `$version` is a format string with a variable named `version`. - `$git_branch$git_commit` is a format string with two variables named `git_branch` and `git_commit`. @@ -100,24 +100,17 @@ Note that what styling looks like will be controlled by your terminal emulator. A conditional format string wrapped in `(` and `)` will not render if all variables inside are empty. -For example: +على سبيل المثال: - `(@$region)` will show nothing if the variable `region` is `None` or empty string, otherwise `@` followed by the value of region. - `(some text)` will always show nothing since there are no variables wrapped in the braces. - 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\] )`. -#### Escapable characters +#### Special characters -The following symbols have special usage in a format string. If you want to print the following symbols, you have to escape them with a backslash (`\`). +The following symbols have special usage in a format string and must be escaped: `$ \ [ ] ( )`. -- \$ -- \\ -- [ -- ] -- ( -- ) - -Note that `toml` has [its own escape syntax](https://github.com/toml-lang/toml#user-content-string). It is recommended to use a literal string (`''`) in your config. If you want to use a basic string (`""`), pay attention to escape the backslash `\`. +Note that TOML has [both basic strings and literal strings](https://toml.io/en/v1.0.0#string). It is recommended to use a literal string (surrounded by single quotes) in your config. If you want to use a basic string (surrounded by double quotes), you must escape the backslash itself (i.e. use `\\`). For example, when you want to print a `$` symbol on a new line, the following configs for `format` are equivalent: @@ -231,9 +224,11 @@ $memory_usage\ $aws\ $gcloud\ $openstack\ +$azure\ $env_var\ $crystal\ $custom\ +$sudo\ $cmd_duration\ $line_break\ $jobs\ @@ -274,7 +269,7 @@ When using [AWSume](https://awsu.me) the profile is read from the `AWSUME_PROFIL ### Variables -| Variable | Example | الوصف | +| Variable | مثال | الوصف | | --------- | ---------------- | ------------------------------------------- | | region | `ap-northeast-1` | The current AWS region | | profile | `astronauts` | The current AWS profile | @@ -325,6 +320,31 @@ style = "bold blue" symbol = "🅰 " ``` +## Azure + +The `azure` module shows the current Azure Subscription. This is based on showing the name of the default subscription, as defined in the `~/.azure/azureProfile.json` file. + +### Options + +| Variable | الافتراضي | الوصف | +| ---------- | ---------------------------------------- | ------------------------------------------ | +| `format` | `"on [$symbol($subscription)]($style) "` | The format for the Azure module to render. | +| `symbol` | `"ﴃ "` | The symbol used in the format. | +| `style` | `"blue bold"` | The style used in the format. | +| `disabled` | `true` | Disables the `azure` module. | + +### مثال + +```toml +# ~/.config/starship.toml + +[azure] +disabled = false +format = "on [$symbol($subscription)]($style) " +symbol = "ﴃ " +style = "blue bold" +``` + ## Battery The `battery` module shows how charged the device's battery is and its current charging status. The module is only visible when the device's battery is below 10%. @@ -342,7 +362,7 @@ The `battery` module shows how charged the device's battery is and its current c | `display` | [link](#battery-display) | Display threshold and style for the module. | | `disabled` | `false` | Disables the `battery` module. | -### Example +### مثال ```toml # ~/.config/starship.toml @@ -376,7 +396,7 @@ The `display` option is an array of the following table. | `charging_symbol` | `-` | Optional symbol displayed if display option is in use, defaults to battery's `charging_symbol` option. | | `discharging_symbol` | `-` | Optional symbol displayed if display option is in use, defaults to battery's `discharging_symbol` option. | -#### Example +#### مثال ```toml [[battery.display]] # "bold red" style and discharging_symbol when capacity is between 0% and 10% @@ -427,9 +447,9 @@ By default it only changes color. If you also want to change its shape take a lo ### Variables -| Variable | Example | الوصف | -| -------- | ------- | --------------------------------------------------------------------- | -| symbol | | A mirror of either `success_symbol`, `error_symbol` or `vicmd_symbol` | +| Variable | مثال | الوصف | +| -------- | ---- | --------------------------------------------------------------------- | +| symbol | | A mirror of either `success_symbol`, `error_symbol` or `vicmd_symbol` | ### Examples @@ -484,7 +504,7 @@ The `cmake` module shows the currently installed version of [CMake](https://cmak ### Variables -| Variable | Example | الوصف | +| Variable | مثال | الوصف | | --------- | --------- | ------------------------------------ | | version | `v3.17.3` | The version of cmake | | symbol | | Mirrors the value of option `symbol` | @@ -514,7 +534,7 @@ The `cobol` module shows the currently installed version of COBOL. By default, t ### Variables -| Variable | Example | الوصف | +| Variable | مثال | الوصف | | --------- | ---------- | ------------------------------------ | | version | `v3.1.2.0` | The version of `cobol` | | symbol | | Mirrors the value of option `symbol` | @@ -554,14 +574,14 @@ Showing desktop notifications requires starship to be built with `rust-notify` s ### Variables -| Variable | Example | الوصف | +| Variable | مثال | الوصف | | --------- | -------- | --------------------------------------- | | duration | `16m40s` | The time it took to execute the command | | style\* | | Mirrors the value of option `style` | \*: This variable can only be used as a part of a style string -### Example +### مثال ```toml # ~/.config/starship.toml @@ -594,7 +614,7 @@ This does not suppress conda's own prompt modifier, you may want to run `conda c ### Variables -| Variable | Example | الوصف | +| Variable | مثال | الوصف | | ----------- | ------------ | ------------------------------------ | | environment | `astronauts` | The current conda environment | | symbol | | Mirrors the value of option `symbol` | @@ -602,7 +622,7 @@ This does not suppress conda's own prompt modifier, you may want to run `conda c \*: This variable can only be used as a part of a style string -### Example +### مثال ```toml # ~/.config/starship.toml @@ -633,7 +653,7 @@ The `crystal` module shows the currently installed version of [Crystal](https:// ### Variables -| Variable | Example | الوصف | +| Variable | مثال | الوصف | | --------- | --------- | ------------------------------------ | | version | `v0.32.1` | The version of `crystal` | | symbol | | Mirrors the value of option `symbol` | @@ -641,7 +661,7 @@ The `crystal` module shows the currently installed version of [Crystal](https:// \*: This variable can only be used as a part of a style string -### Example +### مثال ```toml # ~/.config/starship.toml @@ -673,7 +693,7 @@ The `dart` module shows the currently installed version of [Dart](https://dart.d ### Variables -| Variable | Example | الوصف | +| Variable | مثال | الوصف | | --------- | -------- | ------------------------------------ | | version | `v2.8.4` | The version of `dart` | | symbol | | Mirrors the value of option `symbol` | @@ -681,7 +701,7 @@ The `dart` module shows the currently installed version of [Dart](https://dart.d \*: This variable can only be used as a part of a style string -### Example +### مثال ```toml # ~/.config/starship.toml @@ -710,13 +730,13 @@ The `deno` module shows you your currently installed version of [Deno](https://d ### Variables -| Variable | Example | الوصف | +| Variable | مثال | الوصف | | --------- | -------- | ------------------------------------ | | version | `v1.8.3` | The version of `deno` | | symbol | | Mirrors the value of option `symbol` | | style\* | | Mirrors the value of option `style` | -### Example +### مثال ```toml # ~/.config/starship.toml @@ -771,14 +791,14 @@ For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, an ### Variables -| Variable | Example | الوصف | +| Variable | مثال | الوصف | | --------- | --------------------- | ----------------------------------- | | path | `"D:/Projects"` | The current directory path | | style\* | `"black bold dimmed"` | Mirrors the value of option `style` | \*: This variable can only be used as a part of a style string -### Example +### مثال ```toml # ~/.config/starship.toml @@ -807,7 +827,7 @@ The `docker_context` module shows the currently active [Docker context](https:// ### Variables -| Variable | Example | الوصف | +| Variable | مثال | الوصف | | --------- | -------------- | ------------------------------------ | | context | `test_context` | The current docker context | | symbol | | Mirrors the value of option `symbol` | @@ -815,7 +835,7 @@ The `docker_context` module shows the currently active [Docker context](https:// \*: This variable can only be used as a part of a style string -### Example +### مثال ```toml # ~/.config/starship.toml @@ -861,7 +881,7 @@ The module will also show the Target Framework Moniker (<https://docs.microsoft. ### Variables -| Variable | Example | الوصف | +| Variable | مثال | الوصف | | --------- | ---------------- | ------------------------------------------------------------------ | | version | `v3.1.201` | The version of `dotnet` sdk | | tfm | `netstandard2.0` | The Target Framework Moniker that the current project is targeting | @@ -870,7 +890,7 @@ The module will also show the Target Framework Moniker (<https://docs.microsoft. \*: This variable can only be used as a part of a style string -### Example +### مثال ```toml # ~/.config/starship.toml @@ -902,7 +922,7 @@ The `elixir` module shows the currently installed version of [Elixir](https://el ### Variables -| Variable | Example | الوصف | +| Variable | مثال | الوصف | | ----------- | ------- | ------------------------------------ | | version | `v1.10` | The version of `elixir` | | otp_version | | The otp version of `elixir` | @@ -911,7 +931,7 @@ The `elixir` module shows the currently installed version of [Elixir](https://el \*: This variable can only be used as a part of a style string -### Example +### مثال ```toml # ~/.config/starship.toml @@ -945,7 +965,7 @@ The `elm` module shows the currently installed version of [Elm](https://elm-lang ### Variables -| Variable | Example | الوصف | +| Variable | مثال | الوصف | | --------- | --------- | ------------------------------------ | | version | `v0.19.1` | The version of `elm` | | symbol | | Mirrors the value of option `symbol` | @@ -953,7 +973,7 @@ The `elm` module shows the currently installed version of [Elm](https://elm-lang \*: This variable can only be used as a part of a style string -### Example +### مثال ```toml # ~/.config/starship.toml @@ -993,7 +1013,7 @@ default = "unknown user" ### Variables -| Variable | Example | الوصف | +| Variable | مثال | الوصف | | --------- | ------------------------------------------- | ------------------------------------------ | | env_value | `Windows NT` (if _variable_ would be `$OS`) | The environment value of option `variable` | | symbol | | Mirrors the value of option `symbol` | @@ -1001,7 +1021,7 @@ default = "unknown user" \*: This variable can only be used as a part of a style string -### Example +### مثال ```toml # ~/.config/starship.toml @@ -1044,7 +1064,7 @@ The `erlang` module shows the currently installed version of [Erlang/OTP](https: ### Variables -| Variable | Example | الوصف | +| Variable | مثال | الوصف | | --------- | --------- | ------------------------------------ | | version | `v22.1.3` | The version of `erlang` | | symbol | | Mirrors the value of option `symbol` | @@ -1052,7 +1072,7 @@ The `erlang` module shows the currently installed version of [Erlang/OTP](https: \*: This variable can only be used as a part of a style string -### Example +### مثال ```toml # ~/.config/starship.toml @@ -1073,7 +1093,7 @@ The `fill` module fills any extra space on the line with a symbol. If multiple ` | `style` | `"bold black"` | The style for the module. | | `disabled` | `false` | Disables the `fill` module | -### Example +### مثال ```toml # ~/.config/starship.toml @@ -1107,7 +1127,7 @@ The `gcloud` module shows the current configuration for [`gcloud`](https://cloud ### Variables -| Variable | Example | الوصف | +| Variable | مثال | الوصف | | --------- | ------------- | ------------------------------------------------------------------ | | region | `us-central1` | The current GCP region | | account | `foo` | The current GCP profile | @@ -1171,7 +1191,7 @@ The `git_branch` module shows the active branch of the repo in your current dire ### Variables -| Variable | Example | الوصف | +| Variable | مثال | الوصف | | ------------- | -------- | --------------- |