Commit 63a06da0c72025060ad0bbc2747ba7172a8d7611

Authored by Marko Tikvić
1 parent 2a5220c528
Exists in master

automatic settings for default locale

Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
... ... @@ -55,6 +55,10 @@ func (d *Dictionary) AddTranslations(directory string) error {
55 55 d.supported = append(d.supported, loc)
56 56 }
57 57  
  58 + if len(d.supported) > 0 {
  59 + d.setDefaultLocale(d.supported[0])
  60 + }
  61 +
58 62 return nil
59 63 }
60 64  
... ...