mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-07-28 14:51:16 -07:00
End-to-end working localization (#336)
* End-to-end localization working * Update package.json * fix FormattedMessage confusion by using the `FormattedMessage` from `gatsby-plugin-intl` NOT `react-intl` * TODO: `client/src/intl/es.json` should be generated from a translation tool. * Update package-lock.json
This commit is contained in:
parent
3cd6e06115
commit
cfce0dc826
8 changed files with 523 additions and 162 deletions
|
@ -4,6 +4,7 @@ import J40Header from './J40Header';
|
|||
import J40Footer from './J40Footer';
|
||||
import J40Aside from '../components/J40Aside';
|
||||
import {URLFlagProvider} from '../contexts/FlagContext';
|
||||
// this has to be wrong
|
||||
|
||||
interface ILayoutProps {
|
||||
children: ReactNode,
|
||||
|
@ -16,6 +17,7 @@ const Layout = ({children, location}: ILayoutProps) => {
|
|||
const gridCssClass = isWidthFullPage ? ' desktop:grid-col-12' :
|
||||
'desktop:grid-col-9';
|
||||
|
||||
// @ts-ignore
|
||||
return (
|
||||
<URLFlagProvider location={location}>
|
||||
<J40Header/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue