Translations configuration defaults.

This commit is contained in:
Benjamin A. Shelton 2026-10-23 11:09:01 -06:00
commit 7ec2dee744
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01

View file

@ -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 {