Skip to content

Commit

Permalink
refactor: update promote text for plugins. (#6217)
Browse files Browse the repository at this point in the history
* refactor: redpacket share text

* fix: promote redpacket

* fix: promote gitcoin, trader, and ITO

* fix: decorate encrypted text

* fix: share after setting up pfp

* fix: follow up reviews

* fix: promote savings

* fix: collectible and snapshot

* fix: fix after rebasing

* fix: fix typo

* fix: decorate result

* fix: add missing description

* fix: replace useCallback with useAsyncFn

* fixup! fix: replace useCallback with useAsyncFn

* fix: revert
  • Loading branch information
UncleBill authored May 26, 2022
1 parent 836f5f5 commit 0bf326e
Show file tree
Hide file tree
Showing 77 changed files with 785 additions and 1,127 deletions.
36 changes: 36 additions & 0 deletions .i18n-codegen.json
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,18 @@
"sourceMap": "inline"
}
},
{
"input": "./packages/mask/src/plugins/RedPacket/locales/en-US.json",
"output": "./packages/mask/src/plugins/RedPacket/locales/i18n_generated",
"parser": { "type": "i18next", "contextSeparator": "$", "pluralSeparator": "_" },
"generator": {
"type": "i18next/react-hooks",
"hooks": "useI18N",
"namespace": "com.maskbook.red_packet",
"trans": "Translate",
"sourceMap": "inline"
}
},
{
"input": "./packages/mask/src/plugins/Tips/locales/en-US.json",
"output": "./packages/mask/src/plugins/Tips/locales/i18n_generated",
Expand All @@ -239,6 +251,30 @@
"trans": "Translate",
"sourceMap": "inline"
}
},
{
"input": "./packages/mask/src/plugins/Trader/locales/en-US.json",
"output": "./packages/mask/src/plugins/Trader/locales/i18n_generated",
"parser": { "type": "i18next", "contextSeparator": "$", "pluralSeparator": "_" },
"generator": {
"type": "i18next/react-hooks",
"hooks": "useI18N",
"namespace": "com.maskbook.trader",
"trans": "Translate",
"sourceMap": "inline"
}
},
{
"input": "./packages/mask/src/plugins/Gitcoin/locales/en-US.json",
"output": "./packages/mask/src/plugins/Gitcoin/locales/i18n_generated",
"parser": { "type": "i18next", "contextSeparator": "$", "pluralSeparator": "_" },
"generator": {
"type": "i18next/react-hooks",
"hooks": "useI18N",
"namespace": "com.maskbook.gitcoin",
"trans": "Translate",
"sourceMap": "inline"
}
}
]
}
114 changes: 21 additions & 93 deletions packages/mask/shared-ui/locales/en-US.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
{
"promote_red_packet": "🧧🧧🧧 Try sending Lucky Drop to your friends with tokens or NFTs to share the joy now! Install Mask.io to send your first Lucky Drop.",
"promote_ito": "Launch decentralized assets freely and participate in token launch directly on Twitter! Install Mask.io to participate in your first token launch activity.",
"promote_ito_short": "Install Mask.io to launch dencentralized assests freely on Twitter!",
"promote_file_service": "📃📃📃 Try to permanently use decentralized file storage on Twitter. Install Mask.io to upload and share first permanent decentralized file, powered by mainstream decentralized storage solutions.",
"promote_savings": "Hi friends, I just deposit {{amount}} {{symbol}} on {{chain}}. Follow @{{account}} to find more staking projects.",
"promote_collectible": "Display collectibles in variable NFT marketplaces, make an offer directly on social media. Install Mask.io to try to browse NFTs directly on Twitter.",
"promote_snapshot": "Want to actively participate in proposal vote and move projects forward? Install Mask.io to vote proposals directly on Twitter.",
"database_backup": "Backup Database",
"database_overwrite": "Overwrite Database with backup",
"database_clear": "Clear Database",
Expand Down Expand Up @@ -46,9 +53,13 @@
"application_settings_tab_plug_app-listed-placeholder": "Click the application icon to hide in the APP list.",
"application_settings_tab_plug_app-unlisted-placeholder": "Click the application icon to list it on the App board.",
"additional_post_box__encrypted_post_pre": "Decrypt this post with #mask_io ! {{encrypted}}",
"additional_post_box__encrypted_post_pre_red_packet_twitter_official_account": "Hi, claim this lucky drop with #mask_io @{{account}} {{encrypted}}",
"additional_post_box__encrypted_post_pre_red_packet": "Hi, claim this lucky drop with #mask_io {{encrypted}}",
"additional_post_box__steganography_post_pre": "This image is encrypted with #mask_io. 📪🔑 Install mask.io to decrypt it. {{random}}",
"additional_post_box__encrypted_post_pre_red_packet_twitter_official_account": "Hi, claim this lucky drop with #mask_io @{{account}} \n\n$t(promote_red_packet)\n {{encrypted}}",
"additional_post_box__encrypted_post_pre_red_packet": "Hi, claim this lucky drop with #mask_io\n$t(promote_red_packet) {{encrypted}}",
"additional_post_box__encrypted_post_pre_ito_twitter_official_account": "$t(promote_ito)\n {{encrypted}}",
"additional_post_box__encrypted_post_pre_ito": "$t(promote_ito) {{encrypted}}",
"additional_post_box__encrypted_post_pre_file_service_twitter_official_account": "$t(promote_file_service)\n {{encrypted}}",
"additional_post_box__encrypted_post_pre_file_service": "$t(promote_file_service) {{encrypted}}",
"additional_post_box__steganography_post_pre": "This image is encrypted with #mask_io.\n{{random}}\n$t(promote_red_packet)\n",
"auto_paste_failed_dialog_title": "Paste manually",
"auto_paste_failed_dialog_content": "Please copy the following text and image (if there is any) and publish it.",
"auto_paste_failed_dialog_image_caption": "Open in a new tab",
Expand Down Expand Up @@ -133,6 +144,9 @@
"user_guide_tip_2": "Connect and switch your wallet.",
"user_guide_tip_3": "Browse the Web 3 footprints of your Twitter friends, enjoy the freedom of Web 3.",
"user_guide_tip_4": "Click here to have a quick start.",
"plugin_avatar_setup_share_title": "NFT PFP",
"plugin_avatar_setup_pfp_share": "I just set my NFT PFP using Mask Extension for free! To browse other's unique NFT collections and web3 activities on Twitter, download the most powerful tool mask.io.",
"plugin_avatar_setup_success": "Set NFT PFP successfully.",
"mask_network": "Mask Network",
"import": "Import",
"no_search_result": "No result",
Expand Down Expand Up @@ -162,7 +176,6 @@
"reset": "Reset",
"editor": "Editor",
"retry": "Retry",
"search": "Search",
"go_wrong": "Something went wrong.",
"search_box_placeholder": "Type here to search",
"select_all": "Select All",
Expand All @@ -185,9 +198,6 @@
"wallet_load_retry": "Failed to load {{symbol}}. Click to retry.",
"wallet_name": "Wallet Name",
"wallet_rename": "Rename Wallet",
"wallet_add_nft_invalid_owner": "The collectible does not belong to you.",
"wallet_add_nft_already_added": "The collectible has already been added.",
"wallet_loading_token": "Loading token...",
"wallet_loading_nft_contract": "Loading NFT contract...",
"wallet_search_contract_no_result": "No results or contract address does not meet the query criteria.",
"wallet_search_no_result": "No results.",
Expand Down Expand Up @@ -268,7 +278,6 @@
"relative_time_months_ago": "{{months}} months ago",
"relative_time_seconds_ago": "{{seconds}} seconds ago",
"relative_time_years_ago": "{{years}} years ago",
"plugin_chain_not_supported": "Not supported on {{chain}} yet.",
"plugin_wallet_snackbar_wait_for_confirming": "Confirm this transaction in your wallet",
"plugin_wallet_snackbar_hash": "Transaction Submitted",
"plugin_wallet_snackbar_confirmed": "Transaction Confirmed",
Expand All @@ -284,8 +293,6 @@
"plugin_wallet_connecting_with": "Connecting with",
"plugin_wallet_metamask_error_already_request": "You've opened the popup, please confirm.",
"plugin_wallet_connect_tip": "Please make sure that your {{providerName}} wallet is provided by the offical <providerLink>{{providerShortenLink}}</providerLink>.",
"plugin_wallet_collections": "Collections",
"plugin_wallet_select_a_token": "Select a Token",
"plugin_wallet_select_a_nft_contract": "Select an NFT Contract",
"plugin_wallet_select_a_nft_owner": "Select an NFT Contract Owner",
"plugin_wallet_select_a_nft_operator": "Select an NFT Contract Operator",
Expand Down Expand Up @@ -337,93 +344,14 @@
"plugin_wallet_name_placeholder": "Enter 1-12 characters",
"plugin_wallet_cancel_sign": "Signature canceled.",
"plugin_nft_avatar_recommend_feature_description": "Set your NFT as profile picture with exclusive aura",
"plugin_red_packet_display_name": "Plugin: Lucky Drop",
"application_hint": "Socialize and show off your NFTs. People can bid,buy, view your valuable NFTs without leaving Twitter.",
"plugin_red_packet_claimed": "Claimed",
"plugin_red_packet_erc20_tab_title": "Token",
"plugin_red_packet_erc721_tab_title": "Collectibles",
"plugin_red_packet_name": "Lucky Drop",
"plugin_red_packet_recommend_feature_description": "Astonish your friends with a surprise gift",
"plugin_red_packet_description": "Gift crypto or NFTs to any users, first come, first served.",
"plugin_red_packet_erc721_insufficient_balance": "Insufficient Balance",
"plugin_red_packet_details": "Lucky Drop Details",
"plugin_red_packet_split_mode": "Split Mode",
"plugin_red_packet_average": "Average",
"plugin_red_packet_random": "Random",
"plugin_red_packet_shares": "Shares",
"plugin_red_packet_best_wishes": "Best Wishes!",
"plugin_red_packet_create_new": "New",
"plugin_red_packet_claim": "Claim",
"plugin_red_packet_claiming": "Claiming...",
"plugin_red_packet_refund": "Refund",
"plugin_red_packet_empty": "Empty",
"plugin_red_packet_data_broken": "The Lucky Drop can’t be sent due to data damage. Please withdraw the assets after {{duration}}.",
"plugin_red_packet_refunding": "Refunding",
"plugin_red_packet_select_existing": "Past",
"plugin_red_packet_share_unclaimed_message_official_account": "Hi friends, I just found a lucky drop sent by @{{sender}} on {{network}} network. Follow @{{account}} (mask.io) to claim lucky drops.\n#mask_io #LuckyDrop\n{{payload}}",
"plugin_red_packet_share_unclaimed_message_not_twitter": "Hi friends, I just found a lucky drop sent by @{{sender}} on {{network}} network. \n{{payload}}",
"plugin_red_packet_share_message_official_account": "I just claimed a lucky drop from @{{sender}} on {{network}} network. Follow @{{account}} (mask.io) to claim lucky drops.\n#mask_io #LuckyDrop\n{{payload}}",
"plugin_red_packet_share_message_not_twitter": "I just claimed a lucky drop from @{{sender}} on {{network}} network. \n{{payload}}",
"plugin_red_packet_nft_share_foreshow_message": "@{{sender}} is sending an NFT lucky drop on {{network}} network. Follow @{{account}} (mask.io) to claim NFT lucky drops.\n#mask_io #LuckyDrop\n{{payload}}",
"plugin_red_packet_nft_share_foreshow_message_not_twitter": "@{{sender}} is sending an NFT lucky drop on {{network}} network. \n{{payload}}",
"plugin_red_packet_nft_share_claimed_message": "I just claimed an NFT lucky drop from @{{sender}} on {{network}} network. Follow @{{account}} (mask.io) to claim NFT lucky drops.\n#mask_io #LuckyDrop\n{{payload}}",
"plugin_red_packet_nft_share_claimed_message_not_twitter": "I just claimed an NFT lucky drop from @{{sender}} on {{network}} network. \n{{payload}}",
"plugin_red_packet_nft_tip": "This is an NFT lucky drop.",
"plugin_red_packet_nft_no_history": "You haven’t created any NFT lucky drop yet. Try to create and share lucky with your friends.",
"plugin_red_packet_attached_message": "Attached Message",
"plugin_red_packet_from": "From: @{{name}}",
"plugin_red_packet_description_claimed": "You got {{amount}} {{symbol}}",
"plugin_red_packet_description_expired": "The Lucky Drop is expired.",
"plugin_red_packet_description_refunded": "The Lucky Drop has been refunded.",
"plugin_red_packet_description_refund": "You could refund {{balance}} {{symbol}}.",
"plugin_red_packet_description_empty": "The Lucky Drop is empty.",
"plugin_red_packet_description_broken": "The Lucky Drop is broken.",
"plugin_red_packet_description_failover": "{{shares}} shares / {{total}} {{symbol}}",
"plugin_red_packet_amount_per_share": "Amount per Share",
"plugin_red_packet_send_symbol": "Send {{amount}} {{symbol}}",
"plugin_red_packet_amount_total": "Amount Total",
"plugin_red_packet_next": "Next",
"plugin_red_packet_back": "Back",
"plugin_red_packet_hint": "You can withdraw the remaining balance 24 hours after the Lucky Drop is sent.",
"plugin_red_packet_token": "Token",
"plugin_red_packet_message_label": "Title",
"plugin_red_packet_create": "Create a Lucky Drop",
"plugin_red_packet_create_with_token": "Create a Lucky Drop with {{amount}} {{symbol}}",
"plugin_red_packet_history_duration": "Time: {{startTime}} ~ {{endTime}} (UTC+8)",
"plugin_red_packet_history_total_amount": "Total Amount: {{amount}} {{symbol}}",
"plugin_red_packet_history_total_claimed_amount": "Total: <span><strong>{{claimedAmount}}/{{amount}}</strong></span> {{symbol}}",
"plugin_red_packet_history_claimed": "Claimed: <strong>{{claimedShares}}/{{shares}}</strong> Share",
"plugin_red_packet_history_split_mode": "Split Mode: {{mode}}",
"plugin_red_packet_history_send": "Send",
"plugin_nft_red_packet_create": "Create an NFT Lucky Drop",
"plugin_red_packet_nft_account_name": "Wallet account",
"plugin_red_packet_nft_attached_message": "Attached Message",
"plugin_red_packet_nft_total_amount": "Total Amount",
"plugin_red_packet_nft_select_collection": "Choose your collection",
"plugin_red_packet_nft_max_shares": "The maximum number of NFTs to be sold in NFT lucky drop contract is {{amount}}.",
"plugin_red_packet_nft_max_shares_tip": "The NFT lucky drop supports up to {{amount}} NFTs selected for one time.",
"plugin_red_packet_nft_shift_select_tip": "You can also use <text>{{text}}</text> to select multiple NFTs.",
"plugin_red_packet_nft_non_existed_tip": "Token ID <tokenIdList></tokenIdList> does not exist or belong to you.",
"plugin_red_packet_nft_select_all_option": "ALL ({{total}} NFT)",
"plugin_red_packet_nft_select_partially_option": "Select partially",
"plugin_red_packet_nft_unapproved_tip": "You can get the rest of your NFTs back after 24 hours of sending.",
"plugin_red_packet_nft_approve_all_tip": "Note: When selecting approve all, all NFTs in the contract will be authorized for sale by default, including the NFTs transfered later.",
"plugin_red_packet_completed": "Completed",
"plugin_red_packet_expired": "Expired",
"plugin_red_packet_indivisible": "The minimum amount for each share is {{amount}} {{symbol}}",
"plugin_nft_red_packet_data_broken": "The Lucky Drop can’t be sent due to data damage.",
"plugin_gitcoin_readme": "By using this service, you will also be contributing 5% of your contribution to the <fund>Gitcoin grants development fund</fund>.",
"plugin_gitcoin_readme_fund_link": "https://gitcoin.co/grants/86/gitcoin-sustainability-fund",
"plugin_gitcoin_select_a_token": "Select a token",
"plugin_gitcoin_name": "Gitcoin",
"plugin_gitcoin_description": "Display specific information of Gitcoin projects, donate to a project directly on social media.",
"plugin_gitcoin_enter_an_amount": "Enter an amount",
"plugin_gitcoin_grant_not_available": "Grant not available",
"plugin_gitcoin_insufficient_balance": "Insufficient {{symbol}} balance",
"plugin_gitcoin_donate": "Donate",
"plugin_gitcoin_last_updated": "Last update:",
"plugin_gitcoin_by": "By",
"plugin_gitcoin_view_on": "View on Gitcoin",
"plugin_trader_fail_to_load": "Fail to load trending info from ",
"plugin_trader_lbp_pool_in_balancer": "LBP Pool in Balancer",
"plugin_trader_swap_description": "Pop-up trading widget allows you to instantly view prices of the hottest Crypto/Stock and trade, also invest in the best performing managers.",
Expand Down Expand Up @@ -612,10 +540,10 @@
"plugin_ito_qualification_failed": "The wallet address isn't on the list.",
"plugin_ito_congratulations": "Congratulations!",
"plugin_ito_out_of_stock_hit": "Better luck next time",
"plugin_ito_claim_success_share": "I just attended @{{user}}'s #ITO with @{{account}} to swap ${{symbol}}. Install mask.io and start your own Initial Twitter Offering! \n {{link}}",
"plugin_ito_claim_success_share_no_official_account": "I just attended @{{user}}'s #ITO to swap ${{symbol}}. Install mask.io and start your own Initial Twitter Offering! \n {{link}}",
"plugin_ito_claim_foreshow_share": "{{symbol}}({{name}}) is launching a new #ITO. Come and join it! Follow @{{account}} (mask.io) to find more events! \n {{link}}",
"plugin_ito_claim_foreshow_share_no_official_account": "{{symbol}}({{name}}) is launching a new #ITO. Come and join it! \n {{link}}",
"plugin_ito_claim_success_share": "I just attended @{{user}}'s #ITO with @{{account}} to swap ${{symbol}}.\n$t(promote_ito_short)\n{{link}}",
"plugin_ito_claim_success_share_no_official_account": "I just attended @{{user}}'s #ITO to swap ${{symbol}}.\n$t(promote_ito_short)\n{{link}}",
"plugin_ito_claim_foreshow_share": "{{symbol}}({{name}}) is launching a new #ITO. Come and join it! Follow @{{account}} (mask.io) to find more events! \n {{link}}\n$t(promote_ito_short)\n",
"plugin_ito_claim_foreshow_share_no_official_account": "{{symbol}}({{name}}) is launching a new #ITO. Come and join it! \n {{link}}\n$t(promote_ito_short)\n",
"plugin_ito_password": "Password: {{password}}",
"plugin_ito_status_no_start": "Not started",
"plugin_ito_status_ongoing": "Ongoing",
Expand Down
22 changes: 0 additions & 22 deletions packages/mask/shared-ui/locales/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"post_modal_hint__button": "投稿を暗号化",
"hide": "隠す",
"reset": "リセットする",
"search": "検索",
"search_box_placeholder": "ここに打って検索",
"select_all": "全て選ぶ",
"select_none": "何も選んでいません。",
Expand Down Expand Up @@ -77,7 +76,6 @@
"relative_time_months_ago": "{{months}}月前",
"relative_time_seconds_ago": "{{seconds}}秒前",
"relative_time_years_ago": "{{years}}年前",
"plugin_wallet_select_a_token": "トークンを選択",
"plugin_wallet_connect_a_wallet": "ウォレットと接続",
"plugin_wallet_no_gas_fee": "ガス代が不足しています",
"plugin_wallet_update_gas_fee": "ガス代を更新中…",
Expand Down Expand Up @@ -105,26 +103,6 @@
"plugin_wallet_on_connect_in_firefox": "接続する",
"plugin_wallet_return_mobile_wallet_options": "モバイルウォレットのオプションに戻る",
"plugin_wallet_view_qr_code": "QR コードを表示する",
"plugin_red_packet_display_name": "プラグイン: 投げ銭",
"plugin_red_packet_split_mode": "分割モード",
"plugin_red_packet_average": "平均",
"plugin_red_packet_random": "ランダム",
"plugin_red_packet_shares": "株数",
"plugin_red_packet_best_wishes": "幸運を祈ります!",
"plugin_red_packet_create_new": "新しい投げ銭を作成",
"plugin_red_packet_claim": "受け取る",
"plugin_red_packet_refund": "無効",
"plugin_red_packet_select_existing": "既存の投げ銭を選択",
"plugin_red_packet_attached_message": "メッセージを追加",
"plugin_red_packet_from": "送信者:{{name}}",
"plugin_red_packet_description_expired": "期限切れです",
"plugin_red_packet_description_refunded": "無効です",
"plugin_red_packet_description_refund": "{{balance}}{{symbol}}を受け取れます",
"plugin_red_packet_description_empty": "期限切れです",
"plugin_red_packet_description_broken": "破損しています",
"plugin_red_packet_description_failover": "{{amount}} {{symbol}} / {{shares}} 株",
"plugin_red_packet_amount_per_share": "1株当たりの金額",
"plugin_red_packet_send_symbol": "{{symbol}} を送る",
"plugin_red_packet_create_with_token": "{{symbol}} で投げ銭を作成する",
"plugin_gitcoin_readme": "このサービスを利用するにあたり、寄付金額の 5% が <fund>Gitcoin grants development fund</fund> に寄付されます",
"plugin_gitcoin_select_a_token": "トークンを選択する",
Expand Down
Loading

0 comments on commit 0bf326e

Please sign in to comment.