Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
24 changes: 13 additions & 11 deletions i18n.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"locales" : ["pt", "en", "es"],
"defaultLocale": "pt",
"pages" : {
"*" : ["common"],
"/" : ["homePage"],
"/kurumim" : ["kurumim"],
"/processo-seletivo": ["processoSeletivo"],
"/projetos" : ["projetos"],
"/zenith" : ["oZenith"]
}
}
"locales": ["pt", "en", "es"],
"defaultLocale": "pt",
"pages": {
"*": ["common"],
"/": ["homePage"],
"/kurumim": ["kurumim"],
"/processo-seletivo": ["processoSeletivo"],
"/projetos": ["projetos"],
"/zenith": ["oZenith"],
"/launches": ["allLaunches"]
}
}

8 changes: 8 additions & 0 deletions locales/en/allLaunches.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"allLaunchesPage": {
"header": {
"title": "Lançamentos",
"description": "Acompanhe os lançamentos e os dados de cada missão."
}
}
}
8 changes: 8 additions & 0 deletions locales/es/allLaunches.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"allLaunchesPage": {
"header": {
"title": "Lançamentos",
"description": "Acompanhe os lançamentos e os dados de cada missão."
}
}
}
8 changes: 8 additions & 0 deletions locales/pt/allLaunches.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"allLaunchesPage": {
"header": {
"title": "Lançamentos",
"description": "Acompanhe os lançamentos e os dados de cada missão."
}
}
}
9 changes: 7 additions & 2 deletions pages/launches/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import PinDropIcon from '@mui/icons-material/PinDrop';
import HeightIcon from '@mui/icons-material/Height';
import ChevronRightIcon from '@mui/icons-material/ChevronRight';
import ShareLocationIcon from '@mui/icons-material/ShareLocation';
import useTranslation from 'next-translate/useTranslation';

const SELECTED_LAUNCH_STORAGE_KEY = 'zenith-selected-launch';

Expand All @@ -24,6 +25,10 @@ export default function LaunchesPage() {
const { launches, isLoadingAllLaunches, error } = useAllLaunches();
const router = useRouter();

const { t } = useTranslation();
const launchesTitle = t('allLaunches:allLaunchesPage.header.title');
const launchesDescription = t('allLaunches:allLaunchesPage.header.description');

useEffect(() => {}, [isLoadingAllLaunches, launches]);

const handleLaunchDetails = (launch: (typeof launches)[number]) => {
Expand All @@ -35,10 +40,10 @@ export default function LaunchesPage() {
<Container maxWidth="lg" sx={{ py: 6 }}>
<Stack spacing={1} sx={{ mb: 4 }}>
<Typography variant="h3" component="h1" sx={{ fontWeight: 800 }}>
Lançamentos
{launchesTitle}
</Typography>
<Typography variant="body1" color="text.secondary">
Acompanhe os lançamentos e os dados de cada missão.
{launchesDescription}
</Typography>
</Stack>

Expand Down