Templates.helpers.loc()

loc (str) public

Defined in packages/ember-htmlbars/lib/helpers/loc.js:9

Calls Ember.String.loc with the provided string. This is a convenient way to localize text within a template. For example:

Ember.STRINGS = {
  '_welcome_': 'Bonjour'
};
<div class='message'>
  {{loc '_welcome_'}}
</div>
<div class='message'>
  Bonjour
</div>

See Ember.String.loc for how to set up localized string references.

Parameters:

str String
The string to format.
doc_EmberJs
2016-11-30 16:53:35
Comments
Leave a Comment

Please login to continue.