mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-31 21:18:21 +01:00
Added support of Russian language
This commit is contained in:
parent
136fdfba23
commit
6a654fe827
@ -69,7 +69,7 @@ func (c *CommonController) Login() {
|
|||||||
// SwitchLanguage handles UI request to switch between different languages and re-render template based on language.
|
// SwitchLanguage handles UI request to switch between different languages and re-render template based on language.
|
||||||
func (c *CommonController) SwitchLanguage() {
|
func (c *CommonController) SwitchLanguage() {
|
||||||
lang := c.GetString("lang")
|
lang := c.GetString("lang")
|
||||||
if lang == "en-US" || lang == "zh-CN" || lang == "de-DE" {
|
if lang == "en-US" || lang == "zh-CN" || lang == "de-DE" || lang == "ru-RU" {
|
||||||
c.SetSession("lang", lang)
|
c.SetSession("lang", lang)
|
||||||
c.Data["Lang"] = lang
|
c.Data["Lang"] = lang
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user