Skip to content

Commit

Permalink
Translate the strings into English
Browse files Browse the repository at this point in the history
  • Loading branch information
rutvikghaskata18 committed Jul 10, 2024
1 parent 4319321 commit b3b100c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
14 changes: 7 additions & 7 deletions docs/tools/aelf-cli/commands/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: aelf CLI Commands

# Commands Overview

## 具体配置
## Specific configuration

### Common Options

Expand Down Expand Up @@ -108,7 +108,7 @@ $ aelf-command console -a sadaf -p yourpassword -e https://tdvw-test-node.aelf.i

Options given in higher priority (e.g., CLI parameters) will overwrite those with lower priority (e.g., environment variables).

## 具体命令(#command-details)
## Specific orders(#command-details)

### Create a New Account

Expand Down Expand Up @@ -425,10 +425,10 @@ Transaction: ef17ac2078c2b31a702b9edc754bfa56f1c37931f52f9dd8e2b9dc65769966b1 is
When you execute this command, you'll get details about the transaction with ID
fe1974fde291e44e16c55db666f2c747323cdc584d616de05c88c8bae18ecceb. Here's what the output means:
- **from**: 表示发送方的地址,即交易中的发起者
- **to**: 表示接收方的地址,即交易中的接收者
- **symbol**: 表示交易的代币符号
- **amount**: 表示交易的数量或金额.
- **from**: Indicates the address of the sender, the initiator in the transaction
- **to**: Indicates the address of the recipient, that is, the recipient in the transaction
- **symbol**: Token symbol representing the transaction
- **amount**: Represents the quantity or amount of a transaction.
- **Result**: Decoded information from the event, providing readable details such as author, code hash, and address.
This command helps you understand what happened during a transaction, especially useful when dealing with events triggered by
Expand Down Expand Up @@ -602,7 +602,7 @@ Welcome to aelf interactive console. Ctrl + C to terminate the program. Double t
╚═══════════════════════════════════════════════════════════╝
```
### dapp-server - Start a socket.io server for supplying services for dApps
### dapp-server - Start a socket.io server for supplying services for dApps
Are you developing a dApp and need an environment to manage wallet information and connect to the AElf chain? You can easily start
a local development server using this sub-command.
Expand Down
15 changes: 8 additions & 7 deletions docs/tools/chain-sdk/javascript-sdk/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const aelf = new AElf(new AElf.providers.HttpProvider('https://tdvw-test-node.ae

### Detail information for library files

你可以跳过这一步,如果 Adding aelf-web3.js 这一步已经足够的话
You can skip this step, if Adding aelf-web3.js is enough

In our dist directory, we supply two kinds of packages for different platforms, such as Node and Browser.

Expand Down Expand Up @@ -124,12 +124,12 @@ rollup({
yarn install
```

2. src 下创建你的文件,编写你的逻辑
3. src/index 下看一下是否需要将你新增的模块挂在 AElf 作为实例的一个属性
4. 在根目录执行`yarn link`,这会创建一个全局的符号链接到本包,并将其存储在全局 node_modules 目录中
5. 在其他目录使用`yarn link "aelf-sdk"`,请确保你 link 的包的版本是正确的,因为有时候 node 版本不一致也可能会导致 link 到的 aelf-web3.js 版本不对
2. Create your file under `src` and write your logic
3. Check under `src/index` whether you need to hang your new module on AElf as an attribute of the instance.
4. Execute `yarn link` in the root directory. This will create a global symbolic link to this package and store it in the global `node_module` directory.
5. When using yarn link `aelf-sdk` in other directories, please ensure that the version of the package you link is correct, because sometimes inconsistent node versions may also cause the incorrect version of aelf-web3.js to be linked.

接着你就可以试一下自己的刚写的逻辑是否 ok
Then you can try to see if the logic you just wrote is OK.

### Lint

Expand Down Expand Up @@ -264,7 +264,8 @@ You can access the Web API of your aelf node at `{chainAddress}/swagger/index.ht

For example, if your local node address is `http://127.0.0.1:1235`, you can view the Web API at `http://127.0.0.1:1235/swagger/index.html`.

我们的测试网节点地址是:[https://aelf-test-node.aelf.io/swagger/index.html](https://aelf-test-node.aelf.io/swagger/index.html)(主链)、[https://tdvw-test-node.aelf.io/swagger/index.html](https://tdvw-test-node.aelf.io/swagger/index.html)(侧链),可以访问这两个地址找到对应的参数和返回值。
Our testnet node address is: [https://aelf-test-node.aelf.io/swagger/index.html](https://aelf-test-node.aelf.io/swagger/index.html)
main chain)、[https://tdvw-test-node.aelf.io/swagger/index.html](https://tdvw-test-node.aelf.io/swagger/index.html)(side chain),You can access these two addresses to find the corresponding parameters and return values.

The methods below use an instance of aelf. If you don't have one, create it as shown:

Expand Down

0 comments on commit b3b100c

Please sign in to comment.