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

@ -24,6 +24,7 @@ import (
"go.uploadedlobster.com/scotty/internal/auth"
"go.uploadedlobster.com/scotty/internal/config"
"go.uploadedlobster.com/scotty/internal/i18n"
"go.uploadedlobster.com/scotty/internal/models"
"golang.org/x/oauth2"
)
@ -39,11 +40,11 @@ func (b *DeezerApiBackend) Name() string { return "deezer" }
func (b *DeezerApiBackend) Options() []models.BackendOption {
return []models.BackendOption{{
Name: "client-id",
Label: "Client ID",
Label: i18n.Tr("Client ID"),
Type: models.String,
}, {
Name: "client-secret",
Label: "Client secret",
Label: i18n.Tr("Client secret"),
Type: models.Secret,
}}
}