Skip to content

Pull request for issue #12 #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

google-labs-jules[bot]
Copy link

Fixes #12

This commit introduces internationalization (i18n) support for the Spanish language (`es`).

Key changes include:

- **Astro Configuration**: Updated `astro.config.mjs` to define `en` (default) and `es` locales, enabling path-based routing (`/es/...`).
- **Content Restructuring**:
    - Created Spanish versions of select MDX content files (homepage, example post, a job, a talk) with `.es.mdx` suffixes and placeholder Spanish translations in frontmatter and body.
    - Created Spanish versions of YAML link files (`.es.yml`) with placeholder translations for labels.
- **Page Updates**:
    - Modified `src/pages/writing/[...slug].astro` to use `getRelativeLocaleUrl` for locale-aware navigation, ensuring the "Back to writing" link functions correctly in both languages.
- **Verification**:
    - English content will be served from the root (`/`).
    - Spanish content will be served from the `/es/` path.
    - Content fetching via `getEntry` and `getCollection` is expected to serve the correct language versions based on Astro's i18n capabilities.

This provides the foundational structure for Spanish content. Further work would involve translating all content and localizing global constants (e.g., author details, default SEO metadata in `src/lib/constants.ts`).
@coderdiaz coderdiaz closed this Jul 5, 2025
@coderdiaz coderdiaz deleted the feat/i18n-spanish-support branch July 5, 2025 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for i18n
1 participant