feat: allow translation of statuses (#76)

This commit is contained in:
Daniel Roe 2022-11-25 00:14:16 +00:00 committed by GitHub
parent bef89502a1
commit 8586d58b84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 70 additions and 1 deletions

View file

@ -4,10 +4,11 @@ import type { Status } from 'masto'
const { status } = defineProps<{
status: Status
}>()
const { translation } = useTranslation(status)
</script>
<template>
<div class="status-body">
<ContentRich :content="status.content" :emojis="status.emojis" />
<ContentRich :content="translation.visible ? translation.text : status.content" :emojis="status.emojis" />
</div>
</template>