Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unresolved namespace with ternary operator issue #203

Open
Demianeen opened this issue Mar 30, 2023 · 0 comments
Open

Unresolved namespace with ternary operator issue #203

Demianeen opened this issue Mar 30, 2023 · 0 comments

Comments

@Demianeen
Copy link

Demianeen commented Mar 30, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant