From 4db03687eacd8c1179813bc386125b90dd42eb57 Mon Sep 17 00:00:00 2001 From: xDivisionByZerox Date: Thu, 16 Feb 2023 14:11:52 +0100 Subject: [PATCH 1/3] locale(cz): add states --- src/locales/cz/location/state.ts | 17 ++++++++++++++++- test/all_functional.spec.ts | 4 ++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/locales/cz/location/state.ts b/src/locales/cz/location/state.ts index d6d1738de67..57ec82aee6a 100644 --- a/src/locales/cz/location/state.ts +++ b/src/locales/cz/location/state.ts @@ -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', +]; diff --git a/test/all_functional.spec.ts b/test/all_functional.spec.ts index ae4ac991213..a5bc4273424 100644 --- a/test/all_functional.spec.ts +++ b/test/all_functional.spec.ts @@ -20,13 +20,13 @@ function isMethodOf(mod: string) { } const BROKEN_LOCALE_METHODS = { - // TODO ST-DDT 2022-03-28: these are TODOs (usually broken locale files) + // TODO ST-DDT 2022-03-28: these are TODOs (usually broken locale tschechienfiles) company: { suffixes: ['az'], companySuffix: ['az'], }, location: { - state: ['az', 'cz', 'nb_NO', 'sk'], + state: ['az', 'nb_NO', 'sk'], stateAbbr: ['cz', 'sk'], }, string: { From 3386a6a11cc0c16e50ae209ac1a8e9490fe53a1f Mon Sep 17 00:00:00 2001 From: xDivisionByZerox Date: Thu, 16 Feb 2023 15:03:36 +0100 Subject: [PATCH 2/3] chore: fix typo in testfile --- test/all_functional.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/all_functional.spec.ts b/test/all_functional.spec.ts index a5bc4273424..a360c545578 100644 --- a/test/all_functional.spec.ts +++ b/test/all_functional.spec.ts @@ -20,7 +20,7 @@ function isMethodOf(mod: string) { } const BROKEN_LOCALE_METHODS = { - // TODO ST-DDT 2022-03-28: these are TODOs (usually broken locale tschechienfiles) + // TODO ST-DDT 2022-03-28: these are TODOs (usually broken locale files) company: { suffixes: ['az'], companySuffix: ['az'], From 957549ea1c863dec8eb7776304a9eea104a8dda5 Mon Sep 17 00:00:00 2001 From: xDivisionByZerox Date: Thu, 16 Feb 2023 15:14:02 +0100 Subject: [PATCH 3/3] locale(cz): add states_abbr --- src/locales/cz/location/state_abbr.ts | 6 +++++- test/all_functional.spec.ts | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/locales/cz/location/state_abbr.ts b/src/locales/cz/location/state_abbr.ts index d6d1738de67..62fad26233b 100644 --- a/src/locales/cz/location/state_abbr.ts +++ b/src/locales/cz/location/state_abbr.ts @@ -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; diff --git a/test/all_functional.spec.ts b/test/all_functional.spec.ts index a360c545578..b9647289d52 100644 --- a/test/all_functional.spec.ts +++ b/test/all_functional.spec.ts @@ -27,7 +27,7 @@ const BROKEN_LOCALE_METHODS = { }, location: { state: ['az', 'nb_NO', 'sk'], - stateAbbr: ['cz', 'sk'], + stateAbbr: ['sk'], }, string: { fromCharacters: '*',