Skip to content

Commit 33b2b60

Browse files
authored
Update 01namespace.md
1 parent 0bc903b commit 33b2b60

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/en/quickstart/03namespace/01namespace.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
lastUpdate: true
33
---
44

5-
# 命名空间
5+
# Namespace
66

7-
MCFPP中的命名空间和MC中的命名空间是同一种东西。这也意味着,命名空间只能是小写字母、数字,点和下划线的组合。
7+
The namespace in MCFPP is same as the namespace in Minecraft. That means, namespace only can be the combination of lowercase letters, numbers, dots and underlines.
88

9-
你可以在文件中声明一个命名空间,这样文件中的所有函数和变量都会被放置在这个命名空间中。例如:
9+
You can declare a namespace in a file, so all functions and variables in the file will be placed in the namespace. For example:
1010

1111
```mcfpp
1212
namespace test;
1313
14-
func test(){ # test:test函数
14+
func test(){ # test:test function
1515
print(i);
1616
}
1717
```
1818

19-
一个文件中只能声明一次命名空间。
19+
You can only declare namespace once in a file.
2020

21-
同样的,你也可以在项目配置文件中声明这个命名空间。
21+
The same, you can also declare this namespace in the project configuration file.
2222

2323
```json
2424
{
@@ -31,7 +31,7 @@ func test(){ # test:test函数
3131
"D:/workspace/mcfpp/another_project.json"
3232
],
3333
"targetPath":"./out",
34-
//工程的默认命名空间。可选,默认为default // [!code focus]
34+
//The default namespace of the project. Optional, default is ‘default’ // [!code focus]
3535
"namespace":"mcfpp" // [!code focus]
3636
}
3737
```

0 commit comments

Comments
 (0)