Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support for pug files #157

Open
samuliasmala opened this issue Apr 20, 2020 · 0 comments
Open

Support for pug files #157

samuliasmala opened this issue Apr 20, 2020 · 0 comments

Comments

@samuliasmala
Copy link

In addition to js files I'm using i18next in pug templates, e.g. #{t('frontpage.login-button')}. Has there been any discussion to include pug files in this plugin? It would be great to get the i18n keys extracted also from pug templates and combined with the keys from js files.

My current solution is to manually extract the keys using grep and inserting those to dummy js file to get the keys merged with other keys.

grep -ohP '(?<!\w)t\(.*?\)' *.pug > dummy.js

It works but is not ideal.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant