feat(i18n): add static pre-rendering for multi-language support
- Add `generate-i18n-pages.mjs` script to pre-render localized HTML files at build time - Add `generate-sitemap.mjs` script to generate language-aware sitemap.xml - Create `navbar-simple.html` and `footer-simple.html` partials for simple mode - Update all 80+ tool pages with language routing support - Expand supported languages to 12: en, de, es, fr, it, pt, tr, vi, id, zh, zh-TW - Update i18n.ts with new language names and support configuration - Implement languageRouterPlugin in vite.config.ts for dev server routing - Update nginx.conf for production static file serving from language directories - Update TRANSLATION.md with new architecture documentation and language addition guide - Fix relative paths in 404.html for static deployment compatibility - Update package.json with new build scripts and dependencies - Improves SEO through static pre-rendering and proper sitemap generation
This commit is contained in:
@@ -693,35 +693,35 @@
|
||||
</h2>
|
||||
<div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4">
|
||||
<a
|
||||
href="/merge-pdf.html"
|
||||
href="merge-pdf.html"
|
||||
class="block bg-gray-800 p-4 rounded-lg hover:bg-gray-700 transition-colors border border-gray-700"
|
||||
>
|
||||
<h3 class="text-white font-semibold mb-1">Merge Pdf</h3>
|
||||
<p class="text-gray-400 text-sm">Free online merge pdf tool</p>
|
||||
</a>
|
||||
<a
|
||||
href="/compress-pdf.html"
|
||||
href="compress-pdf.html"
|
||||
class="block bg-gray-800 p-4 rounded-lg hover:bg-gray-700 transition-colors border border-gray-700"
|
||||
>
|
||||
<h3 class="text-white font-semibold mb-1">Compress Pdf</h3>
|
||||
<p class="text-gray-400 text-sm">Free online compress pdf tool</p>
|
||||
</a>
|
||||
<a
|
||||
href="/split-pdf.html"
|
||||
href="split-pdf.html"
|
||||
class="block bg-gray-800 p-4 rounded-lg hover:bg-gray-700 transition-colors border border-gray-700"
|
||||
>
|
||||
<h3 class="text-white font-semibold mb-1">Split Pdf</h3>
|
||||
<p class="text-gray-400 text-sm">Free online split pdf tool</p>
|
||||
</a>
|
||||
<a
|
||||
href="/edit-pdf.html"
|
||||
href="edit-pdf.html"
|
||||
class="block bg-gray-800 p-4 rounded-lg hover:bg-gray-700 transition-colors border border-gray-700"
|
||||
>
|
||||
<h3 class="text-white font-semibold mb-1">Edit Pdf</h3>
|
||||
<p class="text-gray-400 text-sm">Free online edit pdf tool</p>
|
||||
</a>
|
||||
<a
|
||||
href="/rotate-pdf.html"
|
||||
href="rotate-pdf.html"
|
||||
class="block bg-gray-800 p-4 rounded-lg hover:bg-gray-700 transition-colors border border-gray-700"
|
||||
>
|
||||
<h3 class="text-white font-semibold mb-1">Rotate Pdf</h3>
|
||||
|
||||
Reference in New Issue
Block a user