RocMarshal commented on a change in pull request #16319:
URL: https://github.com/apache/flink/pull/16319#discussion_r664587008



##########
File path: docs/content.zh/docs/dev/datastream/scala_api_extensions.md
##########
@@ -25,29 +25,23 @@ specific language governing permissions and limitations
 under the License.
 -->
 
-# Scala API Extensions
+# Scala API扩展

Review comment:
       ```suggestion
   # Scala API 扩展
   ```

##########
File path: docs/content.zh/docs/dev/datastream/scala_api_extensions.md
##########
@@ -184,22 +176,21 @@ data1.join(data2).
 
 
 
-For more information on the semantics of each method, please refer to the 
[DataStream]({{< ref "docs/dev/datastream/overview" >}}) API documentation.
+有关每个方法语义的更多信息, 请参考 [DataStream]({{< ref "docs/dev/datastream/overview" >}}) 
API 文档。
 
-To use this extension exclusively, you can add the following `import`:
+要单独使用此扩展,您可以添加以下引入:
 
 {{< highlight scala >}}
 import org.apache.flink.api.scala.extensions.acceptPartialFunctions
 {{< /highlight >}}
 
-for the DataSet extensions and
+用于DataSet扩展
 
 {{< highlight scala >}}
 import org.apache.flink.streaming.api.scala.extensions.acceptPartialFunctions
 {{< /highlight >}}
 
-The following snippet shows a minimal example of how to use these extension
-methods together (with the DataSet API):
+下面的代码片段展示了如何一起使用这些扩展方法(以及 DataSet API)的最小示例:

Review comment:
       ```suggestion
   下面的代码片段展示了如何一起使用这些扩展方法(以及 DataSet API)的最小示例:
   ```

##########
File path: docs/content.zh/docs/dev/datastream/scala_api_extensions.md
##########
@@ -1,5 +1,5 @@
 ---
-title: "Scala API Extensions"
+title: "Scala API扩展"

Review comment:
       ```suggestion
   title: "Scala API 扩展"
   ```

##########
File path: docs/content.zh/docs/dev/datastream/scala_api_extensions.md
##########
@@ -25,29 +25,23 @@ specific language governing permissions and limitations
 under the License.
 -->
 
-# Scala API Extensions
+# Scala API扩展
 
-In order to keep a fair amount of consistency between the Scala and Java APIs, 
some
-of the features that allow a high-level of expressiveness in Scala have been 
left
-out from the standard APIs for both batch and streaming.
+为了在 Scala 和 Java API 之间保持一定的一致性,在批处理和流处理的标准 API 中省略了一些允许 Scala 高级表达的特性。

Review comment:
       What about `为了在 Scala 和 Java API 之间保持一定程度的一致性,在批处理和流处理的标准 API 中舍弃了一些 
Scala 高级表达式的特性。`?
   It's only a tentative suggestion. Maybe we should translate it in a better 
way. 

##########
File path: docs/content.zh/docs/dev/datastream/scala_api_extensions.md
##########
@@ -25,29 +25,23 @@ specific language governing permissions and limitations
 under the License.
 -->
 
-# Scala API Extensions
+# Scala API扩展
 
-In order to keep a fair amount of consistency between the Scala and Java APIs, 
some
-of the features that allow a high-level of expressiveness in Scala have been 
left
-out from the standard APIs for both batch and streaming.
+为了在 Scala 和 Java API 之间保持一定的一致性,在批处理和流处理的标准 API 中省略了一些允许 Scala 高级表达的特性。
 
-If you want to _enjoy the full Scala experience_ you can choose to opt-in to
-extensions that enhance the Scala API via implicit conversions.
+如果你想拥有完整的 Scala 体验,可以选择通过隐式转换增强 Scala API 的扩展。

Review comment:
       Maybe we keep `_***_` format in  `如果你想拥有 _完整的 Scala 体验_,可以选择通过隐式转换增强 
Scala API 的扩展。`
   if shown in correct style.

##########
File path: docs/content.zh/docs/dev/datastream/scala_api_extensions.md
##########
@@ -25,29 +25,23 @@ specific language governing permissions and limitations
 under the License.
 -->
 
-# Scala API Extensions
+# Scala API扩展
 
