mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-24 02:51:17 -08:00
implement localization for various room-related components and messages
This commit is contained in:
11 files changed
+109
-51
No files matched your search
+50
-2
@@ -50,7 +50,15 @@
|
||||
"accept": "Accept",
|
||||
"okay": "Okay",
|
||||
"retry": "Retry",
|
||||
"user": "User"
|
||||
"user": "User",
|
||||
"delete": "Delete",
|
||||
"dismiss": "Dismiss",
|
||||
"nickname": "Nickname",
|
||||
"save": "Save",
|
||||
"clear": "Clear",
|
||||
"edit_nickname": "Edit Nickname",
|
||||
"set_nickname": "Set Nickname",
|
||||
"cancel": "Cancel"
|
||||
},
|
||||
"RoomView": {
|
||||
"failed_to_load_history": "Failed to load history.",
|
||||
@@ -65,6 +73,46 @@
|
||||
"are_typing": " are typing...",
|
||||
"typing_sep_word": " and "
|
||||
},
|
||||
"is_typing": "is typing..."
|
||||
"is_typing": "is typing...",
|
||||
"close_threads": "Close threads",
|
||||
"search_threads": "Search threads...",
|
||||
"clear_search": "Clear search",
|
||||
"Threads": {
|
||||
"no_threads_match_your_search": "No threads match your search.",
|
||||
"no_threads_yet": "No threads yet.",
|
||||
"jump": "Jump",
|
||||
"threads": "Threads",
|
||||
"thread": "Thread",
|
||||
"no_replies_yet_start_the_thread_below": "No replies yet. Start the thread below!"
|
||||
},
|
||||
"join_new_room": "Join New Room",
|
||||
"this_room_has_been_replaced_and_is_no_longer_active": "This room has been replaced and is no longer active.",
|
||||
"failed_to_join_replacement_room": "Failed to join replacement room!",
|
||||
"open_new_room": "Open New Room",
|
||||
"scroll_to_top": "Scroll to Top",
|
||||
"Message": {
|
||||
"pin_message": "Pin Message",
|
||||
"unpin_message": "Unpin Message",
|
||||
"forwarded_private_message": "Forwarded private message",
|
||||
"forwarded_from_earlier_in_this_room": "Forwarded from earlier in this room",
|
||||
"forwarded_from_another_room": "Forwarded from another room",
|
||||
"jump_to_original": "jump to original",
|
||||
"failed_to_send": "Failed to send.",
|
||||
"only_you_can_see_this": "Only you can see this.",
|
||||
"add_reaction": "Add Reaction",
|
||||
"add_to_user_sticker_pack": "Add to User Sticker Pack",
|
||||
"reply": "Reply",
|
||||
"reply_in_thread": "Reply in Thread",
|
||||
"edit_message": "Edit Message",
|
||||
"Editor": {
|
||||
"edit_message": "Edit message..."
|
||||
}
|
||||
},
|
||||
"Reactions": {
|
||||
"reacted_with": "Reacted with"
|
||||
}
|
||||
},
|
||||
"RoomInput": {
|
||||
"recording_duration": "Recording duration:"
|
||||
}
|
||||
}
|
||||
@@ -12,6 +12,7 @@ import { useVoiceRecorder } from '$plugins/voice-recorder-kit';
|
||||
import type { VoiceRecorderStopPayload } from '$plugins/voice-recorder-kit';
|
||||
import { Box, Text } from 'folds';
|
||||
import * as css from './AudioMessageRecorder.css';
|
||||
import { t } from 'i18next';
|
||||
|
||||
export type AudioRecordingCompletePayload = {
|
||||
audioBlob: Blob;
|
||||
@@ -196,7 +197,7 @@ export const AudioMessageRecorder = forwardRef<
|
||||
</Text>
|
||||
{announcedTime > 0 && announcedTime === seconds && (
|
||||
<span className={css.SrOnly} aria-live="polite">
|
||||
Recording duration: {formatTime(announcedTime)}
|
||||
{t('RoomInput.recording_duration')} {formatTime(announcedTime)}
|
||||
</span>
|
||||
)}
|
||||
</Box>
|
||||
|
||||
@@ -58,6 +58,7 @@ import { formatCompactNumber } from '$utils/formatCompactNumber';
|
||||
import * as css from './MembersDrawer.css';
|
||||
import { SidebarResizer } from '$pages/client/sidebar/SidebarResizer';
|
||||
import { useScreenSizeContext, ScreenSize } from '$hooks/useScreenSize';
|
||||
import { t } from 'i18next';
|
||||
|
||||
type MemberDrawerHeaderProps = {
|
||||
room: Room;
|
||||
@@ -461,7 +462,7 @@ export function MembersDrawer({ room, members }: MembersDrawerProps) {
|
||||
radii="Pill"
|
||||
outlined
|
||||
size="300"
|
||||
aria-label="Scroll to Top"
|
||||
aria-label={t('RoomView.scroll_to_top')}
|
||||
>
|
||||
<Icon src={Icons.ChevronTop} size="300" />
|
||||
</IconButton>
|
||||
|
||||
@@ -9,6 +9,7 @@ import { getViaServers } from '$plugins/via-servers';
|
||||
import { RoomInputPlaceholder } from './RoomInputPlaceholder';
|
||||
import * as css from './RoomTombstone.css';
|
||||
import { KnownMembership } from '$types/matrix-sdk';
|
||||
import { t } from 'i18next';
|
||||
|
||||
type RoomTombstoneProps = { roomId: string; body?: string; replacementRoomId: string };
|
||||
export function RoomTombstone({ roomId, body, replacementRoomId }: RoomTombstoneProps) {
|
||||
@@ -34,10 +35,10 @@ export function RoomTombstone({ roomId, body, replacementRoomId }: RoomTombstone
|
||||
return (
|
||||
<RoomInputPlaceholder alignItems="Center" gap="600" className={css.RoomTombstone}>
|
||||
<Box direction="Column" grow="Yes">
|
||||
<Text size="T400">{body || 'This room has been replaced and is no longer active.'}</Text>
|
||||
<Text size="T400">{body || t('RoomView.this_room_has_been_replaced_and_is_no_longer_active')}</Text>
|
||||
{joinState.status === AsyncStatus.Error && (
|
||||
<Text style={{ color: color.Critical.Main }} size="T200">
|
||||
{(joinState.error as Error)?.message ?? 'Failed to join replacement room!'}
|
||||
{(joinState.error as Error)?.message ?? t('RoomView.failed_to_join_replacement_room')}
|
||||
</Text>
|
||||
)}
|
||||
</Box>
|
||||
@@ -45,7 +46,7 @@ export function RoomTombstone({ roomId, body, replacementRoomId }: RoomTombstone
|
||||
{replacementRoom?.getMyMembership() === KnownMembership.Join ||
|
||||
joinState.status === AsyncStatus.Success ? (
|
||||
<Button onClick={handleOpen} size="300" variant="Success" fill="Solid" radii="300">
|
||||
<Text size="B300">Open New Room</Text>
|
||||
<Text size="B300">{t('RoomView.open_new_room')}</Text>
|
||||
</Button>
|
||||
) : (
|
||||
<Button
|
||||
@@ -61,7 +62,7 @@ export function RoomTombstone({ roomId, body, replacementRoomId }: RoomTombstone
|
||||
}
|
||||
disabled={joinState.status === AsyncStatus.Loading}
|
||||
>
|
||||
<Text size="B300">Join New Room</Text>
|
||||
<Text size="B300">{t('RoomView.join_new_room')}</Text>
|
||||
</Button>
|
||||
)}
|
||||
</Box>
|
||||
|
||||
@@ -70,11 +70,11 @@ export const RoomViewTyping = as<'div', RoomViewTypingProps>(
|
||||
<>
|
||||
<b>{typingNames[0]}</b>
|
||||
<Text as="span" size="Inherit" priority="300">
|
||||
{t('RoomView.typing_sep_word')}
|
||||
{t('RoomView.typing.typing_sep_word')}
|
||||
</Text>
|
||||
<b>{typingNames[1]}</b>
|
||||
<Text as="span" size="Inherit" priority="300">
|
||||
{t('RoomView.are_typing')}
|
||||
{t('RoomView.typing.are_typing')}
|
||||
</Text>
|
||||
</>
|
||||
)}
|
||||
|
||||
@@ -55,6 +55,7 @@ import { EncryptedContent } from './message';
|
||||
import * as css from './ThreadDrawer.css';
|
||||
import { SidebarResizer } from '$pages/client/sidebar/SidebarResizer';
|
||||
import { mobileOrTablet } from '$utils/user-agent';
|
||||
import { t } from 'i18next';
|
||||
|
||||
type ThreadPreviewProps = {
|
||||
room: Room;
|
||||
@@ -215,7 +216,7 @@ function ThreadPreview({ room, thread, onClick, onJump }: ThreadPreviewProps) {
|
||||
</UnreadBadgeCenter>
|
||||
)}
|
||||
<Chip data-event-id={thread.id} onClick={handleJumpClick} radii="Pill">
|
||||
<Text size="T200">Jump</Text>
|
||||
<Text size="T200">{t('RoomView.Threads.jump')}</Text>
|
||||
</Chip>
|
||||
</Box>
|
||||
</Box>
|
||||
@@ -471,7 +472,7 @@ export function ThreadBrowser({ room, onOpenThread, onClose, overlay }: ThreadBr
|
||||
<Box grow="Yes" alignItems="Center" gap="200">
|
||||
<Icon size="200" src={Icons.Thread} />
|
||||
<Text size="H4" truncate>
|
||||
Threads
|
||||
{t('RoomView.Threads.threads')}
|
||||
</Text>
|
||||
</Box>
|
||||
<Box alignItems="Center" gap="200" shrink="No">
|
||||
@@ -480,7 +481,7 @@ export function ThreadBrowser({ room, onOpenThread, onClose, overlay }: ThreadBr
|
||||
variant="SurfaceVariant"
|
||||
size="300"
|
||||
radii="300"
|
||||
aria-label="Close threads"
|
||||
aria-label={t('RoomView.close_threads')}
|
||||
>
|
||||
<Icon size="200" src={Icons.Cross} />
|
||||
</IconButton>
|
||||
@@ -497,7 +498,7 @@ export function ThreadBrowser({ room, onOpenThread, onClose, overlay }: ThreadBr
|
||||
ref={searchRef}
|
||||
value={query}
|
||||
onChange={handleSearchChange}
|
||||
placeholder="Search threads..."
|
||||
placeholder={t('RoomView.search_threads')}
|
||||
variant="Surface"
|
||||
size="400"
|
||||
radii="400"
|
||||
@@ -512,7 +513,7 @@ export function ThreadBrowser({ room, onOpenThread, onClose, overlay }: ThreadBr
|
||||
setQuery('');
|
||||
searchRef.current?.focus();
|
||||
}}
|
||||
aria-label="Clear search"
|
||||
aria-label={t('RoomView.clear_search')}
|
||||
>
|
||||
<Icon size="50" src={Icons.Cross} />
|
||||
</IconButton>
|
||||
@@ -552,7 +553,7 @@ export function ThreadBrowser({ room, onOpenThread, onClose, overlay }: ThreadBr
|
||||
>
|
||||
<Icon size="400" src={Icons.Thread} />
|
||||
<Text size="T300" align="Center">
|
||||
{lowerQuery ? 'No threads match your search.' : 'No threads yet.'}
|
||||
{lowerQuery ? t('RoomView.Threads.no_threads_match_your_search') : t('RoomView.Threads.no_threads_yet')}
|
||||
</Text>
|
||||
</Box>
|
||||
);
|
||||
|
||||
@@ -66,6 +66,7 @@ import { RoomViewFollowing, RoomViewFollowingPlaceholder } from './RoomViewFollo
|
||||
import * as css from './ThreadDrawer.css';
|
||||
import { SidebarResizer } from '$pages/client/sidebar/SidebarResizer';
|
||||
import { mobileOrTablet } from '$utils/user-agent';
|
||||
import { t } from 'i18next';
|
||||
|
||||
/**
|
||||
* Resolve the list of reply events to show in the thread drawer.
|
||||
@@ -777,7 +778,7 @@ export function ThreadDrawer({ room, threadRootId, onClose, overlay }: ThreadDra
|
||||
<Box grow="Yes" alignItems="Center" gap="200">
|
||||
<Icon size="200" src={Icons.Thread} />
|
||||
<Text size="H4" truncate>
|
||||
Thread
|
||||
{t('RoomView.Threads.thread')}
|
||||
</Text>
|
||||
</Box>
|
||||
<Box alignItems="Center" gap="200" shrink="No">
|
||||
@@ -870,7 +871,7 @@ export function ThreadDrawer({ room, threadRootId, onClose, overlay }: ThreadDra
|
||||
>
|
||||
<Icon size="400" src={Icons.Thread} />
|
||||
<Text size="T300" align="Center">
|
||||
No replies yet. Start the thread below!
|
||||
{t('RoomView.Threads.no_replies_yet_start_the_thread_below')}
|
||||
</Text>
|
||||
</Box>
|
||||
);
|
||||
|
||||
@@ -83,6 +83,7 @@ import type { PerMessageProfileBeeperFormat } from '$hooks/usePerMessageProfile'
|
||||
import { convertBeeperFormatToOurPerMessageProfile } from '$hooks/usePerMessageProfile';
|
||||
import { MessageEditor } from './MessageEditor';
|
||||
import * as css from './styles.css';
|
||||
import { t } from 'i18next';
|
||||
|
||||
export type ReactionHandler = (keyOrMxc: string, shortcode: string) => void;
|
||||
|
||||
@@ -193,7 +194,7 @@ export const MessagePinItem = as<
|
||||
ref={ref}
|
||||
>
|
||||
<Text className={css.MessageMenuItemText} as="span" size="T300" truncate>
|
||||
{isPinned ? 'Unpin Message' : 'Pin Message'}
|
||||
{isPinned ? t('RoomView.Message.unpin_message') : t('RoomView.Message.pin_message')}
|
||||
</Text>
|
||||
</MenuItem>
|
||||
);
|
||||
@@ -640,10 +641,10 @@ function MessageInternal(
|
||||
const originalRoomId = messageForwardedProps.originalRoomId;
|
||||
return {
|
||||
label: messageForwardedProps.originalEventPrivate
|
||||
? 'Forwarded private message'
|
||||
? t('RoomView.Message.forwarded_private_message')
|
||||
: isSameRoomForward(originalRoomId)
|
||||
? 'Forwarded from earlier in this room'
|
||||
: 'Forwarded from another room',
|
||||
? t('RoomView.Message.forwarded_from_earlier_in_this_room')
|
||||
: t('RoomView.Message.forwarded_from_another_room'),
|
||||
roomId: originalRoomId,
|
||||
eventId: messageForwardedProps.originalEventId,
|
||||
ts: messageForwardedProps.originalTimestamp ?? 0,
|
||||
@@ -655,8 +656,8 @@ function MessageInternal(
|
||||
const originalRoomId = msc2723ForwardedMessageProps.room_id;
|
||||
return {
|
||||
label: isSameRoomForward(originalRoomId)
|
||||
? 'Forwarded from earlier in this room'
|
||||
: 'Forwarded from another room',
|
||||
? t('RoomView.Message.forwarded_from_earlier_in_this_room')
|
||||
: t('RoomView.Message.forwarded_from_another_room'),
|
||||
roomId: originalRoomId,
|
||||
eventId: msc2723ForwardedMessageProps.event_id,
|
||||
ts: msc2723ForwardedMessageProps.origin_server_ts ?? 0,
|
||||
@@ -712,7 +713,7 @@ function MessageInternal(
|
||||
data-mention-event-id={forwardedNotice.eventId}
|
||||
onClick={mentionClickHandler}
|
||||
>
|
||||
jump to original
|
||||
{t('RoomView.Message.jump_to_original')}
|
||||
</a>
|
||||
</>
|
||||
)}
|
||||
@@ -746,11 +747,11 @@ function MessageInternal(
|
||||
{isFailedSend && (
|
||||
<Box className={css.SendStatusRow}>
|
||||
<Text size="T200" priority="300">
|
||||
Failed to send.
|
||||
{t('RoomView.Message.failed_to_send')}
|
||||
</Text>
|
||||
{canResend && (
|
||||
<Chip type="button" variant="Primary" radii="Pill" outlined onClick={handleResendClick}>
|
||||
<Text size="B300">Retry</Text>
|
||||
<Text size="B300">{t('General.retry')}</Text>
|
||||
</Chip>
|
||||
)}
|
||||
{canDeleteFailedSend && (
|
||||
@@ -760,7 +761,7 @@ function MessageInternal(
|
||||
radii="Pill"
|
||||
onClick={handleDeleteFailedSendClick}
|
||||
>
|
||||
<Text size="B300">Delete</Text>
|
||||
<Text size="B300">{t('General.delete')}</Text>
|
||||
</Chip>
|
||||
)}
|
||||
</Box>
|
||||
@@ -769,7 +770,7 @@ function MessageInternal(
|
||||
<Box className={css.SendStatusRow} alignItems="Center" gap="100">
|
||||
<Icon src={Icons.Info} size="100" />
|
||||
<Text size="T200" priority="300" as="span">
|
||||
Only you can see this.
|
||||
{t('RoomView.Message.only_you_can_see_this')}
|
||||
</Text>
|
||||
<Chip
|
||||
type="button"
|
||||
@@ -786,7 +787,7 @@ function MessageInternal(
|
||||
}
|
||||
}}
|
||||
>
|
||||
<Text size="B300">Dismiss</Text>
|
||||
<Text size="B300">{t('General.dismiss')}</Text>
|
||||
</Chip>
|
||||
</Box>
|
||||
)}
|
||||
@@ -1004,7 +1005,7 @@ function MessageInternal(
|
||||
size="T300"
|
||||
truncate
|
||||
>
|
||||
Add Reaction
|
||||
{t('RoomView.Message.add_reaction')}
|
||||
</Text>
|
||||
</MenuItem>
|
||||
)}
|
||||
@@ -1033,7 +1034,7 @@ function MessageInternal(
|
||||
size="T300"
|
||||
truncate
|
||||
>
|
||||
Add to User Sticker Pack
|
||||
{t('RoomView.Message.add_to_user_sticker_pack')}
|
||||
</Text>
|
||||
</MenuItem>
|
||||
)}
|
||||
@@ -1051,7 +1052,7 @@ function MessageInternal(
|
||||
}}
|
||||
>
|
||||
<Text className={css.MessageMenuItemText} as="span" size="T300" truncate>
|
||||
Reply
|
||||
{t('RoomView.Message.reply')}
|
||||
</Text>
|
||||
</MenuItem>
|
||||
{!isThreadedMessage && (
|
||||
@@ -1076,7 +1077,7 @@ function MessageInternal(
|
||||
size="T300"
|
||||
truncate
|
||||
>
|
||||
Reply in Thread
|
||||
{t('RoomView.Message.reply_in_thread')}
|
||||
</Text>
|
||||
</MenuItem>
|
||||
)}
|
||||
@@ -1097,7 +1098,7 @@ function MessageInternal(
|
||||
size="T300"
|
||||
truncate
|
||||
>
|
||||
Edit Message
|
||||
{t('RoomView.Message.edit_message')}
|
||||
</Text>
|
||||
</MenuItem>
|
||||
)}
|
||||
@@ -1128,7 +1129,7 @@ function MessageInternal(
|
||||
padding: `${config.space.S100} ${config.space.S200}`,
|
||||
}}
|
||||
>
|
||||
<Text size="L400">Nickname</Text>
|
||||
<Text size="L400">{t('General.nickname')}</Text>
|
||||
<input
|
||||
autoFocus
|
||||
value={nickDraft}
|
||||
@@ -1163,7 +1164,7 @@ function MessageInternal(
|
||||
closeMenu();
|
||||
}}
|
||||
>
|
||||
<Text size="B300">Save</Text>
|
||||
<Text size="B300">{t('General.save')}</Text>
|
||||
</MenuItem>
|
||||
{nicknames[senderId] && (
|
||||
<MenuItem
|
||||
@@ -1176,7 +1177,7 @@ function MessageInternal(
|
||||
closeMenu();
|
||||
}}
|
||||
>
|
||||
<Text size="B300">Clear</Text>
|
||||
<Text size="B300">{t('General.clear')}</Text>
|
||||
</MenuItem>
|
||||
)}
|
||||
</Box>
|
||||
@@ -1197,7 +1198,7 @@ function MessageInternal(
|
||||
size="T300"
|
||||
truncate
|
||||
>
|
||||
{nicknames[senderId] ? 'Edit Nickname' : 'Set Nickname'}
|
||||
{nicknames[senderId] ? t('General.edit_nickname') : t('General.set_nickname')}
|
||||
</Text>
|
||||
</MenuItem>
|
||||
))}
|
||||
@@ -1436,7 +1437,7 @@ export const Event = as<'div', EventProps>(
|
||||
size="T300"
|
||||
truncate
|
||||
>
|
||||
Reply
|
||||
{t('RoomView.Message.reply')}
|
||||
</Text>
|
||||
</MenuItem>
|
||||
{!hideReadReceipts && (
|
||||
|
||||
@@ -67,6 +67,8 @@ import {
|
||||
readdAngleBracketsForHiddenPreviews,
|
||||
stripMarkdownEscapesForHiddenPreviews,
|
||||
} from './hiddenLinkPreviews';
|
||||
import { t } from 'i18next';
|
||||
import * as prefixes from '$unstable/prefixes'
|
||||
|
||||
type MessageEditorProps = {
|
||||
roomId: string;
|
||||
@@ -229,8 +231,8 @@ export const MessageEditor = as<'div', MessageEditorProps>(
|
||||
: undefined;
|
||||
|
||||
const rawPmp =
|
||||
editedEvent?.getContent()?.['m.new_content']?.['com.beeper.per_message_profile'] ??
|
||||
mEvent.getContent()?.['com.beeper.per_message_profile'];
|
||||
editedEvent?.getContent()?.['m.new_content']?.[prefixes.MATRIX_UNSTABLE_PER_MESSAGE_PROFILE_PROPERTY_NAME] ??
|
||||
mEvent.getContent()?.[prefixes.MATRIX_UNSTABLE_PER_MESSAGE_PROFILE_PROPERTY_NAME];
|
||||
|
||||
const pmpDisplayname =
|
||||
rawPmp !== null &&
|
||||
@@ -253,7 +255,7 @@ export const MessageEditor = as<'div', MessageEditorProps>(
|
||||
customHtml = htmlPrefix + customHtml;
|
||||
}
|
||||
|
||||
newContent['com.beeper.per_message_profile'] = rawPmp;
|
||||
newContent[prefixes.MATRIX_UNSTABLE_PER_MESSAGE_PROFILE_PROPERTY_NAME] = rawPmp;
|
||||
}
|
||||
|
||||
const contentBody: IContent & Omit<ReplacementEvent<IContent>, 'm.relates_to'> = {
|
||||
@@ -301,11 +303,11 @@ export const MessageEditor = as<'div', MessageEditorProps>(
|
||||
if (oldContent.file !== undefined) content['m.new_content'].file = oldContent.file;
|
||||
if (oldContent.url !== undefined) content['m.new_content'].url = oldContent.url;
|
||||
|
||||
if (oldContent['page.codeberg.everypizza.msc4193.spoiler'] !== undefined) {
|
||||
content['page.codeberg.everypizza.msc4193.spoiler'] =
|
||||
oldContent['page.codeberg.everypizza.msc4193.spoiler'];
|
||||
content['m.new_content']['page.codeberg.everypizza.msc4193.spoiler'] =
|
||||
if (oldContent[prefixes.MATRIX_UNSTABLE_SPOILER_PROPERTY_NAME] !== undefined) {
|
||||
content[prefixes.MATRIX_UNSTABLE_SPOILER_PROPERTY_NAME] =
|
||||
oldContent['page.codeberg.everypizza.msc4193.spoiler'];
|
||||
content['m.new_content'][prefixes.MATRIX_UNSTABLE_SPOILER_PROPERTY_NAME] =
|
||||
oldContent[prefixes.MATRIX_UNSTABLE_SPOILER_PROPERTY_NAME];
|
||||
}
|
||||
}
|
||||
content['com.beeper.linkpreviews'] = [];
|
||||
@@ -519,7 +521,7 @@ export const MessageEditor = as<'div', MessageEditorProps>(
|
||||
>
|
||||
<CustomEditor
|
||||
editor={editor}
|
||||
placeholder="Edit message..."
|
||||
placeholder={t('RoomView.Message.Editor.edit_message')}
|
||||
onKeyDown={handleKeyDown}
|
||||
onKeyUp={handleKeyUp}
|
||||
bottom={
|
||||
@@ -544,10 +546,10 @@ export const MessageEditor = as<'div', MessageEditorProps>(
|
||||
) : undefined
|
||||
}
|
||||
>
|
||||
<Text size="B300">Save</Text>
|
||||
<Text size="B300">{t('General.save')}</Text>
|
||||
</Chip>
|
||||
<Chip onClick={onCancel} variant="SurfaceVariant" radii="Pill">
|
||||
<Text size="B300">Cancel</Text>
|
||||
<Text size="B300">{t('General.cancel')}</Text>
|
||||
</Chip>
|
||||
</Box>
|
||||
<Box gap="Inherit">
|
||||
|
||||
@@ -24,6 +24,7 @@ import { stopPropagation } from '$utils/keyboard';
|
||||
import { useMediaAuthentication } from '$hooks/useMediaAuthentication';
|
||||
import { ReactionViewer } from '$features/room/reaction-viewer';
|
||||
import * as css from './styles.css';
|
||||
import { t } from 'i18next';
|
||||
|
||||
export type ReactionsProps = {
|
||||
room: Room;
|
||||
|
||||
@@ -29,6 +29,7 @@ import { useOpenUserRoomProfile } from '$state/hooks/userRoomProfile';
|
||||
import { useSpaceOptionally } from '$hooks/useSpace';
|
||||
import { getMouseEventCords } from '$utils/dom';
|
||||
import * as css from './ReactionViewer.css';
|
||||
import { t } from 'i18next';
|
||||
|
||||
export type ReactionViewerProps = {
|
||||
room: Room;
|
||||
@@ -99,7 +100,7 @@ export const ReactionViewer = as<'div', ReactionViewerProps>(
|
||||
<Box grow="Yes" direction="Column">
|
||||
<Header className={css.Header} variant="Surface" size="600">
|
||||
<Box grow="Yes">
|
||||
<Text size="H3" truncate>{`Reacted with :${selectedShortcode}:`}</Text>
|
||||
<Text size="H3" truncate>{t('RoomView.Reactions.reacted_with')} {`:${selectedShortcode}:`}</Text>
|
||||
</Box>
|
||||
<IconButton size="300" onClick={requestClose}>
|
||||
<Icon src={Icons.Cross} />
|
||||
|
||||
Reference in new issue
Block a user