@ddict/translate
Advanced tools
Comparing version 0.0.8 to 0.0.9
{ | ||
"name": "@ddict/translate", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "src", |
@@ -104,3 +104,3 @@ export default { | ||
function reviseTranslation(googleData, target, text) { | ||
if (!target || typeof target !== 'string' || target.length !== 2) { | ||
if (!target || typeof target !== 'string' || target.length < 2) { | ||
throw new Error('Invalid input format: target code language') | ||
@@ -107,0 +107,0 @@ } |
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
44117