Skip to content

Commit

Permalink
Make sentence case sentence case again!
Browse files Browse the repository at this point in the history
  • Loading branch information
mini-bomba committed Nov 20, 2024
1 parent cb73464 commit 29212e5
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions src/submission/SubmissionComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -500,19 +500,25 @@ export function getChatDisplayName(chatDisplayName: ChatDisplayName | null): str
function getTips(): React.ReactElement[] {
const tipInfo = [{
icon: PersonIcon,
text: chrome.i18n.getMessage("tip1")
text: chrome.i18n.getMessage("tip1"),
forcedFormatting: null,
}, {
icon: QuestionIcon,
text: chrome.i18n.getMessage("tip2")
text: chrome.i18n.getMessage("tip2"),
forcedFormatting: null,
}, {
icon: ExclamationIcon,
text: chrome.i18n.getMessage("tip3")
text: chrome.i18n.getMessage("tip3"),
forcedFormatting: null,
}, {
icon: CursorIcon,
text: chrome.i18n.getMessage("tip4")
text: chrome.i18n.getMessage("tip4"),
forcedFormatting: null,
}, {
icon: FontIcon,
text: chrome.i18n.getMessage("tip5")
text: chrome.i18n.getMessage("tip5"),
// let the translators capitalise the tip as needed for the language
forcedFormatting: TitleFormatting.Disable,
}];

return tipInfo.map((tip, i) => (
Expand All @@ -521,7 +527,7 @@ function getTips(): React.ReactElement[] {
<span className="cbTipText">
<FormattedText
text={tip.text}
titleFormatting={Config.config!.titleFormatting}
titleFormatting={tip.forcedFormatting ?? Config.config!.titleFormatting}
/>
</span>
</div>
Expand Down Expand Up @@ -573,4 +579,4 @@ function createWarningTooltip(reason: string, name: ChatDisplayName) {
}],
});
}
}
}

0 comments on commit 29212e5

Please sign in to comment.