Skip to content

Commit

Permalink
🌐 update i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
yuudi committed Jun 21, 2023
1 parent 8094638 commit 77a81b0
Show file tree
Hide file tree
Showing 5 changed files with 245 additions and 1,154 deletions.
9 changes: 7 additions & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,14 @@
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"builder": "ng-extract-i18n-merge:ng-extract-i18n-merge",
"options": {
"browserTarget": "rclone-webui-angular:build"
"browserTarget": "rclone-webui-angular:build",
"format": "xlf",
"outputPath": "src/locale",
"targetFiles": [
"messages.zh-CN.xlf"
]
}
},
"test": {
Expand Down
89 changes: 85 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lint:prettier": "prettier ./src --write",
"lint:eslint": "ng lint --fix",
"lint": "npm run lint:eslint && npm run lint:prettier",
"extract-i18n": "ng extract-i18n --output-path src/locale"
"extract-i18n": "ng extract-i18n"
},
"private": true,
"dependencies": {
Expand Down Expand Up @@ -52,6 +52,7 @@
"karma-coverage": "~2.2.0",
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.0.0",
"ng-extract-i18n-merge": "^2.7.0",
"prettier": "^2.8.8",
"typescript": "~5.0.2"
}
Expand Down
Loading

0 comments on commit 77a81b0

Please sign in to comment.