mirror of
https://github.com/logseq/logseq.git
synced 2026-02-01 22:47:36 +00:00
Update lang validation to detect duplicates
There are still a few to remove. Remove lang:duplicates as it's now included in the linter
This commit is contained in:
@@ -80,22 +80,6 @@ $ bb lang:missing es --copy
|
||||
|
||||
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
|
||||
|
||||
There is a lot to translate and sometimes we forget to translate a string. To see what translation keys are still left for your language use :
|
||||
|
||||
```shell
|
||||
$ bb lang:duplicates LOCALE
|
||||
|
||||
Keys with duplicate values found:
|
||||
|
||||
| :translation-key | :duplicate-value |
|
||||
|-----------------------------------+------------------|
|
||||
| :general | General |
|
||||
| :logseq | Logseq |
|
||||
| :no | No |
|
||||
```
|
||||
|
||||
## Fix Mistakes
|
||||
|
||||
Sometimes, we typo a translation key or forget to use it. If this happens,
|
||||
|
||||
Reference in New Issue
Block a user