Skip to content

Commit 947ea35

Browse files
committed
use rich translation for EOLAlertBox
1 parent f63e6b6 commit 947ea35

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

apps/site/components/EOL/EOLAlert/index.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@ const EOLAlert = () => {
77
const t = useTranslations();
88
return (
99
<AlertBox level="warning">
10-
{t('components.eolAlert.intro')}{' '}
11-
<Link href="/eol">
12-
OpenJS Ecosystem Sustainability Program{' '}
13-
{t('components.eolAlert.partner')} HeroDevs
14-
</Link>
10+
{t.rich('components.eolAlert.message', {
11+
link: text => <Link href="/eol">{text}</Link>,
12+
})}
1513
</AlertBox>
1614
);
1715
};

packages/i18n/src/locales/en.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,7 @@
177177
"ltsVersionFeaturesNotice": "Want new features sooner? Get the <link>latest Node.js version</link> instead and try the latest improvements!"
178178
},
179179
"eolAlert": {
180-
"intro": "Commercial support for versions past the Maintenance LTS phase is available through our",
181-
"partner": "partner"
180+
"message": "Commercial support for versions past the Maintenance LTS phase is available through our <link>OpenJS Ecosystem Sustainability Program partner HeroDevs</link>"
182181
},
183182
"eolChip": {
184183
"severity": {

0 commit comments

Comments
 (0)