ai-yuca 1.3.4 → 1.3.6
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/package.json +1 -1
- package/dist/src/pullCrowdin.js +3 -1
- package/package.json +1 -1
package/dist/package.json
CHANGED
package/dist/src/pullCrowdin.js
CHANGED
|
@@ -299,6 +299,7 @@ async function getTransLateFiles(gcpClient, config) {
|
|
|
299
299
|
console.log(`找到 ${newCommonPrefixes.length} 个语言目录`);
|
|
300
300
|
const downloadedFiles = [];
|
|
301
301
|
const languages = [];
|
|
302
|
+
const jsonFileReg = new RegExp(`.json$`);
|
|
302
303
|
// 遍历每个语言目录
|
|
303
304
|
for (const dir of newCommonPrefixes) {
|
|
304
305
|
try {
|
|
@@ -316,8 +317,9 @@ async function getTransLateFiles(gcpClient, config) {
|
|
|
316
317
|
const langDir = path.join(process.cwd(), config.crowdin.keysDir, 'lang');
|
|
317
318
|
// 创建语言目录
|
|
318
319
|
mkDirs(langDir);
|
|
320
|
+
const jsonLangFiles = langFiles.filter((file) => jsonFileReg.test(file.name));
|
|
319
321
|
if (langFiles && langFiles.length > 0) {
|
|
320
|
-
console.log('langFiles', langFiles);
|
|
322
|
+
console.log('langFiles', langFiles.map((file) => file.name));
|
|
321
323
|
for (const file of langFiles) {
|
|
322
324
|
try {
|
|
323
325
|
// 直接从GCP下载
|