Merge branch 'replyLanguage' into 'develop'

feat(client): inherit reply/quote language

Co-authored-by: eana <coder@apps.1a23.com>

Closes #10885

See merge request firefish/firefish!10726
This commit is contained in:
naskya 2024-04-01 02:09:32 +00:00
commit 7e0f20c24f
1 changed files with 8 additions and 0 deletions

View File

@ -1278,6 +1278,14 @@ onMounted(() => {
quoteId.value = init.renote ? init.renote.id : null;
}
// Inherit language settings when quoting or replying
if (props.renote) {
language.value = props.renote.lang ?? null;
}
if (props.reply) {
language.value = props.reply.lang ?? null;
}
nextTick(() => watchForDraft());
nextTick(() => autosize.update(textareaEl.value));
});