Skip to content
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

Extracting filters in html #321

Closed
jgerstle opened this issue Nov 2, 2016 · 1 comment
Closed

Extracting filters in html #321

jgerstle opened this issue Nov 2, 2016 · 1 comment

Comments

@jgerstle
Copy link

jgerstle commented Nov 2, 2016

In HTML there is a placeholder attribute which we use for a bunch of our inputs. Which would look something like this <input placeholder="phone"> I would like to translate the text in the placeholder. I could theoretically do this using filters like so: <input placeholder="{{'phone'|translate}}">. However, when running the grunt extract task I created, the text does not get added to the pot file. Am I missing something or do I just have to add it as a variable in js and pass it to the front end which I'd rather not do.

@jgerstle jgerstle closed this as completed Nov 3, 2016
@jgerstle
Copy link
Author

jgerstle commented Nov 3, 2016

I was wrong this does exist my issue was this rubenv/angular-gettext-tools#131

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

No branches or pull requests

1 participant