forgejo/build/lint-locale-usage
Ellen Εμιλία Άννα Zscheile f447661345 feat(build): improve lint-locale-usage further (#8736)
Print out a list of all unused msgids
Handle Go files that make calls to translation.
Handle `models/unit/unit.go`, which stores msgids in `$Unit.NameKey`
Handle .locale.Tr in templates
Handle simple dynamically constructed `Tr("msgid-prefix." + SomeFunctionCall())`.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8736
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Ellen Εμιλία Άννα Zscheile <fogti+devel@ytrizja.de>
Co-committed-by: Ellen Εμιλία Άννα Zscheile <fogti+devel@ytrizja.de>
2025-08-27 23:47:34 +02:00
..
allowed-masked-usage.txt feat(build): improve lint-locale-usage further (#8736) 2025-08-27 23:47:34 +02:00
handle-go.go feat(build): improve lint-locale-usage further (#8736) 2025-08-27 23:47:34 +02:00
handle-tmpl.go feat(build): improve lint-locale-usage further (#8736) 2025-08-27 23:47:34 +02:00
lint-locale-usage.go feat(build): improve lint-locale-usage further (#8736) 2025-08-27 23:47:34 +02:00
lint-locale-usage_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00