Search code examples
reactjsreact-i18next

How can I use two translations on the same react app with i18next?


I am working on an app where the user can select several buttons. Those buttons need to be translated in the user's language. After the selection a text will be printed which needs to be translated to Japanese.

Input: Many languages Output: Always Japanese

I could not find any good example my for usecase with i18next on the web. Do you have any idea?


Solution

  • You can pass the lng as options too: i18next.t('key', { lng: 'ja' })