Skip to content

Commit f9d9c1c

Browse files
Merge pull request #631 from 1enify/i18n-1
Translate Bump Modal
2 parents a7c6aba + b2dba04 commit f9d9c1c

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/components/explore/ExploreServers.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -549,17 +549,17 @@ export function ServerBumpModal(props: {
549549
label={t("general.backButton")}
550550
/>
551551
<Show when={verifyToken()}>
552-
<Button iconName="arrow_upward" label="Bump" onClick={bumpServer} />
552+
<Button iconName="arrow_upward" label={t("explore.bumpModal.bumpButton")} onClick={bumpServer} />
553553
</Show>
554554
</FlexRow>
555555
);
556556

557557
return (
558558
<LegacyModal
559-
title={`Bump ${
560-
props.publicServer.server?.name ||
561-
props.publicServer.botApplication?.botUser.username
562-
}`}
559+
title={t("explore.bumpModal.title", { name:
560+
props.publicServer.server?.name ||
561+
props.publicServer.botApplication?.botUser.username
562+
})}
563563
close={props.close}
564564
actionButtons={ActionButtons}
565565
>

src/locales/list/en-gb.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,10 @@
291291
"joinServerButton": "Join",
292292
"bumpButton": "Bump ({{count}})"
293293
},
294+
"bumpModal": {
295+
"title": "Bump {{name}}",
296+
"bumpButton": "Bump"
297+
},
294298
"sort": "Sort",
295299
"filter": "Filter",
296300
"by": "By",

0 commit comments

Comments
 (0)