Add default POT catalogue, don't alias gotext.Get

This commit is contained in:
3wc
2025-08-04 15:10:07 +01:00
committed by decentral1se
parent 8cfda5229f
commit 022606c13c
3 changed files with 14 additions and 6 deletions

View File

@ -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"),
}

12
locales/default.pot Normal file
View File

@ -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 ""

View File

@ -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