feat(website/i18n): footer navigation

This commit is contained in:
Elian Doran
2025-10-25 18:18:47 +03:00
parent 30480b2c23
commit f4796f0f9e
4 changed files with 26 additions and 20 deletions

View File

@@ -7,7 +7,6 @@ import { NotFound } from './pages/_404.jsx';
import Footer from './components/Footer.js';
import GetStarted from './pages/GetStarted/get-started.js';
import SupportUs from './pages/SupportUs/SupportUs.js';
import { LOCALES } from './i18n';
export function App(props: {repoStargazersCount: number}) {
return (
@@ -36,17 +35,6 @@ export async function prerender(data) {
// This ensures the GitHub API is not called on every page load in the client.
const stargazersCount = await getRepoStargazersCount();
const result = await ssr(<App repoStargazersCount={stargazersCount} {...data} />);
console.log("Got links ", result.links);
const links: string[] = [];
for (const locale of LOCALES) {
for (const link of result.links?.values() ?? []) {
links.push(locale.id + link);
}
}
return {
...result,
links
};
return await ssr(<App repoStargazersCount={stargazersCount} {...data} />);
}