Added translation keys

ref #79
This commit is contained in:
2021-02-25 15:55:12 +01:00
parent 1ef1053d3f
commit 880d722912
5 changed files with 306 additions and 296 deletions

View File

@@ -104,7 +104,7 @@
</script>
{#await donor_promise && runner_promise && promise}
Loading donation details
{$_('loading-donation-details')}
{:then}
<section class="container p-5 select-none">
<div class="flex flex-row mb-4">
@@ -122,7 +122,7 @@
d="M14 2a8 8 0 013.3 15.3A8 8 0 116.7 6.7 8 8 0 0114 2zm-3 7H9v1a2.5 2.5 0 00-.16 5h2.25a.5.5 0 010 1H7v2h2v1h2v-1a2.5 2.5 0 00.16-5H8.91a.5.5 0 010-1H13v-2h-2V9zm3-5a5.99 5.99 0 00-4.48 2.01 8 8 0 018.47 8.47A6 6 0 0014 4z" /></svg>
</li>
<li class="flex items-center ml-2">
<a class="mr-2" href="./">Donations</a><svg
<a class="mr-2" href="./">{$_('donations')}</a><svg
stroke="currentColor"
fill="none"
stroke-width="2"
@@ -156,7 +156,7 @@
{original_data.runner.middlename || ''}
{original_data.runner.lastname}
{:else}
Fixed:
{$_('fixed-donation')}:
{amount_input.toFixed(2).toLocaleString('de-DE', { valute: 'EUR' })}
{/if}
<span data-id="donation_actions_${original_data.id}">
@@ -177,7 +177,7 @@
delete_triggered = true;
}}
type="button"
class="w-full justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-600 text-base font-medium text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm">{$_('delete-donor')}</button>
class="w-full justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-600 text-base font-medium text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm">{$_('delete-donation')}</button>
{/if}
{/if}
{#if !delete_triggered}
@@ -192,7 +192,7 @@
</div>
<!-- -->
<div style="displ">
<span class="font-medium text-gray-700">Total amount:</span>
<span class="font-medium text-gray-700">{$_('total-donation-amount')}:</span>
<span>{(editable.amount / 100)
.toFixed(2)
.toLocaleString('de-DE', { valute: 'EUR' })}</span>
@@ -200,7 +200,7 @@
<div class="text-sm w-full">
<label
for="donor"
class="block text-sm font-medium text-gray-700">Donor</label>
class="block text-sm font-medium text-gray-700">{$_('donor')}</label>
<select
bind:value={editable.donor}
class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm rounded-l-md sm:text-sm border-gray-300 border bg-gray-50 text-gray-500 rounded-md p-2">
@@ -217,7 +217,7 @@
<div class="text-sm w-full">
<label
for="donor"
class="block text-sm font-medium text-gray-700">Runner</label>
class="block text-sm font-medium text-gray-700">{$_('runner')}</label>
<select
bind:value={editable.runner}
class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm rounded-l-md sm:text-sm border-gray-300 border bg-gray-50 text-gray-500 rounded-md p-2">
@@ -234,8 +234,8 @@
<div class="text-sm w-full">
<label for="lastname" class="font-medium text-gray-700">
{#if original_data.responseType == 'DISTANCEDONATION'}
Amount per kilometer
{:else}Amount{/if}
{$_('amount-per-kilometer')}
{:else}{$_('donation-amount')}{/if}
</label>
<div class="mt-1 flex rounded-md shadow-sm">
<input
@@ -255,7 +255,7 @@
{#if !is_amount_valid}
<span
class="flex items-center font-medium tracking-wide text-red-500 text-xs mt-1 ml-1">
Donation amount must be greater that 0.00€
{$_('donation-amount-must-be-greater-that-0-00eur')}
</span>
{/if}
</div>