diff options
| author | DivisionByZero <[email protected]> | 2024-04-15 00:27:11 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-04-15 00:27:11 +0200 |
| commit | 453ea970a4c7ed19e9d41fd026923f42dbd4e768 (patch) | |
| tree | da1e48fa8fc1186b8b185a1f9e24c7d6e921c7cb /src/definitions | |
| parent | 734a7f3d55d1233d8182585bb79d2013f0ce289e (diff) | |
| download | faker-453ea970a4c7ed19e9d41fd026923f42dbd4e768.tar.xz faker-453ea970a4c7ed19e9d41fd026923f42dbd4e768.zip | |
refactor(locale)!: remove location data index-value-binding (#2476)
Diffstat (limited to 'src/definitions')
| -rw-r--r-- | src/definitions/location.ts | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/src/definitions/location.ts b/src/definitions/location.ts index 42d79c01..1814a3ac 100644 --- a/src/definitions/location.ts +++ b/src/definitions/location.ts @@ -65,13 +65,31 @@ export type LocationDefinition = LocaleEntry<{ * The names of the compass directions. * First the 4 cardinal directions, then the 4 ordinal directions. */ - direction: string[]; + direction: { + /** + * The names of the cardinal compass directions. + * Cardinal directions are the four main points of a compass. + */ + cardinal: string[]; - /** - * The abbreviated names of the compass directions. - * First the 4 cardinal directions, then the 4 ordinal directions. - */ - direction_abbr: string[]; + /** + * The abbreviated names of the cardinal compass directions. + * Cardinal directions are the four main points of a compass. + */ + cardinal_abbr: string[]; + + /** + * The names of ordinal compass directions. + * Ordinal directions are combinations of cardinal directions. + */ + ordinal: string[]; + + /** + * The abbreviated names of ordinal compass directions. + * Ordinal directions are combinations of cardinal directions. + */ + ordinal_abbr: string[]; + }; /** * The pattern used to generate building numbers. Since building numbers rarely start with 0, any consecutive # characters will be replaced by a number without a leading zero. |
