New config DefaultLanguage. Closes #1561

This commit is contained in:
Deluan 2022-09-27 19:16:10 -04:00
parent 72cde6dfde
commit cb3ba23fce
8 changed files with 75 additions and 24 deletions

View file

@ -48,6 +48,7 @@ type configOptions struct {
EnableStarRating bool
EnableUserEditing bool
DefaultTheme string
DefaultLanguage string
EnableCoverAnimation bool
GATrackingID string
EnableLogRedacting bool
@ -231,6 +232,7 @@ func init() {
viper.SetDefault("enablestarrating", true)
viper.SetDefault("enableuserediting", true)
viper.SetDefault("defaulttheme", "Dark")
viper.SetDefault("defaultlanguage", "")
viper.SetDefault("enablecoveranimation", true)
viper.SetDefault("gatrackingid", "")
viper.SetDefault("enablelogredacting", true)