diff --git a/src/UI/UIWindowRefer.js b/src/UI/UIWindowRefer.js index aba0bc0e..bebe6164 100644 --- a/src/UI/UIWindowRefer.js +++ b/src/UI/UIWindowRefer.js @@ -22,8 +22,6 @@ import UIPopover from './UIPopover.js' async function UIWindowRefer(options){ let h = ''; - let copy_btn_text = 'Copy Link'; - let copied_btn_text = 'Copied!'; const url = `${gui_origin}/?r=${user.referral_code}`; h += `
`; @@ -32,7 +30,7 @@ async function UIWindowRefer(options){ h += `

${i18n('refer_friends_c2a')}

`; h += ``; h += ``; - h += `` + h += `` h += ``; h += `
`; @@ -110,9 +108,9 @@ async function UIWindowRefer(options){ document.execCommand('copy'); } - $(this).html(copied_btn_text); + $(this).html(i18n('copying')); setTimeout(function(){ - $(copy_btn).html(copy_btn_text); + $(copy_btn).html(i18n('copy_link')); }, 1000); }); } diff --git a/src/i18n/translations/pl.js b/src/i18n/translations/pl.js index 0d66550b..f958a2c5 100644 --- a/src/i18n/translations/pl.js +++ b/src/i18n/translations/pl.js @@ -48,7 +48,7 @@ const pl = { continue: "Kontynuuj", copy: 'Kopiuj', copy_link: "Kopiuj Link", - copying: "Copying", + copying: "Kopiowanie", cover: 'Zakryj', create_account: "Stwórz konto", create_free_account: "Stwórz darmowe konto",