dist/hashedit.js
function(text){

    	var options, language, path;

			language = hashedit.language;

      // translatable
      if(hashedit.canTranslate === true) {

    		// make sure library is installed
        if(i18n !== undefined) {

          if(hashedit.isI18nInit === false) {

            // get language path
            path = hashedit.languagePath;
            path = hashedit.replaceAll(path, '{{language}}', hashedit.language);

      			// set language
      			options = {
      		        lng: hashedit.language,
      		        getAsync : false,
      		        useCookie: false,
      		        useLocalStorage: false,
      		        fallbackLng: 'en',
      		        resGetPath: path,
      		        defaultLoadingValue: ''
      		    };

            // init
      			i18n.init(options);

      			// set flag
      			hashedit.isI18nInit = true;
    			}
    		}

  		}

  		return i18n.t(text);
  	}
function(text){

    	var options, language, path;

			language = hashedit.language;

      // translatable
      if(hashedit.canTranslate === true) {

    		// make sure library is installed
        if(i18n !== undefined) {

          if(hashedit.isI18nInit === false) {

            // get language path
            path = hashedit.languagePath;
            path = hashedit.replaceAll(path, '{{language}}', hashedit.language);

      			// set language
      			options = {
      		        lng: hashedit.language,
      		        getAsync : false,
      		        useCookie: false,
      		        useLocalStorage: false,
      		        fallbackLng: 'en',
      		        resGetPath: path,
      		        defaultLoadingValue: ''
      		    };

            // init
      			i18n.init(options);

      			// set flag
      			hashedit.isI18nInit = true;
    			}
    		}

  		}

  		return i18n.t(text);
  	}
function ( text ) { var options , language , path ; language = hashedit . language ; // translatable if ( hashedit . canTranslate === true ) { // make sure library is installed if ( i18n !== undefined ) { if ( hashedit . isI18nInit === false ) { // get language path path = hashedit . languagePath ; path = hashedit . replaceAll ( path , '{{language}}' , hashedit . language ) ; // set language options = { lng : hashedit . language , getAsync : false , useCookie : false , useLocalStorage : false , fallbackLng : 'en' , resGetPath : path , defaultLoadingValue : '' } ; // init i18n . init ( options ) ; // set flag hashedit . isI18nInit = true ; } } } return i18n . t ( text ) ; }
translates a text string
translates a text string