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

@@ -11,7 +11,8 @@
[frontend.state :as state]
[frontend.util :as util]
[logseq.graph-parser.text :as text]
[reitit.frontend.easy :as rfe]))
[reitit.frontend.easy :as rfe]
[frontend.context.i18n :refer [t]]))
(defn redirect!
"If `push` is truthy, previous page will be left in history."
@@ -102,13 +103,13 @@
:repo-add
"Add another repo"
:graph
"Graph"
(t :graph)
:all-files
"All files"
(t :all-files)
:all-pages
"All pages"
(t :all-pages)
:all-journals
"All journals"
(t :all-journals)
:file
(str "File " (:path path-params))
:new-page