translation parameterisation (#165)

Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: https://akkoma.dev/AkkomaGang/pleroma-fe/pulls/165
This commit is contained in:
floatingghost 2022-09-12 15:47:53 +00:00
parent 61c70545f0
commit f628483499
5 changed files with 119 additions and 30 deletions

View file

@ -60,7 +60,7 @@
v-if="status.translation"
class="translation"
>
<h4>{{ $t('status.translated_from', { language: status.translation.detected_language }) }}</h4>
<h4>{{ $t(`languages.translated_from.${status.translation.detected_language.toLowerCase()}`) }}</h4>
<RichContent
:class="{ '-single-line': singleLine }"
class="text media-body"
@ -85,7 +85,7 @@
:key="language.key"
:value="language.value"
>
{{ language.label }}
{{ $t(`languages.${language.value.toLowerCase()}`) }}
</option>
</Select>
{{ ' ' }}