From 476bacf52a052223fc2efea26de356b555fa7943 Mon Sep 17 00:00:00 2001 From: renpeiying Date: Thu, 23 Apr 2026 16:50:11 +0800 Subject: [PATCH] docs: Add CN translation --- docs/en/api-guides/tools/idf-py.rst | 2 +- docs/zh_CN/api-guides/tools/idf-py.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/api-guides/tools/idf-py.rst b/docs/en/api-guides/tools/idf-py.rst index 39f91b8ab2b..ae804f7363a 100644 --- a/docs/en/api-guides/tools/idf-py.rst +++ b/docs/en/api-guides/tools/idf-py.rst @@ -25,7 +25,7 @@ Start a New Project: ``create-project`` idf.py create-project -This command creates a new ESP-IDF project. Additionally, the folder where the project will be created in can be specified by the ``--path`` option. Pass ``--cpp`` to create a C++ source file (``.cpp``) with C linkage for ``app_main`` instead of a ``.c`` file. +This command creates a new ESP-IDF project. Additionally, the folder where the project will be created in can be specified by the ``--path`` option. Pass ``--cpp`` to create a C++ source file (.cpp) with C linkage for ``app_main`` instead of a ``.c`` file. Create a New Component: ``create-component`` -------------------------------------------- diff --git a/docs/zh_CN/api-guides/tools/idf-py.rst b/docs/zh_CN/api-guides/tools/idf-py.rst index ab0cd147c7a..36a62e79f9e 100644 --- a/docs/zh_CN/api-guides/tools/idf-py.rst +++ b/docs/zh_CN/api-guides/tools/idf-py.rst @@ -25,7 +25,7 @@ IDF 前端工具 - ``idf.py`` idf.py create-project -此命令将创建一个新的 ESP-IDF 工程。此外,使用 ``--path`` 选项可指定工程创建路径。 +此命令用于创建一个新的 ESP-IDF 工程。此外,使用 ``--path`` 参数,可以指定项目的创建路径。使用 ``--cpp`` 参数,可以生成 C++ 源文件(<项目名称>.cpp),而不是生成默认的 ``.c`` 文件,同时 ``app_main`` 函数将保持 C 语言链接方式。 创建新组件:``create-component`` ----------------------------------------