diff options
author | 2021-02-16 22:58:44 -0800 | |
---|---|---|
committer | 2021-02-16 23:09:01 -0800 | |
commit | 5d65a85bdbd19e361a235c003f74b55e86ffece8 (patch) | |
tree | 67c8c34450e8ade7889cfd54fd9a4946fd2cdf6f /cli/cli.go | |
parent | a352aff93bc04d1e4e3560ef419ddcb9b3170085 (diff) | |
download | v2-5d65a85bdbd19e361a235c003f74b55e86ffece8.tar.gz v2-5d65a85bdbd19e361a235c003f74b55e86ffece8.tar.zst v2-5d65a85bdbd19e361a235c003f74b55e86ffece8.zip |
Use embed package for translations instead of generated files
Replace "go generate" with the new embed package.
Diffstat (limited to 'cli/cli.go')
-rw-r--r-- | cli/cli.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -10,6 +10,7 @@ import ( "miniflux.app/config" "miniflux.app/database" + "miniflux.app/locale" "miniflux.app/logger" "miniflux.app/storage" "miniflux.app/version" @@ -100,6 +101,11 @@ func Parse() { logger.Info("The default value for DATABASE_URL is used") } + logger.Debug("Loading translations...") + if err := locale.LoadCatalogMessages(); err != nil { + logger.Fatal("Unable to load translations: %v", err) + } + db, err := database.NewConnectionPool( config.Opts.DatabaseURL(), config.Opts.DatabaseMinConns(), |