diff --git a/frontend/src/app/app.config.ts b/frontend/src/app/app.config.ts index 418e76c..2e93470 100644 --- a/frontend/src/app/app.config.ts +++ b/frontend/src/app/app.config.ts @@ -70,9 +70,9 @@ export const appConfig: ApplicationConfig = { provideAppInitializer(() => { const translate = inject(TranslateService); const router = inject(Router); - const request = inject(REQUEST, { optional: true }) as - | { url?: string } - | null; + const request = inject(REQUEST, { optional: true }) as { + url?: string; + } | null; translate.addLangs([...SUPPORTED_LANGS]); translate.setDefaultLang('it'); diff --git a/frontend/src/app/core/i18n/static-translate.loader.ts b/frontend/src/app/core/i18n/static-translate.loader.ts index b96cd84..3821187 100644 --- a/frontend/src/app/core/i18n/static-translate.loader.ts +++ b/frontend/src/app/core/i18n/static-translate.loader.ts @@ -1,8 +1,5 @@ import { Injectable } from '@angular/core'; -import { - TranslateLoader, - TranslationObject, -} from '@ngx-translate/core'; +import { TranslateLoader, TranslationObject } from '@ngx-translate/core'; import { Observable, of } from 'rxjs'; import de from '../../../assets/i18n/de.json'; import en from '../../../assets/i18n/en.json'; diff --git a/frontend/src/app/core/interceptors/server-origin.interceptor.ts b/frontend/src/app/core/interceptors/server-origin.interceptor.ts index 0660204..55fe6f8 100644 --- a/frontend/src/app/core/interceptors/server-origin.interceptor.ts +++ b/frontend/src/app/core/interceptors/server-origin.interceptor.ts @@ -11,9 +11,7 @@ function isAbsoluteUrl(url: string): boolean { return /^[a-z][a-z\d+\-.]*:/i.test(url) || url.startsWith('//'); } -function firstHeaderValue( - value: string | string[] | undefined, -): string | null { +function firstHeaderValue(value: string | string[] | undefined): string | null { if (Array.isArray(value)) { return value[0] ?? null; }