From cdd0231a7660f9b3d3a371cbb0e3a8406112cb3d Mon Sep 17 00:00:00 2001 From: Nariman Jelveh Date: Wed, 24 Apr 2024 12:06:05 -0700 Subject: [PATCH] translation fix --- packages/puter-js/src/lib/xdrpc.js | 4 ---- src/UI/UIWindowRefer.js | 2 +- src/i18n/translations/en.js | 1 + 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/puter-js/src/lib/xdrpc.js b/packages/puter-js/src/lib/xdrpc.js index 0df632e3..49541a5a 100644 --- a/packages/puter-js/src/lib/xdrpc.js +++ b/packages/puter-js/src/lib/xdrpc.js @@ -27,10 +27,6 @@ export class CallbackManager { attach_to_source (source) { source.addEventListener('message', event => { const { data } = event; - console.log( - 'test-app got message from window', - data, - ); debugger; if (data && typeof data === 'object' && data.$SCOPE === $SCOPE) { const { id, args } = data; diff --git a/src/UI/UIWindowRefer.js b/src/UI/UIWindowRefer.js index bebe6164..a37f8e4f 100644 --- a/src/UI/UIWindowRefer.js +++ b/src/UI/UIWindowRefer.js @@ -108,7 +108,7 @@ async function UIWindowRefer(options){ document.execCommand('copy'); } - $(this).html(i18n('copying')); + $(this).html(i18n('link_copied')); setTimeout(function(){ $(copy_btn).html(i18n('copy_link')); }, 1000); diff --git a/src/i18n/translations/en.js b/src/i18n/translations/en.js index af627fb1..c8c1ec33 100644 --- a/src/i18n/translations/en.js +++ b/src/i18n/translations/en.js @@ -119,6 +119,7 @@ const en = { language: "Language", license: "License", lightness: 'Lightness', + link_copied: "Link copied", loading: 'Loading', log_in: "Log In", log_into_another_account_anyway: 'Log into another account anyway',