mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-11 10:58:11 -07:00
Don't load example translation file, make example actually list all translatable strings
This commit is contained in:
@@ -501,6 +501,10 @@ func LoadConfig(filename string) (config *Config, err error) {
|
||||
if !strings.HasSuffix(strings.ToLower(name), ".lang.yaml") {
|
||||
continue
|
||||
}
|
||||
// don't load our example file in practice
|
||||
if strings.ToLower(name) == "example.lang.yaml" {
|
||||
continue
|
||||
}
|
||||
|
||||
data, err = ioutil.ReadFile(filepath.Join(config.Languages.Path, name))
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user