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

@ -22,6 +22,7 @@ import (
"time"
"go.uploadedlobster.com/scotty/internal/config"
"go.uploadedlobster.com/scotty/internal/i18n"
"go.uploadedlobster.com/scotty/internal/models"
"go.uploadedlobster.com/scotty/pkg/jspf"
)
@ -39,19 +40,19 @@ func (b *JSPFBackend) Name() string { return "jspf" }
func (b *JSPFBackend) Options() []models.BackendOption {
return []models.BackendOption{{
Name: "file-path",
Label: "File path",
Label: i18n.Tr("File path"),
Type: models.String,
}, {
Name: "title",
Label: "Playlist title",
Label: i18n.Tr("Playlist title"),
Type: models.String,
}, {
Name: "username",
Label: "User name",
Label: i18n.Tr("User name"),
Type: models.String,
}, {
Name: "identifier",
Label: "Unique playlist identifier",
Label: i18n.Tr("Unique playlist identifier"),
Type: models.String,
}}
}