Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (lingui-jsx-trans-gen) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
lingui-jsx-trans-gen
wraps your JSX text nodes in Trans
macro automagically
run this command: npx lingui-jsx-trans-gen addTrans "./src/*.tsx"
and all tsx files in src
folder should get the Trans added.
⚠️ you must include the quotes for the glob expression
For now it only works with typescript tsx
files.
how to use this in vscode
The most convenient way to use this for a single file is probably with this vscode plugin: adrianwilczynski.terminal-commands
Just define a custom command like this:
{
"command": "npx lingui-jsx-trans-gen addTrans {resource}",
"name": "lingui-jsx-trans-gen",
"auto": true
}