|
@@ -14,7 +14,7 @@ In order to run the commands in this doc, you will need to install
|
|
## Where to Contribute
|
|
## Where to Contribute
|
|
|
|
|
|
Language translations are under,
|
|
Language translations are under,
|
|
-[src/main/frontend/dicts/](https://github.com/logseq/logseq/blob/master/src/main/frontend/dicts/) with each language having it's own file. For example, the es locale is in `es.cljc `.
|
|
|
|
|
|
+[src/resources/dicts/](https://github.com/logseq/logseq/blob/master/src/resources/dicts/) with each language having it's own file. For example, the es locale is in `es.edn`.
|
|
|
|
|
|
## Language Overview
|
|
## Language Overview
|
|
|
|
|
|
@@ -58,9 +58,9 @@ To see what translations are missing for your language, let's run a command usin
|
|
$ bb lang:missing es
|
|
$ bb lang:missing es
|
|
| :translation-key | :string-to-translate | :file |
|
|
| :translation-key | :string-to-translate | :file |
|
|
|---------------------------------------+-------------------------------------------------------+---------------|
|
|
|---------------------------------------+-------------------------------------------------------+---------------|
|
|
-| :command.editor/toggle-number-list | Toggle number list | dicts/es.cljc |
|
|
|
|
-| :command.whiteboard/bring-forward | Move forward | dicts/es.cljc |
|
|
|
|
-| :command.whiteboard/bring-to-front | Move to front | dicts/es.cljc |
|
|
|
|
|
|
+| :command.editor/toggle-number-list | Toggle number list | dicts/es.edn |
|
|
|
|
+| :command.whiteboard/bring-forward | Move forward | dicts/es.edn |
|
|
|
|
+| :command.whiteboard/bring-to-front | Move to front | dicts/es.edn |
|
|
...
|
|
...
|
|
```
|
|
```
|
|
|
|
|
|
@@ -71,14 +71,14 @@ Over time you're aiming to have this list drop to zero. Since this process can b
|
|
# When pasting this content, be sure to update the indentation to match the file
|
|
# When pasting this content, be sure to update the indentation to match the file
|
|
$ bb lang:missing es --copy
|
|
$ bb lang:missing es --copy
|
|
|
|
|
|
-;; For dicts/es.cljc
|
|
|
|
|
|
+;; For dicts/es.edn
|
|
:command.editor/toggle-number-list "Toggle number list"
|
|
:command.editor/toggle-number-list "Toggle number list"
|
|
:command.whiteboard/bring-forward "Move forward"
|
|
:command.whiteboard/bring-forward "Move forward"
|
|
:command.whiteboard/bring-to-front "Move to front"
|
|
:command.whiteboard/bring-to-front "Move to front"
|
|
...
|
|
...
|
|
```
|
|
```
|
|
|
|
|
|
-Almost all translations are small. The only exceptions to this are the keys `:tutorial/text` and `:tutorial/dummy-notes`. These reference files that are part of the onboarding tutorial. Most languages don't have this translated. If you are willing to do this, we would be happy to have this translated.
|
|
|
|
|
|
+Almost all translations are small. The only exceptions to this are the keys `:tutorial/text` and `:tutorial/dummy-notes`. These translations are files that are part of the onboarding tutorial and can be found under [src/resources/tutorials/](https://github.com/logseq/logseq/blob/master/src/resources/tutorials/).
|
|
|
|
|
|
## Fix Untranslated
|
|
## Fix Untranslated
|
|
|
|
|
|
@@ -106,6 +106,6 @@ and tell you what's wrong.
|
|
|
|
|
|
To add a new language:
|
|
To add a new language:
|
|
* Add an entry to `frontend.dicts/languages`
|
|
* Add an entry to `frontend.dicts/languages`
|
|
-* Create a new file under `src/main/frontend/dicts/` and name the file the same as the locale e.g. zz.cljc for a hypothetical zz locale.
|
|
|
|
-* Add a `(def dicts {})` in that file and then add a entry in the `dicts` map in `src/main/frontend/dicts.cljc`.
|
|
|
|
-* Then start translating for your language and adding entries in your language's `dicts` using the `bb lang:missing` workflow.
|
|
|
|
|
|
+* Create a new file under `src/resources/dicts/` and name the file the same as the locale e.g. zz.edn for a hypothetical zz locale.
|
|
|
|
+* Add an entry in `frontend.dicts/dicts` referencing the file you created.
|
|
|
|
+* Then start translating for your language and adding entries in your language's EDN file using the `bb lang:missing` workflow.
|