api/hooks/sails-posthook-permissions.js
/**
   * Creates default translations from files in config/locales
   * @return {Array} translations
   */
Creates default translations from files in config/locales
@return {Array} translations
Creates default translations from files in config / locales @return { Array } translations
function initializeTranslations () {
    sails.log('checking for valid translations');
    return require('../../config/fixtures/translations').create()
      .then(function (translations) {
        return null;
      })
      .catch(function (error) {
        sails.log.error(error);
      });
  }
function initializeTranslations ( ) { sails . log ( 'checking for valid translations' ) ; return require ( '../../config/fixtures/translations' ) . create ( ) . then ( function ( translations ) { return null ; } ) . catch ( function ( error ) { sails . log . error ( error ) ; } ) ; }
Creates default translations from files in config/locales
 @return {Array} translations
Creates default translations from files in config / locales @return { Array } translations