Skip to content

Commit

Permalink
translate "text" in "response" in "repeat_responses" of type "talk_t…
Browse files Browse the repository at this point in the history
…opic"
  • Loading branch information
waveyl committed Sep 13, 2024
1 parent eec8c22 commit 1f53ac1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions 翻译.js
Original file line number Diff line number Diff line change
Expand Up @@ -1004,12 +1004,12 @@ ${wikiSiteBase}${getContext(sourceModName, fullItem, index).replace('%', '%25')}
}
}
}
if (Array.isArray(item.repeat_responses)) {
for (const response of item.repeat_responses) {
if (response.text === '<topic_item>') {
if (item.repeat_responses) {
for (const responses of item.repeat_responses) {
if (responses.response.text === '<topic_item>') {
continue;
} else {
response.text = await translateFunction(response.text);
responses.response.text = await translateFunction(responses.response.text);
}
}
}
Expand Down

0 comments on commit 1f53ac1

Please sign in to comment.