This commit is contained in:
Shivaram Lingamneni
2019-07-01 09:21:38 -04:00
parent c96cec9388
commit 5a554ab4b0
6 changed files with 109 additions and 67 deletions
+5
View File
@@ -164,6 +164,11 @@ func (lm *Manager) Count() int {
return len(lm.Languages)
}
// Enabled returns whether translation is enabled.
func (lm *Manager) Enabled() bool {
return len(lm.translations) != 0
}
// Translators returns the languages we have and the translators.
func (lm *Manager) Translators() []string {
var tlist sort.StringSlice