From 71ab685063a0630946e521d296e7adb07e6aaac0 Mon Sep 17 00:00:00 2001 From: Zhicheng WANG Date: Thu, 18 Feb 2021 09:21:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8A=8A=E7=BB=93=E6=9E=9C=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E4=B8=BA=E5=8F=8C=E8=AF=AD=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../custom-elements/resource/resource-list.component.html | 6 ++++-- aio/src/app/custom-elements/resource/resource.model.ts | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/aio/src/app/custom-elements/resource/resource-list.component.html b/aio/src/app/custom-elements/resource/resource-list.component.html index 566e2ee8e9..9bad27f37f 100644 --- a/aio/src/app/custom-elements/resource/resource-list.component.html +++ b/aio/src/app/custom-elements/resource/resource-list.component.html @@ -16,8 +16,10 @@
-

{{resource.title}}

-

{{resource.desc || 'No Description'}}

+

{{resource.titleCn || resource.title}}

+

{{resource.title}}

+

{{resource.descCn || resource.desc || '无描述'}}

+

{{resource.desc || 'No Description'}}

diff --git a/aio/src/app/custom-elements/resource/resource.model.ts b/aio/src/app/custom-elements/resource/resource.model.ts index fa689e2ddb..73fd300450 100644 --- a/aio/src/app/custom-elements/resource/resource.model.ts +++ b/aio/src/app/custom-elements/resource/resource.model.ts @@ -17,6 +17,8 @@ export interface Resource { subCategory: string; // "Books" id: string; // "-KLI8vJ0ZkvWhqPembZ7" desc: string; // "This books shows all the steps necessary for the development of SPA" + descCn: string; // "This books shows all the steps necessary for the development of SPA" title: string; // "Practical Angular 2", + titleCn: string; // "Practical Angular 2", url: string; // "https://leanpub.com/practical-angular-2" }