Skip to content

Commit

Permalink
测试组件
Browse files Browse the repository at this point in the history
  • Loading branch information
zetaloop committed Nov 14, 2024
1 parent 145146c commit 0ece90e
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions app/src/ui/lib/test-ui-components/test-ui-components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export function showTestUI(

function testAppError() {
return dispatcher.postError(
new Error('Test Error - to use default error handler' + uuid())
new Error('错误测试 - 使用默认错误处理方式 ' + uuid())
)
}

Expand Down Expand Up @@ -117,7 +117,7 @@ export function showTestUI(
function showTestNoExternalEditor() {
dispatcher.postError(
new ExternalEditorError(
`No suitable editors installed for GitHub Desktop to launch. Install ${suggestedExternalEditor.name} for your platform and restart GitHub Desktop to try again.`,
`未找到合适的编辑器。在电脑上安装 ${suggestedExternalEditor.name} 并重启 GitHub Desktop 再试一次吧。`,
{ suggestDefaultEditor: true }
)
)
Expand Down Expand Up @@ -167,12 +167,11 @@ export function showTestUI(
const userContributions: ReadonlyArray<ReleaseNote> = [
{
kind: 'fixed',
message: 'A totally awesome fix that fixes something - #123. Thanks!',
message: '一个特别棒的bug修复,修好了某个问题 - #123。谢谢!',
},
{
kind: 'added',
message:
'You can now do this new thing that was added here - #456. Thanks!',
message: '这个新功能它真是又新又功能啊 - #456。谢谢!',
},
]

Expand All @@ -184,7 +183,7 @@ export function showTestUI(
dispatcher.showPopup({
type: PopupType.ThankYou,
userContributions,
friendlyName: 'Test User',
friendlyName: '测试用户',
latestVersion: getVersion(),
}),
onThrowCardAway: () => {
Expand All @@ -200,10 +199,10 @@ export function showTestUI(
userContributions: [
{
kind: 'new',
message: '[New] Added fake thank you dialog',
message: '[新功能] 假的感谢小卡片',
},
],
friendlyName: 'kind contributor',
friendlyName: '某位心善的开发者',
latestVersion: '3.0.0',
})
}
Expand Down

0 comments on commit 0ece90e

Please sign in to comment.