angular-gettext-tools
angular-gettext-tools copied to clipboard
Extraction problem in table data attributes
<td data-title="'Name'|translate">{{ user.name }}</td>
<td data-title="'Age'|translate">{{ user.age }}</td>
<td data-title="'Job'|translate">{{ user.job }}</td>
This only extracts "Name" and "Job" (every alternate). If I use {{ }} around the string with the translate filter, then it works, but this breaks in the browser with an angular(or perhaps ngTable) error.
The "no-delimiter" extraction is more complicated and less tested, so this doesn't surprise me. Looks like we don't test having more than one non-delimited string in a file: https://github.com/rubenv/angular-gettext-tools/blob/master/test/fixtures/no_delimiter.html
For now, you may want to put your strings in your JS (using the gettext service) until this is resolved.
That's what I've gone with. It feels a bit ugly though to have to put those strings to the JS, but at least it works for now. Though complex, I hope this gets implemented.
We are experiencing the same issue. If anyone knows a workaround, please mention it in this issue.