indexiatech / ember-forms

Smart, Intuitive forms for Ember.js styled with Bootstrap, Multi layouts and Validation support.
http://indexiatech.github.io/ember-forms
Apache License 2.0
218 stars 45 forks source link

How to use ember-cli-i18ns t helper? #97

Closed Cr0up13r closed 9 years ago

Cr0up13r commented 9 years ago

Hi, is there any possibility to use ember-cli-i18ns t helper inside of an input element (label or placeholder)???

{{#em-form}}
    {{em-input property="first_name" type="text" placeholder="{{t 'form.first_name'}}"}}
    {{em-input property="last_name" type="text" placeholder="{{t 'form.last_name'}}"}}
{{/em-form}}
ashrafhasson commented 9 years ago

I use handlebars subexpression for this type of thing:

{{#em-form}}
    {{em-input property="first_name" type="text" placeholder="{{(t 'form.first_name')}}"}}
    {{em-input property="last_name" type="text" placeholder="{{(t 'form.last_name')}}"}}
{{/em-form}}
asaf commented 9 years ago

That should work :)