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:
@ -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/",
|
||||
|
@ -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/"
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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/",
|
||||
|
@ -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/",
|
||||
|
@ -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/",
|
||||
|
@ -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/",
|
||||
|
@ -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>
|
||||
|
@ -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/'
|
||||
);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user