fix: 当存在多个翻译时,自动使用最近的一个

This commit is contained in:
Zhicheng Wang 2018-03-03 17:53:33 +08:00
parent a9132302fd
commit 757526a6ed
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
});
}