Skip to content

Commit 831028a

Browse files
authored
feat(desktop): add translations for new user guide actions (#3263)
1 parent 78ba2c3 commit 831028a

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

apps/desktop/locales/app/en.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@
246246
"mark_all_read_button.mark_all_as_read": "Mark all as read",
247247
"mark_all_read_button.mark_as_read": "Mark <which /> as read",
248248
"mark_all_read_button.undo": "Undo",
249+
"new_user_guide.actions.next": "Next",
250+
"new_user_guide.actions.back": "Back",
251+
"new_user_guide.actions.finish": "Finish",
249252
"new_user_guide.intro.description": "This guide will help you get started with the app.",
250253
"new_user_guide.intro.title": "Welcome to Folo!",
251254
"new_user_guide.outro.description": "You have completed the guide. Enjoy your journey!",

apps/desktop/locales/app/zh-CN.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@
246246
"mark_all_read_button.mark_all_as_read": "全部标记为已读",
247247
"mark_all_read_button.mark_as_read": "标记 <which /> 为已读",
248248
"mark_all_read_button.undo": "撤销",
249+
"new_user_guide.actions.next": "下一步",
250+
"new_user_guide.actions.back": "上一步",
251+
"new_user_guide.actions.finish": "完成",
249252
"new_user_guide.intro.description": "本指南将帮助你快速上手这款应用。",
250253
"new_user_guide.intro.title": "欢迎使用 Folo!",
251254
"new_user_guide.outro.description": "你已完成指南,祝你使用愉快!",

apps/desktop/src/renderer/src/modules/new-user-guide/guide-modal-content.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ export function GuideModalContent({ onClose }: { onClose: () => void }) {
244244
}}
245245
variant={"outline"}
246246
>
247-
Back
247+
{t.app("new_user_guide.actions.back")}
248248
</Button>
249249
)}
250250
<Button
@@ -276,7 +276,9 @@ export function GuideModalContent({ onClose }: { onClose: () => void }) {
276276
}
277277
}}
278278
>
279-
{step <= totalSteps ? "Next" : "Finish"}
279+
{step <= totalSteps
280+
? t.app("new_user_guide.actions.next")
281+
: t.app("new_user_guide.actions.finish")}
280282
</Button>
281283
</div>
282284
</div>

0 commit comments

Comments
 (0)