text: import Vue from 'vue'
  import VueI18n from 'vue-i18n'
  Vue.config.productionTip = false;
  
  // components
  import {FontAwesomeIcon} from '@fortawesome/vue-fontawesome'
  
  // app
  import Generate from './generate'
  
  // messages
  import Messages from '../../localization/generate'
  import mergeMessages from '../../localization/shared/_all'
  
  
  if (document.getElementById("generate") != null) {
      // register plugins
      Vue.use(VueI18n);
  
      // register components
      Vue.component('font-awesome-icon', FontAwesomeIcon);
  
      // initialize messages
      const i18n = new VueI18n({
          locale: document.documentElement.lang.substr(0, 2),
          messages: mergeMessages(Messages),
      });
  
      // boot app
      new Vue({
          i18n,
          el: '#generate',
          template: '<Generate/>',
          components: {Generate}
      });
  }