Given the following code:
<Trans i18nKey="error" ns="login">
<p className="error">
{React.string("Incorrect username/password combination.")}
<br />
{React.string("Is Caps Lock turned on?")}
</p>
</Trans>
Notice the React.string
function calls.
Is there a way to make this work with i18next? What would this key's value look like in the JSON file?
Update
In my translations JSON file, how should the above code look?
"error": "<1>???</1>"