Skip to content

Commit

Permalink
feat(ToggleLanguage) add tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
soujvnunes committed Mar 19, 2024
1 parent 8181e6c commit db48cb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/containers/ToggleLanguage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ export default function ToggleLanguage() {

return (
<Button
className="min-w-32"
className="plausible-event-name=Toggled+language min-w-32"
aria-label={title}
title={title}
endItem={<Icon name="Language" />}
value={i18n.language === "en" ? "pt" : "en"}
onClick={(event: React.MouseEvent<HTMLButtonElement>) =>
void i18n.changeLanguage(event.currentTarget.value)
}
endItem={<Icon name="Language" />}
>
{t("lang")}
</Button>
Expand Down

0 comments on commit db48cb5

Please sign in to comment.