forked from BRETT/BRETT
i18n implemented
This commit is contained in:
@@ -5,6 +5,7 @@ import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover
|
||||
const props = defineProps<{ commentId: number }>()
|
||||
|
||||
const { toggle } = useCommentReactions()
|
||||
const { t } = useI18n()
|
||||
|
||||
const open = ref(false)
|
||||
const busy = ref(false)
|
||||
@@ -17,7 +18,7 @@ async function pick(emoji: string) {
|
||||
await toggle(props.commentId, emoji)
|
||||
}
|
||||
catch {
|
||||
toast.error('Reaktion fehlgeschlagen')
|
||||
toast.error(t('comments.reactionFailed'))
|
||||
}
|
||||
finally {
|
||||
busy.value = false
|
||||
@@ -31,7 +32,7 @@ async function pick(emoji: string) {
|
||||
<button
|
||||
type="button"
|
||||
class="cursor-pointer self-center rounded-md p-1 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"
|
||||
aria-label="Reaktion hinzufügen"
|
||||
:aria-label="$t('comments.addReaction')"
|
||||
>
|
||||
<Icon name="ph:smiley-fill" class="size-5" />
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user