From 6169dd25a38ca9b5e8a5e96d4f8844826b54709b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Thu, 23 Nov 2023 22:20:16 +0100 Subject: [PATCH] refactor(webui): i18n in UpObject --- webui/src/components/display/UpObject.svelte | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/webui/src/components/display/UpObject.svelte b/webui/src/components/display/UpObject.svelte index 2e363bc..90046e2 100644 --- a/webui/src/components/display/UpObject.svelte +++ b/webui/src/components/display/UpObject.svelte @@ -124,9 +124,9 @@ notify.emit( "notification", new UpNotification( - `Opening ${ - inferredIds[0] || address - } in a default native application...`, + $i18n.t("Opening {{identity}} in a default native application...", { + identity: inferredIds[0] || address, + }), ), ); api @@ -151,7 +151,7 @@ notify.emit( "notification", new UpNotification( - `Failed to open in native application! (${err})`, + $i18n.t("Failed to open in native application! ({{err}})", { err }), "error", ), );