Ember: how to translate a placeholder using i18n lib?
ember.js
Solution
You could also do it this way, by adding the `Ember.I18n.TranslateableAttributes` mixin to the views that need to be translation aware, like this:
Ember.TextField.reopen(Ember.I18n.TranslateableAttributes)
And then add the suffix `Translation` to the properties you want to be translation aware:
{{view Ember.TextField placeholderTranslation="T1005"}}
See here your updated jsfiddle.
Hope it helps.
Problem
See: http://jsfiddle.net/cyclomarc/36VS3/1/ I am using Ember i18n lib for translations. How can I use a translated string in an Ember.TextField view ? Idem for textarea view and select view. ``` <script type="text/x-handlebars"> <h2>Ember Translate placeholder</h2> {{t T1005}}<br> {{view Ember.TextField placeholder="T1005"}} </script> ``` The placeholder in the input field should also say 'Info' and thus not 'T1005' (being the reference of the string).