Enhance: Add more translations, remove unused ones and add linter for unused (#8568)

* chore: remove unused dictionary keys

* wip: add dictionary keys for hardcoded strings

* resolve conflicts

* Add linter to detect :en ui translation keys match used ones

- Fix a couple entries caught by linter
- Copy :command.editor/open-link-in-sidebar entries to
  :help/open-link-in-sidebar as translation keys shouldn't be reused in
  multiple contexts, especially when it's across ui and shortcut dicts

* fix: remove dead keys

* chore: reuse dict keys

* chore: reintroduce useful keys

---------

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
This commit is contained in:
Konstantinos
2023-02-24 16:21:57 +02:00
committed by GitHub
parent ec157b8f2c
commit 2cace8894c
15 changed files with 145 additions and 1539 deletions

View File

@@ -84,9 +84,9 @@ Keys with duplicate values found:
## Fix Mistakes
Sometimes, we typo the translation key. If that happens, the github CI step of
`bb lang:invalid-translations` will detect this error and helpfully show you
what was typoed.
Sometimes, we typo a translation key or forget to use it. If this happens,
the github CI step of `bb lang:validate-translations` will detect these errors
and tell you what's wrong.
## Add a Language