Translating strings in package.json #161
Answered
by
ivanhofer
ebennett48375
asked this question in
Q&A
-
In a VSCode extension, is there any way to use typesafe-i18n to translate strings in package.json? I'm thinking of the text for commands, configuration settings and the like. |
Beta Was this translation helpful? Give feedback.
Answered by
ivanhofer
Jan 26, 2022
Replies: 1 comment 1 reply
-
You would need to write a script that generates the const pck = {
scripts: {
test: `ECHO "${LL.hello()}"`
}
}
writeFile(resolve('./package.json'), JSON.stringify(pck, undefined, 3)) Does this work for you? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ivanhofer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You would need to write a script that generates the
package.json
file for you. Something like:Does this work for you?