From 167ad3378ba3d5b59f39232ab28f0eec4493e5c8 Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Wed, 15 May 2024 20:41:21 +0500 Subject: [PATCH] Remove extra strings (#5603) Signed-off-by: Denis Bykhov --- plugins/contact-assets/lang/en.json | 1 - plugins/contact-assets/lang/es.json | 1 - plugins/contact-assets/lang/pt.json | 1 - plugins/contact-assets/lang/ru.json | 1 - .../src/components/ChannelEditor.svelte | 6 ++--- plugins/contact-resources/src/plugin.ts | 1 - plugins/guest-assets/lang/en.json | 3 +-- plugins/guest-assets/lang/es.json | 3 +-- plugins/guest-assets/lang/pt.json | 3 +-- plugins/guest-assets/lang/ru.json | 3 +-- .../src/components/CreatePublicLink.svelte | 2 +- plugins/guest-resources/src/plugin.ts | 1 - .../src/components/InviteLink.svelte | 16 +----------- plugins/login-resources/src/index.ts | 6 +++-- plugins/login-resources/src/utils.ts | 25 ++++++++++++++++++- plugins/login/src/index.ts | 3 +++ plugins/view-assets/assets/icons.svg | 4 +++ plugins/view-assets/lang/en.json | 3 ++- plugins/view-assets/lang/es.json | 3 ++- plugins/view-assets/lang/pt.json | 3 ++- plugins/view-assets/lang/ru.json | 3 ++- plugins/view-assets/src/index.ts | 3 ++- plugins/view/src/index.ts | 6 +++-- 23 files changed, 58 insertions(+), 43 deletions(-) diff --git a/plugins/contact-assets/lang/en.json b/plugins/contact-assets/lang/en.json index 4f6bd41c83..8f625d129c 100644 --- a/plugins/contact-assets/lang/en.json +++ b/plugins/contact-assets/lang/en.json @@ -56,7 +56,6 @@ "TypeLabel": "Type", "StatusDueDateTooltip": "Until {date}", "CopyToClipboard": "Copy", - "Copied": "Copied", "ViewFullProfile": "View full profile", "Member": "Member", "Members": "Members", diff --git a/plugins/contact-assets/lang/es.json b/plugins/contact-assets/lang/es.json index c134558ec7..a2d62a2e8f 100644 --- a/plugins/contact-assets/lang/es.json +++ b/plugins/contact-assets/lang/es.json @@ -56,7 +56,6 @@ "TypeLabel": "Tipo", "StatusDueDateTooltip": "Hasta {date}", "CopyToClipboard": "Copiar", - "Copied": "Copiado", "ViewFullProfile": "Ver perfil completo", "Member": "Miembro", "Members": "Miembros", diff --git a/plugins/contact-assets/lang/pt.json b/plugins/contact-assets/lang/pt.json index 40ab539b76..8a29eccdf4 100644 --- a/plugins/contact-assets/lang/pt.json +++ b/plugins/contact-assets/lang/pt.json @@ -56,7 +56,6 @@ "TypeLabel": "Tipo", "StatusDueDateTooltip": "Até {date}", "CopyToClipboard": "Copiar", - "Copied": "Copiado", "ViewFullProfile": "Ver perfil completo", "Member": "Membro", "Members": "Membros", diff --git a/plugins/contact-assets/lang/ru.json b/plugins/contact-assets/lang/ru.json index a3fad1d015..721b7a7300 100644 --- a/plugins/contact-assets/lang/ru.json +++ b/plugins/contact-assets/lang/ru.json @@ -56,7 +56,6 @@ "TypeLabel": "Тип", "StatusDueDateTooltip": "До {date}", "CopyToClipboard": "Скопировать", - "Copied": "Скопировано", "ViewFullProfile": "Посмотреть профиль", "Member": "Сотрудник компании", "Members": "Участники", diff --git a/plugins/contact-resources/src/components/ChannelEditor.svelte b/plugins/contact-resources/src/components/ChannelEditor.svelte index 5c2cd074d2..66f94ebbc7 100644 --- a/plugins/contact-resources/src/components/ChannelEditor.svelte +++ b/plugins/contact-resources/src/components/ChannelEditor.svelte @@ -55,7 +55,7 @@ const copyChannel = (): void => { if (label === plugin.string.CopyToClipboard) { - copyTextToClipboard(value).then(() => (label = plugin.string.Copied)) + copyTextToClipboard(value).then(() => (label = view.string.Copied)) setTimeout(() => { label = plugin.string.CopyToClipboard }, 3000) @@ -98,7 +98,7 @@ {#if editable}
-
+
{ diff --git a/plugins/contact-resources/src/plugin.ts b/plugins/contact-resources/src/plugin.ts index 134723e859..4d42312665 100644 --- a/plugins/contact-resources/src/plugin.ts +++ b/plugins/contact-resources/src/plugin.ts @@ -49,7 +49,6 @@ export default mergeIds(contactId, contact, { NoExpire: '' as IntlString, StatusDueDateTooltip: '' as IntlString, CopyToClipboard: '' as IntlString, - Copied: '' as IntlString, ViewFullProfile: '' as IntlString, Member: '' as IntlString, Members: '' as IntlString, diff --git a/plugins/guest-assets/lang/en.json b/plugins/guest-assets/lang/en.json index 4af58917be..892c7bac0b 100644 --- a/plugins/guest-assets/lang/en.json +++ b/plugins/guest-assets/lang/en.json @@ -5,7 +5,6 @@ "Revoke": "Revoke", "RevokeConfirmation": "This will cause previously shared link to stop working. Are you sure you want to revoke this public link?", "LinkWasRevoked": "Public link was revoked", - "Copy": "Copy", - "Copied": "Copied" + "Copy": "Copy" } } diff --git a/plugins/guest-assets/lang/es.json b/plugins/guest-assets/lang/es.json index 10855c5b7c..bc7db79273 100644 --- a/plugins/guest-assets/lang/es.json +++ b/plugins/guest-assets/lang/es.json @@ -5,7 +5,6 @@ "Revoke": "Revocar", "RevokeConfirmation": "¿Está seguro de que desea revocar este enlace público? Esto hará que el enlace compartido anteriormente deje de funcionar.", "LinkWasRevoked": "Enlace público revocado", - "Copy": "Copiar", - "Copied": "Copiado" + "Copy": "Copiar" } } \ No newline at end of file diff --git a/plugins/guest-assets/lang/pt.json b/plugins/guest-assets/lang/pt.json index 681f709b89..1db58c7f13 100644 --- a/plugins/guest-assets/lang/pt.json +++ b/plugins/guest-assets/lang/pt.json @@ -5,7 +5,6 @@ "Revoke": "Revogar", "RevokeConfirmation": "Isto fará com que o link compartilhado anteriormente pare de funcionar. Tem certeza de que deseja revogar este link público?", "LinkWasRevoked": "Link público revogado", - "Copy": "Copiar", - "Copied": "Copiado" + "Copy": "Copiar" } } \ No newline at end of file diff --git a/plugins/guest-assets/lang/ru.json b/plugins/guest-assets/lang/ru.json index ad4001724d..9c4de2fbfa 100644 --- a/plugins/guest-assets/lang/ru.json +++ b/plugins/guest-assets/lang/ru.json @@ -5,7 +5,6 @@ "Revoke": "Отозвать", "RevokeConfirmation": "Это приведет к тому, что ранее созданная ссылка перестанет работать. Вы уверены, что хотите отозвать эту публичную ссылку?", "LinkWasRevoked": "Ссылка была отозвана", - "Copy": "Копировать", - "Copied": "Скопировано" + "Copy": "Копировать" } } diff --git a/plugins/guest-resources/src/components/CreatePublicLink.svelte b/plugins/guest-resources/src/components/CreatePublicLink.svelte index 9abaeb0539..1107b1cf26 100644 --- a/plugins/guest-resources/src/components/CreatePublicLink.svelte +++ b/plugins/guest-resources/src/components/CreatePublicLink.svelte @@ -116,7 +116,7 @@