mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 14:14:55 +00:00
docs/lang: describe how to add a new language
Signed-off-by: Avelino <avelinorun@gmail.com>
This commit is contained in:
@@ -106,4 +106,11 @@ and tell you what's wrong.
|
||||
|
||||
## Add a Language
|
||||
|
||||
To add a new language, add an entry to `frontend.dicts.core/languages`. Then add a new locale keyword to `frontend.dicts.core/dicts`.
|
||||
To add a new language you must create a new file in the `frontend.dicts` namespace containing two variables:
|
||||
|
||||
- **application `(def application ...)`:** translation of the application into the idiom
|
||||
- **shortcuts `(def shortcuts ...)`:** shortcut translation
|
||||
|
||||
Use as base the main language file `frontend/dicts/en.cljs`.
|
||||
|
||||
After creating the language pack you should add the `application` variable to `frontend.dicts.core` and the `shortcuts` variable to `frontend.modules.shortcut.dicts`.
|
||||
|
||||
Reference in New Issue
Block a user