From 62f8a131a95d188d34efe4825bcef27b5736fec1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Fri, 11 Feb 2022 15:52:24 +0100 Subject: [PATCH] Adding translation for "Walk automatically to my position" --- front/src/Components/Menu/GuestSubMenu.svelte | 32 +++++++++---------- front/src/i18n/de-DE/menu.ts | 1 + front/src/i18n/en-US/menu.ts | 1 + front/src/i18n/fr-FR/menu.ts | 1 + 4 files changed, 19 insertions(+), 16 deletions(-) diff --git a/front/src/Components/Menu/GuestSubMenu.svelte b/front/src/Components/Menu/GuestSubMenu.svelte index f24a3f90..fbbc48a4 100644 --- a/front/src/Components/Menu/GuestSubMenu.svelte +++ b/front/src/Components/Menu/GuestSubMenu.svelte @@ -28,7 +28,7 @@ } } - let canShare = navigator.canShare; + let canShare = navigator.share !== undefined; async function shareLink() { const shareData = { url: getLink() }; @@ -44,18 +44,18 @@
- {#if (!canShare) } - + {#if !canShare} + {:else} -
-

{$LL.menu.invite.description()}

- - -
+
+

{$LL.menu.invite.description()}

+ + +
{/if}

Select an entry point

@@ -79,7 +79,7 @@ updateInputFieldValue(); }} /> - Walk automatically to my position + {$LL.menu.invite.walk_automatically_to_position()}
@@ -132,8 +132,8 @@ } @include media-breakpoint-up(lg) { - div.guest-main { - width: 100%; - } + div.guest-main { + width: 100%; + } } diff --git a/front/src/i18n/de-DE/menu.ts b/front/src/i18n/de-DE/menu.ts index 5fb7882d..5e695d95 100644 --- a/front/src/i18n/de-DE/menu.ts +++ b/front/src/i18n/de-DE/menu.ts @@ -70,6 +70,7 @@ const menu: NonNullable = { description: "Link zu diesem Raum teilen!", copy: "Kopieren", share: "Teilen", + walk_automatically_to_position: "Walk automatically to my position", }, globalMessage: { text: "Text", diff --git a/front/src/i18n/en-US/menu.ts b/front/src/i18n/en-US/menu.ts index b7c69935..0883fb15 100644 --- a/front/src/i18n/en-US/menu.ts +++ b/front/src/i18n/en-US/menu.ts @@ -70,6 +70,7 @@ const menu: BaseTranslation = { description: "Share the link of the room!", copy: "Copy", share: "Share", + walk_automatically_to_position: "Walk automatically to my position", }, globalMessage: { text: "Text", diff --git a/front/src/i18n/fr-FR/menu.ts b/front/src/i18n/fr-FR/menu.ts index 54481ec8..bf3ede7a 100644 --- a/front/src/i18n/fr-FR/menu.ts +++ b/front/src/i18n/fr-FR/menu.ts @@ -70,6 +70,7 @@ const menu: NonNullable = { description: "Partager le lien de la salle!", copy: "Copier", share: "Partager", + walk_automatically_to_position: "Marcher automatiquement jusqu'à ma position", }, globalMessage: { text: "Texte",