Add 'compile translations' task to VSCode tasks (#64933)

This commit is contained in:
Mick Vleeshouwer 2022-01-25 20:55:02 -08:00 committed by GitHub
parent 24546dfdf9
commit 22463fd296
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

23
.vscode/tasks.json vendored
View File

@ -16,9 +16,7 @@
"label": "Pytest",
"type": "shell",
"command": "pytest --timeout=10 tests",
"dependsOn": [
"Install all Test Requirements"
],
"dependsOn": ["Install all Test Requirements"],
"group": {
"kind": "test",
"isDefault": true
@ -47,9 +45,7 @@
"label": "Pylint",
"type": "shell",
"command": "pylint homeassistant",
"dependsOn": [
"Install all Requirements"
],
"dependsOn": ["Install all Requirements"],
"group": {
"kind": "test",
"isDefault": true
@ -116,6 +112,21 @@
"panel": "new"
},
"problemMatcher": []
},
{
"label": "Compile translations",
"detail": "In order to test changes to translation files, the translation strings must be compiled into Home Assistant's translation directories.",
"type": "shell",
"command": "python3 -m script.translations develop --integration ${input:integrationName}",
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": []
}
],
"inputs": [