From 2d93e4f85b7c3326d1474fdb85254cdad9532b4c Mon Sep 17 00:00:00 2001 From: Younies Mahmoud Date: Sun, 30 Jun 2024 15:14:44 +0200 Subject: [PATCH] Fill powers of the essential data Summary: Test Plan: --- .../debug/units/essentials@1/long/ar-EG.json | 111 +++++++++++++++++- .../debug/units/essentials@1/long/ar.json | 111 +++++++++++++++++- .../debug/units/essentials@1/long/bn.json | 39 +++++- .../debug/units/essentials@1/long/ccp.json | 21 +++- .../debug/units/essentials@1/long/en-001.json | 39 +++++- .../debug/units/essentials@1/long/en-ZA.json | 39 +++++- .../debug/units/essentials@1/long/en.json | 39 +++++- .../debug/units/essentials@1/long/es-AR.json | 39 +++++- .../debug/units/essentials@1/long/es.json | 39 +++++- .../debug/units/essentials@1/long/fil.json | 39 +++++- .../debug/units/essentials@1/long/fr.json | 39 +++++- .../debug/units/essentials@1/long/ja.json | 21 +++- .../debug/units/essentials@1/long/ru.json | 75 +++++++++++- .../units/essentials@1/long/sr-Latn.json | 57 ++++++++- .../debug/units/essentials@1/long/sr.json | 57 ++++++++- .../debug/units/essentials@1/long/th.json | 21 +++- .../debug/units/essentials@1/long/tr.json | 39 +++++- .../debug/units/essentials@1/long/und.json | 21 +++- .../units/essentials@1/narrow/ar-EG.json | 21 +++- .../debug/units/essentials@1/narrow/ar.json | 21 +++- .../debug/units/essentials@1/narrow/bn.json | 21 +++- .../debug/units/essentials@1/narrow/ccp.json | 21 +++- .../units/essentials@1/narrow/en-001.json | 39 +++++- .../units/essentials@1/narrow/en-ZA.json | 39 +++++- .../debug/units/essentials@1/narrow/en.json | 39 +++++- .../units/essentials@1/narrow/es-AR.json | 21 +++- .../debug/units/essentials@1/narrow/es.json | 21 +++- .../debug/units/essentials@1/narrow/fil.json | 21 +++- .../debug/units/essentials@1/narrow/fr.json | 21 +++- .../debug/units/essentials@1/narrow/ja.json | 21 +++- .../debug/units/essentials@1/narrow/ru.json | 21 +++- .../units/essentials@1/narrow/sr-Latn.json | 21 +++- .../debug/units/essentials@1/narrow/sr.json | 21 +++- .../debug/units/essentials@1/narrow/th.json | 21 +++- .../debug/units/essentials@1/narrow/tr.json | 21 +++- .../debug/units/essentials@1/narrow/und.json | 21 +++- .../debug/units/essentials@1/short/ar-EG.json | 21 +++- .../debug/units/essentials@1/short/ar.json | 21 +++- .../debug/units/essentials@1/short/bn.json | 21 +++- .../debug/units/essentials@1/short/ccp.json | 21 +++- .../units/essentials@1/short/en-001.json | 39 +++++- .../debug/units/essentials@1/short/en-ZA.json | 39 +++++- .../debug/units/essentials@1/short/en.json | 39 +++++- .../debug/units/essentials@1/short/es-AR.json | 21 +++- .../debug/units/essentials@1/short/es.json | 21 +++- .../debug/units/essentials@1/short/fil.json | 21 +++- .../debug/units/essentials@1/short/fr.json | 21 +++- .../debug/units/essentials@1/short/ja.json | 21 +++- .../debug/units/essentials@1/short/ru.json | 21 +++- .../units/essentials@1/short/sr-Latn.json | 21 +++- .../debug/units/essentials@1/short/sr.json | 21 +++- .../debug/units/essentials@1/short/th.json | 21 +++- .../debug/units/essentials@1/short/tr.json | 21 +++- .../debug/units/essentials@1/short/und.json | 21 +++- provider/bikeshed/src/units/essentials.rs | 62 +++++++++- 55 files changed, 1714 insertions(+), 58 deletions(-) diff --git a/provider/bikeshed/data/debug/units/essentials@1/long/ar-EG.json b/provider/bikeshed/data/debug/units/essentials@1/long/ar-EG.json index 25fab1611ee..1efa1fdfc58 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/long/ar-EG.json +++ b/provider/bikeshed/data/debug/units/essentials@1/long/ar-EG.json @@ -1,5 +1,114 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Zero" + } + }, + "{0} مربّع" + ], + [ + { + "Power": { + "power": "Two", + "count": "One" + } + }, + "{0} مربّع" + ], + [ + { + "Power": { + "power": "Two", + "count": "Two" + } + }, + "{0} مربّعان" + ], + [ + { + "Power": { + "power": "Two", + "count": "Few" + } + }, + "{0} مربّعة" + ], + [ + { + "Power": { + "power": "Two", + "count": "Many" + } + }, + "{0} مربّعًا" + ], + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0} مربّع" + ], + [ + { + "Power": { + "power": "Three", + "count": "Zero" + } + }, + "{0} مكعّب" + ], + [ + { + "Power": { + "power": "Three", + "count": "One" + } + }, + "{0} مكعّب" + ], + [ + { + "Power": { + "power": "Three", + "count": "Two" + } + }, + "{0} مكعّبان" + ], + [ + { + "Power": { + "power": "Three", + "count": "Few" + } + }, + "{0} مكعّبة" + ], + [ + { + "Power": { + "power": "Three", + "count": "Many" + } + }, + "{0} مكعبًا" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0} مكعّب" + ] + ], "per": "{0} لكل {1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/long/ar.json b/provider/bikeshed/data/debug/units/essentials@1/long/ar.json index 25fab1611ee..1efa1fdfc58 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/long/ar.json +++ b/provider/bikeshed/data/debug/units/essentials@1/long/ar.json @@ -1,5 +1,114 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Zero" + } + }, + "{0} مربّع" + ], + [ + { + "Power": { + "power": "Two", + "count": "One" + } + }, + "{0} مربّع" + ], + [ + { + "Power": { + "power": "Two", + "count": "Two" + } + }, + "{0} مربّعان" + ], + [ + { + "Power": { + "power": "Two", + "count": "Few" + } + }, + "{0} مربّعة" + ], + [ + { + "Power": { + "power": "Two", + "count": "Many" + } + }, + "{0} مربّعًا" + ], + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0} مربّع" + ], + [ + { + "Power": { + "power": "Three", + "count": "Zero" + } + }, + "{0} مكعّب" + ], + [ + { + "Power": { + "power": "Three", + "count": "One" + } + }, + "{0} مكعّب" + ], + [ + { + "Power": { + "power": "Three", + "count": "Two" + } + }, + "{0} مكعّبان" + ], + [ + { + "Power": { + "power": "Three", + "count": "Few" + } + }, + "{0} مكعّبة" + ], + [ + { + "Power": { + "power": "Three", + "count": "Many" + } + }, + "{0} مكعبًا" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0} مكعّب" + ] + ], "per": "{0} لكل {1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/long/bn.json b/provider/bikeshed/data/debug/units/essentials@1/long/bn.json index bbb8e21a06a..e6e340bc377 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/long/bn.json +++ b/provider/bikeshed/data/debug/units/essentials@1/long/bn.json @@ -1,5 +1,42 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "One" + } + }, + "বর্গ {0}" + ], + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "বর্গ{0}" + ], + [ + { + "Power": { + "power": "Three", + "count": "One" + } + }, + "ঘন {0}" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "ঘন {0}" + ] + ], "per": "{1} প্রতি {0}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/long/ccp.json b/provider/bikeshed/data/debug/units/essentials@1/long/ccp.json index e7e20178206..308d5dbe1e8 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/long/ccp.json +++ b/provider/bikeshed/data/debug/units/essentials@1/long/ccp.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{1} 𑄛𑄳𑄢𑄧𑄖𑄨 {0}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/long/en-001.json b/provider/bikeshed/data/debug/units/essentials@1/long/en-001.json index bd6dad9d94a..fcc76b41ce9 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/long/en-001.json +++ b/provider/bikeshed/data/debug/units/essentials@1/long/en-001.json @@ -1,5 +1,42 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "One" + } + }, + "square {0}" + ], + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "square {0}" + ], + [ + { + "Power": { + "power": "Three", + "count": "One" + } + }, + "cubic {0}" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "cubic {0}" + ] + ], "per": "{0} per {1}", "times": "{0}-{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/long/en-ZA.json b/provider/bikeshed/data/debug/units/essentials@1/long/en-ZA.json index bd6dad9d94a..fcc76b41ce9 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/long/en-ZA.json +++ b/provider/bikeshed/data/debug/units/essentials@1/long/en-ZA.json @@ -1,5 +1,42 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "One" + } + }, + "square {0}" + ], + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "square {0}" + ], + [ + { + "Power": { + "power": "Three", + "count": "One" + } + }, + "cubic {0}" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "cubic {0}" + ] + ], "per": "{0} per {1}", "times": "{0}-{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/long/en.json b/provider/bikeshed/data/debug/units/essentials@1/long/en.json index bd6dad9d94a..fcc76b41ce9 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/long/en.json +++ b/provider/bikeshed/data/debug/units/essentials@1/long/en.json @@ -1,5 +1,42 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "One" + } + }, + "square {0}" + ], + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "square {0}" + ], + [ + { + "Power": { + "power": "Three", + "count": "One" + } + }, + "cubic {0}" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "cubic {0}" + ] + ], "per": "{0} per {1}", "times": "{0}-{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/long/es-AR.json b/provider/bikeshed/data/debug/units/essentials@1/long/es-AR.json index 43f5767626a..87b5c794cfd 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/long/es-AR.json +++ b/provider/bikeshed/data/debug/units/essentials@1/long/es-AR.json @@ -1,5 +1,42 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "One" + } + }, + "{0} cuadrado" + ], + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0} cuadrados" + ], + [ + { + "Power": { + "power": "Three", + "count": "One" + } + }, + "{0} cúbico" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0} cúbicos" + ] + ], "per": "{0} por {1}", "times": "{0}-{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/long/es.json b/provider/bikeshed/data/debug/units/essentials@1/long/es.json index 43f5767626a..87b5c794cfd 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/long/es.json +++ b/provider/bikeshed/data/debug/units/essentials@1/long/es.json @@ -1,5 +1,42 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "One" + } + }, + "{0} cuadrado" + ], + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0} cuadrados" + ], + [ + { + "Power": { + "power": "Three", + "count": "One" + } + }, + "{0} cúbico" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0} cúbicos" + ] + ], "per": "{0} por {1}", "times": "{0}-{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/long/fil.json b/provider/bikeshed/data/debug/units/essentials@1/long/fil.json index 31bd6e7d37e..af72c280632 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/long/fil.json +++ b/provider/bikeshed/data/debug/units/essentials@1/long/fil.json @@ -1,5 +1,42 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "One" + } + }, + "{0} kuwadrado" + ], + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0} kuwadrado" + ], + [ + { + "Power": { + "power": "Three", + "count": "One" + } + }, + "cubic na {0}" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "cubic {0}" + ] + ], "per": "{0} kada {1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/long/fr.json b/provider/bikeshed/data/debug/units/essentials@1/long/fr.json index 542f389205f..7267a6c2a47 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/long/fr.json +++ b/provider/bikeshed/data/debug/units/essentials@1/long/fr.json @@ -1,5 +1,42 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "One" + } + }, + "{0} carré" + ], + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0} carrés" + ], + [ + { + "Power": { + "power": "Three", + "count": "One" + } + }, + "{0} cube" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0} cubes" + ] + ], "per": "{0} par {1}", "times": "{0}-{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/long/ja.json b/provider/bikeshed/data/debug/units/essentials@1/long/ja.json index d96899f811d..fb79d89cbfc 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/long/ja.json +++ b/provider/bikeshed/data/debug/units/essentials@1/long/ja.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "平方{0}" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "立方{0}" + ] + ], "per": "{0}毎{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/long/ru.json b/provider/bikeshed/data/debug/units/essentials@1/long/ru.json index eacddb555b7..227c895a643 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/long/ru.json +++ b/provider/bikeshed/data/debug/units/essentials@1/long/ru.json @@ -1,5 +1,78 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "One" + } + }, + "квадратный {0}" + ], + [ + { + "Power": { + "power": "Two", + "count": "Few" + } + }, + "квадратных {0}" + ], + [ + { + "Power": { + "power": "Two", + "count": "Many" + } + }, + "квадратных {0}" + ], + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "квадратного {0}" + ], + [ + { + "Power": { + "power": "Three", + "count": "One" + } + }, + "кубический {0}" + ], + [ + { + "Power": { + "power": "Three", + "count": "Few" + } + }, + "кубических {0}" + ], + [ + { + "Power": { + "power": "Three", + "count": "Many" + } + }, + "кубических {0}" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "кубического {0}" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/long/sr-Latn.json b/provider/bikeshed/data/debug/units/essentials@1/long/sr-Latn.json index f3bb432f209..3c8b43d9b1c 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/long/sr-Latn.json +++ b/provider/bikeshed/data/debug/units/essentials@1/long/sr-Latn.json @@ -1,5 +1,60 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "One" + } + }, + "kvadratni {0}" + ], + [ + { + "Power": { + "power": "Two", + "count": "Few" + } + }, + "kvadratna {0}" + ], + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "kvadratnih {0}" + ], + [ + { + "Power": { + "power": "Three", + "count": "One" + } + }, + "kubni {0}" + ], + [ + { + "Power": { + "power": "Three", + "count": "Few" + } + }, + "kubna {0}" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "kubnih {0}" + ] + ], "per": "{0}/{1}", "times": "{0}-{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/long/sr.json b/provider/bikeshed/data/debug/units/essentials@1/long/sr.json index f3bb432f209..5cf3f1b2a87 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/long/sr.json +++ b/provider/bikeshed/data/debug/units/essentials@1/long/sr.json @@ -1,5 +1,60 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "One" + } + }, + "квадратни {0}" + ], + [ + { + "Power": { + "power": "Two", + "count": "Few" + } + }, + "квадратна {0}" + ], + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "квадратних {0}" + ], + [ + { + "Power": { + "power": "Three", + "count": "One" + } + }, + "кубни {0}" + ], + [ + { + "Power": { + "power": "Three", + "count": "Few" + } + }, + "кубна {0}" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "кубних {0}" + ] + ], "per": "{0}/{1}", "times": "{0}-{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/long/th.json b/provider/bikeshed/data/debug/units/essentials@1/long/th.json index 874ab9a46e5..b6c9961b447 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/long/th.json +++ b/provider/bikeshed/data/debug/units/essentials@1/long/th.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "ตาราง{0}" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "ลูกบาศก์{0}" + ] + ], "per": "{0}ต่อ{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/long/tr.json b/provider/bikeshed/data/debug/units/essentials@1/long/tr.json index eacddb555b7..15f6ef32eb7 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/long/tr.json +++ b/provider/bikeshed/data/debug/units/essentials@1/long/tr.json @@ -1,5 +1,42 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "One" + } + }, + "{0}kare" + ], + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}kare" + ], + [ + { + "Power": { + "power": "Three", + "count": "One" + } + }, + "{0}küp" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}küp" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/long/und.json b/provider/bikeshed/data/debug/units/essentials@1/long/und.json index eacddb555b7..fabe467ca1d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/long/und.json +++ b/provider/bikeshed/data/debug/units/essentials@1/long/und.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/narrow/ar-EG.json b/provider/bikeshed/data/debug/units/essentials@1/narrow/ar-EG.json index eacddb555b7..fabe467ca1d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/narrow/ar-EG.json +++ b/provider/bikeshed/data/debug/units/essentials@1/narrow/ar-EG.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/narrow/ar.json b/provider/bikeshed/data/debug/units/essentials@1/narrow/ar.json index eacddb555b7..fabe467ca1d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/narrow/ar.json +++ b/provider/bikeshed/data/debug/units/essentials@1/narrow/ar.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/narrow/bn.json b/provider/bikeshed/data/debug/units/essentials@1/narrow/bn.json index eacddb555b7..fabe467ca1d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/narrow/bn.json +++ b/provider/bikeshed/data/debug/units/essentials@1/narrow/bn.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/narrow/ccp.json b/provider/bikeshed/data/debug/units/essentials@1/narrow/ccp.json index eacddb555b7..fabe467ca1d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/narrow/ccp.json +++ b/provider/bikeshed/data/debug/units/essentials@1/narrow/ccp.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/narrow/en-001.json b/provider/bikeshed/data/debug/units/essentials@1/narrow/en-001.json index eacddb555b7..0e1d03d081d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/narrow/en-001.json +++ b/provider/bikeshed/data/debug/units/essentials@1/narrow/en-001.json @@ -1,5 +1,42 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "One" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "One" + } + }, + "{0}³" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/narrow/en-ZA.json b/provider/bikeshed/data/debug/units/essentials@1/narrow/en-ZA.json index eacddb555b7..0e1d03d081d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/narrow/en-ZA.json +++ b/provider/bikeshed/data/debug/units/essentials@1/narrow/en-ZA.json @@ -1,5 +1,42 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "One" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "One" + } + }, + "{0}³" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/narrow/en.json b/provider/bikeshed/data/debug/units/essentials@1/narrow/en.json index eacddb555b7..0e1d03d081d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/narrow/en.json +++ b/provider/bikeshed/data/debug/units/essentials@1/narrow/en.json @@ -1,5 +1,42 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "One" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "One" + } + }, + "{0}³" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/narrow/es-AR.json b/provider/bikeshed/data/debug/units/essentials@1/narrow/es-AR.json index eacddb555b7..fabe467ca1d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/narrow/es-AR.json +++ b/provider/bikeshed/data/debug/units/essentials@1/narrow/es-AR.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/narrow/es.json b/provider/bikeshed/data/debug/units/essentials@1/narrow/es.json index eacddb555b7..fabe467ca1d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/narrow/es.json +++ b/provider/bikeshed/data/debug/units/essentials@1/narrow/es.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/narrow/fil.json b/provider/bikeshed/data/debug/units/essentials@1/narrow/fil.json index eacddb555b7..fabe467ca1d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/narrow/fil.json +++ b/provider/bikeshed/data/debug/units/essentials@1/narrow/fil.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/narrow/fr.json b/provider/bikeshed/data/debug/units/essentials@1/narrow/fr.json index f3bb432f209..5abb7b4850c 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/narrow/fr.json +++ b/provider/bikeshed/data/debug/units/essentials@1/narrow/fr.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}-{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/narrow/ja.json b/provider/bikeshed/data/debug/units/essentials@1/narrow/ja.json index eacddb555b7..fabe467ca1d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/narrow/ja.json +++ b/provider/bikeshed/data/debug/units/essentials@1/narrow/ja.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/narrow/ru.json b/provider/bikeshed/data/debug/units/essentials@1/narrow/ru.json index eacddb555b7..fabe467ca1d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/narrow/ru.json +++ b/provider/bikeshed/data/debug/units/essentials@1/narrow/ru.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/narrow/sr-Latn.json b/provider/bikeshed/data/debug/units/essentials@1/narrow/sr-Latn.json index eacddb555b7..fabe467ca1d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/narrow/sr-Latn.json +++ b/provider/bikeshed/data/debug/units/essentials@1/narrow/sr-Latn.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/narrow/sr.json b/provider/bikeshed/data/debug/units/essentials@1/narrow/sr.json index eacddb555b7..fabe467ca1d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/narrow/sr.json +++ b/provider/bikeshed/data/debug/units/essentials@1/narrow/sr.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/narrow/th.json b/provider/bikeshed/data/debug/units/essentials@1/narrow/th.json index eacddb555b7..fabe467ca1d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/narrow/th.json +++ b/provider/bikeshed/data/debug/units/essentials@1/narrow/th.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/narrow/tr.json b/provider/bikeshed/data/debug/units/essentials@1/narrow/tr.json index eacddb555b7..fabe467ca1d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/narrow/tr.json +++ b/provider/bikeshed/data/debug/units/essentials@1/narrow/tr.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/narrow/und.json b/provider/bikeshed/data/debug/units/essentials@1/narrow/und.json index eacddb555b7..fabe467ca1d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/narrow/und.json +++ b/provider/bikeshed/data/debug/units/essentials@1/narrow/und.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/short/ar-EG.json b/provider/bikeshed/data/debug/units/essentials@1/short/ar-EG.json index eacddb555b7..fabe467ca1d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/short/ar-EG.json +++ b/provider/bikeshed/data/debug/units/essentials@1/short/ar-EG.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/short/ar.json b/provider/bikeshed/data/debug/units/essentials@1/short/ar.json index eacddb555b7..fabe467ca1d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/short/ar.json +++ b/provider/bikeshed/data/debug/units/essentials@1/short/ar.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/short/bn.json b/provider/bikeshed/data/debug/units/essentials@1/short/bn.json index eacddb555b7..fabe467ca1d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/short/bn.json +++ b/provider/bikeshed/data/debug/units/essentials@1/short/bn.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/short/ccp.json b/provider/bikeshed/data/debug/units/essentials@1/short/ccp.json index eacddb555b7..fabe467ca1d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/short/ccp.json +++ b/provider/bikeshed/data/debug/units/essentials@1/short/ccp.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/short/en-001.json b/provider/bikeshed/data/debug/units/essentials@1/short/en-001.json index eacddb555b7..0e1d03d081d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/short/en-001.json +++ b/provider/bikeshed/data/debug/units/essentials@1/short/en-001.json @@ -1,5 +1,42 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "One" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "One" + } + }, + "{0}³" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/short/en-ZA.json b/provider/bikeshed/data/debug/units/essentials@1/short/en-ZA.json index eacddb555b7..0e1d03d081d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/short/en-ZA.json +++ b/provider/bikeshed/data/debug/units/essentials@1/short/en-ZA.json @@ -1,5 +1,42 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "One" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "One" + } + }, + "{0}³" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/short/en.json b/provider/bikeshed/data/debug/units/essentials@1/short/en.json index eacddb555b7..0e1d03d081d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/short/en.json +++ b/provider/bikeshed/data/debug/units/essentials@1/short/en.json @@ -1,5 +1,42 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "One" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "One" + } + }, + "{0}³" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/short/es-AR.json b/provider/bikeshed/data/debug/units/essentials@1/short/es-AR.json index eacddb555b7..fabe467ca1d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/short/es-AR.json +++ b/provider/bikeshed/data/debug/units/essentials@1/short/es-AR.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/short/es.json b/provider/bikeshed/data/debug/units/essentials@1/short/es.json index eacddb555b7..fabe467ca1d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/short/es.json +++ b/provider/bikeshed/data/debug/units/essentials@1/short/es.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/short/fil.json b/provider/bikeshed/data/debug/units/essentials@1/short/fil.json index eacddb555b7..fabe467ca1d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/short/fil.json +++ b/provider/bikeshed/data/debug/units/essentials@1/short/fil.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/short/fr.json b/provider/bikeshed/data/debug/units/essentials@1/short/fr.json index f3bb432f209..5abb7b4850c 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/short/fr.json +++ b/provider/bikeshed/data/debug/units/essentials@1/short/fr.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}-{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/short/ja.json b/provider/bikeshed/data/debug/units/essentials@1/short/ja.json index eacddb555b7..fabe467ca1d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/short/ja.json +++ b/provider/bikeshed/data/debug/units/essentials@1/short/ja.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/short/ru.json b/provider/bikeshed/data/debug/units/essentials@1/short/ru.json index eacddb555b7..fabe467ca1d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/short/ru.json +++ b/provider/bikeshed/data/debug/units/essentials@1/short/ru.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/short/sr-Latn.json b/provider/bikeshed/data/debug/units/essentials@1/short/sr-Latn.json index eacddb555b7..fabe467ca1d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/short/sr-Latn.json +++ b/provider/bikeshed/data/debug/units/essentials@1/short/sr-Latn.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/short/sr.json b/provider/bikeshed/data/debug/units/essentials@1/short/sr.json index eacddb555b7..fabe467ca1d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/short/sr.json +++ b/provider/bikeshed/data/debug/units/essentials@1/short/sr.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/short/th.json b/provider/bikeshed/data/debug/units/essentials@1/short/th.json index eacddb555b7..fabe467ca1d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/short/th.json +++ b/provider/bikeshed/data/debug/units/essentials@1/short/th.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/short/tr.json b/provider/bikeshed/data/debug/units/essentials@1/short/tr.json index eacddb555b7..fabe467ca1d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/short/tr.json +++ b/provider/bikeshed/data/debug/units/essentials@1/short/tr.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/data/debug/units/essentials@1/short/und.json b/provider/bikeshed/data/debug/units/essentials@1/short/und.json index eacddb555b7..fabe467ca1d 100644 --- a/provider/bikeshed/data/debug/units/essentials@1/short/und.json +++ b/provider/bikeshed/data/debug/units/essentials@1/short/und.json @@ -1,5 +1,24 @@ { - "prefixes": {}, + "prefixes": [ + [ + { + "Power": { + "power": "Two", + "count": "Other" + } + }, + "{0}²" + ], + [ + { + "Power": { + "power": "Three", + "count": "Other" + } + }, + "{0}³" + ] + ], "per": "{0}/{1}", "times": "{0}⋅{1}" } diff --git a/provider/bikeshed/src/units/essentials.rs b/provider/bikeshed/src/units/essentials.rs index 549b70b97bd..b8c12e7f80c 100644 --- a/provider/bikeshed/src/units/essentials.rs +++ b/provider/bikeshed/src/units/essentials.rs @@ -2,13 +2,16 @@ // called LICENSE at the top level of the ICU4X source tree // (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ). -use std::collections::HashSet; +use std::collections::{BTreeMap, HashSet}; +use crate::cldr_serde::units::data::Patterns; use crate::cldr_serde::{self}; use crate::DatagenProvider; use icu::experimental::dimension::provider::units_essentials::UnitsEssentialsV1Marker; +use icu::experimental::dimension::provider::pattern_key::{PatternKey, PowerValue}; +use icu::experimental::dimension::provider::units_essentials::CompoundCount; use icu::experimental::dimension::provider::units_essentials::UnitsEssentialsV1; use icu_provider::prelude::*; use icu_provider::DataMarkerAttributes; @@ -42,13 +45,64 @@ impl DataProvider for DatagenProvider { .ok_or_else(|| DataError::custom("Failed to get times"))? .clone(); - // TODO: Fill prefixes (power, si prefixes, ... etc.) in the next PR. - let prefixes = ZeroMap::new(); + // TODO: Fill prefixes (si prefixes, ... etc.) in the next PR. + let mut prefixes = BTreeMap::::new(); + fn fill_power( + prefixes: &mut BTreeMap, + powers: Option<&Patterns>, + power_value: PowerValue, + ) { + if let Some(powers) = powers { + let counts = [ + ( + powers.zero_compound_unit_pattern1.as_ref(), + CompoundCount::Zero, + ), + ( + powers.one_compound_unit_pattern1.as_ref(), + CompoundCount::One, + ), + ( + powers.two_compound_unit_pattern1.as_ref(), + CompoundCount::Two, + ), + ( + powers.few_compound_unit_pattern1.as_ref(), + CompoundCount::Few, + ), + ( + powers.many_compound_unit_pattern1.as_ref(), + CompoundCount::Many, + ), + ( + powers.other_compound_unit_pattern1.as_ref(), + CompoundCount::Other, + ), + ]; + + for (pattern, count) in counts.iter() { + if let Some(pattern) = pattern { + prefixes.insert( + PatternKey::Power { + power: power_value, + count: *count, + }, + pattern.to_string(), + ); + } + } + } + } + let power2 = length_data.get("power2"); + let power3 = length_data.get("power3"); + + fill_power(&mut prefixes, power2, PowerValue::Two); + fill_power(&mut prefixes, power3, PowerValue::Three); let result = UnitsEssentialsV1 { per: per.into(), times: times.into(), - prefixes, + prefixes: ZeroMap::from_iter(prefixes), }; Ok(DataResponse {