feat: translate the timeline fixed elements

This commit is contained in:
Adrien Marquès 2022-10-12 11:18:19 +02:00
parent 8257b30109
commit 2fccc09b3f
Signed by: xdrm-brackets
GPG Key ID: D75243CA236D825E
3 changed files with 17 additions and 5 deletions

View File

@ -21,7 +21,7 @@
<img src='../assets/timeline/project.svg' /> <img src='../assets/timeline/project.svg' />
</div> </div>
<div :key="'name-'+proj.name" class='name'> <div :key="'name-'+proj.name" class='name'>
Created <b>{{ proj.name }}</b> <span>{{ elapsed(proj.started_at) }}</span> {{ $t('project.created') }} <b>{{ proj.name }}</b> <span>{{ elapsed(proj.started_at) }}</span>
</div> </div>
<div :key="'joint-start-'+proj.name" class='joint-start' /> <div :key="'joint-start-'+proj.name" class='joint-start' />
@ -43,7 +43,7 @@
<img src='../assets/timeline/src.svg' /> <img src='../assets/timeline/src.svg' />
</div> </div>
<div :key="'src-'+proj.name" class='src' > <div :key="'src-'+proj.name" class='src' >
Hosted at <a :href='proj.source.link'>{{ proj.source.name }}</a> <span>({{ proj.commits }} commits)</span> {{ $t('project.sources') }} <a :href='proj.source.link'>{{ proj.source.name }}</a> <span>({{ proj.commits }} commits)</span>
</div> </div>
</template> </template>
@ -52,7 +52,7 @@
<img src='../assets/timeline/doc.svg' /> <img src='../assets/timeline/doc.svg' />
</div> </div>
<div :key="'doc-'+proj.name" class='doc'> <div :key="'doc-'+proj.name" class='doc'>
Documentation at <a :href='proj.doc.link'>{{ proj.doc.name }}</a> {{ $t('project.doc') }} <a :href='proj.doc.link'>{{ proj.doc.name }}</a>
</div> </div>
</template> </template>
@ -61,10 +61,10 @@
</div> </div>
<div :key="'end-'+proj.name" class='end'> <div :key="'end-'+proj.name" class='end'>
<template v-if='proj.stopped_at != null'> <template v-if='proj.stopped_at != null'>
Project stopped in {{ proj.stopped_at | short_date }} <span>{{ elapsed(proj.stopped_at) }}</span> {{ $t('project.end') }} {{ proj.stopped_at | short_date }} <span>{{ elapsed(proj.stopped_at) }}</span>
</template> </template>
<template v-else> <template v-else>
Project still active {{ $t('project.still') }}
</template> </template>
</div> </div>

View File

@ -82,5 +82,11 @@
"time.month": "{n} month", "time.months": "{n} months", "time.month": "{n} month", "time.months": "{n} months",
"time.year": "{n} year", "time.years": "{n} years", "time.year": "{n} year", "time.years": "{n} years",
"project.created": "Created",
"project.sources": "Hosted at",
"project.doc": "Documentation at",
"project.end": "Project stopped in",
"project.still": "Project still active",
"end": "" "end": ""
} }

View File

@ -44,5 +44,11 @@
"time.month": "{n} mois", "time.months": "{n} mois", "time.month": "{n} mois", "time.months": "{n} mois",
"time.year": "{n} an", "time.years": "{n} ans", "time.year": "{n} an", "time.years": "{n} ans",
"project.created": "Création de",
"project.sources": "Sources:",
"project.doc": "Documentation:",
"project.end": "Projet terminé en",
"project.still": "Projet toujours actif",
"end": "" "end": ""
} }