chore: remove "official"/"unofficial" language for installation metho… · nodejs/nodejs.org@79b82ef · GitHub
Skip to content

Commit 79b82ef

Browse files
authored
chore: remove "official"/"unofficial" language for installation methods (#9210)
* Remove official/unofficial from installation methods * Remove official/unofficial from previous releases * Update translations * Empty changeset * New multiple versions criteria
1 parent 7c40136 commit 79b82ef

26 files changed

Lines changed: 36 additions & 598 deletions

‎.changeset/many-bananas-wish.md‎

Lines changed: 2 additions & 0 deletions

‎apps/site/components/Downloads/Release/InstallationMethodDropdown.tsx‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ const InstallationMethodDropdown: FC = () => {
2323
);
2424

2525
// We group Platforms on the Platform Dropdown to provide the User
26-
// understanding of what is recommended/official and what is not.
27-
const grouppedMethods = useMemo(
26+
// understanding of what is recommended and what is not.
27+
const groupedMethods = useMemo(
2828
() => [
2929
{
30-
label: t('layouts.download.dropdown.platformGroups.official'),
30+
label: t('layouts.download.dropdown.platformGroups.recommended'),
3131
items: parsedInstallMethods.filter(({ recommended }) => recommended),
3232
},
3333
{
34-
label: t('layouts.download.dropdown.platformGroups.unofficial'),
34+
label: t('layouts.download.dropdown.platformGroups.community'),
3535
items: parsedInstallMethods.filter(({ recommended }) => !recommended),
3636
},
3737
],
@@ -47,8 +47,8 @@ const InstallationMethodDropdown: FC = () => {
4747
if (release.os !== 'LOADING' && release.installMethod === '') {
4848
const installationMethod =
4949
// Sets either the utmost recommended platform or the first non-disabled one
50-
// Note that the first item of groupped platforms is always the recommended one
51-
nextItem<InstallationMethod | ''>('', grouppedMethods[0].items) ||
50+
// Note that the first item of grouped platforms is always the recommended one
51+
nextItem<InstallationMethod | ''>('', groupedMethods[0].items) ||
5252
nextItem<InstallationMethod | ''>('', parsedInstallMethods);
5353

5454
// This will never return an empty string as there should always be an item
@@ -75,7 +75,7 @@ const InstallationMethodDropdown: FC = () => {
7575

7676
return (
7777
<Select<InstallationMethod | ''>
78-
values={grouppedMethods}
78+
values={groupedMethods}
7979
value={release.installMethod}
8080
loading={release.os === 'LOADING' || release.installMethod === ''}
8181
ariaLabel={t('layouts.download.dropdown.platform')}

‎apps/site/pages/ar/about/previous-releases.mdx‎

Lines changed: 0 additions & 52 deletions
This file was deleted.

‎apps/site/pages/en/about/previous-releases.mdx‎

Lines changed: 13 additions & 20 deletions

‎apps/site/pages/es/about/previous-releases.mdx‎

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)