fix: improve error handling in performCondenseCompression function

fix: routing
This commit is contained in:
alam00000
2026-02-21 14:27:53 +05:30
parent b9499b228a
commit a119837c8a
3 changed files with 23 additions and 25 deletions

View File

@@ -14,19 +14,20 @@ import type { OutputBundle } from 'rollup';
const SUPPORTED_LANGUAGES = [
'en',
'ar',
'be',
'da',
'de',
'es',
'fr',
'id',
'it',
'nl',
'pt',
'tr',
'vi',
'zh',
'zh-TW',
'vi',
'it',
'id',
'tr',
'fr',
'pt',
'nl',
'da',
] as const;
const LANG_REGEX = new RegExp(
`^/(${SUPPORTED_LANGUAGES.join('|')})(?:/(.*))?$`