Load embedded locales
You may want to embed locales with a go-bindata tool within your application executable.
install a go-bindata tool, e.g.
$ go get -u github.com/go-bindata/go-bindata/...
embed local files to your application
$ go-bindata -o locales.go ./locales/...
use the
LoadAssets
method to initialize and load the languages^ The
AssetNames
andAsset
functions are generated bygo-bindata
ap.I18n.LoadAssets(AssetNames, Asset, "en-US", "el-GR", "zh-CN")