From c1b786bb0291ba113167905b8c630ef58216ec44 Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Wed, 20 Oct 2021 13:36:48 -0500 Subject: [PATCH] CLDR-15113 json: fix repeat keys in dateTime - move 'datetimeSkeleton' elements to for eample 'full-datetimeSkeleton' - does NOT address all dup keys, see CLDR-14717 --- .../main/resources/org/unicode/cldr/json/pathTransforms.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/cldr-code/src/main/resources/org/unicode/cldr/json/pathTransforms.txt b/tools/cldr-code/src/main/resources/org/unicode/cldr/json/pathTransforms.txt index 6f33094a096..7ced86c7934 100644 --- a/tools/cldr-code/src/main/resources/org/unicode/cldr/json/pathTransforms.txt +++ b/tools/cldr-code/src/main/resources/org/unicode/cldr/json/pathTransforms.txt @@ -34,6 +34,10 @@ < (.*/ellipsis)\[@type="([^"]*)"\](.*)$ > $1/$2$3 +# move datetimeSkeleton to a separate path +< (.*/calendars)/calendar\[@type="([^"]*)"\](.*)Length\[@type="([^"]*)"\]/(date|time|dateTime)Format\[@type="([^"]*)"\]/datetimeSkeleton(.*) +> $1/$2/$5Formats/$4-datetimeSkeleton$7 + # Remove unnecessary dateFormat/pattern < (.*/calendars)/calendar\[@type="([^"]*)"\](.*)Length\[@type="([^"]*)"\]/(date|time|dateTime)Format\[@type="([^"]*)"\]/pattern\[@type="([^"]*)"\](.*) > $1/$2/$5Formats/$4$8