Skip to content

Commit 2cadb0c

Browse files
committed
normalize endOfLife vs eol
1 parent 4204159 commit 2cadb0c

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

apps/site/components/EOL/Alert.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useTranslations } from 'next-intl';
44
import Link from '#site/components/Link';
55

66
const EOLAlert = () => {
7-
const t = useTranslations('components.endOfLife');
7+
const t = useTranslations('components.eolAlert');
88
return (
99
<AlertBox level="warning">
1010
{t('intro')}{' '}

apps/site/components/EOL/VulnerabilityChips/Chip/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const VulnerabilityChip: FC<VulnerabilityChipProps> = ({
2323
severity,
2424
count = 0,
2525
}) => {
26-
const t = useTranslations('components.endOfLife');
26+
const t = useTranslations('components.eolChip');
2727

2828
return (
2929
<Badge size="small" kind={SEVERITY_KIND_MAP[severity]} className="mr-0.5">

packages/i18n/src/locales/en.json

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,19 @@
176176
"unsupportedVersionWarning": "This version is out of maintenance. Please use a supported version. <link>Understand EOL support.</link>",
177177
"ltsVersionFeaturesNotice": "Want new features sooner? Get the <link>latest Node.js version</link> instead and try the latest improvements!"
178178
},
179+
"eolAlert": {
180+
"intro": "Commercial support for versions past the Maintenance LTS phase is available through our",
181+
"partner": "partner"
182+
},
183+
"eolChip": {
184+
"severity": {
185+
"unknown": "Unknown",
186+
"low": "Low",
187+
"medium": "Medium",
188+
"high": "High",
189+
"critical": "Critical"
190+
}
191+
},
179192
"eolModal": {
180193
"title": "Node.js v{version} ({codename}) has reached EOL",
181194
"titleWithoutCodename": "Node.js v{version} has reached EOL",
@@ -286,17 +299,6 @@
286299
"subtitle": "The latest Node.js news, case studies, tutorials, and resources.",
287300
"rssLink": "RSS feed"
288301
}
289-
},
290-
"endOfLife": {
291-
"intro": "Commercial support for versions past the Maintenance LTS phase is available through our",
292-
"partner": "partner",
293-
"severity": {
294-
"unknown": "Unknown",
295-
"low": "Low",
296-
"medium": "Medium",
297-
"high": "High",
298-
"critical": "Critical"
299-
}
300302
}
301303
},
302304
"layouts": {

0 commit comments

Comments
 (0)