Skip to content

Commit 00a2f79

Browse files
committed
Add internationalization
1 parent 46cd2b6 commit 00a2f79

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

src/locales/en/main.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2197,6 +2197,10 @@
21972197
"vueNodesMigrationMainMenu": {
21982198
"message": "Switch back to Nodes 2.0 anytime from the main menu."
21992199
},
2200+
"linearMode": {
2201+
"share": "Share",
2202+
"openWorkflow": "Open Workflow"
2203+
},
22002204
"missingNodes": {
22012205
"cloud": {
22022206
"title": "These nodes aren't available on Comfy Cloud yet",

src/views/LinearView.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,17 +142,21 @@ function openFeedback() {
142142
<div
143143
class="actionbar-container flex h-12 items-center rounded-lg border border-[var(--interface-stroke)] p-2 gap-2 bg-comfy-menu-bg justify-end"
144144
>
145-
<Button label="Feedback" severity="secondary" @click="openFeedback" />
146145
<Button
147-
label="Open Workflow"
146+
:label="t('g.feedback')"
147+
severity="secondary"
148+
@click="openFeedback"
149+
/>
150+
<Button
151+
:label="t('linearMode.openWorkflow')"
148152
severity="secondary"
149153
class="min-w-max"
150154
icon="icon-[comfy--workflow]"
151155
icon-pos="right"
152156
@click="useCanvasStore().linearMode = false"
153157
/>
154158
<Button
155-
label="Share"
159+
:label="t('linearMode.share')"
156160
severity="contrast"
157161
@click="useWorkflowService().exportWorkflow('workflow', 'workflow')"
158162
/>

0 commit comments

Comments
 (0)