bench-forgejo/modules/context
wxiaoguang a60e8be8d1
Refactor i18n, use Locale to provide i18n/translation related functions (#18648)
* remove unnecessary web context data fields, and unify the i18n/translation related functions to `Locale`
* in development, show an error if a translation key is missing
* remove the unnecessary loops `for _, lang := range translation.AllLangs()` for every request, which improves the performance slightly
* use `ctx.Locale.Language()` instead of `ctx.Data["Lang"].(string)`
* add more comments about how the Locale/LangType fields are used
2022-02-08 11:02:30 +08:00
..
access_log.go Pass down SignedUserName down to AccessLogger context (#16605) 2021-08-04 13:26:30 -04:00
api.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
api_org.go Use a standalone struct name for Organization (#17632) 2021-11-19 19:41:40 +08:00
api_test.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
auth.go Refactor auth package (#17962) 2022-01-02 21:12:35 +08:00
captcha.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
context.go Refactor i18n, use Locale to provide i18n/translation related functions (#18648) 2022-02-08 11:02:30 +08:00
csrf.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
form.go Add config options to hide issue events (#17414) 2022-01-21 18:59:26 +01:00
org.go Team permission allow different unit has different permission (#17811) 2022-01-05 11:37:00 +08:00
pagination.go Simplify parameter types (#18006) 2021-12-20 04:41:31 +00:00
permission.go Move unit into models/unit/ (#17576) 2021-11-09 20:57:58 +01:00
private.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
repo.go Automatically pause queue if index service is unavailable (#15066) 2022-01-27 10:30:51 +02:00
response.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
xsrf.go Move macaron to chi (#14293) 2021-01-26 16:36:53 +01:00
xsrf_test.go Move macaron to chi (#14293) 2021-01-26 16:36:53 +01:00