mirror of
https://github.com/gogs/gogs.git
synced 2026-02-07 23:19:20 +01:00
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
21 lines
320 B
Go
21 lines
320 B
Go
package mocks
|
|
|
|
import (
|
|
"gopkg.in/macaron.v1"
|
|
)
|
|
|
|
var _ macaron.Locale = (*Locale)(nil)
|
|
|
|
type Locale struct {
|
|
MockLang string
|
|
MockTr func(string, ...any) string
|
|
}
|
|
|
|
func (l *Locale) Language() string {
|
|
return l.MockLang
|
|
}
|
|
|
|
func (l *Locale) Tr(format string, args ...any) string {
|
|
return l.MockTr(format, args...)
|
|
}
|