this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add initial check before throwing error below

+5
+5
src/utils/browser-translator.js
··· 37 37 let detectedSourceLanguage; 38 38 const originalSource = source; 39 39 if (source === 'auto') { 40 + if (!langDetector?.detect) { 41 + return { 42 + error: 'No language detector', 43 + }; 44 + } 40 45 try { 41 46 const results = await langDetector.detect(text); 42 47 source = results[0].detectedLanguage;