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