-In order to keep a fair amount of consistency between the Scala and Java APIs, 
some
-of the features that allow a high-level of expressiveness in Scala have been 
left
-out from the standard APIs for both batch and streaming.
+为了在 Scala 和 Java API 之间保持一定的一致性,在批处理和流处理的标准 API 中省略了一些允许 Scala 高级表达的特性。
 
-If you want to _enjoy the full Scala experience_ you can choose to opt-in to
-extensions that enhance the Scala API via implicit conversions.
+如果你想拥有完整的 Scala 体验,可以选择通过隐式转换增强 Scala API 的扩展。
 
-To use all the available extensions, you can just add a simple `import` for 
the DataStream API
+要使用所有可用的扩展,你只需为 DataStream API 添加一个简单的引入
 
 {{< highlight scala >}}
 import org.apache.flink.streaming.api.scala.extensions._
 {{< /highlight >}}
 
-Alternatively, you can import individual extensions _a-là-carte_ to only use 
those
-you prefer.
+或者,您可以引入单个扩展 a-là-carte 来使用您喜欢的扩展。

Review comment:
       ```suggestion
   或者,你可以引入单个扩展 _a-là-carte_ 来使用你喜欢的扩展。
   ```

##########
File path: docs/content.zh/docs/dev/datastream/scala_api_extensions.md
##########
@@ -184,22 +176,21 @@ data1.join(data2).
 
 
 
-For more information on the semantics of each method, please refer to the 
[DataStream]({{< ref "docs/dev/datastream/overview" >}}) API documentation.
+有关每个方法语义的更多信息, 请参考 [DataStream]({{< ref "docs/dev/datastream/overview" >}}) 
API 文档。
 
-To use this extension exclusively, you can add the following `import`:
+要单独使用此扩展,您可以添加以下引入:

Review comment:
       ```suggestion
   要单独使用此扩展,你可以添加以下引入:
   ```

##########
File path: docs/content.zh/docs/dev/datastream/scala_api_extensions.md
##########
@@ -25,29 +25,23 @@ specific language governing permissions and limitations
 under the License.
 -->
 
-# Scala API Extensions
+# Scala API扩展
 
-In order to keep a fair amount of consistency between the Scala and Java APIs, 
some
-of the features that allow a high-level of expressiveness in Scala have been 
left
-out from the standard APIs for both batch and streaming.
+为了在 Scala 和 Java API 之间保持一定的一致性,在批处理和流处理的标准 API 中省略了一些允许 Scala 高级表达的特性。
 
-If you want to _enjoy the full Scala experience_ you can choose to opt-in to
-extensions that enhance the Scala API via implicit conversions.
+如果你想拥有完整的 Scala 体验,可以选择通过隐式转换增强 Scala API 的扩展。
 
-To use all the available extensions, you can just add a simple `import` for 
the DataStream API
+要使用所有可用的扩展,你只需为 DataStream API 添加一个简单的引入
 
 {{< highlight scala >}}
 import org.apache.flink.streaming.api.scala.extensions._
 {{< /highlight >}}
 
-Alternatively, you can import individual extensions _a-là-carte_ to only use 
those
-you prefer.
+或者,您可以引入单个扩展 a-là-carte 来使用您喜欢的扩展。
 
-## Accept partial functions
+## 接受部分功能

Review comment:
       IMO, Maybe it's a good choice to keep  original content 

##########
File path: docs/content.zh/docs/dev/datastream/scala_api_extensions.md
##########
@@ -184,22 +176,21 @@ data1.join(data2).
 
 
 
-For more information on the semantics of each method, please refer to the 
[DataStream]({{< ref "docs/dev/datastream/overview" >}}) API documentation.
+有关每个方法语义的更多信息, 请参考 [DataStream]({{< ref "docs/dev/datastream/overview" >}}) 
API 文档。
 
-To use this extension exclusively, you can add the following `import`:
+要单独使用此扩展,您可以添加以下引入:
 
 {{< highlight scala >}}
 import org.apache.flink.api.scala.extensions.acceptPartialFunctions
 {{< /highlight >}}
 
-for the DataSet extensions and
+用于DataSet扩展

Review comment:
       ```suggestion
   用于 DataSet 扩展
   ```




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to