Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions template/nestJs/locales.json
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,15 @@
"exception.result.permissions.404": "Check the network connection and try to refresh the page.",
"menu.exception.500": "500",
"exception.result.500.description": "Internal server error",
"menu.exception.system-busy": "System Busy",
"exception.result.systemBusy.description": "The system is busy. Please try again later",
"exception.result.permissions.system-busy": "There are too many people. Just wait a little longer",
"menu.exception.load-failure": "Loading failed",
"exception.result.load-failure.description": "The system is busy. Please try again later",
"exception.result.permissions.load-failure": "The system is busy. Try again later",
"menu.exception.no-search-results": "No Sarch Results",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Typo: "Sarch" should be "Search"

Same typo as in template/tinyvue/src/locales.json.

Proposed fix
-    "menu.exception.no-search-results": "No Sarch Results",
+    "menu.exception.no-search-results": "No Search Results",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"menu.exception.no-search-results": "No Sarch Results",
"menu.exception.no-search-results": "No Search Results",
🤖 Prompt for AI Agents
In @template/nestJs/locales.json at line 336, Fix the typo in the locale key
value for "menu.exception.no-search-results": change "No Sarch Results" to "No
Search Results" (matching the same correction applied in the corresponding
tinyvue locales file).

"exception.result.no-search-results.description": "There are no search results yet. Please try again later",
"exception.result.permissions.no-search-results": "I can't find any results for now. I'll try again later",
"exception.result.500.back": "Back",
"exception.result.permissions.500": "Check the network connection and try to refresh the page.",
"menu.user.info": "User Center",
Expand Down Expand Up @@ -1005,6 +1014,15 @@
"exception.result.500.description": "抱歉,服务器出了点问题~",
"exception.result.500.back": "返回",
"exception.result.permissions.500": "请查看网络连接情况,尝试刷新页面",
"menu.exception.system-busy": "系统繁忙",
"exception.result.systemBusy.description": "系统繁忙,请稍后再试",
"exception.result.permissions.system-busy": "人太多啦,再等等",
"menu.exception.load-failure": "加载失败",
"exception.result.load-failure.description": "加载失败,请稍后再试",
"exception.result.permissions.load-failure": "系统繁忙,稍后再试",
"menu.exception.no-search-results": "暂无搜索结果",
"exception.result.no-search-results.description": "暂无搜索结果,请稍后再试",
"exception.result.permissions.no-search-results": "暂时搜索不到结果,稍后再试",
"menu.user.info": "用户中心",
"userInfo.tab.one": "我的计划",
"userInfo.tab.two": "我的任务",
Expand Down
27 changes: 27 additions & 0 deletions template/nestJs/src/menu/init/menuData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,33 @@ export const menuData = [
path: '500',
locale: 'menu.exception.500',
},
{
name: '系统繁忙',
order: 1,
menuType: 'normal',
icon: '',
component: 'exception/system-busy/index',
path: 'system-busy',
locale: 'menu.exception.system-busy',
},
{
name: '加载失败',
order: 1,
menuType: 'normal',
icon: '',
component: 'exception/load-failure/index',
path: 'load-failure',
locale: 'menu.exception.load-failure',
},
{
name: '暂无搜索结果',
order: 1,
menuType: 'normal',
icon: '',
component: 'exception/no-search-results/index',
path: 'no-search-results',
locale: 'menu.exception.no-search-results',
},
{
name: 'User',
order: 7,
Expand Down
27 changes: 27 additions & 0 deletions template/springboot/src/main/resources/MenuData.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,33 @@
"component": "exception/500/index",
"path": "500",
"locale": "menu.exception.500"
},
{
"name": "系统繁忙",
"order": 1,
"menuType": "normal",
"icon": "",
"component": "exception/system-busy/index",
"path": "system-busy",
"locale": "menu.exception.system-busy"
},
{
"name": "加载失败",
"order": 1,
"menuType": "normal",
"icon": "",
"component": "exception/load-failure/index",
"path": "load-failure",
"locale": "menu.exception.load-failure"
},
{
"name": "暂无搜索结果",
"order": 1,
"menuType": "normal",
"icon": "",
"component": "exception/no-search-results/index",
"path": "no-search-results",
"locale": "menu.exception.no-search-results"
}
]
},
Expand Down
18 changes: 18 additions & 0 deletions template/springboot/src/main/resources/locales.json
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,15 @@
"exception.result.permissions.404": "Check the network connection and try to refresh the page.",
"menu.exception.500": "500",
"exception.result.500.description": "Internal server error",
"menu.exception.system-busy": "System Busy",
"exception.result.systemBusy.description": "The system is busy. Please try again later",
"exception.result.permissions.system-busy": "There are too many people. Just wait a little longer",
"menu.exception.load-failure": "Loading failed",
"exception.result.load-failure.description": "The system is busy. Please try again later",
"exception.result.permissions.load-failure": "The system is busy. Try again later",
"menu.exception.no-search-results": "No Sarch Results",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Typo: "Sarch" should be "Search".

