Translations configuration defaults.
This commit is contained in:
parent
94774e8f83
commit
7ec2dee744
1 changed files with 7 additions and 0 deletions
|
|
@ -99,6 +99,7 @@ type Translations struct {
|
|||
BaseDir string `toml:"basedir"`
|
||||
Current string `toml:"current"`
|
||||
Active []string `toml:"active"`
|
||||
Default string `toml:"default"`
|
||||
}
|
||||
|
||||
type Debug struct {
|
||||
|
|
@ -152,6 +153,12 @@ func LoadSettings(name string, fs vfs.VFS) (*Settings, error) {
|
|||
Host: "localhost",
|
||||
},
|
||||
},
|
||||
Translations: &Translations{
|
||||
BaseDir: "dat/translations",
|
||||
Current: "bsb",
|
||||
Active: []string{"bsb", "kjv"},
|
||||
Default: "bsb",
|
||||
},
|
||||
}
|
||||
file, err := fs.Open(name)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue