aboutsummaryrefslogtreecommitdiff
path: root/cmd/site/main.go
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2018-12-01 18:19:32 -0800
committerChristine Dodrill <me@christine.website>2018-12-01 18:19:32 -0800
commit6feb95eb68e895eeb4d49bc695ad347fed0ed304 (patch)
tree36c9b2e6292df08c69e20dec4636dc96969401a9 /cmd/site/main.go
parentdf7258c5c71e294331b962990ef8da8a6ac89494 (diff)
downloadxesite-i18n-2.tar.xz
xesite-i18n-2.zip
try 2i18n-2
Diffstat (limited to 'cmd/site/main.go')
-rw-r--r--cmd/site/main.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/site/main.go b/cmd/site/main.go
index fa4b9b8..1bc5f71 100644
--- a/cmd/site/main.go
+++ b/cmd/site/main.go
@@ -12,6 +12,7 @@ import (
"sync"
"time"
+ "github.com/Unknwon/i18n"
"github.com/Xe/jsonfeed"
"github.com/Xe/ln"
"github.com/gorilla/feeds"
@@ -62,6 +63,10 @@ func Build() (*Site, error) {
Date string
}
+ i18n.SetMessage("en-US", "conf/locale/locale_en-US.ini")
+ i18n.SetMessage("toki", "conf/locale/locale_toki.ini")
+ i18n.SetDefaultLang("en-US")
+
s := &Site{
rssFeed: &feeds.Feed{
Title: "Christine Dodrill's Blog",