diff --git a/routers/web/user/notification.go b/routers/web/user/notification.go index 579287ffac65..77bc5f555329 100644 --- a/routers/web/user/notification.go +++ b/routers/web/user/notification.go @@ -374,6 +374,9 @@ func NotificationWatching(ctx *context.Context) { orderBy = db.SearchOrderByRecentUpdated } + language := ctx.FormTrim("language") + ctx.Data["Language"] = language + repos, count, err := repo_model.SearchRepository(ctx, &repo_model.SearchRepoOptions{ ListOptions: db.ListOptions{ PageSize: setting.UI.User.RepoPagingNum, @@ -386,6 +389,7 @@ func NotificationWatching(ctx *context.Context) { WatchedByID: ctx.Doer.ID, Collaborate: util.OptionalBoolFalse, TopicOnly: ctx.FormBool("topic"), + Language: language, IncludeDescription: setting.UI.SearchRepoDescription, }) if err != nil {