You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the built-in Javascript Lexer, t wrapped keys in the options that are passed to the t function are ignored and not parsed.
E.g. t('foo {{ target }}', { target: t('bar') })
foo {{ target }} is extracted
bar is not`
To Reproduce
Run i18next-parser with the base JS lexer on any .js file containing the following line:
// t('foo {{ target }}', { target: t('bar') })
Expected behavior
Translated keys within the options passed to already extracted keys should be caught as well.
Apologies if this has been reported before. We'd like to avoid extra comments and lines if possible and the included JS lexer does not appear to catch the below case. Assistance or a reference to what is considered best practices in this situation would be appreciated.
The text was updated successfully, but these errors were encountered:
馃悰 Bug Report
When using the built-in Javascript Lexer,
t
wrapped keys in the options that are passed to thet
function are ignored and not parsed.E.g.
t('foo {{ target }}', { target: t('bar') })
foo {{ target }}
is extractedbar
is not`To Reproduce
Run i18next-parser with the base JS lexer on any .js file containing the following line:
// t('foo {{ target }}', { target: t('bar') })
Expected behavior
Translated keys within the options passed to already extracted keys should be caught as well.
Your Environment
Apologies if this has been reported before. We'd like to avoid extra comments and lines if possible and the included JS lexer does not appear to catch the below case. Assistance or a reference to what is considered best practices in this situation would be appreciated.
The text was updated successfully, but these errors were encountered: