Sha256: 095d0e37d58615ea927adf332a7272238acd8a598cc271424afb413e86cae6cf
Contents?: true
Size: 808 Bytes
Versions: 3
Compression:
Stored size: 808 Bytes
Contents
/** @module ember */ import { loc } from '@ember/string'; import { helper } from '../helper'; /** Calls [loc](/api/classes/Ember.String.html#method_loc) with the provided string. This is a convenient way to localize text within a template. For example: ```javascript Ember.STRINGS = { '_welcome_': 'Bonjour' }; ``` ```handlebars <div class='message'> {{loc '_welcome_'}} </div> ``` ```html <div class='message'> Bonjour </div> ``` See [String.loc](/api/ember/release/classes/String/methods/loc?anchor=loc) for how to set up localized string references. @method loc @for Ember.Templates.helpers @param {String} str The string to format. @see {String#loc} @public */ export default helper(function (params) { return loc.apply(null, params); });
Version data entries
3 entries across 3 versions & 1 rubygems