From 757526a6ed495b7e5703b12f58c293c542d6ecd3 Mon Sep 17 00:00:00 2001 From: Zhicheng Wang Date: Sat, 3 Mar 2018 17:53:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BD=93=E5=AD=98=E5=9C=A8=E5=A4=9A?= =?UTF-8?q?=E4=B8=AA=E7=BF=BB=E8=AF=91=E6=97=B6=EF=BC=8C=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E6=9C=80=E8=BF=91=E7=9A=84=E4=B8=80=E4=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aio/tools/translator/translate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/tools/translator/translate.ts b/aio/tools/translator/translate.ts index 3e0bd63aa9..9888a1082a 100644 --- a/aio/tools/translator/translate.ts +++ b/aio/tools/translator/translate.ts @@ -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; } }); }