From 16fb6f6e5a2c9921a70b4f09e2359c0a0ddff1b6 Mon Sep 17 00:00:00 2001 From: Wendell Date: Fri, 1 Feb 2019 15:58:15 +0800 Subject: [PATCH 1/2] fix(module:empty): fix locale cannot change dynamically --- components/empty/nz-empty.component.html | 2 +- components/empty/nz-empty.component.ts | 47 +++++++++++++++++---- components/empty/nz-empty.spec.ts | 53 ++++++++++++++++-------- components/icon/nz-icon.service.ts | 7 ++++ 4 files changed, 82 insertions(+), 27 deletions(-) diff --git a/components/empty/nz-empty.component.html b/components/empty/nz-empty.component.html index 3936ab2bc24..9542c8aaa5b 100644 --- a/components/empty/nz-empty.component.html +++ b/components/empty/nz-empty.component.html @@ -5,7 +5,7 @@

- {{ nzNotFoundContent || ('Empty.description' | nzI18n) }} + {{ shouldRenderContent ? nzNotFoundContent : locale['description'] }}