Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix text for share referal code #1644

Merged
merged 2 commits into from
May 27, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/app/shared/share/share.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
}
2 changes: 1 addition & 1 deletion src/assets/i18n/en-us.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/assets/i18n/zh-tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@
"invitation": "邀請",
"shareInvitationCode": "分享邀請碼",
"shareToGetRewarded": "分享以獲得獎勵",
"myReferralCodeAtCaptureAppIs": "我在 Capture App 的推薦代碼是 {{referralCode}}"
"useMyReferralCodeToSignUpForCaptureAppPassVerificationAndWeBothGetNumPointsReward": "透過我的推薦碼 {{referralCode}} 在 Capture App 註冊,一起獲得 NUM Points!"
},
"gopro": {
"setup": "GoPro 設置",
Expand Down