0
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2024-11-30 15:00:39 +01:00
uptime-kuma/extra
Matthew Nickson f67d7cdf3f
Make update-language-files command more useful (#2198)
* [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>
2022-10-08 15:01:47 +08:00
..
beta Update package-lock.json during release process 2022-04-22 00:47:04 +08:00
update-language-files Make update-language-files command more useful (#2198) 2022-10-08 15:01:47 +08:00
checkout-pr.js Fix pr-test 2022-09-17 01:59:25 +08:00
close-incorrect-issue.js Standardize array bracket spacing 2022-04-17 15:27:35 +08:00
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 Enforce semicolon, fix format globally 2022-04-14 01:20:54 +08:00
press-any-key.js
remove-2fa.js
reset-password.js Fix #1510 2022-04-18 15:21:58 +08:00
simple-dns-server.js Enforce semicolon, fix format globally 2022-04-14 01:20:54 +08:00
simple-mqtt-server.js Add a simple mqtt server for testing 2022-04-17 01:07:54 +08:00
update-version.js Update package-lock.json during release process 2022-04-22 00:47:04 +08:00
update-wiki-version.js Change fs.rmdir to fs.rm as it is deprecated 2022-06-23 19:18:28 +08:00
upload-github-release-asset.sh