feat: update gatsby config for chinese (#46424)

This commit is contained in:
Naomi Carrigan
2022-11-09 11:36:05 -08:00
committed by GitHub
parent 200de36890
commit c36224b9de
2 changed files with 2 additions and 8 deletions
+1 -4
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: {
+1 -4
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(),