i18n(settings): translate integrations section labels and placeholders
- Update Last.fm API key and shared secret labels - Update Last.fm authorize button text - Update ListenBrainz labels and token hint - Add translations for connecting/opening states - Add apiKey, sharedSecret, userToken translation keys cc
This commit is contained in:
1 parent
ef99d5f0ce
commit
5900e0bb83
3 files changed
+25
-11
No files matched your search
@@ -2493,21 +2493,21 @@
|
||||
</a> and enter your credentials below.
|
||||
</p>
|
||||
<div class="config-field">
|
||||
<label for="lastfm-api-key">API Key</label>
|
||||
<label for="lastfm-api-key">{$t('settings.integrations.apiKey')}</label>
|
||||
<input
|
||||
id="lastfm-api-key"
|
||||
type="text"
|
||||
bind:value={lastfmApiKey}
|
||||
placeholder="Enter your API key"
|
||||
placeholder={$t('placeholders.enterApiKey')}
|
||||
/>
|
||||
</div>
|
||||
<div class="config-field">
|
||||
<label for="lastfm-api-secret">Shared Secret</label>
|
||||
<label for="lastfm-api-secret">{$t('settings.integrations.sharedSecret')}</label>
|
||||
<input
|
||||
id="lastfm-api-secret"
|
||||
type="password"
|
||||
bind:value={lastfmApiSecret}
|
||||
placeholder="Enter your shared secret"
|
||||
placeholder={$t('placeholders.enterSharedSecret')}
|
||||
/>
|
||||
</div>
|
||||
<button
|
||||
@@ -2515,7 +2515,7 @@
|
||||
onclick={handleLastfmConnect}
|
||||
disabled={!lastfmApiKey || !lastfmApiSecret || lastfmConnecting}
|
||||
>
|
||||
{lastfmConnecting ? 'Opening...' : 'Authorize with Last.fm'}
|
||||
{lastfmConnecting ? $t('settings.integrations.opening') : $t('settings.integrations.authorizeLastfm')}
|
||||
</button>
|
||||
</div>
|
||||
{/if}
|
||||
@@ -2536,36 +2536,36 @@
|
||||
</button>
|
||||
</div>
|
||||
<div class="setting-row">
|
||||
<span class="setting-label">Scrobbling</span>
|
||||
<span class="setting-label">{$t('settings.integrations.scrobbling')}</span>
|
||||
<Toggle enabled={listenbrainzEnabled} onchange={handleListenBrainzEnabledChange} />
|
||||
</div>
|
||||
{:else}
|
||||
<div class="setting-row" class:last={!showListenBrainzConfig}>
|
||||
<span class="setting-label">ListenBrainz</span>
|
||||
<span class="setting-label">{$t('settings.integrations.listenbrainz')}</span>
|
||||
<button
|
||||
class="connect-btn"
|
||||
onclick={() => showListenBrainzConfig = !showListenBrainzConfig}
|
||||
disabled={listenbrainzConnecting}
|
||||
>
|
||||
{listenbrainzConnecting ? 'Connecting...' : $t('settings.integrations.connect')}
|
||||
{listenbrainzConnecting ? $t('settings.integrations.connecting') : $t('settings.integrations.connect')}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{#if showListenBrainzConfig}
|
||||
<div class="lastfm-config">
|
||||
<p class="config-info">
|
||||
Get your personal token from
|
||||
{$t('settings.integrations.listenbrainzTokenHint')}
|
||||
<a href="https://listenbrainz.org/settings/" target="_blank" rel="noopener">
|
||||
listenbrainz.org/settings
|
||||
</a>
|
||||
</p>
|
||||
<div class="config-field">
|
||||
<label for="listenbrainz-token">User Token</label>
|
||||
<label for="listenbrainz-token">{$t('settings.integrations.userToken')}</label>
|
||||
<input
|
||||
id="listenbrainz-token"
|
||||
type="password"
|
||||
bind:value={listenbrainzToken}
|
||||
placeholder="Paste your ListenBrainz token"
|
||||
placeholder={$t('placeholders.pasteToken')}
|
||||
/>
|
||||
</div>
|
||||
<button
|
||||
|
||||
@@ -577,6 +577,13 @@
|
||||
"disconnect": "Disconnect",
|
||||
"scrobbling": "Scrobbling",
|
||||
"configureApi": "Configure API",
|
||||
"apiKey": "API Key",
|
||||
"sharedSecret": "Shared Secret",
|
||||
"userToken": "User Token",
|
||||
"authorizeLastfm": "Authorize with Last.fm",
|
||||
"opening": "Opening...",
|
||||
"connecting": "Connecting...",
|
||||
"listenbrainzTokenHint": "Get your personal token from",
|
||||
"musicbrainz": "MusicBrainz",
|
||||
"musicbrainzDesc": "Enable artist relationships and enhanced metadata from MusicBrainz.",
|
||||
"musicbrainzCache": "MusicBrainz Cache",
|
||||
|
||||
@@ -577,6 +577,13 @@
|
||||
"disconnect": "Desconectar",
|
||||
"scrobbling": "Scrobbling",
|
||||
"configureApi": "Configurar API",
|
||||
"apiKey": "Clave API",
|
||||
"sharedSecret": "Secreto Compartido",
|
||||
"userToken": "Token de Usuario",
|
||||
"authorizeLastfm": "Autorizar con Last.fm",
|
||||
"opening": "Abriendo...",
|
||||
"connecting": "Conectando...",
|
||||
"listenbrainzTokenHint": "Obtén tu token personal desde",
|
||||
"musicbrainz": "MusicBrainz",
|
||||
"musicbrainzDesc": "Habilita relaciones de artistas y metadatos mejorados de MusicBrainz.",
|
||||
"musicbrainzCache": "Caché de MusicBrainz",
|
||||
|
||||
Reference in new issue
Block a user