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

Adds description to translations #905

Merged
merged 1 commit into from
Nov 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
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
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