add french, fix language selector in settings
note: custom language files can now be added in data/lang/form and will be listed in settings.
This commit is contained in:
@@ -67,6 +67,13 @@ type appContext struct {
|
||||
port int
|
||||
version string
|
||||
quit chan os.Signal
|
||||
lang Languages
|
||||
}
|
||||
|
||||
type Languages struct {
|
||||
langFiles []os.FileInfo // Language filenames
|
||||
langOptions []string // Language names
|
||||
chosenIndex int
|
||||
}
|
||||
|
||||
func (app *appContext) loadHTML(router *gin.Engine) {
|
||||
|
||||
Reference in New Issue
Block a user