Skip to content

Commit

Permalink
Translate animated text on homepage when user changes the locale
Browse files Browse the repository at this point in the history
Closes #90
  • Loading branch information
kachar committed Mar 2, 2021
1 parent 0218354 commit be128ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/index/helpers/Typewriter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ const useStyles = makeStyles((theme) =>

export default function Index() {
const classes = useStyles()
const { t } = useTranslation()
const { i18n, t } = useTranslation()

return (
<Typography variant="h4" className={classes.typewriter}>
<Typewriter
key={i18n.language}
onInit={(typewriter) => {
typewriter
.typeString(t('index:jumbotron.maximum-transparency'))
Expand Down

0 comments on commit be128ad

Please sign in to comment.