From 0a93d291c9676838ba7dbb9a5644f9558c3a6fc6 Mon Sep 17 00:00:00 2001 From: kevin9327 <5299031+kevin9327@users.noreply.github.com> Date: Wed, 11 Nov 2026 10:04:06 +0900 Subject: [PATCH] fix(locale): use valid province prefixes in tr postcodes --- src/locales/tr/location/postcode.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/locales/tr/location/postcode.ts b/src/locales/tr/location/postcode.ts index db2bcfedae5..7143a56cf27 100644 --- a/src/locales/tr/location/postcode.ts +++ b/src/locales/tr/location/postcode.ts @@ -1 +1,9 @@ -export default ['#####']; +// Turkish postal codes are five digits whose first two digits are the +// license plate code of the province, from 01 (Adana) to 81 (Düzce), +// followed by three digits. The 00xxx and 82xxx-99xxx ranges are not +// assigned, so they are excluded here. +// See https://en.wikipedia.org/wiki/Postal_codes_in_Turkey +export default Array.from( + { length: 81 }, + (_, index) => `${(index + 1).toString().padStart(2, '0')}###` +);