我有这个哈希,我需要将它的第一部分转换为纯文本,例如 en_GB 将是英国。这是我从 Facebook api 获得的示例响应。
{"en_GB"=>6836, "en_US"=>3414, "it_IT"=>120, "es_LA"=>37, "fr_FR"=>24, "zh_TW"=>18, "pt_BR"=>18, "de_DE"=>16, "hr_HR"=>15, "pl_PL"=>12, "es_ES"=>12, "ru_RU"=>10, "id_ID"=>9, "el_GR"=>8, "ar_AR"=>8, "th_TH"=>8, "tr_TR"=>8, "bg_BG"=>7, "lv_LV"=>6, "zh_CN"=>6, "cs_CZ"=>5, "ro_RO"=>4, "pt_PT"=>4, "en_PI"=>4, "he_IL"=>3, "sk_SK"=>3, "hu_HU"=>3, "mk_MK"=>3, "nl_NL"=>2, "sv_SE"=>2, "zh_HK"=>2, "lt_LT"=>2, "nl_BE"=>2, "fb_LT"=>1, "en_IN"=>1, "sl_SI"=>1, "sq_AL"=>1, "ko_KR"=>1, "da_DK"=>1, "ka_GE"=>1, "cy_GB"=>1, "mr_IN"=>1, "sr_RS"=>1, "nb_NO"=>1}
有人知道如何将其转换为纯文本吗?