How to use the addPostProcessor function from i18next

Find comprehensive JavaScript i18next.addPostProcessor code examples handpicked from public code repositorys.

45
46
47
48
49
50
51
52
53
54
  var appLogger = { error: function () { return undefined; } };
  app.use(beans.get('handle404')(appLogger));
  app.use(beans.get('handle500')(appLogger));

  i18n.registerAppHelper(app);
  i18n.addPostProcessor('jade', function (val, key, opts) {
    return jade.compile(val, opts)();
  });
  return app;
}
fork icon62
star icon0
watch icon2