mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-09-07 18:02:42 +00:00
![]() * [empty commit] pull request for Fix language update script * Avoid mass changes with update-language-files This commit updates the update-language-files script to prevent mass changes as seen on a number of recent PRs where the contributer has ran the script and comitted the results. The script has been updated to now require the --language argument to specify which language file to update. This ensures that only that file is updated instead of all files. If the provided language code does not already exist, a new file with that code is created. This should make it easier to add new languages as you only need to pass the language code to the script. The base lang code is now also passed as an optional argument to negate the need for a seperate script entry in package.json. The script has been restructures into a couple of functions to make it easier to understand. ESlint now only checks the changed file instead of them all in order to improve performance. Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com> * Updated translation docs for new command Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com> * [update-language-files] Add cross-env-shell Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com> Co-authored-by: Louis Lam <louislam@users.noreply.github.com> |
||
---|---|---|
.. | ||
beta | ||
update-language-files | ||
checkout-pr.js | ||
close-incorrect-issue.js | ||
compile-install-script.ps1 | ||
download-cloudflared.js | ||
download-dist.js | ||
entrypoint.sh | ||
env2arg.js | ||
fs-rmSync.js | ||
healthcheck.js | ||
install.batsh | ||
mark-as-nightly.js | ||
press-any-key.js | ||
remove-2fa.js | ||
reset-password.js | ||
simple-dns-server.js | ||
simple-mqtt-server.js | ||
update-version.js | ||
update-wiki-version.js | ||
upload-github-release-asset.sh |