Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
23 lines
569 B
TypeScript
23 lines
569 B
TypeScript
// Valid languages to server-side render in production
|
|
export const LANGUAGES = ['en'];
|
|
|
|
// Server side rendered languages
|
|
export const LANGUAGES_SSR = ['en'];
|
|
|
|
// Work in progress
|
|
export const LANGUAGES_IN_PROGRESS = LANGUAGES.slice();
|
|
|
|
export const LANGUAGES_IGNORE_PAGES = (pathname: string) => {
|
|
// 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;
|
|
};
|