how to rewrite code with js api? #886
-
the doc says I want to translate every string literals from one langugage to another by Google Translator or ChatGPT I found no example to change the source code. Would anybody like to share an example? |
Beta Was this translation helpful? Give feedback.
Answered by
HerringtonDarkholme
Jan 24, 2024
Replies: 1 comment
-
You can refer to swc's use case |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
scil
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can refer to swc's use case
https://github.com/swc-project/swc/blob/c5053d15746f22f1098e72a0c8f2b7bb8c444d21/packages/helpers/scripts/ast_grep.js#L2