mirror of
https://github.com/AkiChase/scrcpy-mask
synced 2024-11-12 20:11:21 +08:00
feat(i18n): clipboard sync
This commit is contained in:
parent
928e5ff5d9
commit
650bb4d8be
@ -76,15 +76,14 @@ onMounted(async () => {
|
|||||||
navigator.clipboard
|
navigator.clipboard
|
||||||
.writeText(payload.clipboard)
|
.writeText(payload.clipboard)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
message.info("Device clipboard synced");
|
message.info(t("pages.Device.clipboard.deviceSync.success"));
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
message.error("Device clipboard sync failed");
|
message.error(t("pages.Device.clipboard.deviceSync.failed"));
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case "ClipboardSetAck":
|
case "ClipboardSetAck":
|
||||||
console.log("ClipboardSetAck", payload.sequence);
|
|
||||||
break;
|
break;
|
||||||
case "DeviceRotation":
|
case "DeviceRotation":
|
||||||
if (deviceWaitForScreenSizeTask) {
|
if (deviceWaitForScreenSizeTask) {
|
||||||
|
@ -36,7 +36,13 @@
|
|||||||
"wsConnect": "Control",
|
"wsConnect": "Control",
|
||||||
"adbDeviceError": "Unable to get available devices",
|
"adbDeviceError": "Unable to get available devices",
|
||||||
"adbConnectError": "Wireless connection failed",
|
"adbConnectError": "Wireless connection failed",
|
||||||
"rotation": "Device rotation {0}°"
|
"rotation": "Device rotation {0}°",
|
||||||
|
"clipboard": {
|
||||||
|
"deviceSync": {
|
||||||
|
"success": "Device clipboard synced",
|
||||||
|
"failed": "Device clipboard sync failed"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"Mask": {
|
"Mask": {
|
||||||
"keyconfigException": "The key mapping config is abnormal, please delete this config",
|
"keyconfigException": "The key mapping config is abnormal, please delete this config",
|
||||||
|
@ -36,7 +36,13 @@
|
|||||||
"wsConnect": "控制",
|
"wsConnect": "控制",
|
||||||
"adbDeviceError": "无法获取可用设备",
|
"adbDeviceError": "无法获取可用设备",
|
||||||
"adbConnectError": "无线连接失败",
|
"adbConnectError": "无线连接失败",
|
||||||
"rotation": "设备旋转 {0}°"
|
"rotation": "设备旋转 {0}°",
|
||||||
|
"clipboard": {
|
||||||
|
"deviceSync": {
|
||||||
|
"success": "已从设备同步剪切板",
|
||||||
|
"failed": "从设备同步剪切板失败"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"Mask": {
|
"Mask": {
|
||||||
"keyconfigException": "按键方案异常,请删除此方案",
|
"keyconfigException": "按键方案异常,请删除此方案",
|
||||||
|
Loading…
Reference in New Issue
Block a user