mirror of
https://github.com/p-stream/p-stream.git
synced 2026-05-19 07:41:51 +00:00
update translations
This commit is contained in:
parent
bd94364a5e
commit
3b4b891535
2 changed files with 16 additions and 4 deletions
|
|
@ -1326,6 +1326,13 @@
|
||||||
"tidb": {
|
"tidb": {
|
||||||
"description": "Contribute to TheIntroDB by leaving feedback on intro, recap, and credits segments. <0>Learn more.</0>",
|
"description": "Contribute to TheIntroDB by leaving feedback on intro, recap, and credits segments. <0>Learn more.</0>",
|
||||||
"tokenLabel": "API Key"
|
"tokenLabel": "API Key"
|
||||||
|
},
|
||||||
|
"trakt": {
|
||||||
|
"title": "Trakt",
|
||||||
|
"description": "Sync your watchlist and history with Trakt.",
|
||||||
|
"connect": "Connect Trakt",
|
||||||
|
"syncing": "Syncing...",
|
||||||
|
"disconnect": "Disconnect"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"preferences": {
|
"preferences": {
|
||||||
|
|
|
||||||
|
|
@ -775,6 +775,7 @@ export function TIDBEdit({ tidbKey, setTIDBKey }: TIDBKeyProps) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function TraktEdit() {
|
export function TraktEdit() {
|
||||||
|
const { t } = useTranslation();
|
||||||
const { user, status, logout, error } = useTraktStore();
|
const { user, status, logout, error } = useTraktStore();
|
||||||
const config = conf();
|
const config = conf();
|
||||||
|
|
||||||
|
|
@ -796,9 +797,11 @@ export function TraktEdit() {
|
||||||
<SettingsCard>
|
<SettingsCard>
|
||||||
<div className="flex justify-between items-center gap-4">
|
<div className="flex justify-between items-center gap-4">
|
||||||
<div className="my-3">
|
<div className="my-3">
|
||||||
<p className="text-white font-bold mb-3">Trakt</p>
|
<p className="text-white font-bold mb-3">
|
||||||
|
{t("settings.connections.trakt.title")}
|
||||||
|
</p>
|
||||||
<p className="max-w-[30rem] font-medium">
|
<p className="max-w-[30rem] font-medium">
|
||||||
Sync your watchlist and history with Trakt.
|
{t("settings.connections.trakt.description")}
|
||||||
</p>
|
</p>
|
||||||
{error && <p className="text-type-danger mt-2">{error}</p>}
|
{error && <p className="text-type-danger mt-2">{error}</p>}
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -816,7 +819,7 @@ export function TraktEdit() {
|
||||||
<span className="font-bold">{user.name || user.username}</span>
|
<span className="font-bold">{user.name || user.username}</span>
|
||||||
</div>
|
</div>
|
||||||
<Button theme="danger" onClick={logout}>
|
<Button theme="danger" onClick={logout}>
|
||||||
Disconnect
|
{t("settings.connections.trakt.disconnect")}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
|
|
@ -825,7 +828,9 @@ export function TraktEdit() {
|
||||||
onClick={connect}
|
onClick={connect}
|
||||||
disabled={status === "syncing"}
|
disabled={status === "syncing"}
|
||||||
>
|
>
|
||||||
{status === "syncing" ? "Syncing..." : "Connect Trakt"}
|
{status === "syncing"
|
||||||
|
? t("settings.connections.trakt.syncing")
|
||||||
|
: t("settings.connections.trakt.connect")}
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue