mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-27 12:43:50 +00:00
feat(build): improve lint-locale-usage
* add check for unused msgids * add ability to manually allowlist specific msgids and groups of msgids * lint-locale-usage should handle .locale.Tr and Unit{...} * lint-locale-usage should handle simple dynamic msgids * remove unnecessary DescKey and associated msgids + values
This commit is contained in:
parent
b0b6bd3658
commit
31190e385e
12 changed files with 365 additions and 146 deletions
|
@ -427,6 +427,7 @@ func (diffFile *DiffFile) ShouldBeHidden() bool {
|
|||
return diffFile.IsGenerated || diffFile.IsViewed
|
||||
}
|
||||
|
||||
//llu:returnsTrKey
|
||||
func (diffFile *DiffFile) ModeTranslationKey(mode string) string {
|
||||
switch mode {
|
||||
case "040000":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue