fix(front-end): set fallback lang
Some checks failed
Build and Deploy / build-and-push (push) Successful in 30s
Build and Deploy / deploy (push) Successful in 21s
Build and Deploy / test-backend (push) Successful in 36s
Build and Deploy / test-frontend (push) Successful in 1m5s
PR Checks / prettier-autofix (pull_request) Failing after 18s
PR Checks / security-sast (pull_request) Successful in 33s
PR Checks / test-backend (pull_request) Successful in 30s
PR Checks / test-frontend (pull_request) Successful in 1m7s

This commit is contained in:
2026-03-14 20:53:50 +01:00
parent df63937406
commit 20988e425a
3 changed files with 5 additions and 4 deletions

View File

@@ -60,7 +60,7 @@ export const appConfig: ApplicationConfig = {
),
importProvidersFrom(
TranslateModule.forRoot({
defaultLanguage: 'it',
fallbackLang: 'it',
loader: {
provide: TranslateLoader,
useClass: StaticTranslateLoader,
@@ -75,7 +75,7 @@ export const appConfig: ApplicationConfig = {
} | null;
translate.addLangs([...SUPPORTED_LANGS]);
translate.setDefaultLang('it');
translate.setFallbackLang('it');
const requestedUrl =
(typeof request?.url === 'string' && request.url) || router.url || '/';
const lang = resolveLangFromUrl(requestedUrl);