td-octopus 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/utils/translate.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "td-octopus",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "I18N tool",
|
|
5
5
|
"author": "Anthony Li",
|
|
6
6
|
"bin": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"typescript": "^3.2.2",
|
|
26
26
|
"update-notifier": "^4.1.0",
|
|
27
27
|
"vue-template-compiler": "^2.6.14",
|
|
28
|
-
"xlsx": "
|
|
28
|
+
"xlsx": "0.12.2",
|
|
29
29
|
"yargs": "^15.3.1"
|
|
30
30
|
},
|
|
31
31
|
"keywords": [
|
package/src/utils/translate.js
CHANGED
|
@@ -299,7 +299,7 @@ function generateExcel(addList, path, lang) {
|
|
|
299
299
|
const excleData = [['需要翻译的字段', '中文', '百度翻译', '人工翻译'], ...addList];
|
|
300
300
|
|
|
301
301
|
const options = {
|
|
302
|
-
'!cols': [{ wpx: 100 }, { wpx: 100 }, { wpx: 100 }]
|
|
302
|
+
'!cols': [{ wpx: 100 }, { wpx: 100 }, { wpx: 100 }, { wpx: 100 }]
|
|
303
303
|
};
|
|
304
304
|
|
|
305
305
|
const worksheet = XLSX.utils.aoa_to_sheet(excleData);
|