Skip to content

Commit 3b80cc7

Browse files
Upgrade to @microbit/ui@0.1.0-alpha.19
The released build of the gray-ramp v2 work the spike build carried, plus the react-aria string takeover. The spike build predated the gray.25 -> gray.75 rename; the app source already moved in d8a0263, and the paired private preset now ships it too (python-editor-v3-microbit's dist still held the old stop, so sidebarTabSelectedBg pointed at a token that no longer exists). Recompiled the message catalogs: alpha.19 adds seven ui.* ids for the react-aria strings a prop can replace (NumberField steppers, toast region, ComboBox trigger/listbox, Select placeholder and row action). Without the recompile they would fall back to English in every locale.
1 parent d8a0263 commit 3b80cc7

15 files changed

Lines changed: 1223 additions & 5 deletions

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@codemirror/view": "^6.26.3",
2222
"@microbit/microbit-connection": "^1.0.0",
2323
"@microbit/microbit-fs": "^0.10.0",
24-
"@microbit/ui": "0.0.0-gray.ramp.v2.106",
24+
"@microbit/ui": "0.1.0-alpha.19",
2525
"@sanity/block-content-to-react": "^3.0.0",
2626
"@sanity/image-url": "^1.0.1",
2727
"@testing-library/jest-dom": "^5.14.1",

src/messages/ui.ca.json

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2367,12 +2367,104 @@
23672367
"value": "Torna-ho a provar"
23682368
}
23692369
],
2370+
"ui.breadcrumb": [
2371+
{
2372+
"type": 0,
2373+
"value": "Breadcrumb"
2374+
}
2375+
],
23702376
"ui.close-action": [
23712377
{
23722378
"type": 0,
23732379
"value": "Tanca "
23742380
}
23752381
],
2382+
"ui.combobox-listbox": [
2383+
{
2384+
"type": 0,
2385+
"value": "Suggestions"
2386+
}
2387+
],
2388+
"ui.combobox-trigger": [
2389+
{
2390+
"type": 0,
2391+
"value": "Show suggestions"
2392+
}
2393+
],
2394+
"ui.loading": [
2395+
{
2396+
"type": 0,
2397+
"value": "Loading"
2398+
}
2399+
],
2400+
"ui.numberfield-decrease": [
2401+
{
2402+
"type": 0,
2403+
"value": "Decrease "
2404+
},
2405+
{
2406+
"type": 1,
2407+
"value": "fieldLabel"
2408+
}
2409+
],
2410+
"ui.numberfield-increase": [
2411+
{
2412+
"type": 0,
2413+
"value": "Increase "
2414+
},
2415+
{
2416+
"type": 1,
2417+
"value": "fieldLabel"
2418+
}
2419+
],
2420+
"ui.select-placeholder": [
2421+
{
2422+
"type": 0,
2423+
"value": "Select an item"
2424+
}
2425+
],
2426+
"ui.select-row-action": [
2427+
{
2428+
"type": 0,
2429+
"value": "Select"
2430+
}
2431+
],
2432+
"ui.toast-region": [
2433+
{
2434+
"type": 6,
2435+
"value": "count",
2436+
"options": {
2437+
"one": {
2438+
"value": [
2439+
{
2440+
"type": 7
2441+
},
2442+
{
2443+
"type": 0,
2444+
"value": " notification"
2445+
}
2446+
]
2447+
},
2448+
"other": {
2449+
"value": [
2450+
{
2451+
"type": 7
2452+
},
2453+
{
2454+
"type": 0,
2455+
"value": " notifications"
2456+
}
2457+
]
2458+
}
2459+
},
2460+
"offset": 0,
2461+
"pluralType": "cardinal"
2462+
},
2463+
{
2464+
"type": 0,
2465+
"value": "."
2466+
}
2467+
],
23762468
"ui.toast-status-error": [
23772469
{
23782470
"type": 0,

src/messages/ui.de.json

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2457,12 +2457,104 @@
24572457
"value": "Erneut versuchen"
24582458
}
24592459
],
2460+
"ui.breadcrumb": [
2461+
{
2462+
"type": 0,
2463+
"value": "Breadcrumb"
2464+
}
2465+
],
24602466
"ui.close-action": [
24612467
{
24622468
"type": 0,
24632469
"value": "Schließen"
24642470
}
24652471
],
2472+
"ui.combobox-listbox": [
2473+
{
2474+
"type": 0,
2475+
"value": "Empfehlungen"
2476+
}
2477+
],
2478+
"ui.combobox-trigger": [
2479+
{
2480+
"type": 0,
2481+
"value": "Empfehlungen anzeigen"
2482+
}
2483+
],
2484+
"ui.loading": [
2485+
{
2486+
"type": 0,
2487+
"value": "Loading"
2488+
}
2489+
],
2490+
"ui.numberfield-decrease": [
2491+
{
2492+
"type": 1,
2493+
"value": "fieldLabel"
2494+
},
2495+
{
2496+
"type": 0,
2497+
"value": " verringern"
2498+
}
2499+
],
2500+
"ui.numberfield-increase": [
2501+
{
2502+
"type": 1,
2503+
"value": "fieldLabel"
2504+
},
2505+
{
2506+
"type": 0,
2507+
"value": " erhöhen"
2508+
}
2509+
],
2510+
"ui.select-placeholder": [
2511+
{
2512+
"type": 0,
2513+
"value": "Element wählen"
2514+
}
2515+
],
2516+
"ui.select-row-action": [
2517+
{
2518+
"type": 0,
2519+
"value": "Auswählen"
2520+
}
2521+
],
2522+
"ui.toast-region": [
2523+
{
2524+
"type": 6,
2525+
"value": "count",
2526+
"options": {
2527+
"one": {
2528+
"value": [
2529+
{
2530+
"type": 7
2531+
},
2532+
{
2533+
"type": 0,
2534+
"value": " Benachrichtigung"
2535+
}
2536+
]
2537+
},
2538+
"other": {
2539+
"value": [
2540+
{
2541+
"type": 7
2542+
},
2543+
{
2544+
"type": 0,
2545+
"value": " Benachrichtigungen"
2546+
}
2547+
]
2548+
}
2549+
},
2550+
"offset": 0,
2551+
"pluralType": "cardinal"
2552+
},
2553+
{
2554+
"type": 0,
2555+
"value": "."
2556+
}
2557+
],
24662558
"ui.toast-status-error": [
24672559
{
24682560
"type": 0,

src/messages/ui.en.json

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2409,12 +2409,104 @@
24092409
"value": "Try again"
24102410
}
24112411
],
2412+
"ui.breadcrumb": [
2413+
{
2414+
"type": 0,
2415+
"value": "Breadcrumb"
2416+
}
2417+
],
24122418
"ui.close-action": [
24132419
{
24142420
"type": 0,
24152421
"value": "Close"
24162422
}
24172423
],
2424+
"ui.combobox-listbox": [
2425+
{
2426+
"type": 0,
2427+
"value": "Suggestions"
2428+
}
2429+
],
2430+
"ui.combobox-trigger": [
2431+
{
2432+
"type": 0,
2433+
"value": "Show suggestions"
2434+
}
2435+
],
2436+
"ui.loading": [
2437+
{
2438+
"type": 0,
2439+
"value": "Loading"
2440+
}
2441+
],
2442+
"ui.numberfield-decrease": [
2443+
{
2444+
"type": 0,
2445+
"value": "Decrease "
2446+
},
2447+
{
2448+
"type": 1,
2449+
"value": "fieldLabel"
2450+
}
2451+
],
2452+
"ui.numberfield-increase": [
2453+
{
2454+
"type": 0,
2455+
"value": "Increase "
2456+
},
2457+
{
2458+
"type": 1,
2459+
"value": "fieldLabel"
2460+
}
2461+
],
2462+
"ui.select-placeholder": [
2463+
{
2464+
"type": 0,
2465+
"value": "Select an item"
2466+
}
2467+
],
2468+
"ui.select-row-action": [
2469+
{
2470+
"type": 0,
2471+
"value": "Select"
2472+
}
2473+
],
2474+
"ui.toast-region": [
2475+
{
2476+
"type": 6,
2477+
"value": "count",
2478+
"options": {
2479+
"one": {
2480+
"value": [
2481+
{
2482+
"type": 7
2483+
},
2484+
{
2485+
"type": 0,
2486+
"value": " notification"
2487+
}
2488+
]
2489+
},
2490+
"other": {
2491+
"value": [
2492+
{
2493+
"type": 7
2494+
},
2495+
{
2496+
"type": 0,
2497+
"value": " notifications"
2498+
}
2499+
]
2500+
}
2501+
},
2502+
"offset": 0,
2503+
"pluralType": "cardinal"
2504+
},
2505+
{
2506+
"type": 0,
2507+
"value": "."
2508+
}
2509+
],
24182510
"ui.toast-status-error": [
24192511
{
24202512
"type": 0,

0 commit comments

Comments
 (0)