From 6c954f2d925b910f4a01725bb5e77f1499d21401 Mon Sep 17 00:00:00 2001 From: "Mona,Lisa" Date: Fri, 21 Apr 2023 20:26:59 +0700 Subject: [PATCH 1/4] add city names for th --- src/locales/th/location/city.ts | 1 + src/locales/th/location/city_name.ts | 12 ++++++++++++ src/locales/th/location/city_prefix.ts | 1 - src/locales/th/location/city_suffix.ts | 1 - src/locales/th/location/index.ts | 8 ++++---- 5 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 src/locales/th/location/city.ts create mode 100644 src/locales/th/location/city_name.ts delete mode 100644 src/locales/th/location/city_prefix.ts delete mode 100644 src/locales/th/location/city_suffix.ts diff --git a/src/locales/th/location/city.ts b/src/locales/th/location/city.ts new file mode 100644 index 00000000000..ad43b68fc5c --- /dev/null +++ b/src/locales/th/location/city.ts @@ -0,0 +1 @@ +export default ['{{location.city_name}}']; diff --git a/src/locales/th/location/city_name.ts b/src/locales/th/location/city_name.ts new file mode 100644 index 00000000000..77be912e28e --- /dev/null +++ b/src/locales/th/location/city_name.ts @@ -0,0 +1,12 @@ +export default [ + 'กรุงเทพมหานคร', + 'ปากเกร็ด', + 'เมืองสมุทรปราการ', + 'เมืองนนทบุรี', + 'อุดรธานี', + 'ชลบุรี', + 'นครศรีธรรมราช', + 'เชียงราย', + 'พิษณุโลก', + 'พัทยา', +]; diff --git a/src/locales/th/location/city_prefix.ts b/src/locales/th/location/city_prefix.ts deleted file mode 100644 index d6d1738de67..00000000000 --- a/src/locales/th/location/city_prefix.ts +++ /dev/null @@ -1 +0,0 @@ -export default []; diff --git a/src/locales/th/location/city_suffix.ts b/src/locales/th/location/city_suffix.ts deleted file mode 100644 index d6d1738de67..00000000000 --- a/src/locales/th/location/city_suffix.ts +++ /dev/null @@ -1 +0,0 @@ -export default []; diff --git a/src/locales/th/location/index.ts b/src/locales/th/location/index.ts index d9d54753352..ada116b4ca6 100644 --- a/src/locales/th/location/index.ts +++ b/src/locales/th/location/index.ts @@ -4,8 +4,8 @@ */ import type { LocationDefinitions } from '../../..'; import building_number from './building_number'; -import city_prefix from './city_prefix'; -import city_suffix from './city_suffix'; +import city from './city'; +import city_name from './city_name'; import country from './country'; import default_country from './default_country'; import postcode from './postcode'; @@ -14,8 +14,8 @@ import street_name from './street_name'; const location: LocationDefinitions = { building_number, - city_prefix, - city_suffix, + city, + city_name, country, default_country, postcode, From 1488edbf895c5e5a3ec6de87c8e43408f4ad8f05 Mon Sep 17 00:00:00 2001 From: Matt Mayer <152770+matthewmayer@users.noreply.github.com> Date: Sat, 22 Apr 2023 14:14:02 +0700 Subject: [PATCH 2/4] fix test --- test/all_functional.spec.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/test/all_functional.spec.ts b/test/all_functional.spec.ts index d6104c7cd01..b55012901a2 100644 --- a/test/all_functional.spec.ts +++ b/test/all_functional.spec.ts @@ -28,7 +28,6 @@ const BROKEN_LOCALE_METHODS = { companySuffix: ['az'], }, location: { - city: ['th'], state: ['az', 'nb_NO', 'sk'], stateAbbr: ['sk'], streetName: [ From 200316727200a503ba58cad6bc34b6ec377f8474 Mon Sep 17 00:00:00 2001 From: "Mona,Lisa" Date: Sat, 22 Apr 2023 17:56:18 +0700 Subject: [PATCH 3/4] restore city_prefix and suffix --- src/locales/th/location/city_prefix.ts | 1 + src/locales/th/location/city_suffix.ts | 1 + 2 files changed, 2 insertions(+) create mode 100644 src/locales/th/location/city_prefix.ts create mode 100644 src/locales/th/location/city_suffix.ts diff --git a/src/locales/th/location/city_prefix.ts b/src/locales/th/location/city_prefix.ts new file mode 100644 index 00000000000..d6d1738de67 --- /dev/null +++ b/src/locales/th/location/city_prefix.ts @@ -0,0 +1 @@ +export default []; diff --git a/src/locales/th/location/city_suffix.ts b/src/locales/th/location/city_suffix.ts new file mode 100644 index 00000000000..d6d1738de67 --- /dev/null +++ b/src/locales/th/location/city_suffix.ts @@ -0,0 +1 @@ +export default []; From ea3d1bb3c277882b00ab8f578fe4dd012ed42612 Mon Sep 17 00:00:00 2001 From: "Mona,Lisa" Date: Sat, 22 Apr 2023 17:58:03 +0700 Subject: [PATCH 4/4] generate:locales --- src/locales/th/location/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/locales/th/location/index.ts b/src/locales/th/location/index.ts index cd0f0d41f17..55eb461e6ef 100644 --- a/src/locales/th/location/index.ts +++ b/src/locales/th/location/index.ts @@ -6,6 +6,8 @@ import type { LocationDefinitions } from '../../..'; import building_number from './building_number'; import city from './city'; import city_name from './city_name'; +import city_prefix from './city_prefix'; +import city_suffix from './city_suffix'; import country from './country'; import default_country from './default_country'; import postcode from './postcode'; @@ -17,6 +19,8 @@ const location: LocationDefinitions = { building_number, city, city_name, + city_prefix, + city_suffix, country, default_country, postcode,