feat: add interface for translation key iteration
This commit is contained in:
parent
29f549ddd9
commit
23a24c5842
1 changed files with 6 additions and 1 deletions
|
@ -9,6 +9,11 @@ import IndustryIcon from '@/assets/icons/IndustryIcon.vue'
|
|||
import TruckIcon from '@/assets/icons/TruckIcon.vue'
|
||||
import BoxesIcon from '@/assets/icons/BoxesIcon.vue'
|
||||
|
||||
interface Job {
|
||||
title: string;
|
||||
desc: string;
|
||||
}
|
||||
|
||||
const jobIcons = [
|
||||
WhiskeyGlassIcon,
|
||||
TreeIcon,
|
||||
|
@ -27,7 +32,7 @@ const jobIcons = [
|
|||
</section>
|
||||
|
||||
<TimelineList>
|
||||
<TimelineItem v-for="(job, idx) in $tm('career.jobs')" :key="idx">
|
||||
<TimelineItem v-for="(job, idx) in ($tm('career.jobs') as Job[])" :key="idx">
|
||||
<template #icon>
|
||||
<component :is="jobIcons[idx as number]"></component>
|
||||
</template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue