translation.js
Advanced tools
Comparing version 0.7.10 to 0.7.12
@@ -776,3 +776,5 @@ 'use strict'; | ||
try { | ||
result.result = body.translateResult[0].map(function (o) { return o.tgt.trim(); }); | ||
result.result = body.translateResult.map(function (part) { | ||
return part.map(function (o) { return o.tgt.trim(); }).join(''); | ||
}); | ||
} | ||
@@ -779,0 +781,0 @@ catch (e) { } |
@@ -770,3 +770,5 @@ import { __awaiter, __generator } from 'tslib'; | ||
try { | ||
result.result = body.translateResult[0].map(function (o) { return o.tgt.trim(); }); | ||
result.result = body.translateResult.map(function (part) { | ||
return part.map(function (o) { return o.tgt.trim(); }).join(''); | ||
}); | ||
} | ||
@@ -773,0 +775,0 @@ catch (e) { } |
@@ -824,3 +824,5 @@ var tjs = (function (exports, bluemd5) { | ||
try { | ||
result.result = body.translateResult[0].map(function (o) { return o.tgt.trim(); }); | ||
result.result = body.translateResult.map(function (part) { | ||
return part.map(function (o) { return o.tgt.trim(); }).join(''); | ||
}); | ||
} | ||
@@ -827,0 +829,0 @@ catch (e) { } |
@@ -799,3 +799,5 @@ 'use strict'; | ||
try { | ||
result.result = body.translateResult[0].map(function (o) { return o.tgt.trim(); }); | ||
result.result = body.translateResult.map(function (part) { | ||
return part.map(function (o) { return o.tgt.trim(); }).join(''); | ||
}); | ||
} | ||
@@ -802,0 +804,0 @@ catch (e) { } |
@@ -795,3 +795,5 @@ import { __awaiter, __generator } from 'tslib'; | ||
try { | ||
result.result = body.translateResult[0].map(function (o) { return o.tgt.trim(); }); | ||
result.result = body.translateResult.map(function (part) { | ||
return part.map(function (o) { return o.tgt.trim(); }).join(''); | ||
}); | ||
} | ||
@@ -798,0 +800,0 @@ catch (e) { } |
{ | ||
"name": "translation.js", | ||
"version": "0.7.10", | ||
"version": "0.7.12", | ||
"description": "集成多种翻译引擎并提供统一的翻译接口。", | ||
@@ -5,0 +5,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
170224
4272