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" }