update reward i18n

This commit is contained in:
Jeremy Kauffman 2020-01-03 16:52:36 -05:00
parent 5843ca7a37
commit d401dbaf7c
2 changed files with 6 additions and 4 deletions

View file

@ -940,5 +940,7 @@
"%view_count% Views": "%view_count% Views",
"1 View": "1 View",
"There was an error. It's been reported and will be fixed. Try %refreshing_the_app_link% to fix it. If that doesn't work, try pressing Ctrl+R/Cmd+R.": "There was an error. It's been reported and will be fixed. Try %refreshing_the_app_link% to fix it. If that doesn't work, try pressing Ctrl+R/Cmd+R.",
"Upload your thumbnail to %speech_link%. Recommended size is 16:9.": "Upload your thumbnail to %speech_link%. Recommended size is 16:9."
}
"Upload your thumbnail to %speech_link%. Recommended size is 16:9.": "Upload your thumbnail to %speech_link%. Recommended size is 16:9.",
"Get %amount% LBC": "Get %amount% LBC",
"Get %range% LBC": "Get %range% LBC"
}

View file

@ -23,9 +23,9 @@ const RewardLink = (props: Props) => {
} else if (label) {
displayLabel = label;
} else if (reward && reward.reward_range && reward.reward_range.includes('-')) {
displayLabel = `${__('Get')} ${reward.reward_range} LBC`;
displayLabel = __('Get %range% LBC', { range: reward.reward_range });
} else if (reward && reward.reward_amount > 0) {
displayLabel = `${__('Get')} ${reward.reward_amount} LBC`;
displayLabel = __('Get %amount% LBC', { amount: reward.reward_amount });
} else {
displayLabel = __('Get ??? LBC');
}