diff --git a/docs-ui/src/components/Changelog/index.tsx b/docs-ui/src/components/Changelog/index.tsx index b38972259a..7f671adcb8 100644 --- a/docs-ui/src/components/Changelog/index.tsx +++ b/docs-ui/src/components/Changelog/index.tsx @@ -45,7 +45,7 @@ export function Changelog() { const toTitleCase = (kebabCase: string) => { return kebabCase .split('-') - .map(word => word.charAt(0).toUpperCase() + word.slice(1)) + .map(word => word.charAt(0).toLocaleUpperCase('en-US') + word.slice(1)) .join(' '); }; @@ -127,7 +127,7 @@ export function Changelog() { const breakingBadge = e.breaking ? ' ' : ''; // Remove **BREAKING**: text from description since we show it as a badge - let description = e.description.replace( + const description = e.description.replace( /\*\*BREAKING\*\*:?\s*/, '', );