Add italian localization

- Added it locale
- Add it language ro other config files (nginx.conf, vite.config.ts, i18n.ts)
This commit is contained in:
Federico
2025-12-29 01:09:46 +01:00
parent bd6fd53d8b
commit c9aa895894
5 changed files with 827 additions and 11 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)(\/.*)?$/);
const langMatch = url.match(/^\/(en|de|zh|vi|it)(\/.*)?$/);
if (langMatch) {
const lang = langMatch[1];
const restOfPath = langMatch[2] || '/';