From 8def8b7ca6a7adf76c031ef240ba233e5553daa2 Mon Sep 17 00:00:00 2001 From: AlexV Date: Wed, 11 Sep 2024 17:47:55 +0700 Subject: [PATCH] feat: add translation for delivery dates --- src/Actions/CalculateDeliveryAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Actions/CalculateDeliveryAction.php b/src/Actions/CalculateDeliveryAction.php index e02d1a6..2f0f5d2 100644 --- a/src/Actions/CalculateDeliveryAction.php +++ b/src/Actions/CalculateDeliveryAction.php @@ -138,7 +138,7 @@ static function ($carry, $item) use ($package) { $this->rates[$tariff['tariff_code']] = [ 'id' => sprintf('%s:%s', Config::DELIVERY_NAME, $tariff['tariff_code']), - 'label' => sprintf("CDEK: %s, (%s-%s дней)", + 'label' => sprintf(esc_html__('CDEK: %s, (%s-%s days)', 'cdekdelivery'), Tariff::getTariffUserNameByCode($tariff['tariff_code']), $minDay, $maxDay), 'cost' => $cost,