Skip to content

Commit

Permalink
refactor: Modify some prompt text.
Browse files Browse the repository at this point in the history
Signed-off-by: The1111mp <[email protected]>
  • Loading branch information
1111mp committed Dec 19, 2023
1 parent 84135b5 commit 7a379c9
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
6 changes: 5 additions & 1 deletion _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,10 @@
"message": "Now using node $version$",
"description": "The text of the Restart-Terminal"
},
"Tip-Uninstall": {
"message": "The node $version$ has been successfully uninstalled",
"description": "The text of the Tip-Uninstall"
},
"Tip-Finally": {
"message": "For more information about this issue and possible workarounds, please",
"description": "The text of the Tip-Finally"
Expand Down Expand Up @@ -368,7 +372,7 @@
"description": "The text of the Whats-new"
},
"Refresh-successful": {
"message": "Refresh successful",
"message": "The latest data has been synchronized",
"description": "The text of the Refresh-successful"
},
"Command-Tip-Project": {
Expand Down
6 changes: 5 additions & 1 deletion _locales/zh_CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,10 @@
"message": "现在使用 $version$ 版本",
"description": "The text of the Restart-Terminal"
},
"Tip-Uninstall": {
"message": "$version$ 版本已经成功被卸载",
"description": "The text of the Tip-Uninstall"
},
"Tip-Finally": {
"message": "有关此问题和可能的解决方法的详细信息,请",
"description": "The text of the Tip-Finally"
Expand Down Expand Up @@ -368,7 +372,7 @@
"description": "The text of the Whats-new"
},
"Refresh-successful": {
"message": "刷新成功",
"message": "已同步最新数据",
"description": "The text of the Refresh-successful"
},
"Command-Tip-Project": {
Expand Down
4 changes: 3 additions & 1 deletion src/renderer/pages/installed/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,9 @@ export const Component: React.FC = () => {
installeds.includes(version.slice(1)),
),
);
message.success('Successful');
message.success(
i18n('Tip-Uninstall', [record.version]),
);
} catch (err) {
message.error(
err.message
Expand Down
4 changes: 3 additions & 1 deletion src/renderer/pages/versions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,9 @@ const Versions: React.FC = () => {
]);
setCurrent(currentVersion);
setInstalledVersions(versions);
message.success('Successful');
message.success(
i18n('Tip-Uninstall', [record.version]),
);
return;
}
default:
Expand Down

0 comments on commit 7a379c9

Please sign in to comment.