nl_tokens: Apply formatting options to the string . This will look for occurrences of %@ in your string and substitute them with the arguments you pass into this method . If you want to control the specific order of replacement you can add a number after the key as well to indicate which argument you want to insert .
pl_tokens: function ( str , formats ) { // first, replace any ORDERED replacements. var idx = 0 ; // the current index for non-numerical replacements return str . <mask> ( / %@([0-9]+)? / g , function ( s , argIndex ) { argIndex = ( argIndex ) ? parseInt ( argIndex , 10 ) - 1 : idx ++ ; s = formats [ argIndex ] ; return ( s === null ) ? '(null)' : ( s === undefined ) ? '' : Ember . inspect ( s ) ; } ) ; }