feat(i18n): Add French (Français) language support

This commit is contained in:
Stanislas MEZUREUX
2025-12-14 00:20:40 +01:00
parent 41970ec330
commit 584acc68d0
9 changed files with 733 additions and 116 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|id|tr)(\/.*)?$/);
const langMatch = url.match(/^\/(en|de|zh|vi|it|id|tr|fr)(\/.*)?$/);
if (langMatch) {
const lang = langMatch[1];
const restOfPath = langMatch[2] || '/';