diff --git a/cli/app/app.go b/cli/app/app.go index 1636542e..259dadfc 100644 --- a/cli/app/app.go +++ b/cli/app/app.go @@ -1,12 +1,12 @@ package app import ( - "coopcloud.tech/abra/pkg/lang" + "github.com/leonelquinteros/gotext" "github.com/spf13/cobra" ) var AppCommand = &cobra.Command{ Use: "app [cmd] [args] [flags]", Aliases: []string{"a"}, - Short: lang.T("Manage apps"), + Short: gotext.Get("Manage apps"), } diff --git a/locales/default.pot b/locales/default.pot new file mode 100644 index 00000000..39987c8b --- /dev/null +++ b/locales/default.pot @@ -0,0 +1,12 @@ +msgid "" +msgstr "" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: \n" +"X-Generator: xgotext\n" + +#: app.go:11 +msgid "Manage apps" +msgstr "" \ No newline at end of file diff --git a/pkg/lang/lang.go b/pkg/lang/lang.go index 285957c9..a8f456e8 100644 --- a/pkg/lang/lang.go +++ b/pkg/lang/lang.go @@ -3,8 +3,6 @@ package lang import ( "os" "strings" - - "github.com/leonelquinteros/gotext" ) func GetLocale() string { @@ -30,5 +28,3 @@ func NormalizeLocale(loc string) string { return loc } - -var T = gotext.Get