import { I18nKeys } from "i18next"; import { Component } from "inferno"; import { i18n } from "../i18next"; export class NoMatch extends Component { private errCode = new URLSearchParams(this.props.location.search).get( "err" ) as I18nKeys; constructor(props: any, context: any) { super(props, context); } render() { return (

404

{this.errCode && (

{i18n.t("code")}: {i18n.t(this.errCode)}

)}
); } }