From 9e71060aef0cfa21d2b4c87937407116147b758f Mon Sep 17 00:00:00 2001 From: sultanmyrza Date: Thu, 26 May 2022 16:33:48 +0800 Subject: [PATCH] fix text for share referal code --- src/app/shared/share/share.service.ts | 9 ++++----- src/assets/i18n/en-us.json | 2 +- src/assets/i18n/zh-tw.json | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/app/shared/share/share.service.ts b/src/app/shared/share/share.service.ts index 9736d63c7..0c9b2c7e3 100644 --- a/src/app/shared/share/share.service.ts +++ b/src/app/shared/share/share.service.ts @@ -40,12 +40,11 @@ export class ShareService { async shareReferralCode(referralCode: string) { const text = this.translocoService.translate( - 'invitation.myReferralCodeAtCaptureAppIs', + 'invitation.useMyReferralCodeToSignUpForCaptureAppPassVerificationAndWeBothGetNumPointsReward', { referralCode: referralCode } ); - return Share.share({ - text: text, - url: 'https://www.numbersprotocol.io/#products', - }); + const url = 'https://www.numbersprotocol.io/#products'; + + return Share.share({ text: text + '\n\n' + url }); } } diff --git a/src/assets/i18n/en-us.json b/src/assets/i18n/en-us.json index c46a93ae8..7bb8521e6 100644 --- a/src/assets/i18n/en-us.json +++ b/src/assets/i18n/en-us.json @@ -280,7 +280,7 @@ "invitation": "Invitation", "shareInvitationCode": "Share invitation code", "shareToGetRewarded": "Share to get rewarded", - "myReferralCodeAtCaptureAppIs": "My referral code at Capture App is {{referralCode}}" + "useMyReferralCodeToSignUpForCaptureAppPassVerificationAndWeBothGetNumPointsReward": "Use my referral code {{referralCode}} to sign up for Capture App, pass verification and we both get NUM Points reward!" }, "gopro": { "setup": "GoPro Setup", diff --git a/src/assets/i18n/zh-tw.json b/src/assets/i18n/zh-tw.json index dbe318404..ef4bac07f 100644 --- a/src/assets/i18n/zh-tw.json +++ b/src/assets/i18n/zh-tw.json @@ -280,7 +280,7 @@ "invitation": "邀請", "shareInvitationCode": "分享邀請碼", "shareToGetRewarded": "分享以獲得獎勵", - "myReferralCodeAtCaptureAppIs": "我在 Capture App 的推薦代碼是 {{referralCode}}" + "useMyReferralCodeToSignUpForCaptureAppPassVerificationAndWeBothGetNumPointsReward": "透過我的推薦碼 {{referralCode}} 在 Capture App 註冊,一起獲得 NUM Points!" }, "gopro": { "setup": "GoPro 設置",