feat: localize Shopee GUI wording
This commit is contained in:
+3
-3
@@ -615,9 +615,9 @@ def _cover_upload_error_message(result):
|
||||
if reason == "UPLOAD_CROP_REQUIRED":
|
||||
return "新封面上传后出现裁剪确认框,当前版本未自动处理裁剪弹窗"
|
||||
if reason == "UPLOAD_STILL_PROCESSING":
|
||||
return "新封面上传仍在处理中,未取得 Shopee CDN 地址"
|
||||
return "新封面上传仍在处理中,未取得蝦皮 CDN 地址"
|
||||
if reason == "UPLOAD_TIMEOUT":
|
||||
return "新封面上传超时,未取得 Shopee CDN 地址"
|
||||
return "新封面上传超时,未取得蝦皮 CDN 地址"
|
||||
if reason == "UPLOAD_TILE_NOT_READY":
|
||||
return "新封面上传入口未可点击,未开始上传新封面"
|
||||
if reason == "IMAGE_MANAGER_BUSY":
|
||||
@@ -648,7 +648,7 @@ def _wait_ready(cdp, timeout=60):
|
||||
if invalid_text:
|
||||
raise EditorError(product_unavailable_error_message(invalid_text))
|
||||
time.sleep(1)
|
||||
raise EditorError(_open_product_ready_error(cdp, "等待 Shopee 商品编辑器就绪超时"))
|
||||
raise EditorError(_open_product_ready_error(cdp, "等待蝦皮商品编辑器就绪超时"))
|
||||
|
||||
|
||||
def _ensure_page_domains(cdp):
|
||||
|
||||
Reference in New Issue
Block a user