message: Nest language retrieval calls to avoid race condition
diff: -var fs = require('fs')
  +const fs = require('fs')
  module.exports = function getLanguageList () {
  const iconMap = [
  @@ -50,8 +50,6 @@ module.exports = function getLanguageList () {
  next(new Error(`Unable to retrieve en.json language file: ${err.message}`))
  }
  enContent = JSON.parse(content)
  - })
  -
  fs.readdir('frontend/dist/frontend/assets/i18n/', (err, languageFiles) => {
  if (err) {
  next(new Error(`Unable to read i18n directory: ${err.message}`))
  @@ -86,6 +84,7 @@ module.exports = function getLanguageList () {
  })
  })
  })
  + })
  function calcPercentage (fileContent, enContent) {
  const totalStrings = Object.keys(enContent).length
  