A short fix allowing dev to override the default empty scalar rendering.
Just add some messages in your locales. For instance, in projects\vanilla-search\src\locales\messages\en.json add the following:
I've tried to remove ensureScalarValue(value: any) function but it has some non expected consequences. For instance:
if an undefined scalar is the last item, <sq-metadata> will append a msg#metadata.item.separator at the end ; indeed, even if values haven't been pushed, items.length remains at its initial value.
A short fix allowing dev to override the default empty scalar rendering. Just add some messages in your locales. For instance, in
projects\vanilla-search\src\locales\messages\en.json
add the following:I've tried to remove
ensureScalarValue(value: any)
function but it has some non expected consequences. For instance: if an undefined scalar is the last item,<sq-metadata>
will append amsg#metadata.item.separator
at the end ; indeed, even if values haven't been pushed,items.length
remains at its initial value.