Files
react-test/docs/config.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
569 B
TypeScript
Raw Normal View History

2025-12-12 14:26:25 +09:00
// 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;
};