Skip to content

Commit a9b8138

Browse files
Merge pull request #622 from 1enify/i18n-2
i18n: Translate emoji modal
2 parents f2fc1ac + ae3a85b commit a9b8138

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/components/markup/Emoji.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Text from "../ui/Text";
66
import { Show, createSignal } from "solid-js";
77
import { ServerInviteEmbed } from "../message-pane/message-item/MessageItem";
88
import { Modal } from "../ui/modal";
9+
import { t } from "@nerimity/i18lite";
910

1011
export function Emoji(props: {
1112
clickable?: boolean;
@@ -98,7 +99,7 @@ function EmojiDetailsModal(props: {
9899
<Modal.Root close={props.close}>
99100
<Modal.Header
100101
icon="face"
101-
title={props.custom ? "Custom Emoji" : "Emoji"}
102+
title={t("emojiModal.title")}
102103
/>
103104
<EmojiDetailsContainer>
104105
<MainEmojiContainer>
@@ -126,7 +127,7 @@ function EmojiDetailsModal(props: {
126127
:
127128
</Text>
128129
<Text size={12} opacity={0.6}>
129-
{props.custom ? "Custom Emoji" : "Emoji"}
130+
{props.custom ? t("emojiModal.customEmoji") : t("emojiModal.defaultEmoji")}
130131
</Text>
131132
</EmojiNameContainer>
132133
</MainEmojiContainer>

src/locales/list/en-gb.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -940,6 +940,11 @@
940940
"transferOwnership": "Transfer Ownership",
941941
"callVolume": "Call Volume"
942942
},
943+
"emojiModal": {
944+
"title": "Emoji",
945+
"defaultEmoji": "Default Emoji",
946+
"customEmoji": "Custom Emoji"
947+
},
943948
"nicknameChangeModal": {
944949
"title": "Update Server Profile",
945950
"description": "Everyone in this server will see this nickname.",

0 commit comments

Comments
 (0)