forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
49 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1 @@ | ||
export const LANGUAGES: string[]; | ||
|
||
export const LANGUAGES_SSR: string[]; | ||
|
||
export const LANGUAGES_IN_PROGRESS: string[]; | ||
|
||
export const LANGUAGES_IGNORE_PAGES: (pathname: string) => boolean; | ||
export * from '@mui/docs/config'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1 @@ | ||
// Valid languages to server-side render in production | ||
const LANGUAGES = ['en']; | ||
|
||
// Server side rendered languages | ||
const LANGUAGES_SSR = ['en']; | ||
|
||
// Work in progress | ||
const LANGUAGES_IN_PROGRESS = LANGUAGES.slice(); | ||
|
||
const LANGUAGES_IGNORE_PAGES = (pathname) => { | ||
// We don't have the bandwidth like Qt to translate our blog posts | ||
// https://www.qt.io/zh-cn/blog | ||
if (pathname === '/blog' || pathname.startsWith('/blog/')) { | ||
return true; | ||
} | ||
|
||
if (pathname === '/size-snapshot/') { | ||
return true; | ||
} | ||
|
||
return false; | ||
}; | ||
|
||
module.exports = { | ||
LANGUAGES, | ||
LANGUAGES_IN_PROGRESS, | ||
LANGUAGES_SSR, | ||
LANGUAGES_IGNORE_PAGES, | ||
}; | ||
module.exports = require('@mui/docs/config'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export const LANGUAGES: string[]; | ||
|
||
export const LANGUAGES_SSR: string[]; | ||
|
||
export const LANGUAGES_IN_PROGRESS: string[]; | ||
|
||
export const LANGUAGES_IGNORE_PAGES: (pathname: string) => boolean; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Valid languages to server-side render in production | ||
const LANGUAGES = ['en']; | ||
|
||
// Server side rendered languages | ||
const LANGUAGES_SSR = ['en']; | ||
|
||
// Work in progress | ||
const LANGUAGES_IN_PROGRESS = LANGUAGES.slice(); | ||
|
||
const LANGUAGES_IGNORE_PAGES = (pathname) => { | ||
// We don't have the bandwidth like Qt to translate our blog posts | ||
// https://www.qt.io/zh-cn/blog | ||
if (pathname === '/blog' || pathname.startsWith('/blog/')) { | ||
return true; | ||
} | ||
|
||
if (pathname === '/size-snapshot/') { | ||
return true; | ||
} | ||
|
||
return false; | ||
}; | ||
|
||
module.exports = { | ||
LANGUAGES, | ||
LANGUAGES_IN_PROGRESS, | ||
LANGUAGES_SSR, | ||
LANGUAGES_IGNORE_PAGES, | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.