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

View File

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

View File

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