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:
Gabriel Horner
2023-06-05 11:09:01 -04:00
parent 68a339c227
commit 2d60d95bc5
4 changed files with 31 additions and 43 deletions

View File

@@ -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,