ui: set RTL on some languages
checking with a list I found online. need to set some things as forced ltr, such as settings. For #450.
This commit is contained in:
@@ -128,6 +128,9 @@ func (app *appContext) BasePageTemplateValues(gc *gin.Context, lang string, page
|
||||
} else {
|
||||
shortLang = langComponents[0]
|
||||
}
|
||||
if lang == "pk-pk" || shortLang == "ar" || shortLang == "fa" || shortLang == "he" || shortLang == "iw" || shortLang == "kd" || shortLang == "ps" || shortLang == "ug" || shortLang == "ur" || shortLang == "yi" {
|
||||
set("pageDirection", "rtl")
|
||||
}
|
||||
set("langName", lang)
|
||||
set("shortLang", shortLang)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user