diff options
author | Sean E. Russell <ser@ser1.net> | 2020-06-19 10:01:26 -0500 |
---|---|---|
committer | Sean E. Russell <ser@ser1.net> | 2020-06-19 10:01:26 -0500 |
commit | aa828c579029a707b2cad77c77afa5ee8ebb0648 (patch) | |
tree | 4fc7780447d4e793079abd327edac0f8e2f58278 /cmd/gotop | |
parent | de187a89ae890c219e9baf376d74bc971f43ed28 (diff) |
Translation files are now bundled.
Diffstat (limited to 'cmd/gotop')
-rw-r--r-- | cmd/gotop/main.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/gotop/main.go b/cmd/gotop/main.go index 5feb075..5e1cd09 100644 --- a/cmd/gotop/main.go +++ b/cmd/gotop/main.go @@ -30,6 +30,7 @@ import ( "github.com/xxxserxxx/gotop/v4/devices" "github.com/xxxserxxx/gotop/v4/layout" "github.com/xxxserxxx/gotop/v4/logging" + "github.com/xxxserxxx/gotop/v4/translations" w "github.com/xxxserxxx/gotop/v4/widgets" ) @@ -354,7 +355,7 @@ func main() { } func run() int { - ling, err := lingo.New("en_US", "translations", nil) + ling, err := lingo.New("en_US", "translations", translations.AssetFile()) if err != nil { fmt.Printf("failed to load language files: %s\n", err) return 2 |