I have a static file called translations.json which includes my translations:
{
"common": {
"greeting": "We will see you at NEW YORK in the morning!"
}
}
Within my react code, ive been use doing somethign along the lines of:
<p>{translate('common.greeting')}</p>
However, I want the word "NEW YORK" to be bold. Ive been doing some research and I see the the Trans component might be what im looking for but im having no luck. Im about to just split the translation into 3 parts... greetingIntro, grettingBold, and grettingEnd...
Can someone point me in the right direction?