• CD to API folder
  • Run $ export NODE_ENV=production (or environment you are using)
  • Open file server > migrations > user.js and change default account you want

  • Copy server > migrations > translation > en.json to another file with your new language (eg cn.json – add in the same migrations > translation folder). Then edit value of the text you want to be translated (value in the right, after ūüôā

  • Open server > migrations > i18n.js

And edit

  • const langs = [‘en’, ‘es’]; remove or add new language you want. Eg const langs = [‘en’, ‘cn’];
  • Edit the language which will be used in the system

await DB.I18nLanguage.create({

¬†¬†¬†¬†key: ‘en’,

¬†¬†¬†¬†name: ‘EN’,

    isDefault: true,

    isActive: true

  }, {

¬†¬†¬†¬†key: ‘cn’,

¬†¬†¬†¬†name: ‘CN’,

    isDefault: false,

    isActive: true

  });

  • Run $ node server/migrate
  • After that default data will be generate.

Leave a Reply

Your email address will not be published. Required fields are marked *