From 453ea970a4c7ed19e9d41fd026923f42dbd4e768 Mon Sep 17 00:00:00 2001 From: DivisionByZero Date: Mon, 15 Apr 2024 00:27:11 +0200 Subject: refactor(locale)!: remove location data index-value-binding (#2476) --- src/definitions/location.ts | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) (limited to 'src/definitions') 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. -- cgit v1.2.3