pug-site-core 3.0.20 → 3.0.21

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.
Files changed (2) hide show
  1. package/lib/translate.js +1 -1
  2. package/package.json +3 -3
package/lib/translate.js CHANGED
@@ -140,7 +140,7 @@ export async function translateLanguageData() {
140
140
  // 修改输出路径为项目根目录
141
141
  fse.writeFileSync(
142
142
  path.join(projectRoot, "languageData.js"),
143
- "export default" + JSON.stringify(languageData)
143
+ "export default" + JSON.stringify(languageData,null,2)
144
144
  );
145
145
  console.log("翻译完成花费:", (Date.now() - startTime) / 1000 + "s");
146
146
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pug-site-core",
3
- "version": "3.0.20",
3
+ "version": "3.0.21",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -52,7 +52,7 @@
52
52
  "ws": "^8.18.0"
53
53
  },
54
54
  "license": "ISC",
55
- "description": "npm run lang all=true 翻译所有语言改为npm run lang all",
55
+ "description": "语言翻译增加格式化功能",
56
56
  "files": [
57
57
  "lib/",
58
58
  "index.js"
@@ -60,4 +60,4 @@
60
60
  "exports": {
61
61
  ".": "./index.js"
62
62
  }
63
- }
63
+ }