Skip to content

Commit

Permalink
docs(i18n): new Crowdin updates (starship#4355)
Browse files Browse the repository at this point in the history
  • Loading branch information
matchai authored Oct 15, 2022
1 parent dfc9cf6 commit 74951e6
Show file tree
Hide file tree
Showing 89 changed files with 9,214 additions and 2,495 deletions.
9 changes: 4 additions & 5 deletions docs/ar-SA/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
home: true
heroImage: /logo.svg
heroText:
tagline: The minimal, blazing-fast, and infinitely customizable prompt for any shell!
tagline: التخصيص البسيط و السريع و الغير محدود لي ال"shell"!
actionText: البدء مع Starship ←
actionLink: ./guide/
features:
Expand Down Expand Up @@ -55,11 +55,10 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
```sh
brew install starship
```

بإستخدام [Scoop](https://scoop.sh):
With [Winget](https://github.com/microsoft/winget-cli):

```powershell
scoop install starship
winget install starship
```

1. أضف ما يلي إلى ملف تكوين موجه الأوامر الخاص بك:
Expand Down Expand Up @@ -179,7 +178,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p

#### Cmd

You need to use [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) with Cmd. Add the following to a file `starship.lua` and place this file in Clink scripts directory:
عليك بإستخدام [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) مع Cmd. Add the following to a file `starship.lua` and place this file in Clink scripts directory:

```lua
-- starship.lua
Expand Down
26 changes: 26 additions & 0 deletions docs/ar-SA/advanced-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,32 @@ end
load(io.popen('starship init cmd'):read("*a"))()
```

## TransientPrompt and TransientRightPrompt in Fish

It is possible to replace the previous-printed prompt with a custom string. This is useful in cases where all the prompt information is not always needed. To enable this, run `enable_transience` in the shell session. To make it permanent, put this statement in your `~/.config/fish/config.fish`. Transience can be disabled on-the-fly with `disable_transience`.

Note that in case of Fish, the transient prompt is only printed if the commandline is non-empty, and syntactically correct.

- By default, the left side of input gets replaced with a bold-green ``. To customize this, define a new function called `starship_transient_prompt_func`. For example, to display Starship's `character` module here, you would do

```fish
function starship_transient_prompt_func
starship module character
end
starship init fish | source
enable_transience
```

- By default, the right side of input is empty. To customize this, define a new function called `starship_transient_rprompt_func`. For example, to display the time at which the last command was started here, you would do

```fish
function starship_transient_rprompt_func
starship module time
end
starship init fish | source
enable_transience
```

## Custom pre-prompt and pre-execution Commands in Cmd

Clink provides extremely flexible APIs to run pre-prompt and pre-exec commands in Cmd shell. It is fairly simple to use with Starship. Make the following changes to your `starship.lua` file as per your requirements:
Expand Down
282 changes: 167 additions & 115 deletions docs/ar-SA/config/README.md

Large diffs are not rendered by default.

61 changes: 30 additions & 31 deletions docs/ar-SA/guide/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,17 +150,17 @@
align="right"
/>

**The minimal, blazing-fast, and infinitely customizable prompt for any shell!**
**التخصيص البسيط و السريع و الغير محدود لي ال"shell"!**

- **سريع:** إنها سريعة – _سريعة_ حقاً! 🚀
- **Customizable:** configure every aspect of your prompt.
- **Universal:** works on any shell, on any operating system.
- **Intelligent:** shows relevant information at a glance.
- **كثيرة المزايا:** دعم لجميع الأدوات المفضلة لديك.
- **سهل:** سريع التثبيت – استخدمه في دقائق.
- **Fast:** إنها _في غاية_ السرعة! 🚀
- ** Customizable:** قم بتهيئة ال"prompt" من كل النواحي.
- **Universal:** يعمل على أي shell، على أي نظام تشغيل.
- ** Customizable:** تظهر المعلومات ذات الصلة في لمح البصر.
- **Feature rich:** تدعم جميع الأدوات المفضلة لديك.
- **Easy:** سريع التثبيت – استخدمها في دقائق معدودة.

<p align="center">
<a href="https://starship.rs/config/"><strong>تصفّح مستندات Starship&nbsp;&nbsp;▶</strong></a>
<a href="https://starship.rs/config/"><strong>استكشف مستندات Starship&nbsp;&nbsp;▶</strong></a>
</p>

<a name="🚀-installation"></a>
Expand All @@ -169,16 +169,16 @@

### المتطلبات الأساسية

- تثبيت [Nerd Font](https://www.nerdfonts.com/) وتمكينه في موجه الأوامر الخاصة بك (على سبيل المثال، جرب [Fira Code Nerd Font](https://www.nerdfonts.com/font-downloads)).
- تثبيت [Nerd Font](https://www.nerdfonts.com/) وتمكينه في ال terminal الخاصة بك (على سبيل المثال، جرب الخط [Fira Code Nerd Font](https://www.nerdfonts.com/font-downloads)).

### Step 1. Install Starship
### الخطوة الأولى. تثبيت starship

Select your operating system from the list below to view installation instructions:
حدد نظام التشغيل الخاص بك من القائمة أدناه لعرض تعليمات التثبيت:

<details>
<summary>Android</summary>

Install Starship using any of the following package managers:
قم بتثبيت Starship باستخدام أي من package managers التاليين:

| Repository | Instructions |
| --------------------------------------------------------------------------------- | ---------------------- |
Expand All @@ -189,7 +189,7 @@ Install Starship using any of the following package managers:
<details>
<summary>BSD</summary>

Install Starship using any of the following package managers:
قم بتثبيت Starship باستخدام أي من package managers التاليين:

| Distribution | Repository | Instructions |
| ------------ | -------------------------------------------------------- | --------------------------------- |
Expand All @@ -202,13 +202,13 @@ Install Starship using any of the following package managers:
<details>
<summary>Linux</summary>

Install the latest version for your system:
قم بتثبيت أحدث إصدار للنظام الخاص بك:

```sh
curl -sS https://starship.rs/install.sh | sh
```

Alternatively, install Starship using any of the following package managers:
يمكنك تثبيت starship باستخدام احد ال package managers التالية:

| Distribution | Repository | Instructions |
| ------------------ | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
Expand All @@ -218,9 +218,8 @@ Alternatively, install Starship using any of the following package managers:
| _Any_ | [Snapcraft](https://snapcraft.io/starship) | `snap install starship` |
| Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` |
| Arch Linux | [Arch Linux Community](https://archlinux.org/packages/community/x86_64/starship) | `pacman -S starship` |
| CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship` <br /> `dnf install starship` |
| Fedora 31+ | [Fedora Packages](https://src.fedoraproject.org/rpms/rust-starship) | `dnf install starship` |
| NixOS | [nixpkgs](https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/starship/default.nix) | `nix-env -iA nixos.starship` |
| CentOS +7 | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship` <br /> `dnf install starship` |
| Fedora +31 | [Fedora Packages](https://src.fedoraproject.org/rpms/rust-starship) | `dnf install starship` |
| Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` |
| Manjaro | | `pacman -S starship` |
| NixOS | [nixpkgs](https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/starship/default.nix) | `nix-env -iA nixpkgs.starship` |
Expand All @@ -231,13 +230,13 @@ Alternatively, install Starship using any of the following package managers:
<details>
<summary>macOS</summary>

Install the latest version for your system:
قم بتثبيت أحدث إصدار للنظام الخاص بك:

```sh
curl -sS https://starship.rs/install.sh | sh
```

Alternatively, install Starship using any of the following package managers:
يمكنك تثبيت starship باستخدام احد ال package managers التالية:

| Repository | Instructions |
| -------------------------------------------------------- | --------------------------------------- |
Expand All @@ -251,9 +250,9 @@ Alternatively, install Starship using any of the following package managers:
<details>
<summary>Windows</summary>

Install the latest version for your system with the MSI-installers from the [releases section](https://github.com/starship/starship/releases/latest).
قم بتثبيت أحدث إصدار للنظام الخاص بك مع MSI-installers من قسم الإصدارات [](https://github.com/starship/starship/releases/latest).

Install Starship using any of the following package managers:
يمكنك تثبيت starship باستخدام احد ال package managers التالية:

| Repository | Instructions |
| -------------------------------------------------------------------------------------------- | --------------------------------------- |
Expand All @@ -265,14 +264,14 @@ Install Starship using any of the following package managers:

</details>

### Step 2. Setup your shell to use Starship
### الخطوة الثانية. قم بإعداد ال shell الخاص بك

Configure your shell to initialize starship. Select yours from the list below:
لإعداد ال starship قم بإعداد ال shell الخاص بك. اختر ما يناسبك من هذه القائمة:

<details>
<summary>Bash</summary>

أضف ما يلي إلى نهاية `~/.bashrc`:
أضف ما يلي إلى نهاية ملف `~/.bashrc`:

```sh
eval "$(starship init bash)"
Expand All @@ -283,7 +282,7 @@ eval "$(starship init bash)"
<details>
<summary>Cmd</summary>

You need to use [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) with Cmd. Create a file at this path `%LocalAppData%\clink\starship.lua` with the following contents:
عليك بإستخدام [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) مع Cmd. قم بإنشاء ملف في المسار `%LocalAppData%\clink\starship.lua` و ضع فيه المحتوى التالي:

```lua
load(io.popen('starship init cmd'):read("*a"))()
Expand All @@ -294,20 +293,20 @@ load(io.popen('starship init cmd'):read("*a"))()
<details>
<summary>Elvish</summary>

أضف ما يلي إلى نهاية `~/.elvish/rc.elv`:
أضف ما يلي إلى نهاية الملف `~/.elvish/rc.elv`:

```sh
eval (starship init elvish)
```

Note: Only Elvish v0.18+ is supported
ملاحظة: فقط +Elvish v0.18 مدعوم

</details>

<details>
<summary>Fish</summary>

أضف ما يلي إلى نهاية `~/.config/fish/config.fish`:
أضف ما يلي إلى نهاية الملف `~/.fish/config.fish`:

```fish
starship init fish | source
Expand All @@ -318,7 +317,7 @@ starship init fish | source
<details>
<summary>Ion</summary>

أضف ما يلي إلى نهاية `~/.config/ion/initrc`:
أضف ما يلي إلى نهاية الملف `config/ion/initrc`:

```sh
eval $(starship init ion)
Expand Down Expand Up @@ -390,7 +389,7 @@ eval "$(starship init zsh)"

</details>

### Step 3. Configure Starship
### الخطوة الثالثة. تهيئة starship

Start a new shell instance, and you should see your beautiful new shell prompt. If you're happy with the defaults, enjoy!

Expand Down
5 changes: 2 additions & 3 deletions docs/ckb-IR/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,10 @@ description: 'Starship: یەکێ لە promptـە سوکەڵە، خێرا، و ب
```sh
brew install starship
```

لەگەڵ [Scoop](https://scoop.sh):
With [Winget](https://github.com/microsoft/winget-cli):

```powershell
scoop install starship
winget install starship
```

1. نوسینی init زیادبکە بۆ فایلی ڕێکخستنی شێڵەکەت:
Expand Down
26 changes: 26 additions & 0 deletions docs/ckb-IR/advanced-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,32 @@ end
load(io.popen('starship init cmd'):read("*a"))()
```

## TransientPrompt and TransientRightPrompt in Fish

It is possible to replace the previous-printed prompt with a custom string. This is useful in cases where all the prompt information is not always needed. To enable this, run `enable_transience` in the shell session. To make it permanent, put this statement in your `~/.config/fish/config.fish`. Transience can be disabled on-the-fly with `disable_transience`.

Note that in case of Fish, the transient prompt is only printed if the commandline is non-empty, and syntactically correct.

- By default, the left side of input gets replaced with a bold-green ``. To customize this, define a new function called `starship_transient_prompt_func`. For example, to display Starship's `character` module here, you would do

```fish
function starship_transient_prompt_func
starship module character
end
starship init fish | source
enable_transience
```

- By default, the right side of input is empty. To customize this, define a new function called `starship_transient_rprompt_func`. For example, to display the time at which the last command was started here, you would do

```fish
function starship_transient_rprompt_func
starship module time
end
starship init fish | source
enable_transience
```

## Custom pre-prompt and pre-execution Commands in Cmd

Clink provides extremely flexible APIs to run pre-prompt and pre-exec commands in Cmd shell. It is fairly simple to use with Starship. Make the following changes to your `starship.lua` file as per your requirements:
Expand Down
Loading

0 comments on commit 74951e6

Please sign in to comment.