Back
Featured image of post Use Coze.cn To Translate Web

Use Coze.cn To Translate Web

The official website of Coze Space: https://www.coze.cn
Note that the author has only tested on Coze Space with the.cn suffix and is not aware of the situation of Coze Space with the.com suffix.

Preparation before Development

First, go to the official website, log in to your account, then select the development platform and click “Quick Start”.

Coze Space - Development Platform
Coze Space - Development Platform

Then click on “Workspace” and “Project Development” to create a new application.

Click on Project Development
Click on Project Development

Use this template and give your own project name.

Use the Template
Use the Template

The preparation work is completed. Next are some modifications to the project.

Develop a Translation Project

The newly created application looks like this:

Inside the Project
Inside the Project

Delete Redundant Content

Since only the translation function is used, the other three pages can be completely deleted. Operate as shown in the figure.

First set Translation as the home page, then delete the other three pages
First set Translation as the home page, then delete the other three pages

Since page navigation between pages is used, the pages cannot be directly deleted. First, delete the elements of the other three pages and then delete the pages.

The Translation page needs to delete the click event of the button on the right side of the top navigation bar
The Translation page needs to delete the click event of the button on the right side of the top navigation bar

The final preview effect is as follows:

Preview Image
Preview Image

Modify the Page

The default template does not support Chinese. If you want to translate from English to Chinese, there is no way. So add Chinese here. Similarly, you can also add other languages (as long as they can be translated by AI).

Support Chinese
Support Chinese

Add a default text to the text:

1
{{ translation.data || 'There is no content to be translated for now' }}

Default Text for Text
Default Text for Text

Then, in the business logic, delete everything except translation, including workflows and data, as shown in the following figure.

Delete the useless in the business logic
Delete the useless in the business logic

This is the final effect:

You can refer to the organization tree on the left
You can refer to the organization tree on the left

Preview the Page

After the project modification is completed, you need to see how it looks. You can preview the page here:

Preview Page
Preview Page

In the future, if you want to use translation, you can select all in the url address bar and then drag it to the desktop. This will create a shortcut to the web page, and you can directly open the translation website on the desktop next time!

Appendix

References

This article was originally published on CaiHongTu Blog. It follows the CC BY-NC-SA 4.0 license. Please keep the original source when replicating.

Licensed under CC BY-NC-SA 4.0
Last updated on Jun 20, 2025 19:43 CST
Built with Hugo
Theme Stack designed by Jimmy
© Licensed Under CC BY-NC-SA 4.0