More translations

This commit is contained in:
Half-Shot
2024-11-08 13:37:23 +00:00
parent d6d6efdff2
commit fbb3882b81
3 changed files with 7 additions and 5 deletions

View File

@@ -61,6 +61,7 @@
"password": "Password",
"preferences": "Preferences",
"profile": "Profile",
"reaction": "Reaction",
"search": "Search",
"settings": "Settings",
"something_went_wrong": "Something went wrong",

View File

@@ -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>

View File

@@ -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"
>