Skip to content

Commit

Permalink
Merge pull request #905 from brave/translation-desc
Browse files Browse the repository at this point in the history
Adds description to translations
  • Loading branch information
NejcZdovc committed Nov 14, 2018
1 parent 8b09b21 commit 7dc258d
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 52 deletions.
Original file line number Diff line number Diff line change
@@ -1,192 +1,188 @@
{
"braveRewards": {
"message": "Brave Rewards",
"description": ""
"description": "Title in welcome screen for the panel"
},
"welcomeButtonTextOne": {
"message": "Start Earning Now!",
"description": ""
"description": "CTA on welcome screen in the panel, existing users"
},
"welcomeButtonTextTwo": {
"message": "Join Rewards",
"description": ""
"description": "CTA on welcome screen in the panel, new users"
},
"welcomeDescOne": {
"message": "Get paid for viewing ads and pay it forward to support your favorite content creators.",
"description": ""
"description": "Entry text for welcome screen in the panel, existing user"
},
"welcomeDescTwo": {
"message": "You can now earn tokens for watching privacy-respecting ads.",
"description": ""
"description": "Entry text for welcome screen in the panel, new user"
},
"welcomeFooterTextOne": {
"message": "Check out what’s improved",
"description": ""
"description": "Link in the footer (takes you to rewards settings page) for welcome screen in the panel, existing user"
},
"welcomeFooterTextTwo": {
"message": "Learn More",
"description": ""
"description": "Link in the footer (takes you to rewards settings page) for welcome screen in the panel, new user"
},
"welcomeHeaderOne": {
"message": "We’ve given Brave Payments a big upgrade.",
"description": ""
"description": "Main header title for welcome screen in the panel, existing user"
},
"welcomeHeaderTwo": {
"message": "Get ready to experience the next Internet.",
"description": ""
"description": "Main header title for welcome screen in the panel, new user"
},
"yourWallet": {
"message": "Your wallet",
"description": ""
"description": "Title of wallet section where we display data about wallet"
},
"grants": {
"message": "Grants",
"description": ""
"description": "Title for grant section in wallet summary"
},
"on": {
"message": "on",
"description": ""
"description": "The whole string is 'Enable tips on YouTube for like.'"
},
"verifiedPublisher": {
"message": "Brave Verified Publisher",
"description": ""
"description": "Tells user that this particular publisher is verified publisher"
},
"rewardsContributeAttentionScore": {
"message": "Attention",
"description": ""
"description": "Label for auto contribute table attention for the publisher"
},
"donateMonthly": {
"message": "Tip this site monthly",
"description": ""
"description": "Label for drop down menu where user select amount for monthly contribution for particular publisher"
},
"includeInAuto": {
"message": "Include in Auto-Contribute",
"description": ""
"description": "Label for checkbox that allows user to exclude publishers from auto contribute"
},
"donateNow": {
"message": "Send a Tip…",
"description": ""
"description": "CTA for sending tip form site banner"
},
"enableTips": {
"message": "Enable Tips",
"description": ""
"description": "The whole string is 'Enable tips on YouTube for like.'"
},
"for": {
"message": "for",
"description": ""
"description": "The whole string is 'Enable tips on YouTube for like.'"
},
"rewardsSummary": {
"message": "Rewards Summary",
"description": ""
"description": "Section title in wallet panel, which contains monthly rewards summary"
},
"monthApr": {
"message": "April",
"description": ""
"description": "Month"
},
"monthAug": {
"message": "August",
"description": ""
"description": "Month"
},
"monthDec": {
"message": "December",
"description": ""
"description": "Month"
},
"monthFeb": {
"message": "February",
"description": ""
"description": "Month"
},
"monthJan": {
"message": "January",
"description": ""
"description": "Month"
},
"monthJul": {
"message": "July",
"description": ""
"description": "Month"
},
"monthJun": {
"message": "June",
"description": ""
"description": "Month"
},
"monthMar": {
"message": "March",
"description": ""
"description": "Month"
},
"monthMay": {
"message": "May",
"description": ""
"description": "Month"
},
"monthNov": {
"message": "November",
"description": ""
"description": "Month"
},
"monthOct": {
"message": "October",
"description": ""
"description": "Month"
},
"monthSep": {
"message": "September",
"description": ""
"description": "Month"
},
"tokenGrant": {
"message": "Token Grant",
"description": ""
"description": "Title for grant section in wallet summary"
},
"earningsAds": {
"message": "Earnings from Ads",
"description": ""
"description": "Title for ads section in wallet summary"
},
"rewardsContribute": {
"message": "Auto-Contribute",
"description": ""
"description": "Title for auto contribute section in wallet summary"
},
"oneTimeDonation": {
"message": "One-Time Tips",
"description": ""
},
"total": {
"message": "Total",
"description": ""
"description": "Title for one time tips section in wallet summary"
},
"expiresOn": {
"message": "expires on",
"description": ""
"description": "Used for grant representation. Whole string is '30.0 BAT expires on 08/05/2022'"
},
"recurringDonations": {
"message": "Monthly Tips",
"description": ""
"description": "Title for monthly tips section in wallet summary"
},
"off": {
"message": "Off",
"description": ""
"description": "Label used in toggle indicating that toggle is off"
},
"ok": {
"message": "ok",
"description": ""
"description": "Used in notification to dismiss notification"
},
"braveAdsTitle": {
"message": "Brave Ads",
"description": ""
"description": "Notification title when we display info about ads"
},
"braveContributeTitle": {
"message": "Auto-Contribute",
"description": ""
"description": "Notification title when we display info about auto contribution"
},
"contributeNotification": {
"message": "You've contributed $amount$BAT",
"description": "",
"message": "You've contributed $amount$ BAT",
"description": "Description for successful contribution notification",
"placeholders": {
"amount": {
"content": "$1",
"example": "10"
"example": "10.0"
}
}
},
"grantNotification": {
"message": "You have a grant waiting for you.",
"description": ""
"description": "Description for new grant notification"
},
"braveRewardsCreatingText": {
"message": "Creating wallet",
"description": ""
"description": "Used in a button displaying wallet creation process"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export const getMessage = (message: string, substitutions?: string[]): string =>

export const getUIMessages = (): Record<string, string> => {
const strings = [
'braveAdsTitle',
'braveRewards',
'braveRewardsCreatingText',
'donateMonthly',
'donateNow',
'earningsAds',
Expand All @@ -44,14 +46,14 @@ export const getUIMessages = (): Record<string, string> => {
'monthOct',
'monthSep',
'off',
'ok',
'on',
'oneTimeDonation',
'recurringDonations',
'rewardsContribute',
'rewardsContributeAttentionScore',
'rewardsSummary',
'tokenGrant',
'total',
'verifiedPublisher',
'welcomeButtonTextOne',
'welcomeButtonTextTwo',
Expand Down

0 comments on commit 7dc258d

Please sign in to comment.