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
I have problem with extracting translates from *.vue files, wich use ES8 feature object-chaining.
As sample: const a = object?.someKey?.someValue provide to reject Make script with error: Trace: SyntaxError: Unexpected token. If i remove chaining, all scripts successfully done. How resolve this problem?
The text was updated successfully, but these errors were encountered:
This is possible thanks to Polyconseil/easygettext#72, it enables you to use Babel as a parser instead of Acorn (which doesn't support optional chaining atm). Just make sure your babel parser correctly has the optional-chaining-plugin installed and then add the --parser=babel argument to the gettext-extract command that you probably are using.
Here's a part of an example from my project's code:
# Extract gettext strings from templates files and create a POT dictionary template.
gettext-extract --attribute=v-translate --parser=babel --quiet --output $TEMPDIR/template.pot $GETTEXT_HTML_SOURCES
I have problem with extracting translates from *.vue files, wich use ES8 feature object-chaining.
As sample:
const a = object?.someKey?.someValue
provide to reject Make script with error:Trace: SyntaxError: Unexpected token
. If i remove chaining, all scripts successfully done. How resolve this problem?The text was updated successfully, but these errors were encountered: