uptime-kuma/src
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
..
assets Fix #2100, the monitor name cannot display if too long 2022-09-17 01:18:49 +08:00
components feat: 🌐 Update zh-cn and en translation (#2167) 2022-10-08 01:45:00 +08:00
languages Make update-language-files command more useful (#2198) 2022-10-08 15:01:47 +08:00
layouts fix: hide mobile header when not logged in 2022-06-17 10:11:53 +03:00
mixins Merge branch 'master' into master 2022-07-24 14:37:22 +02:00
pages Add rel="noopener noreferrer" to html link 2022-09-10 21:35:22 +02:00
App.vue Enforce semicolon, fix format globally 2022-04-14 01:20:54 +08:00
i18n.js fix: add language to the language list 2022-07-26 02:07:38 +01:00
icon.js Added Clickable hostname on status page. #1221 2022-06-11 17:23:12 +01:00
main.js [wip] lazy load language file 2021-11-26 16:31:19 +08:00
router.js Added a settings page & localization 2022-07-24 12:34:43 +00:00
util-frontend.js Added JSDoc for src/* 2022-06-02 14:32:38 +01:00
util.js Move Cypress directory and convert it to JavaScript (#2170) 2022-10-04 22:23:57 +08:00
util.ts Fixed typos + improved clarity and detail of some JSDoc 2022-06-02 16:40:56 +01:00