Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use the paymentStatus translation key to display the right payment status #772

Merged
merged 9 commits into from
Oct 31, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<p>{{ orderGetters.getPaymentMethodName(order) }}</p>

<h2 class="font-medium text-base mt-4">{{ $t('account.ordersAndReturns.paymentSummary.paymentStatus') }}</h2>
<p data-testid="order-payment-status">{{ orderGetters.getPaymentStatus(order) }}</p>
<p data-testid="order-payment-status">{{ $t(orderGetters.getPaymentStatusKey(order)) }}</p>
</template>

<script setup lang="ts">
Expand Down
8 changes: 8 additions & 0 deletions apps/web/lang/de.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
{
"orderConfirmationPaymentStatus": {
"unpaid": "nicht bezahlt",
maxiroellplenty marked this conversation as resolved.
Show resolved Hide resolved
"fullyPaid": "Bezahlt",
"overpaid": "Überzahlt",
"partlyPaid": "Teilweise bezahlt",
"prepaid": "Im Voraus bezahlt",
"unknown": "Fehler beim abrufen des Zahlungsstatus"
},
"CookieBar": {
"Accept All": "Alles akzeptieren",
"Accept Selection": "Auswahl akzeptieren",
Expand Down
8 changes: 8 additions & 0 deletions apps/web/lang/en.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
{
"orderConfirmationPaymentStatus": {
"unpaid": "Not paid",
"fullyPaid": "Paid",
"overpaid": "Overpaid",
"partlyPaid": "Partially paid",
"prepaid": "Prepaid",
"unknown": "Error retrieving payment status"
},
"CookieBar": {
"Accept All": "Accept All",
"Accept Selection": "Accept Selection",
Expand Down
Loading