Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ exports[`NodeFeatures should render 1`] = `
<h2
class="t-subheading2"
>
pages.index.features.javascript.title
components.home.nodeFeatures.javascript.title
</h2>
<p>
pages.index.features.javascript.description
components.home.nodeFeatures.javascript.description
</p>
</div>
<div
Expand All @@ -56,10 +56,10 @@ exports[`NodeFeatures should render 1`] = `
<h2
class="t-subheading2"
>
pages.index.features.openSource.title
components.home.nodeFeatures.openSource.title
</h2>
<p>
pages.index.features.openSource.description
components.home.nodeFeatures.openSource.description
</p>
</div>
<div
Expand All @@ -86,10 +86,10 @@ exports[`NodeFeatures should render 1`] = `
<h2
class="t-subheading2"
>
pages.index.features.everywhere.title
components.home.nodeFeatures.everywhere.title
</h2>
<p>
pages.index.features.everywhere.description
components.home.nodeFeatures.everywhere.description
</p>
</div>
</section>
Expand Down
12 changes: 6 additions & 6 deletions components/Home/NodeFeatures/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ const styled = (icon: ReactElement): ReactElement =>
const features = [
{
icon: styled(<IoLogoNodejs />),
heading: 'pages.index.features.javascript.title',
description: 'pages.index.features.javascript.description',
heading: 'components.home.nodeFeatures.javascript.title',
description: 'components.home.nodeFeatures.javascript.description',
},
{
icon: styled(<IoMdGitPullRequest />),
heading: 'pages.index.features.openSource.title',
description: 'pages.index.features.openSource.description',
heading: 'components.home.nodeFeatures.openSource.title',
description: 'components.home.nodeFeatures.openSource.description',
},
{
icon: styled(<IoMdRocket />),
heading: 'pages.index.features.everywhere.title',
description: 'pages.index.features.everywhere.description',
heading: 'components.home.nodeFeatures.everywhere.title',
description: 'components.home.nodeFeatures.everywhere.description',
},
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ exports[`Tests for Footer component renders correctly 1`] = `
rel="noopener noreferrer"
target="_blank"
>
components.footer.links.trademark
components.section.newfooter.trademark
</a>
</li>
<li>
Expand All @@ -27,7 +27,7 @@ exports[`Tests for Footer component renders correctly 1`] = `
rel="noopener noreferrer"
target="_blank"
>
components.footer.links.privacy
components.section.newfooter.privacy
</a>
</li>
<li>
Expand All @@ -37,31 +37,31 @@ exports[`Tests for Footer component renders correctly 1`] = `
rel="noopener noreferrer"
target="_blank"
>
components.footer.links.codeOfConduct
components.section.newfooter.codeOfConduct
</a>
</li>
<li>
<a
class="link"
href="/en/about/security"
>
components.footer.links.security
components.section.newfooter.security
</a>
</li>
<li>
<a
class="link"
href="/en/about"
>
components.footer.links.about
components.section.newfooter.about
</a>
</li>
<li>
<a
class="link"
href="/en/blog"
>
components.footer.links.blog
components.section.newfooter.blog
</a>
</li>
</ul>
Expand Down
12 changes: 6 additions & 6 deletions components/Sections/NewFooter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const Footer = () => (
rel="noopener noreferrer"
aria-label="Node.js Trademark Policy - PDF (Opens in new tab)"
>
<FormattedMessage id="components.footer.links.trademark" />
<FormattedMessage id="components.section.newfooter.trademark" />
</a>
</li>
<li>
Expand All @@ -25,7 +25,7 @@ const Footer = () => (
rel="noopener noreferrer"
aria-label="Node.js Privacy Policy - PDF (Opens in new tab)"
>
<FormattedMessage id="components.footer.links.privacy" />
<FormattedMessage id="components.section.newfooter.privacy" />
</a>
</li>
<li>
Expand All @@ -35,22 +35,22 @@ const Footer = () => (
href="https://github.com/openjs-foundation/cross-project-council/blob/main/CODE_OF_CONDUCT.md#contributor-covenant-code-of-conduct"
rel="noopener noreferrer"
>
<FormattedMessage id="components.footer.links.codeOfConduct" />
<FormattedMessage id="components.section.newfooter.codeOfConduct" />
</a>
</li>
<li>
<LocalizedLink className={styles.link} href="/about/security">
<FormattedMessage id="components.footer.links.security" />
<FormattedMessage id="components.section.newfooter.security" />
</LocalizedLink>
</li>
<li>
<LocalizedLink className={styles.link} href="/about">
<FormattedMessage id="components.footer.links.about" />
<FormattedMessage id="components.section.newfooter.about" />
</LocalizedLink>
</li>
<li>
<LocalizedLink className={styles.link} href="/blog">
<FormattedMessage id="components.footer.links.blog" />
<FormattedMessage id="components.section.newfooter.blog" />
</LocalizedLink>
</li>
</ul>
Expand Down
26 changes: 13 additions & 13 deletions i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,19 @@
"components.article.editLink.title.translate": "Interested to help with translations?",
"components.common.languageSelector.button.title": "Switch Language",
"components.blog.blogCard.author.by": "by",
"components.footer.links.trademark": "Trademark Policy",
"components.footer.links.privacy": "Privacy Policy",
"components.footer.links.codeOfConduct": "Code of Conduct",
"components.footer.links.security": "Security",
"components.footer.links.about": "About",
"components.footer.links.blog": "Blog",
"components.footer.links.github": "GitHub",
"components.section.newfooter.trademark": "Trademark Policy",
Comment thread
AugustinMauroy marked this conversation as resolved.
Outdated
"components.section.newfooter.privacy": "Privacy Policy",
"components.section.newfooter.codeOfConduct": "Code of Conduct",
"components.section.newfooter.security": "Security",
"components.section.newfooter.about": "About",
"components.section.newfooter.blog": "Blog",
"components.section.newfooter.github": "GitHub",
"components.prevnextlink.next": "NEXT",
Comment thread
AugustinMauroy marked this conversation as resolved.
Outdated
"components.prevnextlink.previous": "PREV",
"pages.index.features.javascript.title": "JavaScript",
"pages.index.features.javascript.description": "Node.js provides support for the JavaScript programming language",
"pages.index.features.openSource.title": "Open Source",
"pages.index.features.openSource.description": "Node.js is open source and actively maintained by contributors all over the world",
"pages.index.features.everywhere.title": "Everywhere",
"pages.index.features.everywhere.description": "Node.js has been adapted to work in a wide variety of places"
"components.home.nodeFeatures.javascript.title": "JavaScript",
"components.home.nodeFeatures.javascript.description": "Node.js provides support for the JavaScript programming language",
"components.home.nodeFeatures.openSource.title": "Open Source",
"components.home.nodeFeatures.openSource.description": "Node.js is open source and actively maintained by contributors all over the world",
"components.home.nodeFeatures.everywhere.title": "Everywhere",
"components.home.nodeFeatures.everywhere.description": "Node.js has been adapted to work in a wide variety of places"
}