summaryrefslogtreecommitdiffstats
path: root/docs/zh-CN
diff options
context:
space:
mode:
authorMatan Kushner <hello@matchai.dev>2022-12-14 00:50:29 +0900
committerGitHub <noreply@github.com>2022-12-14 00:50:29 +0900
commit42d8ec37170e7c8a00592bae372a09298465dde1 (patch)
treedf572ae26434107e17745d97b31b6330249beb6e /docs/zh-CN
parentdac6d998cfd5cf4fb26e869450cce40658b7d445 (diff)
docs(i18n): new Crowdin updates (#4711)
Diffstat (limited to 'docs/zh-CN')
-rw-r--r--docs/zh-CN/README.md2
-rw-r--r--docs/zh-CN/advanced-config/README.md2
-rw-r--r--docs/zh-CN/config/README.md26
-rw-r--r--docs/zh-CN/guide/README.md14
4 files changed, 22 insertions, 22 deletions
diff --git a/docs/zh-CN/README.md b/docs/zh-CN/README.md
index e3d658fa0..6959d0f3a 100644
--- a/docs/zh-CN/README.md
+++ b/docs/zh-CN/README.md
@@ -159,7 +159,7 @@ description: Starship是一款轻量级、反应迅速、可自定义的高颜
starship init nu | save ~/.cache/starship/init.nu
```
- 然后将以下内容添加到您 Nushell 配置文件的末尾(使用 `$nu.config-path` 来获取它的路径):
+ 然后在您的 Nushell 配置文件的最后(使用 `$nu.config-path` 来获取它的路径),添加以下内容:
```sh
source ~/.cache/starship/init.nu
diff --git a/docs/zh-CN/advanced-config/README.md b/docs/zh-CN/advanced-config/README.md
index d4e3e2273..ea5e334e3 100644
--- a/docs/zh-CN/advanced-config/README.md
+++ b/docs/zh-CN/advanced-config/README.md
@@ -250,7 +250,7 @@ right_format = """$all"""
continuation_prompt = "▶▶"
```
-## 样式设定
+## 样式字符串
样式字符串是用空格分隔的单词列表。 其中单词不是大小写敏感的(例如 `bold` 和 `BoLd` 被视为同一字符串)。 每个单词可以是以下之一:
diff --git a/docs/zh-CN/config/README.md b/docs/zh-CN/config/README.md
index c0c1c5f92..3f15d9005 100644
--- a/docs/zh-CN/config/README.md
+++ b/docs/zh-CN/config/README.md
@@ -38,7 +38,7 @@ export STARSHIP_CONFIG=~/example/non/default/path/starship.toml
$ENV:STARSHIP_CONFIG = "$HOME\example\non\default\path\starship.toml"
```
-或者在 Cmd (Windows) 中,将下面的代码添加到 `starship.lua`:
+或者在 Cmd (Windows) 中,将以下内容添加到您的 `starship.lua`:
```lua
os.setenv('STARSHIP_CONFIG', 'C:\\Users\\user\\example\\non\\default\\path\\starship.toml')
@@ -58,7 +58,7 @@ export STARSHIP_CACHE=~/.starship/cache
$ENV:STARSHIP_CACHE = "$HOME\AppData\Local\Temp"
```
-或者在 Cmd (Windows) 中,将以下内容添加到您的 `starship.lua`:
+或者在 Cmd (Windows) 中,将下面的代码添加到 `starship.lua`:
```lua
os.setenv('STARSHIP_CACHE', 'C:\\Users\\user\\AppData\\Local\\Temp')
@@ -156,7 +156,7 @@ line2
- `'[⌘ $version](bold green)'` will print a symbol `⌘` followed by the content of variable `version`, with bold text colored green.
- `'[a [b](red) c](green)'` will print `a b c` with `b` red, and `a` and `c` green.
-#### 样式设定
+#### 样式字符串
Starship 中的大多数组件允许您为其设置显示样式。 显示样式可以通过一个字符串字段(一般是 `style`)来设置。 以下的例子给出了一些样式字符串并描述了它们的效果。 样式字符串的完整语法请查阅 [高级配置指南](/advanced-config/)。
@@ -564,8 +564,8 @@ symbol = '🦬 '
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. By default the module will be shown if any of the following conditions are met:
-- 当前目录包含 `bun.lockb` 文件
-- 当前目录包含 `bunfig.toml` 文件
+- 当前目录包含一个 `bun.lockb` 文件
+- 当前目录包含一个 `bunfig.toml` 文件
### 配置项
@@ -892,7 +892,7 @@ format = '[$symbol \[$name\]]($style) '
The `crystal` module shows the currently installed version of [Crystal](https://crystal-lang.org/). By default the module will be shown if any of the following conditions are met:
-- 当前目录包含 `shard.yml` 文件
+- 当前目录包含一个 `shard.yml` 文件
- The current directory contains a `.cr` file
### 配置项
@@ -931,7 +931,7 @@ format = 'via [✨ $version](bold blue) '
The `daml` module shows the currently used [Daml](https://www.digitalasset.com/developers) SDK version when you are in the root directory of your Daml project. The `sdk-version` in the `daml.yaml` file will be used, unless it's overridden by the `DAML_SDK_VERSION` environment variable. By default the module will be shown if any of the following conditions are met:
-- 当前目录包含 `daml.yaml` 文件
+- 当前目录包含一个 `daml.yaml` 文件
### 配置项
@@ -1219,7 +1219,7 @@ heuristic = false
The `elixir` module shows the currently installed version of [Elixir](https://elixir-lang.org/) and [Erlang/OTP](https://erlang.org/doc/). By default the module will be shown if any of the following conditions are met:
-- 当前目录包含 `mix.exs` 文件.
+- 当前目录包含一个 `mix.exs` 文件.
### 配置项
@@ -1258,8 +1258,8 @@ symbol = '🔮 '
The `elm` module shows the currently installed version of [Elm](https://elm-lang.org/). By default the module will be shown if any of the following conditions are met:
-- 当前目录包含 `elm.json` 文件
-- 当前目录包含 `elm-package.json` 文件
+- 当前目录包含一个 `elm.json` 文件
+- 当前目录包含一个 `elm-package.json` 文件
- The current directory contains a `.elm-version` file
- The current directory contains a `elm-stuff` folder
- The current directory contains `*.elm` files
@@ -1364,8 +1364,8 @@ default = 'unknown user'
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). By default the module will be shown if any of the following conditions are met:
-- 当前目录包含 `rebar.config` 文件.
-- 当前目录包含 `erlang.mk` 文件.
+- 当前目录包含一个 `rebar.config` 文件.
+- 当前目录包含一个 `erlang.mk` 文件.
### 配置项
@@ -1768,7 +1768,7 @@ The `golang` module shows the currently installed version of [Go](https://golang
- 当前目录包含 `go.mod` 文件
- 当前目录包含 `go.sum` 文件
-- 当前目录包含 `go.work` 文件
+- 当前目录包含一个 `go.work` 文件
- 当前目录包含 `glide.yaml` 文件
- 当前目录包含 `Gopkg.yml` 文件
- 当前目录包含 `Gopkg.lock` 文件
diff --git a/docs/zh-CN/guide/README.md b/docs/zh-CN/guide/README.md
index 240fdd2d9..ab212ec43 100644
--- a/docs/zh-CN/guide/README.md
+++ b/docs/zh-CN/guide/README.md
@@ -145,7 +145,7 @@
<img
src="https://raw.githubusercontent.com/starship/starship/master/media/demo.gif"
- alt="使用 iTerm 和 Snazz 主题的 Starship"
+ alt="使用 iTerm 和 Snazzy 主题的 Starship"
width="50%"
align="right"
/>
@@ -334,7 +334,7 @@ mkdir ~/.cache/starship
starship init nu | save ~/.cache/starship/init.nu
```
-然后在您的 Nushell 配置文件的最后(使用 `$nu.config-path` 来获取它的路径),添加以下内容:
+然后将以下内容添加到您 Nushell 配置文件的末尾(使用 `$nu.config-path` 来获取它的路径):
```sh
source ~/.cache/starship/init.nu
@@ -390,7 +390,7 @@ eval "$(starship init zsh)"
### 步骤 3. 配置 Starship
-打开一个新的 Shell 实例,你应该就能看到漂亮的 Shell 新提示符了。 如果你对默认配置感到满意,就可以开始享用了!
+打开一个新的 Shell 实例,你应该就能看到漂亮的 Shell 新提示符了。 如果你对默认配置感到满意,那么开始使用吧!
如果你想进一步配置 Starship,查阅下列内容:
@@ -400,15 +400,15 @@ eval "$(starship init zsh)"
## 🤝 贡献
-我们一直在寻找贡献者!**不论你的技能如何**你都可以参与贡献 。 如果您希望快速为项目作出贡献,请尝试解决 [good first issue](https://github.com/starship/starship/labels/🌱%20good%20first%20issue)。
+我们期待着 **所有技能等级** 的参与者! 如果你想让自己参与项目的路径轻松一些,可以先试试某个 [good first issue](https://github.com/starship/starship/labels/🌱%20good%20first%20issue)。
-如果你能流利地使用非英语语种,我们非常感谢你帮助翻译我们的文件并将其更新到其他语言。 如果您想要帮助,可以在 [Starship Crowdin](https://translate.starship.rs/) 上贡献翻译。
+如果你熟练掌握某个非英语语言,我们非常感谢任何帮助翻译与同步文档到其他语言的贡献。 如果你想要帮忙,可以在 [Starship Crowdin](https://translate.starship.rs/) 上参与。
-如果您有兴趣贡献于 Starship,请查看我们的[贡献指南](https://github.com/starship/starship/blob/master/CONTRIBUTING.md)。 另外,你可以自由加入我们的 [Discord 服务器](https://discord.gg/8Jzqu3T) 。 👋
+如果你有兴趣贡献 Starship 这个项目,请先看看我们的 [贡献指南](https://github.com/starship/starship/blob/master/CONTRIBUTING.md)。 也欢迎加入我们的 [Discord 服务器](https://discord.gg/8Jzqu3T) 和大家打个招呼。 👋
## 💭 该项目受以下项目启发
-请参考这些曾经为 Starship 提供启发的工程。 🙏
+请看看这些之前的项目,他们启发了 Starship 项目。 🙏
- **[denysdovhan/spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt)** – 为宇航员准备的 ZSH 提示符。