data: Update cldr2json script to new format

We want to extend the data model with additional keys, actions,
and properties. We need keys to be a map instead of a plain array
of strings.

Adapt the script to dump data in this new format, so it generates
a decent base to manually complete the work.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2278>
This commit is contained in:
Carlos Garnacho 2022-04-13 16:52:09 +02:00 committed by Florian Müllner
parent 32aa67c4dc
commit 86457c3bb3

View File

@ -79,7 +79,7 @@ def parse_rows(keymap):
reverse=True): reverse=True):
row = [] row = []
for key in sorted(v, key=lambda x: x): for key in sorted(v, key=lambda x: x):
row.append(key[1]) row.append({ 'strings': key[1] })
rows.append(row) rows.append(row)
return rows return rows