New translations readme.md (Chinese Simplified)

This commit is contained in:
Matan Kushner 2025-03-10 00:55:19 +09:00
parent 68f7a581af
commit 1d32d1cc70

View File

@ -249,7 +249,7 @@ mustard = '#af8700'
```toml
format = '$all'
# 相当于
# Which is equivalent to
format = """
$username\
$hostname\
@ -339,6 +339,7 @@ $time\
$status\
$os\
$container\
$netns\
$shell\
$character"""
```
@ -2881,6 +2882,37 @@ format = '[$symbol]($style)'
style = 'bold purple'
```
## Network Namespace
The `netns` module shows the current network namespace. This uses `ip netns identify` to get the network namespace, so only network namespaces mounted at `/var/run/netns` will be detected.
### 配置项
| 选项 | 默认值 | 描述 |
| ---------- | --------------------------------- | ----------------------------------------------------------------- |
| `format` | `'[$symbol \[$name\]]($style)'` | 组件格式化模板。 |
| `symbol` | `'🛜 '` | The symbol used before the network namespace (defaults to empty). |
| `style` | `'blue bold dimmed'` | 此组件的样式。 |
| `disabled` | `false` | Disables the `netns` module. |
### 变量
| 字段 | 示例 | 描述 |
| --------- | ---------- | ----------------------------------------- |
| name | `my-netns` | The name of the current network namespace |
| symbol | | `symbol`对应值 |
| style\* | | `style`对应值 |
### 示例
```toml
# ~/.config/starship.toml
[netns]
style = 'bold yellow'
symbol = '🌐 '
```
## Nim
The `nim` module shows the currently installed version of [Nim](https://nim-lang.org/). 默认情况下,此组件将在满足以下任意条件时显示: