feat: Update routing in layout.tsx
Refactor the generateStaticParams function in layout.tsx to use the routing.locales array instead of the deprecated SUPPORTED_LANGUAGES array. This change ensures that the language options in the website's layout are dynamically generated based on the available locales.
The code changes include:
- Adding the `LocaleSwitcher` component to the footer.
- Updating the footer layout to accommodate the language switcher.
- Importing the `LocaleSwitcher` component in the `Footer` component.
This commit enhances the user experience by allowing users to easily change the language of the website.
The code changes include:
- Updating the i18n configuration to export the `SUPPORTED_LANGUAGES` array.
- Refactoring the `getRequestConfig` function to accept a `locale` parameter.
- Simplifying the logic for determining the `locale` based on the `accept-language` header.
- Loading the appropriate messages file based on the `locale` parameter.
This commit improves the i18n functionality of the project and allows for easier addition of new languages.
Update the pages_build_output_dir in wrangler.toml from ".vercel/output/static" to "out". This change improves the build output directory for the project.
The code changes include:
- Adding social media icons for GitHub, Discord, and Mastodon.
- Updating the layout of the footer to display the logo and follow us section.
- Updating the links in the footer to point to the correct pages.
The code changes include:
- Importing the `Image` component from `next/legacy/image` instead of `next/image` in multiple files.
- Adding a new `CachedImage` component that uses the `Image` component with a custom loader.
- Updating the `MarketplacePage` component to pass the `themes` prop to the `MarketplacePage` component.
The code changes include:
- Importing the `Image` component from `next/legacy/image` instead of `next/image` in multiple files.
- Adding a new `CachedImage` component that uses the `Image` component with a custom loader.
- Updating the `Logo` component to use the `CachedImage` component instead of the `img` tag.
Recent user commits and repository commits do not provide additional context for the commit message.