index.js
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
		});
	}
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
		});
	}
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 } ) ; }
Initializes i18n.
@param {object} resources The 'resources' object to give to i18n.
Initializes i18n .