mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-30 05:37:05 +02:00
Mark user interface strings
For now exclude command help, as cobra itself is not localizable yet.
This commit is contained in:
parent
511b71b909
commit
d6ca8d33f7
27 changed files with 1005 additions and 95 deletions
|
@ -26,6 +26,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"
|
||||
"golang.org/x/oauth2/spotify"
|
||||
|
@ -42,11 +43,11 @@ func (b *SpotifyApiBackend) Name() string { return "spotify" }
|
|||
func (b *SpotifyApiBackend) 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,
|
||||
}}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue