mirror of
https://github.com/go-gitea/gitea
synced 2025-07-15 15:07:20 +00:00
Backport #29555
This commit is contained in:
@ -6,7 +6,9 @@ package translation
|
||||
import "fmt"
|
||||
|
||||
// MockLocale provides a mocked locale without any translations
|
||||
type MockLocale struct{}
|
||||
type MockLocale struct {
|
||||
Lang, LangName string // these fields are used directly in templates: ctx.Locale.Lang
|
||||
}
|
||||
|
||||
var _ Locale = (*MockLocale)(nil)
|
||||
|
||||
|
Reference in New Issue
Block a user