mirror of
https://github.com/logseq/logseq.git
synced 2026-05-27 06:04:23 +00:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user