-
Notifications
You must be signed in to change notification settings - Fork 27
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
docs: Template localizations? #104
Comments
sorry Alex I missed this, I'll be back to jr this week, needed to setup a new dev machine and some other stuff. |
I did not know the rank of the zip codes should be synchronized with the rank of the cities. I'll review the 2 files and attempt to order the zip codes to correspond with the city order (alphabetical). |
for MX and CA, essentially you need to create a dir in templates/data. |
The first thing I notice is that there are 4 more zip codes than there are cities. How does that work with position/rank matching? |
mmm, yep, they are definitely wrong then. I did the italian localisation and it should be 99.99% right, the others are AI generated and can't be trusted atm. Not easy to get the right zip/phone pattern for every city in the world: having the same lines in the file it's the bare minimum :) |
I'm about halfway through looking up the zip codes, and the organization appears to be one zip code per state capital, sorted by the alphabetic order of the full name of the state (and not the 2-letter postal abbreviation of the state - good work US Postal Service in not making those 2 sets homomorphic...). So that makes sense to me. Still checking for data quality. |
OK, I've confirmed that the 50 zip codes entries in the Let me know what you want to do and I can adjust the files to match your intention. |
BTW, |
It's probably waaay overkill for this project, but the zip-lookup JS project organized the full 2015 US Zip Code DB (including all 50 states and 5 US territories) in 100 8kb files. |
The order of |
The simplest fix would be to replace the populous cities in |
yep, but the "right" cities to use for a rnd generator are the others, the most populous ones. So zips should be updated with those, and cities should probably contain the capitals too |
Can you explain how to localize the templates?
I read your blog post which seems relevant, but I'm afraid I couldn't figure out how to implement such a template localization.
For example, the user template defaults to the address style:
but I would like to use the United States address style of:
I would contribute address localizations for US, MX, and CA if I only knew how.
The text was updated successfully, but these errors were encountered: