More fixes
This commit is contained in:
parent
56d393fcc8
commit
0b544fc507
3 changed files with 4 additions and 3 deletions
src/app/[...file]
|
@ -89,7 +89,7 @@ export default function Content({ src }: { src: string}) {
|
|||
json: "json",
|
||||
}
|
||||
const split = window.location.pathname.split('.');
|
||||
set_content(<Text language={split.length == 0 ? 'none' : languages[split[split.length - 1]]} text={data} />);
|
||||
set_content(<Text language={split.length == 0 ? 'none' : (languages[split[split.length - 1] as keyof typeof languages] ?? 'none')} text={data} />);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue