feat: update gatsby config for chinese (#46424)

pull/48455/head
Naomi Carrigan 2022-11-09 11:36:05 -08:00 committed by GitHub
parent 200de36890
commit c36224b9de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 8 deletions

View File

@ -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: {

View File

@ -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(),