diff --git a/common/storage.go b/common/storage.go index 507aa0f..4887d0f 100644 --- a/common/storage.go +++ b/common/storage.go @@ -7,6 +7,7 @@ import ( "git.defalsify.org/vise.git/db" "git.defalsify.org/vise.git/resource" "git.defalsify.org/vise.git/persist" + "git.defalsify.org/vise.git/lang" "git.grassecon.net/grassrootseconomics/visedriver/storage" dbstorage "git.grassecon.net/grassrootseconomics/visedriver/storage/db" ) @@ -40,6 +41,11 @@ func NewStorageService(conn storage.ConnData) (*StorageService, error) { return svc, nil } +func (ss *StorageService) WithGettext(path string, lns []lang.Language) *StorageService { + ss.svc = ss.svc.WithGettext(path, lns) + return ss +} + // TODO: simplify enable poresource, conndata instead func(ss *StorageService) SetResourceDir(resourceDir string) error { ss.svc = ss.svc.WithResourceDir(resourceDir)