You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
2 years ago
..
admin Fix OAuth Source Edit Page (#18495) 2 years ago
auth Prevent panic on prohibited user login with oauth2 (#18562) 2 years ago
dev Move user related model into models/user (#17781) 3 years ago
events Refactor auth package (#17962) 3 years ago
explore Allow to filter repositories by language in explore, user and organization repositories lists (#18430) 2 years ago
feed Propagate context and ensure git commands run in request context (#17868) 2 years ago
org Add `GetUserTeams` (#18499) 2 years ago
repo Refactor i18n, use Locale to provide i18n/translation related functions (#18648) 2 years ago
user Allow to filter repositories by language in explore, user and organization repositories lists (#18430) 2 years ago
base.go format with gofumpt (#18184) 2 years ago
goget.go Refactor HTTP request context (#17979) 3 years ago
home.go Refactor auth package (#17962) 3 years ago
metrics.go Refactor routers directory (#15800) 3 years ago
nodeinfo.go Add nodeinfo endpoint for federation purposes (#16953) 3 years ago
swagger_json.go Refactor routers directory (#15800) 3 years ago
web.go Ensure that blob-excerpt links work for wiki (#18587) 2 years ago