fix(client): use en top contributor link for i18n (#43248)

* Changes made as directed in the instructions

* second revision

* Third revision

* Cypress Test updated

* cypress test updation

* directly linking to top-contributors news page

Co-authored-by: Ilenia <nethleen@gmail.com>
This commit is contained in:
Mohamed Naufal A
2021-08-23 19:50:28 +04:00
committed by GitHub
parent a44c2e4b8f
commit 498805c235
8 changed files with 11 additions and 2 deletions

View File

@ -1,5 +1,6 @@
{
"help-translate-url": "https://contribute.freecodecamp.org/#/i18n/chinese/how-to-translate-files",
"top-contributors": "https://www.freecodecamp.org/news/freecodecamp-top-contributors/",
"footer": {
"about-url": "https://chinese.freecodecamp.org/news/about/",
"shop-url": "https://www.freecodecamp.org/shop/",

View File

@ -1,5 +1,6 @@
{
"help-translate-url": "https://contribute.freecodecamp.org/#/i18n/chinese/how-to-translate-files",
"top-contributors": "https://www.freecodecamp.org/news/freecodecamp-top-contributors/",
"footer": {
"about-url": "https://chinese.freecodecamp.org/news/about/",
"shop-url": "https://www.freecodecamp.org/shop/",
@ -18,4 +19,5 @@
"forum": "https://chinese.freecodecamp.org/forum/",
"news": "https://chinese.freecodecamp.org/news/"
}
}

View File

@ -1,5 +1,6 @@
{
"help-translate-link-url": "https://contribute.freecodecamp.org/#/how-to-translate-files",
"top-contributors": "https://www.freecodecamp.org/news/freecodecamp-top-contributors/",
"footer": {
"about-url": "https://www.freecodecamp.org/news/about/",
"shop-url": "https://www.freecodecamp.org/shop/",

View File

@ -1,5 +1,6 @@
{
"help-translate-link-url": "https://contribute.freecodecamp.org/#/i18n/espanol/how-to-translate-files",
"top-contributors": "https://www.freecodecamp.org/news/freecodecamp-top-contributors/",
"footer": {
"about-url": "https://www.freecodecamp.org/espanol/news/acerca-de-freecodecamp-preguntas-frecuentes/",
"shop-url": "https://www.freecodecamp.org/shop/",

View File

@ -1,5 +1,6 @@
{
"help-translate-link-url": "https://contribute.freecodecamp.org/#/i18n/italian/how-to-translate-files",
"top-contributors": "https://www.freecodecamp.org/news/freecodecamp-top-contributors/",
"footer": {
"about-url": "https://www.freecodecamp.org/news/about/",
"shop-url": "https://www.freecodecamp.org/shop/",

View File

@ -1,5 +1,6 @@
{
"help-translate-link-url": "https://contribute.freecodecamp.org/#/i18n/portuguese/how-to-translate-files",
"top-contributors": "https://www.freecodecamp.org/news/freecodecamp-top-contributors/",
"footer": {
"about-url": "https://www.freecodecamp.org/news/about/",
"shop-url": "https://www.freecodecamp.org/shop/",

View File

@ -129,7 +129,9 @@ function Camper({
<br />
<p className='text-center yearsTopContributor'>
<FontAwesomeIcon icon={faAward} />{' '}
<Link to={'/top-contributors'}>{t('profile.contributor')}</Link>
<Link to={t('links:top-contributors')}>
{t('profile.contributor')}
</Link>
</p>
<p className='text-center'>{joinArray(yearsTopContributor, t)}</p>
</div>

View File

@ -32,7 +32,7 @@ describe('Top contributor in user profile', () => {
cy.contains('Top Contributor').should(
'have.attr',
'href',
'/top-contributors'
'https://www.freecodecamp.org/news/freecodecamp-top-contributors/'
);
});