|
@@ -1,7 +1,7 @@
|
|
|
|
+import { t } from "../i18n";
|
|
import { HelpIcon } from "./icons";
|
|
import { HelpIcon } from "./icons";
|
|
|
|
|
|
type HelpButtonProps = {
|
|
type HelpButtonProps = {
|
|
- title?: string;
|
|
|
|
name?: string;
|
|
name?: string;
|
|
id?: string;
|
|
id?: string;
|
|
onClick?(): void;
|
|
onClick?(): void;
|
|
@@ -12,8 +12,8 @@ export const HelpButton = (props: HelpButtonProps) => (
|
|
className="help-icon"
|
|
className="help-icon"
|
|
onClick={props.onClick}
|
|
onClick={props.onClick}
|
|
type="button"
|
|
type="button"
|
|
- title={`${props.title} — ?`}
|
|
|
|
- aria-label={props.title}
|
|
|
|
|
|
+ title={`${t("helpDialog.title")} — ?`}
|
|
|
|
+ aria-label={t("helpDialog.title")}
|
|
>
|
|
>
|
|
{HelpIcon}
|
|
{HelpIcon}
|
|
</button>
|
|
</button>
|