mirror of
https://github.com/logseq/logseq.git
synced 2026-05-21 11:22:44 +00:00
update logseq-i18n-lint (#12527)
* chore: update logseq-i18n-lint binaries to 5cb43a2cc559 * chore: update PR creation to use default branch and repo owner variables * feat(i18n): add check for missing translations in validation process --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@@ -280,6 +280,11 @@
|
||||
(when (pos? (:exit result))
|
||||
(System/exit (:exit result)))))
|
||||
|
||||
(defn- check-missing-translations
|
||||
"Use logseq-i18n-lint to fail fast on missing translations before other checks."
|
||||
[]
|
||||
(run-i18n-lint-command! "check-missing" []))
|
||||
|
||||
(defn- check-translation-keys
|
||||
"Use logseq-i18n-lint to detect unused translation keys."
|
||||
[args]
|
||||
@@ -315,6 +320,7 @@
|
||||
(defn validate-translations
|
||||
"Runs multiple translation validations that fail fast if one of them is invalid"
|
||||
[& args]
|
||||
(check-missing-translations)
|
||||
(validate-non-default-languages (contains? (set args) "--fix"))
|
||||
(check-translation-keys args)
|
||||
(validate-rich-translations)
|
||||
|
||||
Reference in New Issue
Block a user