You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dust.helpers.tr=function(chunk,context,bodies,params){varkey=dust.helpers.tap(params.key,chunk,context);varns=dust.helpers.tap(params.ns,chunk,context);varfilter=dust.helpers.tap(params.filter,chunk,context);if(!key){returnchunk.write('No translate key');}if(!ns){returnchunk.write('No namespace');}varlocale=context.get('_locals.lng');if(!locale){returnchunk.write('locale not found');}if(!i18n||!i18n.t){returnchunk.write('i18n not found');}returnchunk.map(function(chunk){i18n.t(locale,ns,key,params).then(function(value){if(filter){varfilters=filter.split('|');for(varfilterIteminfilters){value=dust.filters[filters[filterItem]](value);}}returnchunk.end(value);}).catch(function(err){returnchunk.end("");});});
I have a bug when i put an async helper in a block :
It causes a problem with render method...
Any idea ?
Thanks in advance
The text was updated successfully, but these errors were encountered: