diff --git a/src/stores/player/utils/captionstranslation.ts b/src/stores/player/utils/captionstranslation.ts index aa0613cc..b65913cc 100644 --- a/src/stores/player/utils/captionstranslation.ts +++ b/src/stores/player/utils/captionstranslation.ts @@ -76,11 +76,11 @@ async function translateCaption( for (let i = 0; i < RETRY_COUNT; i += 1) { try { text = await translateText( - caption.text.replace("\n", "
"), + caption.text.replaceAll("\n", "
"), targetLang, ); if (text) { - text = text.replace("
", "\n"); + text = text.replaceAll("
", "\n"); break; } } catch (error) {