mirror of
https://github.com/home-assistant/frontend.git
synced 2026-04-18 07:56:44 +01:00
Fetch nightly translations during build (#13724)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
module.exports = {
|
||||
"*.{js,ts}": [
|
||||
"prettier --write",
|
||||
'eslint --ignore-pattern "**/build-scripts/**/*.js" --fix',
|
||||
],
|
||||
"*.{js,ts}": ["prettier --write", "eslint --fix"],
|
||||
"!(/translations)*.{json,css,md,html}": "prettier --write",
|
||||
"translations/*/*.json": (files) =>
|
||||
'printf "%s\n" "These files should not be modified. Instead, make the necessary modifications in src/translations/en.json. Please see translations/README.md for details." ' +
|
||||
'printf "%s\n" "Translation files should not be added or modified here. Instead, make the necessary modifications in src/translations/en.json. Other languages are managed externally. Please see https://developers.home-assistant.io/docs/translations/ for details." ' +
|
||||
files.join(" ") +
|
||||
" >&2 && exit 1",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user