Closed bertenbobje closed 1 month ago
I just need the country ISO2 code and their name, but the name should be translated.
You should be able to get this directly from the translation files - if you import the country names specifically e.g.
import nl from "intl-tel-input/build/js/i18n/nl/countries";
That will give you the contents of this file which is a list of every country name, translated into NL language, indexed by iso2 code.
Is that what you need?
That is exactly what I need, thanks!
Plugin version
v24.5.1
Issue
Not really an issue per se but a feature request:
Is it an idea to be able to provide
i18n
data to the static methods?f.e. (using Vue 3)
Which then would return:
Reason being that I don't initialize an HTML Input Element in my code, I just need the country ISO2 code and their name, but the name should be translated.