mirror of
https://github.com/AkiChase/scrcpy-mask
synced 2024-11-09 09:41:17 +08:00
feat(i18n): clipboard sync
This commit is contained in:
parent
928e5ff5d9
commit
650bb4d8be
@ -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) {
|
||||
|
@ -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",
|
||||
|
@ -36,7 +36,13 @@
|
||||
"wsConnect": "控制",
|
||||
"adbDeviceError": "无法获取可用设备",
|
||||
"adbConnectError": "无线连接失败",
|
||||
"rotation": "设备旋转 {0}°"
|
||||
"rotation": "设备旋转 {0}°",
|
||||
"clipboard": {
|
||||
"deviceSync": {
|
||||
"success": "已从设备同步剪切板",
|
||||
"failed": "从设备同步剪切板失败"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Mask": {
|
||||
"keyconfigException": "按键方案异常,请删除此方案",
|
||||
|
Loading…
Reference in New Issue
Block a user