Skip to content

Conversation

@crstian19
Copy link

@crstian19 crstian19 commented Dec 14, 2025

🌍 Add Spanish Language Support to BentoPDF

Summary

This PR adds complete Spanish language support to BentoPDF, making the application accessible to over 580 million Spanish speakers worldwide. The implementation includes full translation of all UI elements, tool names, and descriptions.

Changes Made

1. Added Spanish Translation Files (public/locales/es/)

  • common.json - Complete translation of all UI elements (navigation, hero section, FAQ, settings, etc.)
  • tools.json - Translation of all 80+ PDF tool names and descriptions

2. Updated Configuration

  • ✅ Added 'es' to supported languages in src/js/i18n/i18n.ts
  • ✅ Added 'Español' to language names mapping
  • ✅ Updated routing regex patterns to include Spanish paths (/es/)

3. Updated Vite Configuration (vite.config.ts)

  • ✅ Added Spanish (es) to language routing regex

4. Added hreflang Tags for SEO

  • ✅ Added <link rel="alternate" hreflang="es" href="/es/" /> to all HTML pages

5. Updated Documentation (TRANSLATION.md)

  • ✅ Added Spanish to the list of# supported languages
  • ✅ Updated translation progress table
  • ✅ Enhanced the file checklist for new languages

Screenshots

swappy-20251214_211638 swappy-20251214_211645 swappy-20251214_211659

Verification Checklist

  • All translation files are valid JSON
  • No missing translation keys when compared to English
  • All routes work correctly with /es/ prefix
  • Language switcher functions properly
  • SEO hreflang tags are present
  • Tested on multiple pages and tools
  • Updated documentation reflects new language support

This implementation follows all established patterns in the codebase and maintains compatibility with existing functionality.

Checklist:

  • I have signed the Contributor License Agreement (CLA) or my organization has signed the Corporate CLA
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@github-actions
Copy link
Contributor

github-actions bot commented Dec 14, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@crstian19
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Dec 16, 2025
@crstian19 crstian19 marked this pull request as ready for review December 16, 2025 08:38
@amatosg amatosg mentioned this pull request Dec 18, 2025
12 tasks
ilhamm191102 pushed a commit to ihsanGhoziZulfikar/bentopdf that referenced this pull request Dec 31, 2025
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.

1 participant