0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-26 01:14:10 -05:00
forgejo/modules/web
wxiaoguang d242511e86
Remove legacy unmaintained packages, refactor to support change default locale (#19308)
Remove two unmaintained vendor packages `i18n` and `paginater`. Changes:
* Rewrite `i18n` package with a more clear fallback mechanism. Fix an unstable `Tr` behavior, add more tests.
* Refactor the legacy `Paginater` to `Paginator`, test cases are kept unchanged.

Trivial enhancement (no breaking for end users):
* Use the first locale in LANGS setting option as the default, add a log to prevent from surprising users.
2022-04-03 17:46:48 +08:00
..
middleware Remove legacy unmaintained packages, refactor to support change default locale (#19308) 2022-04-03 17:46:48 +08:00
routing Add Goroutine stack inspector to admin/monitor (#19207) 2022-03-31 19:01:43 +02:00
route.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
route_test.go Update HTTP status codes to modern codes (#18063) 2022-03-23 12:54:07 +08:00
wrap.go Refactor Router Logger (#17308) 2022-01-20 19:41:25 +08:00
wrap_convert.go Fix route wrap (#18360) 2022-01-22 15:05:22 +00:00