PHP intl country code 2 chars to country name

后端 未结 8 1074
猫巷女王i
猫巷女王i 2021-02-18 17:57

I\'m triying to convert, using PHP, 2 characters country code (ISO 3166-1) to country names, or intl country codes, so I can translate the country name.

Using Loca

8条回答
  •  花落未央
    2021-02-18 18:46

    Finally I ended here https://github.com/umpirsky/country-list/tree/master/country/cldr Using only the languages I need for the code translations. There are multiple formats.

    I just wish PHP to have a database on the intl extension, as the one they have for languages or codes.

提交回复
热议问题