forgejo/modules/translation
Ellen Emilia Anna Zscheile 15a2338ff2 feat(build): teach lint-locale-usage about trPluralString (#7425)
This requires using the more complicated parsing from localestore.go

In order to avoid future code drift and code duplication,
localestore.go was refactored to call IterateMessagesContent instead of
essentially duplicating the code of RecursivelyAddTranslationsFromJSON
with small adjustments.

locale/utils.go was moved to translation/localeiter/utils.go
in order to avoid spreading translation-related routines among completely
different places.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7425
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Ellen Emilia Anna Zscheile <fogti+devel@ytrizja.de>
Co-committed-by: Ellen Emilia Anna Zscheile <fogti+devel@ytrizja.de>
2025-04-02 14:57:45 +00:00
..
i18n feat(build): teach lint-locale-usage about trPluralString (#7425) 2025-04-02 14:57:45 +00:00
localeiter feat(build): teach lint-locale-usage about trPluralString (#7425) 2025-04-02 14:57:45 +00:00
mock.go feat(ui): localize theme names (#7168) 2025-03-09 15:12:30 +00:00
plural_rules.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
translation.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
translation_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00