diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 77d31339a69..3fecfd8ba48 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -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": [