1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-26 18:58:21 +02:00
This commit is contained in:
Laurent Cozic 2020-11-27 12:03:32 +00:00
parent 6ad9931e43
commit b77f868fc8

View File

@ -37,6 +37,7 @@ export default class SpellCheckerServiceDriverNative extends SpellCheckerService
for (const toTry of languagesToTry) { for (const toTry of languagesToTry) {
try { try {
this.session().setSpellCheckerLanguages([toTry]); this.session().setSpellCheckerLanguages([toTry]);
logger.info(`Set effective language from "${v}" to "${toTry}"`);
return; return;
} catch (error) { } catch (error) {
logger.warn(`Failed to set language to "${toTry}". Will try the next one in this list: ${JSON.stringify(languagesToTry)}`); logger.warn(`Failed to set language to "${toTry}". Will try the next one in this list: ${JSON.stringify(languagesToTry)}`);