Skip to content

Instantly share code, notes, and snippets.

@theodesp
Last active April 6, 2020 11:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theodesp/bd49e593756e22efb6c1a34918265aa2 to your computer and use it in GitHub Desktop.
Save theodesp/bd49e593756e22efb6c1a34918265aa2 to your computer and use it in GitHub Desktop.
import React from 'react';
import { graphql } from 'gatsby';
import { withTranslation } from 'react-i18next';
import {withI18next} from '@wapps/gatsby-plugin-i18next';
const NotFoundPage = ({ t }) => (
<Layout>
<h1>{t('NOT FOUND')}</h1>
<p>{t('You just hit a route that doesn\'t exist... the sadness.')}</p>
</Layout>
);
export default withI18next()(withTranslation()(NotFoundPage);
export const query = graphql`
query($lng: String!) {
locales: allLocale(filter: { lng: { eq: $lng }, ns: { eq: "messages" } }) {
...LocaleFragment
}
}
`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment