Skip to content

Commit

Permalink
docs: translate text
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Jan 10, 2024
1 parent 13973b5 commit 6f6d254
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/i18n/en-UK/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,6 @@
"WebServerCORS": "错误CORS:你的浏览器擅自把请求改为了HTTPS,导致请求失败",
"WebServerUnknown": "错误:未知的请求错误",
"GetUserName": "Error: Get user name"
}
},
"ClearAllServersConfirmQuestion": "Are you sure you want to clear all servers?"
}
3 changes: 2 additions & 1 deletion src/i18n/zh-Hans/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,6 @@
"WebServerCORS": "ErrorCORS: Your browsr turn request to HTTPS cuase it failed",
"WebServerUnknown": "Error: Unknown request error",
"GetUserName": "错误:获取用户名"
}
},
"ClearAllServersConfirmQuestion": "你确定要清除所有服务器吗?"
}
2 changes: 1 addition & 1 deletion src/options/Servers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export function ServersOptions() {
{isConfirmDialogVisible && (
<div className='fixed inset-0 flex items-center justify-center p-4 bg-black bg-opacity-50'>
<div className='bg-white p-4 rounded-md'>
<p className='mb-4'>Are you sure you want to clear all servers?</p>
<p className='mb-4'>{t('ClearAllServersConfirmQuestion')}</p>
<div className='flex justify-between'>
<button onClick={handleClearAllServers} className='px-4 py-2 font-bold text-white bg-red-500 rounded-md hover:bg-red-400'>
{t('Confirm')}
Expand Down

0 comments on commit 6f6d254

Please sign in to comment.