You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/03/24 02:25:00 UTC

[GitHub] [apisix] hf400159 commented on a change in pull request #6668: docs: translate some zh/*.md table properties to chinese

hf400159 commented on a change in pull request #6668:
URL: https://github.com/apache/apisix/pull/6668#discussion_r833863013



##########
File path: docs/zh/latest/plugins/csrf.md
##########
@@ -29,11 +29,11 @@ title: csrf
 
 ## 属性
 
-| Name             | Type    | Requirement | Default | Valid | Description                                                  |
+| 名称             | 类型    | 必选项 | 默认值 | 有效值 | 描述                                                 |
 | ---------------- | ------- | ----------- | ------- | ----- | ------------------------------------------------------------ |
-|   name   |  string |    optional    | `apisix-csrf-token`  |    | 生成的 Cookie 中的 token 的名字,需要使用这个名字在请求头携带 Cookie 中的内容 |
-| expires |  number | optional | `7200` | | CSRF Cookie 的过期时间(秒) |
-| key | string | required |  |  | 加密 token 的秘钥 |
+|   name   |  string |    可选    | `apisix-csrf-token`  |    | 生成的 Cookie 中的 token 的名字,需要使用这个名字在请求头携带 Cookie 中的内容 |
+| expires |  number | 可选 | `7200` | | CSRF Cookie 的过期时间(秒) |
+| key | string | 必选 |  |  | 加密 token 的秘钥 |

Review comment:
       I think it should be changed to “是” or “否”. This is more suitable for "必选项". 

##########
File path: docs/zh/latest/plugins/csrf.md
##########
@@ -29,11 +29,11 @@ title: csrf
 
 ## 属性
 
-| Name             | Type    | Requirement | Default | Valid | Description                                                  |
+| 名称             | 类型    | 必选项 | 默认值 | 有效值 | 描述                                                 |
 | ---------------- | ------- | ----------- | ------- | ----- | ------------------------------------------------------------ |
-|   name   |  string |    optional    | `apisix-csrf-token`  |    | 生成的 Cookie 中的 token 的名字,需要使用这个名字在请求头携带 Cookie 中的内容 |
-| expires |  number | optional | `7200` | | CSRF Cookie 的过期时间(秒) |
-| key | string | required |  |  | 加密 token 的秘钥 |
+|   name   |  string |    可选    | `apisix-csrf-token`  |    | 生成的 Cookie 中的 token 的名字,需要使用这个名字在请求头携带 Cookie 中的内容 |
+| expires |  number | 可选 | `7200` | | CSRF Cookie 的过期时间(秒) |
+| key | string | 必选 |  |  | 加密 token 的秘钥 |

Review comment:
       ```suggestion
   |   name   |  string |    否    | `apisix-csrf-token`  |    | 生成的 Cookie 中的 token 的名字,需要使用这个名字在请求头携带 Cookie 中的内容 |
   | expires |  number | 否 | `7200` | | CSRF Cookie 的过期时间(秒) |
   | key | string | 是 |  |  | 加密 token 的秘钥 |
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org