Refactor and simplify dicts

- frontend.dicts encapsulates dicts behavior for all other namespaces
- Each dict ns only has one var which prepares us
- No longer need shortcut.dicts
- Fix remaining lints that were broken
- Also bring back frontend.dicts
- Update guide
- Add a false binding to :editor/toggle-undo-redo-mode which throws a
  needless warning
This commit is contained in:
Gabriel Horner
2023-05-18 18:13:50 -04:00
parent 0434a2b7f8
commit 514b5faf6e
28 changed files with 383 additions and 446 deletions

View File

@@ -8,7 +8,7 @@
(state/set-state! :preferred-language nil)))
(deftest translations
(testing "dict/dicts/core.cljs translations"
(testing "ui translations"
(state/set-preferred-language! :en)
(is (= "About Logseq"
(i18n/t :help/about)))
@@ -17,7 +17,7 @@
(is (= "Acerca de Logseq"
(i18n/t :help/about))))
(testing "shortcut/dicts.cljs translations"
(testing "command and category translations"
(state/set-preferred-language! :en)
(is (= "Go to journals"
(i18n/t :command.go/journals))