I have a JS file with strings. Here is the format:

I have a JS file with strings. Here is the format:
I would use a regex like this:
Start with: ^\s*([^:]+)\s*:[^"`]*["|`]
End with: ["|`],
The problems are unusual apostrophe characters in one of the entries. This rule can also import the unique IDs with its first back reference.
Well, the line adjust_f1: (what) => `Adjust ${what}` is not in "", can you add them? I don't see how it would otherwise understand that this is translatable text. I assume you want to have the whole line of "adjust_f1: (what) => `Adjust ${what}`" as translatable text?
Thanks this worked as expected.
With the custom parser above that line is in my project. Here is what I see:
I was worried how it would generate, but it generates just fine.