The menu label has a typo that will be visible to users.

Fix the typo
-    "menu.exception.no-search-results": "No Sarch Results",
+    "menu.exception.no-search-results": "No Search Results",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"menu.exception.no-search-results": "No Sarch Results",
"menu.exception.no-search-results": "No Search Results",
🤖 Prompt for AI Agents
In @template/springboot/src/main/resources/locales.json at line 303, Fix the
typo in the locales entry "menu.exception.no-search-results" by changing its
value from "No Sarch Results" to "No Search Results" in the locales.json so the
menu label displays correctly to users.

"exception.result.no-search-results.description": "There are no search results yet. Please try again later",
"exception.result.permissions.no-search-results": "I can't find any results for now. I'll try again later",
"exception.result.500.back": "Back",
"exception.result.permissions.500": "Check the network connection and try to refresh the page.",
"menu.user.info": "User Center",
Expand Down Expand Up @@ -937,6 +946,15 @@
"exception.result.permissions.404": "请查看网络连接情况,尝试刷新页面",
"menu.exception.500": "500",
"exception.result.500.description": "抱歉,服务器出了点问题~",
"menu.exception.system-busy": "系统繁忙",
"exception.result.systemBusy.d escription": "系统繁忙,请稍后再试",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

Malformed key will cause missing translation.

The key exception.result.systemBusy.d escription has an extra space, making it d escription instead of description. The Vue component references exception.result.systemBusy.description, so this translation will not be found and the UI will display the raw key.

Fix the malformed key
-    "exception.result.systemBusy.d  escription": "系统繁忙,请稍后再试",
+    "exception.result.systemBusy.description": "系统繁忙,请稍后再试",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"exception.result.systemBusy.d escription": "系统繁忙,请稍后再试",
"exception.result.systemBusy.description": "系统繁忙,请稍后再试",
🤖 Prompt for AI Agents
In @template/springboot/src/main/resources/locales.json at line 950, The JSON
key "exception.result.systemBusy.d  escription" is malformed with extra spaces;
rename it to "exception.result.systemBusy.description" so the Vue component can
find the translation, ensuring the value "系统繁忙,请稍后再试" remains unchanged.

"exception.result.permissions.system-busy": "人太多啦,再等等",
"menu.exception.load-failure": "加载失败",
"exception.result.load-failure.description": "加载失败,请稍后再试",
"exception.result.permissions.load-failure": "系统繁忙,稍后再试",
"menu.exception.no-search-results": "暂无搜索结果",
"exception.result.no-search-results.description": "暂无搜索结果,请稍后再试",
"exception.result.permissions.no-search-results": "暂时搜索不到结果,稍后再试",
"exception.result.500.back": "返回",
"exception.result.permissions.500": "请查看网络连接情况,尝试刷新页面",
"menu.user.info": "用户中心",
Expand Down
23 changes: 23 additions & 0 deletions template/tinyvue/src/assets/images/load-failure.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions template/tinyvue/src/assets/images/no-search-results.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading