feat: update gatsby config for chinese (#46424)
parent
200de36890
commit
c36224b9de
|
@ -10,10 +10,7 @@ const { clientLocale, curriculumLocale, homeLocation, sentryClientDSN } =
|
|||
envData;
|
||||
|
||||
const curriculumIntroRoot = path.resolve(__dirname, './src/pages');
|
||||
const pathPrefix =
|
||||
clientLocale === 'english' || clientLocale === 'chinese'
|
||||
? ''
|
||||
: '/' + clientLocale;
|
||||
const pathPrefix = clientLocale === 'english' ? '' : '/' + clientLocale;
|
||||
|
||||
module.exports = {
|
||||
flags: {
|
||||
|
|
|
@ -19,10 +19,7 @@ module.exports = {
|
|||
})
|
||||
),
|
||||
withPrefix: jest.fn().mockImplementation((path: string) => {
|
||||
const pathPrefix =
|
||||
clientLocale === 'english' || clientLocale === 'chinese'
|
||||
? ''
|
||||
: '/' + clientLocale;
|
||||
const pathPrefix = clientLocale === 'english' ? '' : '/' + clientLocale;
|
||||
return pathPrefix + path;
|
||||
}),
|
||||
StaticQuery: jest.fn(),
|
||||
|
|
Loading…
Reference in New Issue