0.2.2 • Published 10 months ago

lingui-jsx-trans-gen v0.2.2

Weekly downloads
6
License
MIT
Repository
-
Last release
10 months ago

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
}
0.2.2

10 months ago

0.1.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.0.3

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago