Open brunobg opened 4 years ago
I don't know, you would be willing to contribute this feature ? :)
I could try. Can you give me an idea of how it could be implemented?
On Fri, Apr 17, 2020 at 4:40 AM Victor Perron notifications@github.com wrote:
I don't know, you would be willing to contribute this feature ? :)
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Polyconseil/easygettext/issues/80#issuecomment-615094905, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGDAUFWZHGLEMUA4AIJZELRNABWHANCNFSM4MJ6YSXA .
-- Bruno Barberi Gnecco
Sure ! In this function we dissect the Vue file and then analyze separately the template and script parts: https://github.com/Polyconseil/easygettext/blob/master/src/extract.js#L61-L69
My first attempt would be to modify it (maybe by dissecting our vue preprocessor) to handle native templates as well.
Thanks, I'll send a PR soon.
Nativescript vue allow files with multiple templates to target native and web, like this one:
gettext-extract does not handle this properly, apparently only dealing with the second section. It'd be nice to support multiple template sections. Is this viable?