-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Korean address missing inclusion of address and postal code, using too specific fields #226
Comments
You can propagate related properties to help with this issue using the Here's an example of the source code: i18n-postal-address/lib/postal-address.ts Lines 171 to 178 in b4d3c52
If you have any improvement suggestion, feel free to open a pull request. |
Ok, let me think on that. I think it is a bit tricky to have the underlying term be localized, especially when although it may be consistent it does map to a common term like province/region etc. I guess I view the target dev audience as being someone who's international and not doing something market specific. There is also a missing zip code still. I can make a contribution for this. |
Many of the original formats in this library came from Microsoft's Appendix V International Address Formats, as specified in the README file. If you browse down to the section for Korea, you'll notice they use different terms for the format. This is why it's implemented this way. |
@joaocarmo - I see that but in theory there are different terms for many of these items in other lanuages, that are just brought over into english. I believe the korean terms map to english terms: Additionally, some of the terms have been discarded in a revamp but the old style persists so maybe two are needed: https://expatguidekorea.com/article/understanding-south-korean-addresses.html My guess is that many address forms won't collect all of this and will instead just put everything on address/address1 by default, in which case we need to have a fallback if the specific underlying fields aren't collected. In
Maybe it would make sense to do remappings from some of the attributes that are korean specific here? Why is only |
An additional thought, there may be many forms where the Address/Address1 takes the place of the specific capture of the underlying data (such as for Korea/Japan). I wonder if we could introduce a fallback that uses those in place of the language specific values (si/do/dong) if those aren't defined. |
Expected Behavior
inclusion of street/house address information is properly inferred. Zip code is included next to country or on its own line.
Seojun Kim
#33, 6th Floor, 114, Seolleungro-190gil, Gangnam-gu, Seoul
06010 South Korea
Actual Behavior
Zip code and street information are completely skipped for korean specific fields (they could maybe be set twice?). We should be more forgiving as generalized forms will not capture do (province)/si (city) /dong (area within a district) /gu(district within a big city). Additionally, it feels like this might be most likely to be included via the
address
/address
/address2
props and if those are present they could be included.Current implementation:
Your Environment
Source on Korean address: https://www.90daykorean.com/korean-address/
Some random Korean addresses: https://www.bestrandoms.com/random-address-in-ko?quantity=6
The text was updated successfully, but these errors were encountered: