Actualiser api/index.php
CI / PHP Syntax Check (push) Has been cancelled
CI / JavaScript Lint (push) Has been cancelled
CI / Docker Build Test (push) Has been cancelled
CI / Validate Translation Files (push) Has been cancelled
CI / Auto-merge develop → main (push) Has been cancelled
CI / Create GitHub Release (push) Has been cancelled
Security Scan (Trivy) / Trivy — Docker image scan (push) Has been cancelled
Security Scan (Trivy) / Trivy — Filesystem scan (push) Has been cancelled
CI / PHP Syntax Check (push) Has been cancelled
CI / JavaScript Lint (push) Has been cancelled
CI / Docker Build Test (push) Has been cancelled
CI / Validate Translation Files (push) Has been cancelled
CI / Auto-merge develop → main (push) Has been cancelled
CI / Create GitHub Release (push) Has been cancelled
Security Scan (Trivy) / Trivy — Docker image scan (push) Has been cancelled
Security Scan (Trivy) / Trivy — Filesystem scan (push) Has been cancelled
This commit is contained in:
+3
-1
@@ -5992,7 +5992,7 @@ PROMPT;
|
|||||||
|
|
||||||
function recipeNormalizeLang($lang): string {
|
function recipeNormalizeLang($lang): string {
|
||||||
$lang = is_string($lang) ? strtolower(trim($lang)) : 'it';
|
$lang = is_string($lang) ? strtolower(trim($lang)) : 'it';
|
||||||
return in_array($lang, ['it', 'en', 'de'], true) ? $lang : 'it';
|
return in_array($lang, ['it', 'en', 'de', 'fr', 'es'], true) ? $lang : 'it';
|
||||||
}
|
}
|
||||||
|
|
||||||
function recipeLangName(string $lang): string {
|
function recipeLangName(string $lang): string {
|
||||||
@@ -6000,6 +6000,8 @@ PROMPT;
|
|||||||
'it' => 'Italian',
|
'it' => 'Italian',
|
||||||
'en' => 'English',
|
'en' => 'English',
|
||||||
'de' => 'German',
|
'de' => 'German',
|
||||||
|
'fr' => 'French',
|
||||||
|
'es' => 'Spanish',
|
||||||
][$lang] ?? 'Italian';
|
][$lang] ?? 'Italian';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user