chore: fix all linting issues and optimize components

This commit is contained in:
2026-02-11 10:40:57 +01:00
parent 5b4d3ebb41
commit c37fabdc8f
23 changed files with 275 additions and 59 deletions

View File

@@ -67,12 +67,12 @@ export async function generateMetadata({
let t;
try {
t = await getTranslations({ locale, namespace: 'Index.meta' });
} catch (err) {
} catch {
// If translations for Index.meta are not present, try generic Index namespace
try {
t = await getTranslations({ locale, namespace: 'Index' });
} catch (e) {
t = (key: string) => '';
} catch {
t = () => '';
}
}