1
0
Fork 0

fix(hugo): Replace the log message about the head circumference with a flag warning, as that's more visible to the user

This commit is contained in:
Jonathan Haas 2025-05-23 14:14:54 +02:00 committed by Joost De Cock
parent a675c655a5
commit 52b8e16e35
2 changed files with 10 additions and 6 deletions

View file

@ -23,7 +23,9 @@
"cutNeckBinding.t": "The neck binding is not shown", "cutNeckBinding.t": "The neck binding is not shown",
"cutNeckBinding.d": "The **Neck Binding** (10) is a rectangular piece of main fabric {{{ w }}} wide and {{{ l }}} long, with the grainline parallel to the length.", "cutNeckBinding.d": "The **Neck Binding** (10) is a rectangular piece of main fabric {{{ w }}} wide and {{{ l }}} long, with the grainline parallel to the length.",
"cutWaistband.t": "The waistband is not shown", "cutWaistband.t": "The waistband is not shown",
"cutWaistband.d": "The **Waistband** (8) is a rectangular piece of ribbing fabric {{{ w }}} wide and {{{ l }}} long, with the grainline parallel to the width." "cutWaistband.d": "The **Waistband** (8) is a rectangular piece of ribbing fabric {{{ w }}} wide and {{{ l }}} long, with the grainline parallel to the width.",
"neckCircumference.t": "The neck opening is too small",
"neckCircumference.d": "The neck opening of {{{ opening }}} is smaller than the head circumference of {{{ head }}}.\n\nPlease check and adjust Collar Ease option setting as needed to ensure the neck opening is large enough to accommodate head circumference."
}, },
"o": { "o": {
"ribbingHeight": { "ribbingHeight": {

View file

@ -266,11 +266,13 @@ function hugoSleeve({
) )
if (discrepancy > warning_limit) { if (discrepancy > warning_limit) {
log.warn( store.flag.warn({
'Please check and adjust Collar Ease option setting ' + msg: `hugo:neckCircumference`,
'as needed to ensure neck opening is large enough to accommodate ' + replace: {
'head circumference.' opening: units(neck_opening),
) head: units(measurements.head),
},
})
} }
return part return part