将 ISO 3166-1 代码转换为 i18n 中的国家/地区名称

将 ISO 3166-1 alpha-2 或 alpha-3 或数字国家/地区代码转换为 i18n 中的国家/地区名称

目前为 2022-10-03 提交的版本。查看 最新版本

这些是代码更新过的版本。 显示所有版本

  • v0.1 2022-10-05

    return an array if codes=true, instead of string joined with slash

  • v0.1 2022-10-04

    deal num in num2country in case \d or \d\d or int passed in

  • v0.1 2022-10-04

    fix zh-\w\w convertion error in convertlang function
    support return a2/a3/num codes with country name
    slim functions with new code2country function

  • v0.1 2022-10-03

    update function convertlang, support more \w\w-\w\w lang pattern

  • v0.1 2022-10-03

    export functions instead of include them in the anonymous function

  • v0.1 2022-10-03

    update match rule

  • v0.1 2022-10-03