Mark user interface strings

For now exclude command help, as cobra itself is not localizable yet.
This commit is contained in:
Philipp Wolfer 2023-12-09 16:43:14 +01:00
parent 511b71b909
commit d6ca8d33f7
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
27 changed files with 1005 additions and 95 deletions

View file

@ -23,6 +23,7 @@ import (
"time"
"go.uploadedlobster.com/scotty/internal/config"
"go.uploadedlobster.com/scotty/internal/i18n"
"go.uploadedlobster.com/scotty/internal/models"
)
@ -36,15 +37,15 @@ func (b *MalojaApiBackend) Name() string { return "maloja" }
func (b *MalojaApiBackend) Options() []models.BackendOption {
return []models.BackendOption{{
Name: "server-url",
Label: "Server URL",
Label: i18n.Tr("Server URL"),
Type: models.String,
}, {
Name: "token",
Label: "Access token",
Label: i18n.Tr("Access token"),
Type: models.Secret,
}, {
Name: "nofix",
Label: "Disable auto correction of submitted listens",
Label: i18n.Tr("Disable auto correction of submitted listens"),
Type: models.Bool,
}}
}