mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Add 'compile translations' task to VSCode tasks (#64933)
This commit is contained in:
parent
24546dfdf9
commit
22463fd296
23
.vscode/tasks.json
vendored
23
.vscode/tasks.json
vendored
@ -16,9 +16,7 @@
|
|||||||
"label": "Pytest",
|
"label": "Pytest",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "pytest --timeout=10 tests",
|
"command": "pytest --timeout=10 tests",
|
||||||
"dependsOn": [
|
"dependsOn": ["Install all Test Requirements"],
|
||||||
"Install all Test Requirements"
|
|
||||||
],
|
|
||||||
"group": {
|
"group": {
|
||||||
"kind": "test",
|
"kind": "test",
|
||||||
"isDefault": true
|
"isDefault": true
|
||||||
@ -47,9 +45,7 @@
|
|||||||
"label": "Pylint",
|
"label": "Pylint",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "pylint homeassistant",
|
"command": "pylint homeassistant",
|
||||||
"dependsOn": [
|
"dependsOn": ["Install all Requirements"],
|
||||||
"Install all Requirements"
|
|
||||||
],
|
|
||||||
"group": {
|
"group": {
|
||||||
"kind": "test",
|
"kind": "test",
|
||||||
"isDefault": true
|
"isDefault": true
|
||||||
@ -116,6 +112,21 @@
|
|||||||
"panel": "new"
|
"panel": "new"
|
||||||
},
|
},
|
||||||
"problemMatcher": []
|
"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": [
|
"inputs": [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user