ui: the amber small-overhang card shows again -- the German localization (#184) built its English and German text but never set it, so the card was blank on every part with slivers; one tn() with the German in de.js

This commit is contained in:
matthewtrahan authored and Matthew Trahan committed 2026-10-17 16:23:52 -05:00
1 parent 708b2dfac9
commit b3900fc2b3
2 files changed
+8 -8

No files matched your search

+4
View File
@@ -215,6 +215,10 @@ export default {
"{n} region": { one: "{n} Bereich", other: "{n} Bereiche" },
"{n} slivers": { one: "{n} Splitter", other: "{n} Splitter" },
"{n} sliver": { one: "{n} Splitter", other: "{n} Splitter" },
"⚠ {n} overhangs shaded amber are too small for a fin (under {area} mm² each), so they print unsupported this way up and may come out rough. Try Suggest orientation to point them up.": {
one: "⚠ {n} Überhang in Bernstein ist zu klein für eine Finne (unter {area} mm²), wird daher in dieser Lage stützenlos gedruckt und kann rau werden. Versuchen Sie „Ausrichtung vorschlagen“, um ihn nach oben zu drehen.",
other: "⚠ {n} Überhänge in Bernstein sind zu klein für eine Finne (unter {area} mm²), werden daher in dieser Lage stützenlos gedruckt und können rau werden. Versuchen Sie „Ausrichtung vorschlagen“, um sie nach oben zu drehen.",
},
"{n} rough holes": { one: "{n} Restüberhang", other: "{n} Restüberhänge" },
"{n} rough hole": { one: "{n} Restüberhang", other: "{n} Restüberhänge" },
+4 -8
View File
@@ -224,14 +224,10 @@ export function paintOverhangs(res = lastResult) {
// card; the sliver count in the readout above stays.
const warn = el('over-warn');
if (dropped > 0 && highlightSmall) {
const one = dropped === 1;
const deText = `⚠ ${dropped} ${one ? 'Überhang' : 'Überhänge'} in Bernstein ${one ? 'ist' : 'sind'} `
+ `zu klein für eine Finne (unter ${MIN_REGION_AREA} mm²), ${one ? 'wird' : 'werden'} daher in dieser Lage stützenlos `
+ `gedruckt und können rau werden. Versuchen Sie „Ausrichtung vorschlagen“, um sie nach oben zu drehen.`;
const enText = `⚠ ${dropped} overhang${one ? '' : 's'} shaded amber ${one ? 'is' : 'are'} `
+ `too small for a fin (under ${MIN_REGION_AREA} mm² each), so ${one ? 'it prints' : 'they print'} `
+ `unsupported this way up and may come out rough. Try Suggest orientation to point `
+ `${one ? 'it' : 'them'} up.`;
warn.textContent = tn(
'⚠ {n} overhang shaded amber is too small for a fin (under {area} mm² each), so it prints unsupported this way up and may come out rough. Try Suggest orientation to point it up.',
'⚠ {n} overhangs shaded amber are too small for a fin (under {area} mm² each), so they print unsupported this way up and may come out rough. Try Suggest orientation to point them up.',
dropped, { area: MIN_REGION_AREA });
} else {
warn.textContent = '';
}