@@ -17,7 +17,6 @@ import (
17
17
"code.gitea.io/gitea/modules/log"
18
18
"code.gitea.io/gitea/modules/setting"
19
19
"code.gitea.io/gitea/modules/timeutil"
20
- "code.gitea.io/gitea/modules/translation/i18n"
21
20
22
21
"github.com/sergi/go-diff/diffmatchpatch"
23
22
)
@@ -29,14 +28,13 @@ func GetContentHistoryOverview(ctx *context.Context) {
29
28
return
30
29
}
31
30
32
- lang := ctx .Locale .Language ()
33
31
editedHistoryCountMap , _ := issues_model .QueryIssueContentHistoryEditedCountMap (ctx , issue .ID )
34
32
ctx .JSON (http .StatusOK , map [string ]interface {}{
35
33
"i18n" : map [string ]interface {}{
36
- "textEdited" : i18n .Tr (lang , "repo.issues.content_history.edited" ),
37
- "textDeleteFromHistory" : i18n .Tr (lang , "repo.issues.content_history.delete_from_history" ),
38
- "textDeleteFromHistoryConfirm" : i18n .Tr (lang , "repo.issues.content_history.delete_from_history_confirm" ),
39
- "textOptions" : i18n .Tr (lang , "repo.issues.content_history.options" ),
34
+ "textEdited" : ctx .Tr ("repo.issues.content_history.edited" ),
35
+ "textDeleteFromHistory" : ctx .Tr ("repo.issues.content_history.delete_from_history" ),
36
+ "textDeleteFromHistoryConfirm" : ctx .Tr ("repo.issues.content_history.delete_from_history_confirm" ),
37
+ "textOptions" : ctx .Tr ("repo.issues.content_history.options" ),
40
38
},
41
39
"editedHistoryCountMap" : editedHistoryCountMap ,
42
40
})
0 commit comments