mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 02:05:41 +01:00
DefaultLang > defaultLang
This commit is contained in:
parent
da1b5305ed
commit
d5442b3298
@ -42,7 +42,7 @@ type langType struct {
|
||||
}
|
||||
|
||||
const (
|
||||
DefaultLang = "en-US"
|
||||
defaultLang = "en-US"
|
||||
)
|
||||
|
||||
var supportLanguages map[string]langType
|
||||
@ -60,7 +60,7 @@ func (b *BaseController) Prepare() {
|
||||
}
|
||||
|
||||
if _, exist := supportLanguages[lang]; exist == false { //Check if support the request language.
|
||||
lang = DefaultLang //Set default language if not supported.
|
||||
lang = defaultLang //Set default language if not supported.
|
||||
}
|
||||
|
||||
sessionLang := b.GetSession("lang")
|
||||
|
Loading…
Reference in New Issue
Block a user