Repository navigation
fix(locale): use five-digit postcodes with assigned prefixes for ko - #4276
Merged
Merged
Conversation
Korea replaced its six-digit postcodes (XXX-XXX) with five-digit ones on 2015-08-01, but half of fakerKO.location.zipCode() results still used the old format, and the other half could start with prefixes no area uses (64-99, 00, ...). List the 59 two-digit prefixes Korea Post uses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
✅ Deploy Preview for fakerjs ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## next #4276 +/- ##
=======================================
Coverage 99.14% 99.14%
=======================================
Files 1180 1180
Lines 3977 3977
Branches 723 709 -14
=======================================
Hits 3943 3943
Misses 29 29
Partials 5 5 🚀 New features to boost your workflow:
|
ST-DDT
reviewed
Nov 16, 2026
Contributor
Author
|
Yes, I'm Korean. 60 is a row on that wiki page, but it has no districts. The English and Korean tables both leave it empty, the same as 09, 19 and 20, which I also left out. To be sure, I counted every postcode in Korea Post's full postcode database (updated 2026-11-09). None of its 34,403 postcodes starts with 09, 19, 20 or 60, and every one starts with one of the 59 prefixes in this PR. |
matthewmayer
approved these changes
Nov 17, 2026
ST-DDT
approved these changes
Nov 17, 2026
ST-DDT
enabled auto-merge
November 17, 2026 12:08
3 of 5 tasks
Shinigami92
approved these changes
Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
South Korea replaced its six-digit postcodes (
XXX-XXX) with five-digit ones on 1 August 2015 (see https://en.wikipedia.org/wiki/Postal_codes_in_South_Korea). Thekopatterns were['###-###', '#####'], so half offakerKO.location.zipCode()results used the retired format, and the other half could start with a prefix no area has, like67098or98306. Only 29.6% of 100,000 generated codes could be Korean postcodes.The first two digits of a Korean postcode identify the province or metropolitan city, from
01(Seoul) to63(Jeju). This lists the 59 prefixes used by the 3,307 post offices in Korea Post's nationwide post office list (as of 2026-08-31):01–08,10–18,21–59and61–63, one pattern each so every prefix is equally likely. With this change, all 100,000 generated codes are five digits with one of those prefixes.Prepared with Claude Code and checked by me.
🤖 Generated with Claude Code