add tr lang

This commit is contained in:
Hasan Tekgül authored and Hasan TEKGÜL committed 2025-12-19 18:17:04 +03:00
1 parent 2417168fb9
commit 33e558b290
5 files changed
+609 -8

No files matched your search

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