Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit 14ff8c1

Browse files
committed
fix translation and insert options
1 parent 3c43770 commit 14ff8c1

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/common/components/video-gallery/video-gallery-item.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,13 @@ export function VideoGalleryItem({
119119
{["publish_manual", "published"].includes(item.status) && (
120120
<div className="details-actions">
121121
<Button size="sm" onClick={() => insert()}>
122-
Insert
123-
</Button>
124-
<Button variant="link" size="sm" onClick={() => insert(true)}>
125-
Insert as NSFW
122+
{_t("video-gallery.insert-video")}
126123
</Button>
124+
{item.status != "published" && (
125+
<Button variant="link" size="sm" onClick={() => insert(true)}>
126+
{_t("video-gallery.insert-nsfw")}
127+
</Button>
128+
)}
127129
</div>
128130
)}
129131
</div>

src/common/i18n/locales/en-US.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1467,7 +1467,7 @@
14671467
"info-views": "Views:",
14681468
"info-duration": "Duration:",
14691469
"info-size": "File size:",
1470-
"insert-video": "Insert to post",
1470+
"insert-video": "Insert",
14711471
"insert-nsfw": "Insert as NSFW",
14721472
"refresh": "Refresh"
14731473
},

0 commit comments

Comments
 (0)