Country Code by Country name #241
-
Is there any tested method of getting the For example, in The best, naturally, would be receiving this info directly from API, but for some reason the developers didn't think it was worth including in the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
One way would be to make this kind of dictionary on your client. :) |
Beta Was this translation helpful? Give feedback.
-
Yes, this could be a solution. It is somewhat error-prone, in case some country name would be updated/changed in Fortnox. (So I still think that the proper way would be to get CountryCode directly from API) BTW, Have you noticed that there is no difference between Swedish and English names in the screenshot you attached? Both columns are in English. Same happens if I switch to Swedish language in GUI - both columns are in Swedish then :) |
Beta Was this translation helpful? Give feedback.
One way would be to make this kind of dictionary on your client. :)
It would be easy to get English names with code, e.g. here. Maybe you can find also an existing swedish list and use it.. or just define it manually for the subset of reasonable countries.