1
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2024-12-12 10:13:46 +02: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 wip: implementing install script 2021-08-17 23:08:35 +08:00
download-cloudflared.js [Cloudflared] Install into base docker 2022-03-29 02:24:10 +08:00
download-dist.js Merge branch 'master' into fluencydoc_master 2022-04-12 17:44:04 +08:00
entrypoint.sh check back to root user for Debian, until problem has been found (#488) 2021-09-29 12:40:28 +08:00
env2arg.js Release process for beta 2022-03-21 14:31:29 +08:00
fs-rmSync.js Update fs-rmSync.js 2022-04-06 10:31:01 +08:00
healthcheck.js Keep FBSD, BSD for ping only 2022-01-12 01:44:01 +08:00
install.batsh Limit the pm2 log size 2022-03-23 11:17:23 +08:00
mark-as-nightly.js Enforce semicolon, fix format globally 2022-04-14 01:20:54 +08:00
press-any-key.js Fix release process 2022-03-25 00:03:25 +08:00
remove-2fa.js add remove-2fa command 2021-11-18 18:22:03 +08:00
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 upload prebuilt dist to github release 2021-10-02 01:48:15 +08:00