official-intl
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -83,7 +83,7 @@ #!/usr/bin/env node | ||
} | ||
const key = (Array.isArray(arr[0]) ? arr[0]?.map(v => v.text)?.join('') : arr[0]).trim() || ''; | ||
const key = (Array.isArray(arr[0]) ? arr[0]?.map(v => v.text)?.join('') : arr[0])?.trim() || ''; | ||
const tmp = { | ||
'zh-CN': key, | ||
'en-US': (Array.isArray(arr[1]) ? arr[1]?.map(v => v.text)?.join('') : arr[1]).trim() || '', | ||
'ja-JP': (Array.isArray(arr[2]) ? arr[2]?.map(v => v.text)?.join('') : arr[2]).trim() || '', | ||
'en-US': (Array.isArray(arr[1]) ? arr[1]?.map(v => v.text)?.join('') : arr[1])?.trim() || '', | ||
'ja-JP': (Array.isArray(arr[2]) ? arr[2]?.map(v => v.text)?.join('') : arr[2])?.trim() || '', | ||
}; | ||
@@ -90,0 +90,0 @@ obj[key] = tmp[lan]; |
{ | ||
"name": "official-intl", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "数数科技官网国际化文案提取和更新工具", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
214292