I use this awesome plugin with React. I encountered the bug when using the ternary operator inside the t function:
{t(short ? 'Short language' : 'Language')}
This code gives 7 Unresolved key errors and 1 Unresolved namespace. If I create the variable and put it, the result will be the same:
const key = short ? 'Short language' : 'Language'
{t(key)}
What to do?
I use Webstorm 2022.3.4 on mac 13.2.1. with i18n support plugin 2.8.4
I use this awesome plugin with React. I encountered the bug when using the ternary operator inside the
t
function:{t(short ? 'Short language' : 'Language')}
This code gives 7
Unresolved key
errors and 1Unresolved namespace
. If I create the variable and put it, the result will be the same:What to do? I use Webstorm 2022.3.4 on mac 13.2.1. with i18n support plugin 2.8.4