diff --git a/client/src/components/layouts/default.tsx b/client/src/components/layouts/default.tsx index 88754c42c1f..ba06a19ee6b 100644 --- a/client/src/components/layouts/default.tsx +++ b/client/src/components/layouts/default.tsx @@ -5,10 +5,16 @@ import { useMediaQuery } from 'react-responsive'; import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import { createSelector } from 'reselect'; +import envData, { clientLocale } from '../../../config/env.json'; import latoBoldURL from '../../../static/fonts/lato/Lato-Bold.woff'; import latoLightURL from '../../../static/fonts/lato/Lato-Light.woff'; import latoRegularURL from '../../../static/fonts/lato/Lato-Regular.woff'; + +import jpSansBoldURL from '../../../static/fonts/noto-sans-japanese/NotoSansJP-Bold.woff'; +import jpSansLightURL from '../../../static/fonts/noto-sans-japanese/NotoSansJP-Light.woff'; +import jpSansRegularURL from '../../../static/fonts/noto-sans-japanese/NotoSansJP-Regular.woff'; + import hackZeroSlashBoldURL from '../../../static/fonts/hack-zeroslash/Hack-ZeroSlash-Bold.woff'; import hackZeroSlashItalicURL from '../../../static/fonts/hack-zeroslash/Hack-ZeroSlash-Italic.woff'; import hackZeroSlashRegularURL from '../../../static/fonts/hack-zeroslash/Hack-ZeroSlash-Regular.woff'; @@ -42,7 +48,6 @@ import { MAX_MOBILE_WIDTH, EX_SMALL_VIEWPORT_HEIGHT } from '../../../config/misc'; -import envData from '../../../config/env.json'; import '@freecodecamp/ui/dist/base.css'; // preload common fonts @@ -165,6 +170,8 @@ function DefaultLayout({ const useSystemTheme = fetchState.complete && isSignedIn === false; + const isJapanese = clientLocale === 'japanese'; + if (fetchState.pending) { return ; } else { @@ -207,6 +214,34 @@ function DefaultLayout({ rel='preload' type='font/woff' /> + {isJapanese && ( + + )} + {isJapanese && ( + + )} + {isJapanese && ( + + )} +