Skip to content

Commit 1b7d01a

Browse files
authored
Update some zh-CN translations (#538)
1 parent 61bb684 commit 1b7d01a

File tree

7 files changed

+34
-18
lines changed

7 files changed

+34
-18
lines changed

book/operators.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ Nushell supports the following operators for common math, logic, and string oper
2121
| `in` | value in list |
2222
| `not-in` | value not in list |
2323
| `not` | logical not |
24-
| `&&`, `and` | and two Boolean values |
25-
| `\|\|`, `or`| or two Boolean values |
26-
| `fdiv` | floor division |
27-
| `**` | pow |
28-
| `bit-or` | bitwise or |
29-
| `bit-xor` | bitwise xor |
30-
| `bit-and` | bitwise and |
31-
| `bit-shl` | bitwise shift left |
32-
| `bit-shr` | bitwise shift right |
33-
| `starts-with` | string starts with |
34-
| `ends-with` | string ends with |
24+
| `&&`, `and` | and two Boolean values |
25+
| `\|\|`, `or` | or two Boolean values |
26+
| `//` | floor division |
27+
| `**` | pow |
28+
| `bit-or` | bitwise or |
29+
| `bit-xor` | bitwise xor |
30+
| `bit-and` | bitwise and |
31+
| `bit-shl` | bitwise shift left |
32+
| `bit-shr` | bitwise shift right |
33+
| `starts-with` | string starts with |
34+
| `ends-with` | string ends with |
3535

3636
Parentheses can be used for grouping to specify evaluation order or for calling commands and using the results in an expression.
3737

i18n-meta.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@
202202
{
203203
"name": "nushell_map.md",
204204
"en": "Completed",
205-
"zh-CN": "ae23eeba3@hustcer",
205+
"zh-CN": "61bb68454f@hustcer",
206206
"de": "-",
207207
"tr": "-",
208208
"ja": "-",
@@ -242,7 +242,7 @@
242242
{
243243
"name": "operators.md",
244244
"en": "Completed",
245-
"zh-CN": "51522d5591@hustcer",
245+
"zh-CN": "61bb68454f@hustcer",
246246
"de": "-",
247247
"tr": "-",
248248
"ja": "-",
@@ -332,7 +332,7 @@
332332
{
333333
"name": "table_of_contents.md",
334334
"en": "Completed",
335-
"zh-CN": "fa90895307@hustcer",
335+
"zh-CN": "61bb68454f@hustcer",
336336
"de": "-",
337337
"tr": "-",
338338
"ja": "-",
@@ -352,7 +352,7 @@
352352
{
353353
"name": "types_of_data.md",
354354
"en": "Completed",
355-
"zh-CN": "d6efb9a35a@hustcer",
355+
"zh-CN": "61bb68454f@hustcer",
356356
"de": "-",
357357
"tr": "-",
358358
"ja": "-",
@@ -362,7 +362,7 @@
362362
{
363363
"name": "variables_and_subexpressions.md",
364364
"en": "Completed",
365-
"zh-CN": "0b0389f2c@hustcer",
365+
"zh-CN": "61bb68454f@hustcer",
366366
"de": "translated by @sebastian-xyz",
367367
"tr": "-",
368368
"ja": "-",

zh-CN/book/nushell_map.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
| clear | - | - | Clear-Host | clear |
1818
| compact | | | | |
1919
| config | - | - | $Profile | vi .bashrc, .profile |
20-
| count | count | Count | Measure-Object, measure | wc |
2120
| cp | - | - | Copy-Item, cp, copy | cp |
2221
| date | NOW() / getdate() | DateTime class | Get-Date | date |
2322
| debug | | | | |
@@ -45,6 +44,7 @@
4544
| keep-while | | TakeWhile | | |
4645
| kill | - | - | Stop-Process, kill | kill |
4746
| last | | Last, LastOrDefault | Select-Object -Last | tail |
47+
| length | count | Count | Measure-Object, measure | wc |
4848
| lines | - | - | File.ReadAllLines | |
4949
| ls | - | - | Get-ChildItem, dir, ls | ls |
5050
| match(`*`) | case when | Regex.IsMatch | [regex] | |

zh-CN/book/operators.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ Nushell 支持以下常见的数学、逻辑和字符串操作的运算符:
2323
| `not` | 逻辑取反 |
2424
| `&&`, `and` | 两个布尔值与运算 |
2525
| `\|\|`, `or` | 两个布尔值或运算 |
26+
| `//` | 向下取整整除 |
27+
| `**` | 幂运算 |
28+
| `bit-or` | 按位或 |
29+
| `bit-xor` | 按位异或 |
30+
| `bit-and` | 按位与 |
31+
| `bit-shl` | 按位左移 |
32+
| `bit-shr` | 按位右移 |
33+
| `starts-with` | 字符串开始检测 |
34+
| `ends-with` | 字符串结尾检测 |
2635

2736
圆括号可用于分组以指定求值顺序,或用于调用命令并在表达式中使用结果。
2837

zh-CN/book/table_of_contents.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
- [环境变量](environment.md) - 使用环境变量
2020
- [标准输出、错误和退出码](stdout_stderr_exit_codes.md) - 使用标准输出、错误和退出码
2121
- [模块](modules.md) - 创建和使用你自己的模块
22+
- [钩子](hooks.md) - 添加自动运行的代码片断
2223
- [脚本](scripts.md) - 创建你自己的脚本
2324
- [元数据](metadata.md) - 细说 Nushell 的元数据系统
2425
- [创建你自己的`错误`](creating_errors.md) - 创建你自己的错误信息

zh-CN/book/types_of_data.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ Nu 在其命令中采用了这种方法,并将其扩展到包括其他类型
88

99
像许多编程语言一样,Nu 使用一组简单和结构化的数据类型对数据进行建模。简单的数据类型包括整数、浮点数、字符串、布尔、日期和路径。它还包括一个用于表示文件大小的特殊类型。
1010

11+
你可以通过 [`describe`](/book/commands/describe.md) 命令获取一个值的类型:
12+
13+
```
14+
> 42 | describe
15+
```
16+
1117
## 整数
1218

1319
整数(或整形)数字:例子包括 1、5 和 100。

zh-CN/book/variables_and_subexpressions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Nushell 支持使用一种简化的方式访问子表达式中的列,你可能
8888
```bash
8989
> ls | where $it.size > 10kb
9090
> ls | where ($it.size > 10kb)
91-
> ls | where {|$it| $it.size > 10kb }
91+
> ls | where {|$x| $x.size > 10kb }
9292
```
9393
9494
为了使简化语法正常工作,列名必须出现在操作的左侧(如`size > 10kb`中的`size`)。

0 commit comments

Comments
 (0)