gant-core 0.1.37 → 0.1.38
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/lib/cli/index.js +10 -10
- package/lib/cli/index.js.map +1 -1
- package/package.json +1 -1
package/lib/cli/index.js
CHANGED
|
@@ -6246,15 +6246,15 @@ var generateI18n = (userConfig, cwd) => {
|
|
|
6246
6246
|
}
|
|
6247
6247
|
let languageObj = {};
|
|
6248
6248
|
for (const filePath of filesPath) {
|
|
6249
|
-
if (
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
}
|
|
6249
|
+
if (fs$6.existsSync(path$5.resolve(filePath, 'locales'))) {
|
|
6250
|
+
const files = fs$6.readdirSync(path$5.resolve(filePath, 'locales'));
|
|
6251
|
+
files.map((file) => {
|
|
6252
|
+
const _fileName = file.replace('.ts', '');
|
|
6253
|
+
const content = getJavascriptfile(path$5.resolve(filePath, 'locales', file));
|
|
6254
|
+
languageObj = mergeConfig$1({ [_fileName]: content }, languageObj);
|
|
6255
|
+
return;
|
|
6256
|
+
});
|
|
6257
|
+
}
|
|
6258
6258
|
}
|
|
6259
6259
|
Object.keys(languageObj).map((filename) => {
|
|
6260
6260
|
const content = languageObj[filename];
|
|
@@ -48740,7 +48740,7 @@ const createCwdConfig = (cwd, name, vue) => {
|
|
|
48740
48740
|
};
|
|
48741
48741
|
|
|
48742
48742
|
var name = "gant-core";
|
|
48743
|
-
var version = "0.1.
|
|
48743
|
+
var version = "0.1.38";
|
|
48744
48744
|
var description = "";
|
|
48745
48745
|
var main = "lib/index.js";
|
|
48746
48746
|
var bin = {
|