code: function (resources) {
  		'use strict';
  		this.i18n = require('i18next');
  		var sprintf = require('i18next-sprintf-postprocessor');
  		this.i18n.use(sprintf).init({
  			overloadTranslationOptionHandler: sprintf.overloadTranslationOptionHandler,
  			returnObjects: true,
  			lng: this.locale,
  			resources: resources
  		});
  	}
docs: Initializes i18n.
  @param {object} resources The 'resources' object to give to i18n.