feat: add Indonesian language support with translations for common phrases and tools

This commit is contained in:
Hanif Naufal
2026-01-07 22:49:05 +07:00
parent e399315798
commit 5f8e94c41f
4 changed files with 963 additions and 112 deletions

View File

@@ -14,7 +14,7 @@ function pagesRewritePlugin(): Plugin {
server.middlewares.use((req, res, next) => {
const url = req.url?.split('?')[0] || '';
const langMatch = url.match(/^\/(en|de|zh|vi|it)(\/.*)?$/);
const langMatch = url.match(/^\/(en|de|zh|vi|it|id)(\/.*)?$/);
if (langMatch) {
const lang = langMatch[1];
const restOfPath = langMatch[2] || '/';