perf: 🌐 Improve i8n

This commit is contained in:
viarotel 2024-03-17 10:39:53 +08:00
parent 0801c470fe
commit 4fe55a3329
3 changed files with 11 additions and 5 deletions

View File

@ -67,14 +67,14 @@ export default {
this.$alert( this.$alert(
`<div> `<div>
该软件依赖与 ${this.$t('dependencies.lack.content', {
<a class="hover:underline text-primary-500" href="https://github.com/Genymobile/scrcpy" target="_blank">scrcpy</a> name: '<a class="hover:underline text-primary-500" href="https://github.com/Genymobile/scrcpy" target="_blank">scrcpy</a>',
请确保已正确安装所述依赖项或者在偏好设置中手动配置依赖项所在位置 })}
<div>`, <div>`,
'注意事项', this.$t('dependencies.lack.title'),
{ {
dangerouslyUseHTMLString: true, dangerouslyUseHTMLString: true,
confirmButtonText: '确定', confirmButtonText: this.$t('common.confirm'),
}, },
) )
}, },

View File

@ -19,6 +19,9 @@
"close.message": "Are you sure you want to quit?", "close.message": "Are you sure you want to quit?",
"close.remember": "Remember this choice?", "close.remember": "Remember this choice?",
"dependencies.lack.title": "Notice",
"dependencies.lack.content": "This software relies on {name}. Please ensure that the mentioned dependencies are correctly installed, or manually configure the location of the dependencies in the preferences.",
"device.list": "Devices", "device.list": "Devices",
"device.list.empty": "No devices detected", "device.list.empty": "No devices detected",
"device.id": "Device ID", "device.id": "Device ID",

View File

@ -19,6 +19,9 @@
"close.message": "确定要退出吗?", "close.message": "确定要退出吗?",
"close.remember": "是否记住选择?", "close.remember": "是否记住选择?",
"dependencies.lack.title": "注意事项",
"dependencies.lack.content": "此软件依赖于{name}。请确保正确安装了上述依赖项,或手动配置首选项中依赖项的位置",
"device.list": "设备列表", "device.list": "设备列表",
"device.list.empty": "没有检测到设备", "device.list.empty": "没有检测到设备",
"device.id": "设备 ID", "device.id": "设备 ID",