function getLanguage (lang) {
  const key = String(lang).toLowerCase()
  return languages[key in languages ? key : CN]
}
Get language resource by language code
@param {string} code - language code
@returns {object} language resource