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:
@@ -305,35 +305,35 @@
|
||||
</h2>
|
||||
<div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4">
|
||||
<a
|
||||
href="/pdf-to-png.html"
|
||||
href="pdf-to-png.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">Pdf To Png</h3>
|
||||
<p class="text-gray-400 text-sm">Free online pdf to png 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="/pdf-to-webp.html"
|
||||
href="pdf-to-webp.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">Pdf To Webp</h3>
|
||||
<p class="text-gray-400 text-sm">Free online pdf to webp tool</p>
|
||||
</a>
|
||||
<a
|
||||
href="/extract-images.html"
|
||||
href="extract-images.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">Extract Images</h3>
|
||||
|
||||
Reference in New Issue
Block a user