Commit Graph

11 Commits

Author SHA1 Message Date
Emil Lundberg
96d17b81f5
Merge pull request #1246 from Yubico/lint-check-keys
Check that translation keys exist in app_en.arb in translation linter
2023-11-02 17:06:36 +01:00
Emil Lundberg
fcb665e5f4
Merge pull request #1245 from Yubico/lint-customizable-punctuation
Make punctuation customizable per language in translation linter
2023-11-02 17:06:19 +01:00
Emil Lundberg
d5a59392c0
Use strings for lint punctuation customization
This will be needed for this to be compatible with the JSON-based ARB
reformatter, which requires all lists to be of equal length in order for
whitespace to line up.
2023-11-02 16:13:08 +01:00
Emil Lundberg
b89d628809
Rename @_lint_rules.punctuation to p_endings
Since this lint is specifically about punctuation appropriate for ending a
sentence.
2023-11-02 15:29:21 +01:00
Emil Lundberg
57ccdcda62
Check that translation keys exist in app_en.arb
For example, `app_de.arb` has a few keys that do not:

```
../lib/l10n/app_de.arb - checking 261 strings

../lib/l10n/app_de.arb HAS ERRORS:
Invalid key: l_credential
Invalid key: @l_credential
Invalid key: s_credentials
Invalid key: s_delete_credential
Invalid key: s_credential_deleted
Invalid key: p_warning_delete_credential
```
2023-11-02 15:24:18 +01:00
Emil Lundberg
7462f0f0b7
Make punctuation customizable per language 2023-11-02 15:20:31 +01:00
Emil Lundberg
a9a3ac7ecf
Look up @_lint_rules in the right dictionary 2023-11-02 15:17:45 +01:00
Adam Velebil
dc8f314fc9
fix check_strings to support null values 2023-11-02 14:56:17 +01:00
Dain Nilsson
fcd226f123
Add localized strings. 2023-07-04 14:21:04 +02:00
Dain Nilsson
30b9900ca8
Add string checks and Github Actions. 2023-03-02 14:20:47 +01:00
Dain Nilsson
b33dca3900
Change prefixes and add check_strings.py 2023-03-02 12:45:55 +01:00