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",
|
"help-translate-url": "https://contribute.freecodecamp.org/#/i18n/chinese/how-to-translate-files",
|
||||||
|
"top-contributors": "https://www.freecodecamp.org/news/freecodecamp-top-contributors/",
|
||||||
"footer": {
|
"footer": {
|
||||||
"about-url": "https://chinese.freecodecamp.org/news/about/",
|
"about-url": "https://chinese.freecodecamp.org/news/about/",
|
||||||
"shop-url": "https://www.freecodecamp.org/shop/",
|
"shop-url": "https://www.freecodecamp.org/shop/",
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"help-translate-url": "https://contribute.freecodecamp.org/#/i18n/chinese/how-to-translate-files",
|
"help-translate-url": "https://contribute.freecodecamp.org/#/i18n/chinese/how-to-translate-files",
|
||||||
|
"top-contributors": "https://www.freecodecamp.org/news/freecodecamp-top-contributors/",
|
||||||
"footer": {
|
"footer": {
|
||||||
"about-url": "https://chinese.freecodecamp.org/news/about/",
|
"about-url": "https://chinese.freecodecamp.org/news/about/",
|
||||||
"shop-url": "https://www.freecodecamp.org/shop/",
|
"shop-url": "https://www.freecodecamp.org/shop/",
|
||||||
@ -18,4 +19,5 @@
|
|||||||
"forum": "https://chinese.freecodecamp.org/forum/",
|
"forum": "https://chinese.freecodecamp.org/forum/",
|
||||||
"news": "https://chinese.freecodecamp.org/news/"
|
"news": "https://chinese.freecodecamp.org/news/"
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"help-translate-link-url": "https://contribute.freecodecamp.org/#/how-to-translate-files",
|
"help-translate-link-url": "https://contribute.freecodecamp.org/#/how-to-translate-files",
|
||||||
|
"top-contributors": "https://www.freecodecamp.org/news/freecodecamp-top-contributors/",
|
||||||
"footer": {
|
"footer": {
|
||||||
"about-url": "https://www.freecodecamp.org/news/about/",
|
"about-url": "https://www.freecodecamp.org/news/about/",
|
||||||
"shop-url": "https://www.freecodecamp.org/shop/",
|
"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",
|
"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": {
|
"footer": {
|
||||||
"about-url": "https://www.freecodecamp.org/espanol/news/acerca-de-freecodecamp-preguntas-frecuentes/",
|
"about-url": "https://www.freecodecamp.org/espanol/news/acerca-de-freecodecamp-preguntas-frecuentes/",
|
||||||
"shop-url": "https://www.freecodecamp.org/shop/",
|
"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",
|
"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": {
|
"footer": {
|
||||||
"about-url": "https://www.freecodecamp.org/news/about/",
|
"about-url": "https://www.freecodecamp.org/news/about/",
|
||||||
"shop-url": "https://www.freecodecamp.org/shop/",
|
"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",
|
"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": {
|
"footer": {
|
||||||
"about-url": "https://www.freecodecamp.org/news/about/",
|
"about-url": "https://www.freecodecamp.org/news/about/",
|
||||||
"shop-url": "https://www.freecodecamp.org/shop/",
|
"shop-url": "https://www.freecodecamp.org/shop/",
|
||||||
|
@ -129,7 +129,9 @@ function Camper({
|
|||||||
<br />
|
<br />
|
||||||
<p className='text-center yearsTopContributor'>
|
<p className='text-center yearsTopContributor'>
|
||||||
<FontAwesomeIcon icon={faAward} />{' '}
|
<FontAwesomeIcon icon={faAward} />{' '}
|
||||||
<Link to={'/top-contributors'}>{t('profile.contributor')}</Link>
|
<Link to={t('links:top-contributors')}>
|
||||||
|
{t('profile.contributor')}
|
||||||
|
</Link>
|
||||||
</p>
|
</p>
|
||||||
<p className='text-center'>{joinArray(yearsTopContributor, t)}</p>
|
<p className='text-center'>{joinArray(yearsTopContributor, t)}</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -32,7 +32,7 @@ describe('Top contributor in user profile', () => {
|
|||||||
cy.contains('Top Contributor').should(
|
cy.contains('Top Contributor').should(
|
||||||
'have.attr',
|
'have.attr',
|
||||||
'href',
|
'href',
|
||||||
'/top-contributors'
|
'https://www.freecodecamp.org/news/freecodecamp-top-contributors/'
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user