Skip to content

Commit

Permalink
feat(locale): add city names for th (#2075)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmayer authored Apr 22, 2023
1 parent 16d611f commit ed19bef
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/locales/th/location/city.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['{{location.city_name}}'];
12 changes: 12 additions & 0 deletions src/locales/th/location/city_name.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export default [
'กรุงเทพมหานคร',
'ปากเกร็ด',
'เมืองสมุทรปราการ',
'เมืองนนทบุรี',
'อุดรธานี',
'ชลบุรี',
'นครศรีธรรมราช',
'เชียงราย',
'พิษณุโลก',
'พัทยา',
];
4 changes: 4 additions & 0 deletions src/locales/th/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,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';
Expand All @@ -15,6 +17,8 @@ import street_pattern from './street_pattern';

const location: LocationDefinitions = {
building_number,
city,
city_name,
city_prefix,
city_suffix,
country,
Expand Down
1 change: 0 additions & 1 deletion test/all_functional.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const BROKEN_LOCALE_METHODS = {
companySuffix: ['az'],
},
location: {
city: ['th'],
state: ['az', 'nb_NO', 'sk'],
stateAbbr: ['sk'],
streetName: [
Expand Down

0 comments on commit ed19bef

Please sign in to comment.