fix: 当存在多个翻译时,自动使用最近的一个
This commit is contained in:
parent
a9132302fd
commit
757526a6ed
|
@ -34,7 +34,7 @@ export function translate(content: string): string[] {
|
|||
} else if (translations.length === 1) {
|
||||
return line + '\n\n' + padding + translations[0].translation;
|
||||
} else {
|
||||
return line + '\n\n' + translations.map(t => '???\n' + padding + t.translation).join('\n\n');
|
||||
return line + '\n\n' + padding + translations[translations.length - 1].translation;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue