Skip to content

Commit

Permalink
feat(locale): add state and state_abbr to cz (#1847)
Browse files Browse the repository at this point in the history
  • Loading branch information
xDivisionByZerox committed Mar 17, 2023
1 parent 085562f commit f6c8ca3
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
17 changes: 16 additions & 1 deletion src/locales/cz/location/state.ts
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
export default [];
export default [
'Jihočeský kraj',
'Jihomoravský kraj',
'Karlovarský kraj',
'Kraj Vysočina',
'Královéhradecký kraj',
'Liberecký kraj',
'Moravskoslezský kraj',
'Olomoucký kraj',
'Pardubický kraj',
'Plzeňský kraj',
'Praha',
'Středočeský kraj',
'Ústecký kraj',
'Zlínský kraj',
];
6 changes: 5 additions & 1 deletion src/locales/cz/location/state_abbr.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
export default [];
import states from './state';

// at the time of adding this I was not able to find
// any information on the existance of state abbreviations
export default states;
4 changes: 2 additions & 2 deletions test/all_functional.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ const BROKEN_LOCALE_METHODS = {
companySuffix: ['az'],
},
location: {
state: ['az', 'cz', 'nb_NO', 'sk'],
stateAbbr: ['cz', 'sk'],
state: ['az', 'nb_NO', 'sk'],
stateAbbr: ['sk'],
},
random: {
locale: '*', // locale() has been pseudo removed
Expand Down

0 comments on commit f6c8ca3

Please sign in to comment.