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 Vue SFC files with a custom VueLexer configuration specifying an array of supporting functions, the Vue Lexer does not look up the specified functions in the <script> block, but only default functions of the JavascriptLexer.
馃悰 Bug Report
When using Vue SFC files with a custom VueLexer configuration specifying an array of supporting functions, the Vue Lexer does not look up the specified functions in the <script> block, but only default functions of the JavascriptLexer.
I believe it happens because the JavascriptLexer instance that parses the <script> block does not have the custom functions passed to its constructor:
https://github.com/i18next/i18next-parser/blob/master/src/lexers/vue-lexer.js#L15
To Reproduce
This is my VueLexer and JavascriptLexer configs:
Expected behavior
All 3 keys - key1, key2, key3 are extracted to the locale json files.
Actual behavior
Only keys 'key1', 'key3' are extracted.
Your Environment
node - v16.15.1,
i18next-parser - 6.4.0
The text was updated successfully, but these errors were encountered: