1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Update js to ts references (#58029)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Kevin Heis
2025-10-21 08:00:13 -07:00
committed by GitHub
parent 2e1fef3b8c
commit e8be8376a5
103 changed files with 182 additions and 177 deletions

View File

@@ -131,7 +131,7 @@ export async function renderContentWithFallback(
const enPage = context.getEnglishPage(context)
const englishTemplate = (enPage as any)[property] as string
// If you don't change the context, it'll confuse the liquid plugins
// like `data.js` that uses `environment.scope.currentLanguage`
// like `data.ts` that uses `environment.scope.currentLanguage`
const enContext = Object.assign({}, context, { currentLanguage: 'en' })
// Render the English fallback content