mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
feat: update gatsby config for chinese (#46424)
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user