aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/multilingual.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/multilingual.go')
-rw-r--r--hugolib/multilingual.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/hugolib/multilingual.go b/hugolib/multilingual.go
index 575be1396..953f522bd 100644
--- a/hugolib/multilingual.go
+++ b/hugolib/multilingual.go
@@ -26,6 +26,7 @@ import (
"github.com/spf13/cast"
)
+// Multilingual manages the all languages used in a multilingual site.
type Multilingual struct {
Languages helpers.Languages
@@ -35,6 +36,7 @@ type Multilingual struct {
langMapInit sync.Once
}
+// Language returns the Language assosiated with the given string.
func (ml *Multilingual) Language(lang string) *helpers.Language {
ml.langMapInit.Do(func() {
ml.langMap = make(map[string]*helpers.Language)