From a33feb2b41706cd4522f218f9169ccf58f5482e7 Mon Sep 17 00:00:00 2001 From: Michael Klein Date: Wed, 12 Oct 2022 13:34:23 +0200 Subject: [PATCH] Use translations for empty states peers.show --- .../app/templates/dc/peers/show/addresses.hbs | 6 ++-- .../app/templates/dc/peers/show/exported.hbs | 29 ++++++--------- .../app/templates/dc/peers/show/imported.hbs | 26 ++++++-------- .../consul-ui/translations/routes/en-us.yaml | 36 ++++++++++++++++--- 4 files changed, 53 insertions(+), 44 deletions(-) diff --git a/ui/packages/consul-peerings/app/templates/dc/peers/show/addresses.hbs b/ui/packages/consul-peerings/app/templates/dc/peers/show/addresses.hbs index e7892b3589..f3934cda50 100644 --- a/ui/packages/consul-peerings/app/templates/dc/peers/show/addresses.hbs +++ b/ui/packages/consul-peerings/app/templates/dc/peers/show/addresses.hbs @@ -5,13 +5,11 @@

- No server addresses. + {{t "routes.dc.peers.show.addresses.empty.header"}}

-
- There don't seem to be any server addresses for this peer. -
+ {{t "routes.dc.peers.show.addresses.empty.body" htmlSafe=true}}