mirror of
https://github.com/outline/outline.git
synced 2025-12-17 00:34:30 -06:00
* migration * Auto detect language and adjust line-height accordingly * Remove accidental commit * Remove unneccessary adjustment * test * mock
11 lines
272 B
JavaScript
11 lines
272 B
JavaScript
// Mock for franc language detection library
|
|
const franc = jest.fn((text) => {
|
|
// Return 'eng' (English) by default, or 'und' (undetermined) for empty text
|
|
if (!text || text.trim().length === 0) {
|
|
return "und";
|
|
}
|
|
return "eng";
|
|
});
|
|
|
|
module.exports = { franc };
|