Skip to content

Commit 9791787

Browse files
committed
fix i18n when shortText has been translated
Signed-off-by: 迷渡 <justjavac@gmail.com>
1 parent 9ad8f56 commit 9791787

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

typedoc-plugin-deno.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,15 @@ function processi18nLineByLine(comment: Comment & I18nComment): void {
113113
}
114114

115115
if (comment.text === '') {
116-
// only one line
116+
// shortText has been translated
117117
comment.shortText_i18n = comment.text_line_i18n.shift();
118118
comment.text = comment.text_line_en.join('\n\n');
119119
} else {
120-
// multiple lines
121-
comment.text_line_i18n.unshift(comment.text);
120+
comment.text_line_en.unshift(comment.text);
122121
comment.text = comment.text_line_en.join('\n\n');
123122
}
123+
124+
comment.text_line_i18n.push('');
124125
}
125126

126127
function isSignature(reflection: Reflection): reflection is SignatureReflection {

0 commit comments

Comments
 (0)