feat(i18n): clipboard sync

This commit is contained in:
AkiChase 2024-05-26 21:10:28 +08:00
parent 928e5ff5d9
commit 650bb4d8be
3 changed files with 16 additions and 5 deletions

View File

@ -76,15 +76,14 @@ onMounted(async () => {
navigator.clipboard
.writeText(payload.clipboard)
.then(() => {
message.info("Device clipboard synced");
message.info(t("pages.Device.clipboard.deviceSync.success"));
})
.catch((e) => {
console.error(e);
message.error("Device clipboard sync failed");
message.error(t("pages.Device.clipboard.deviceSync.failed"));
});
break;
case "ClipboardSetAck":
console.log("ClipboardSetAck", payload.sequence);
break;
case "DeviceRotation":
if (deviceWaitForScreenSizeTask) {

View File

@ -36,7 +36,13 @@
"wsConnect": "Control",
"adbDeviceError": "Unable to get available devices",
"adbConnectError": "Wireless connection failed",
"rotation": "Device rotation {0}°"
"rotation": "Device rotation {0}°",
"clipboard": {
"deviceSync": {
"success": "Device clipboard synced",
"failed": "Device clipboard sync failed"
}
}
},
"Mask": {
"keyconfigException": "The key mapping config is abnormal, please delete this config",

View File

@ -36,7 +36,13 @@
"wsConnect": "控制",
"adbDeviceError": "无法获取可用设备",
"adbConnectError": "无线连接失败",
"rotation": "设备旋转 {0}°"
"rotation": "设备旋转 {0}°",
"clipboard": {
"deviceSync": {
"success": "已从设备同步剪切板",
"failed": "从设备同步剪切板失败"
}
}
},
"Mask": {
"keyconfigException": "按键方案异常,请删除此方案",