Skip to content

Commit

Permalink
Update tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
otomad committed Apr 12, 2024
1 parent 0e0175b commit cf26757
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,16 +129,16 @@
},
{
"type": "npm",
"script": "crowdin-update",
"script": "crowdin:update",
"problemMatcher": [],
"label": "Crowdin/Update",
"label": "Crowdin: Update",
"detail": "Update source language file to Crowdin - 将源语言文件更新到 Crowdin",
},
{
"type": "npm",
"script": "crowdin-download",
"script": "crowdin:download",
"problemMatcher": [],
"label": "Crowdin/Download",
"label": "Crowdin: Download",
"detail": "Download translated language file from Crowdin - 从 Crowdin 下载翻译好的语言文件",
},
]
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"update-eases": "tsx scripts/update-eases.ts",
"compact-svg": "tsx scripts/compact-svg.ts",
"delete-node-modules": "npx rimraf --glob ./node_modules || npx rimraf --glob ./.nuxt",
"crowdin-update": "tsx scripts/crowdin/update.ts",
"crowdin-download": "tsx scripts/crowdin/download.ts"
"crowdin:update": "tsx scripts/crowdin/update.ts",
"crowdin:download": "tsx scripts/crowdin/download.ts"
},
"lint-staged": {
"*.{html,vue,css,sass,scss}": [
Expand Down
1 change: 1 addition & 0 deletions scripts/crowdin/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ const fileContent = await readFile(file, "utf-8");

updateFile(projectId, `${SOURCE_LANGUAGE}.json`, fileContent);
console.log(consoleColors.foreground.green + "Update successfully!" + consoleColors.reset);
console.log("Please visit to start translation: " + consoleColors.foreground.blue + "https://crowdin.com/project/kirakira" + consoleColors.reset);
1 change: 1 addition & 0 deletions types/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ declare global {
interface Document {
/**
* 在 Internet Explorer 中可用的文本选中对象。
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getSelection)
*/
selection: Selection | null;
Expand Down

0 comments on commit cf26757

Please sign in to comment.