Skip to content

Commit 167db9c

Browse files
committed
fix(i18n): update sketch composer mode label
- Update the label for sketch composer mode in both Chinese and English properties files. - Replace the hardcoded label in SketchToolWindow.kt with a new descriptive text
1 parent a3f02e3 commit 167db9c

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

core/src/main/kotlin/cc/unitmesh/devti/sketch/SketchToolWindow.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package cc.unitmesh.devti.sketch
22

3+
import cc.unitmesh.devti.AutoDevBundle
34
import cc.unitmesh.devti.alignRight
45
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
56
import cc.unitmesh.devti.gui.chat.ChatCodingService
@@ -79,7 +80,7 @@ class SketchToolWindow(val project: Project, val editor: Editor?, private val sh
7980
private var panelContent: DialogPanel = panel {
8081
if (showInput) {
8182
row {
82-
checkBox("AI 降临模式(全自动化)").apply {
83+
checkBox(AutoDevBundle.message("sketch.composer.mode")).apply {
8384
this.component.addActionListener {
8485
AutoSketchMode.getInstance(project).isEnable = this.component.isSelected
8586
}

core/src/main/resources/messages/AutoDevBundle_en.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,3 +213,4 @@ sketch.patch.action.rollback=Rollback
213213
sketch.patch.action.rollback.tooltip=Rollback the change
214214
prompts.autodev.inlineChat=According user selection to ask user question
215215
prompts.autodev.sketch=Sketch
216+
sketch.composer.mode=Composer Mode

core/src/main/resources/messages/AutoDevBundle_zh.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,3 +212,4 @@ sketch.patch.action.rollback=Rollback
212212
sketch.patch.action.rollback.tooltip=Rollback the change
213213
prompts.autodev.inlineChat=According user selection to ask user question
214214
prompts.autodev.sketch=Sketch
215+
sketch.composer.mode=Composer Mode(自动模式)

0 commit comments

Comments
 (0)