i18-fe-automator-beta 1.0.1 → 1.0.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/dist/commonjs/index.js +3 -3
- package/dist/esm/index.mjs +3 -3
- package/package.json +1 -1
package/dist/commonjs/index.js
CHANGED
|
@@ -23,7 +23,7 @@ var stripAnsi = require('strip-ansi');
|
|
|
23
23
|
require('shelljs');
|
|
24
24
|
var process$1 = require('child_process');
|
|
25
25
|
var _ = require('lodash');
|
|
26
|
-
|
|
26
|
+
require('nanoid');
|
|
27
27
|
var request$1 = require('request-promise');
|
|
28
28
|
require('os');
|
|
29
29
|
require('console');
|
|
@@ -2279,8 +2279,8 @@ function translateUtil(appid, key, projectName, isLintFix) {
|
|
|
2279
2279
|
EN = EN[0].toUpperCase() + EN.slice(1);
|
|
2280
2280
|
item1.EN = EN;
|
|
2281
2281
|
if (isLintFix) {
|
|
2282
|
-
item1.key = nanoid
|
|
2283
|
-
|
|
2282
|
+
// item1.key = nanoid().replace("_", "a");
|
|
2283
|
+
item1.key = id + "-" + key;
|
|
2284
2284
|
} else {
|
|
2285
2285
|
item1.key = id + "-" + key;
|
|
2286
2286
|
}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -21,7 +21,7 @@ import stripAnsi from 'strip-ansi';
|
|
|
21
21
|
import 'shelljs';
|
|
22
22
|
import process$1 from 'child_process';
|
|
23
23
|
import _ from 'lodash';
|
|
24
|
-
import
|
|
24
|
+
import 'nanoid';
|
|
25
25
|
import request$1 from 'request-promise';
|
|
26
26
|
import 'os';
|
|
27
27
|
import 'console';
|
|
@@ -2257,8 +2257,8 @@ function translateUtil(appid, key, projectName, isLintFix) {
|
|
|
2257
2257
|
EN = EN[0].toUpperCase() + EN.slice(1);
|
|
2258
2258
|
item1.EN = EN;
|
|
2259
2259
|
if (isLintFix) {
|
|
2260
|
-
item1.key = nanoid().replace("_", "a");
|
|
2261
|
-
|
|
2260
|
+
// item1.key = nanoid().replace("_", "a");
|
|
2261
|
+
item1.key = id + "-" + key;
|
|
2262
2262
|
} else {
|
|
2263
2263
|
item1.key = id + "-" + key;
|
|
2264
2264
|
}
|