This is my method from the core of magento:
\Magento\Checkout\Block\Checkout\AttributeMerger::getMultilineFieldConfig
and this is the code:
....
$line = [
'label' => __("%1: Line %2", $attributeConfig['label'], $lineIndex + 1),
'component' => 'Magento_Ui/js/form/element/abstract',
'config' => [
....
I would like to translate this %1: Line %2
, which currently generates this:
Street Line 1, Street Line 2 and Street Line 3
into this:
Straat, Huisnummer, Toevoeging
But it doesn't work. I've tried this:
"%1: Line 1","%1"
"%1: Line 2","Huisnummer"
"%1: Line 3","Toevoeging"
But no luck :) Any suggestions ?
Thanks