Skip to content

Commit 6398eb7

Browse files
authored
Temp translations fallback to fix deployments (#60485)
1 parent defa675 commit 6398eb7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/frame/lib/page-data.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ async function translateTree(
144144
let data
145145
let content
146146
try {
147+
// HACK: Skip known-broken translation files and fall back to English.
148+
// Remove once the translation repos have been fixed.
149+
if (fullPath.includes('translations/') && relativePath === 'code-security/concepts/index.md') {
150+
throw new FrontmatterParsingError('Skipping known-broken translation file')
151+
}
152+
147153
const read = await readFileContents(fullPath)
148154
// If it worked, great!
149155
content = read.content

0 commit comments

Comments
 (0)