* move setLang() to a root layout
* fix: findLang only returns acceptable languages * fix: fallback to use header x-lang if we haven't setLang yet * fix: languageSchema, allow uppercase Approved-by: Linus Flood
This commit is contained in:
@@ -5,7 +5,9 @@ import { texts } from "./Texts"
|
||||
import styles from "./notFound.module.css"
|
||||
|
||||
export default function NotFound() {
|
||||
const infoTexts = texts[getLang()]
|
||||
const lang = getLang()
|
||||
const infoTexts = texts[lang]
|
||||
|
||||
return (
|
||||
<div className={styles.container}>
|
||||
<div className={styles.content}>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
transform-origin: bottom;
|
||||
}
|
||||
|
||||
.roomPanel>* {
|
||||
.roomPanel > * {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@@ -52,4 +52,4 @@ div.roomContainer p.subtitle {
|
||||
.roomContainer {
|
||||
padding: var(--Spacing-x2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user