2

How I normally use i18next to translate stuff

<Translation>{(t) => <span>{t('key')}</span>}</Translation>

But I'm not too sure how to translate properties such as title value "Dashboard" in the following line

 <NavExpandable title="Dashboard" isExpanded>

I haven't been able to find a solution yet and I can't believe I'm the only one who has this problem.

4

1 回答 1

0

My problem was that I was using import { Translation } from 'i18next'; instead of import { Translation } from 'react-i18next';

于 2019-07-31T14:09:28.217 回答