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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-yuca",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "description": "一个用AI生成的开发辅助工具",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -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下载
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-yuca",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "description": "一个用AI生成的开发辅助工具",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",