fix: remove undefined showTranslationFallbackNotice function call
- Removed call to showTranslationFallbackNotice(language) which was undefined - Console warning already logs the fallback behavior - Prevents ReferenceError when loading translated documents - Related to glossary translation fallback handling 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
4620329fe0
commit
e208b1cea3
1 changed files with 2 additions and 2 deletions
|
|
@ -655,8 +655,8 @@ async function loadDocument(slug, lang = null) {
|
|||
const enData = await enResponse.json();
|
||||
|
||||
if (enData.success) {
|
||||
// Show notification that translation isn't available
|
||||
showTranslationFallbackNotice(language);
|
||||
// Translation not available - falling back to English
|
||||
// (console warning already logged above)
|
||||
const fallbackData = enData;
|
||||
fallbackData.document.language = 'en';
|
||||
fallbackData.document.fallback = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue