Skip to content

Commit e0bd546

Browse files
committed
Add descriptive labels and i18n-ed strings
1 parent cedb0bf commit e0bd546

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

‎frontend/src/lib/i18n/en.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,10 @@
241241
"addHours": "+ Add hours",
242242
"addBlock": "Add block",
243243
"saving": "saving…",
244+
"eventTypes": {
245+
"appliesTo": "Applies to",
246+
"allEventTypes": "All event types"
247+
},
244248
"blockError": {
245249
"endAfterStart": "End must be after start"
246250
},

‎frontend/src/lib/i18n/fr.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,10 @@
241241
"addHours": "+ Ajouter des horaires",
242242
"addBlock": "Ajouter un bloc",
243243
"saving": "enregistrement…",
244+
"eventTypes": {
245+
"appliesTo": "S'applique à",
246+
"allEventTypes": "Tous les types d'événements"
247+
},
244248
"blockError": {
245249
"endAfterStart": "La fin doit être après le début"
246250
},

‎frontend/src/routes/availability/+page.svelte‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,10 @@
402402
<span class="text-xs text-destructive">{block.error}</span>
403403
{/if}
404404

405+
<span class="text-muted-foreground">|</span>
406+
<div class="text-sm font-normal text-muted-foreground">
407+
{$t('availability.eventTypes.appliesTo')}:
408+
</div>
405409
<Select.Root
406410
type="single"
407411
bind:value={block.event_type_id}
@@ -410,13 +414,13 @@
410414
>
411415
<Select.Trigger class="w-fit">
412416
{#if block.event_type_id === "null"}
413-
All
417+
{$t('availability.eventTypes.allEventTypes')}
414418
{:else}
415419
{eventName(block.event_type_id)?.name ?? block.event_type_id}
416420
{/if}
417421
</Select.Trigger>
418422
<Select.Content>
419-
<Select.Item value="null" label="All">All</Select.Item>
423+
<Select.Item value="null" label="All">{$t('availability.eventTypes.allEventTypes')}</Select.Item>
420424
{#each eventTypes as e}<Select.Item value={e.id} label={e.name}>{e.name}</Select.Item>{/each}
421425
</Select.Content>
422426
</Select.Root>

0 commit comments

Comments
 (0)