/**
 * language fix
 */

const _ = require('lodash')

function capitalizeFirstLetter (string) {
  return string.charAt(0).toUpperCase() + string.slice(1)
}

module.exports = (id) => {
  const lang = require('@electerm/electerm-locales').en_us.lang
  return capitalizeFirstLetter(_.get(lang, `${id}`) || id)
}
