Can you “dumb down” ES6 template strings to normal strings?
问题 I have to work around the limitation of gettext to recognise ES6 template strings, and I thought about getting the "non interpolated value" of the template strings as a compilation step, in order to have only "normal" strings in the code. Basically what I would like to achieve is transform this const adjective = 'wonderful' const something = `Look, I am a ${adjective} string` console.log(something) > "Look, I am a wonderful string" into this const adjective = 'wonderful' const something =