{lang === 'en' ? 'Workout' : 'Training'} - Bocken
{#if hasSchedule && nextTemplate}
{t('next_in_schedule', lang)}
{#each scheduleOrder as id, i} {getTemplateName(id)} {#if i < scheduleOrder.length - 1} {/if} {/each}
{/if}

{t('templates', lang)}

{#if templates.length > 0}

{t('my_templates', lang)} ({templates.length})

{#each templates as template (template._id)} openTemplateDetail(template)} /> {/each}
{:else}

{t('no_templates_yet', lang)}

{/if}
{#if selectedTemplate} {/if} {#if showTemplateEditor} {#if editorPicker} { editorAddExercise(id); editorPicker = false; }} onClose={() => editorPicker = false} /> {/if} {/if} {#if showScheduleEditor} {/if}