mirror of
https://github.com/vector-im/element-call.git
synced 2026-03-31 07:00:26 +00:00
More translations
This commit is contained in:
@@ -61,6 +61,7 @@
|
||||
"password": "Password",
|
||||
"preferences": "Preferences",
|
||||
"profile": "Profile",
|
||||
"reaction": "Reaction",
|
||||
"search": "Search",
|
||||
"settings": "Settings",
|
||||
"something_went_wrong": "Something went wrong",
|
||||
|
||||
@@ -7,9 +7,9 @@ Please see LICENSE in the repository root for full details.
|
||||
|
||||
import { PropsWithChildren, ReactNode } from "react";
|
||||
import classNames from "classnames";
|
||||
import "@formatjs/intl-durationformat/polyfill";
|
||||
|
||||
import styles from "./ReactionIndicator.module.css";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
export function ReactionIndicator({
|
||||
emoji,
|
||||
@@ -19,6 +19,7 @@ export function ReactionIndicator({
|
||||
miniature?: boolean;
|
||||
emoji: string;
|
||||
}>): ReactNode {
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
<div
|
||||
className={classNames(styles.reactionIndicatorWidget, {
|
||||
@@ -30,7 +31,7 @@ export function ReactionIndicator({
|
||||
[styles.reactionLarge]: !miniature,
|
||||
})}
|
||||
>
|
||||
<span role="img" aria-label="reaction indicator">
|
||||
<span role="img" aria-label={t("common.reaction")}>
|
||||
{emoji}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -8,7 +8,7 @@ exports[`RaisedHandIndicator > renders a smaller indicator when miniature is spe
|
||||
class="reaction"
|
||||
>
|
||||
<span
|
||||
aria-label="reaction indicator"
|
||||
aria-label="common.reaction"
|
||||
role="img"
|
||||
>
|
||||
✋
|
||||
@@ -28,7 +28,7 @@ exports[`RaisedHandIndicator > renders an indicator when a hand has been raised
|
||||
class="reaction reactionLarge"
|
||||
>
|
||||
<span
|
||||
aria-label="reaction indicator"
|
||||
aria-label="common.reaction"
|
||||
role="img"
|
||||
>
|
||||
✋
|
||||
@@ -48,7 +48,7 @@ exports[`RaisedHandIndicator > renders an indicator when a hand has been raised
|
||||
class="reaction reactionLarge"
|
||||
>
|
||||
<span
|
||||
aria-label="reaction indicator"
|
||||
aria-label="common.reaction"
|
||||
role="img"
|
||||
>
|
||||
✋
|
||||
|
||||
Reference in New Issue
Block a user