Skip to content

Commit

Permalink
#15 modificar titulo de la pstana
Browse files Browse the repository at this point in the history
  • Loading branch information
arendondiosa committed Mar 17, 2024
1 parent 60e1470 commit 43c3f9d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions src/app/[lang]/sponsors/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@ import propTypes from 'prop-types';

import Sponsors from './components/Sponsors';

import en from '@/data/dictionaries/en.json';
import es from '@/data/dictionaries/es.json';

export async function generateMetadata({ params: { lang } }, parent) {
const dataLang = lang === 'en' ? en : es;
const dataSection = dataLang?.sections;
const sponsorsData = dataSection.sponsors;

return {
title: sponsorsData.title
};
}

const Page = ({ params: { lang } }) => {
return <Sponsors lang={lang} />;
};
Expand Down
2 changes: 1 addition & 1 deletion src/data/dictionaries/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"description": "Somos las nuevas voces"
},
"sponsors": {
"title": "Sponsors",
"title": "Patrocinadores",
"description": "PyCon Colombia can be your platform to gain brand recognition, take leads and recruit from an audience of highly skilled professionals!"
}
}
Expand Down

0 comments on commit 43c3f9d

Please sign in to comment.