Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

julian2020's avatar

Translate InvoiceItem's description

Hi,

in cashier/resources/views/receipt.php there is rendered the description of each invoice item:

<!-- Display The Invoice Items -->
@foreach ($invoice->invoiceItems() as $item)
    <tr>
        <td colspan="2">{{ $item->description }}</td>
        <td>{{ $item->total() }}</td>
    </tr>
@endforeach

When changing the plan this results in the pdf invoice like: "Unused time on [...]" or "Remaining time on [...]"

Because this is a German project, I want to translate these strings. Unfortunately I did not find any of them in the complete project (even including /vendor). I assume this is a response of Stripe. Do you know if there is any possibility to change this? Apart of str_replace() in the view...

Thanks Julian

0 likes
1 reply

Please or to participate in this conversation.