New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parsing .coffee files in views as erb #158
Comments
not sure even js is supported ... maybe find that first ... alternatively On Sun, Jun 12, 2016 at 10:29 PM, coffeebite notifications@github.com
|
Thanks for the response, Mike. I can try that. Though, is there a simple way for me to specify that, on top of .erb and .rhtml, .coffee files should also be processed by the Erb parser? |
Don't know how that would be done, but should be possible if you find On Mon, Jun 13, 2016 at 8:42 AM, coffeebite notifications@github.com
|
Thanks, Mike. I'll dig around. |
@coffeebite, parsing of both JS and Coffee (and some other blends of JS including JSX now) are supported if you add https://github.com/webhippie/gettext_i18n_rails_js gem. |
might want to link that in the readme ... closing for now ... |
I have files with .js.coffee extension in my rails views. Rails automatically parses .coffee files in views as ERBs without requiring the .erb extension. I'd like the
gettext:find
task to parse my .coffee files in views folders like ERB files and extract translations from them. How do I do that? I have changed thefiles_to_translate
method by adding this tolib/tasks/gettext.rake
:I also added this line in
gettext.rake
But it doesn't work.
The text was updated successfully, but these errors were encountered: